Issue with connecting to internet with ubuntu

9 views
Skip to first unread message

cris croslobski

unread,
Jun 6, 2017, 8:32:21 AM6/6/17
to Vagrant
Hi,

I have a strange thing

I create guest VM virtualbox ubuntu 14.04 lts computer, and can connect via ssh and ping it from host, but I can't ping to 8.8.8.8. first adapter defined as NAT and the second as Host-Only-Adapater

Can you help please? (I have the in addition problem with vagrant in other computer - I opened another issue)

netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.2.1     0.0.0.0         UG        0 0          0 eth1
10.0.2.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1

ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.

cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.2.3
gateway 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcase 192.168.2.255




Alvaro Miranda Aguilera

unread,
Jun 6, 2017, 4:06:06 PM6/6/17
to vagra...@googlegroups.com
Is this a Vm created with Vagrant ?

can you share the Vagrantfile?

Thanks
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/59b5c83d-bc7a-45c3-b95d-202c7c2e645b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages