Issue with connecting to internet with ubuntu

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with connecting to internet with ubuntu

cris croslobski
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




--
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: Issue with connecting to internet with ubuntu

Alvaro Miranda Aguilera
Is this a Vm created with Vagrant ?

can you share the Vagrantfile?

Thanks
Alvaro

On Tue, Jun 6, 2017 at 2:32 PM, cris croslobski <[hidden email]> wrote:
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




--
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 [hidden email].
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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ezEp-7hg-CsFjsDyqCfj%2BG3-rdyWqTfvrNvOu%2BnCNRNqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.