Win7 Host, Ubuntu Guest - NAT Networking Issue
Posted: 9. Oct 2012, 10:47
So, I'm having a networking issue which is unfamiliar to me. I've never really had networking issues back home, either on wired or wireless, home or work networks. I'm overseas at the moment however and have spent the last couple of hours trying to resolve this issue.
In my Ubuntu 12.04 LTS guest (Win7 Host), some things are able to see the internet fine... for example, Chrome can access the web just fine and the Update Manager works too. However, from a terminal, I can ping the my host machine by IP, I can ping the DNS by IP, but I can't ping anything else in the outside world!?!?
At the bottom of this message, I'm pasting the ipconfig for the host and ifconfig for the guest. As mentioned above I can ping both 10.21.12.{1,244}, the DNS and HOST IP addresses. For example:
Many Thanks!!
Ryan
From Window 7 x65 Host (subset of "ipconfig /all"):
In my Ubuntu 12.04 LTS guest (Win7 Host), some things are able to see the internet fine... for example, Chrome can access the web just fine and the Update Manager works too. However, from a terminal, I can ping the my host machine by IP, I can ping the DNS by IP, but I can't ping anything else in the outside world!?!?
At the bottom of this message, I'm pasting the ipconfig for the host and ifconfig for the guest. As mentioned above I can ping both 10.21.12.{1,244}, the DNS and HOST IP addresses. For example:
farrell@MyVM:~$ ping 10.21.12.244 PING 10.21.12.244 (10.21.12.244) 56(84) bytes of data. 64 bytes from 10.21.12.244: icmp_req=1 ttl=128 time=2.41 ms 64 bytes from 10.21.12.244: icmp_req=2 ttl=128 time=1.66 ms ^C --- 10.21.12.244 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1003ms rtt min/avg/max/mdev = 1.660/2.038/2.417/0.381 msHowever, I can't ping google for example (the space in .c om isn't really there):
farrell@MyVm:~$ ping google.c om PING google.c om (173.194.35.8 ) 56(84) bytes of data. ^C --- google.c om ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5026msI've tried various things including running dhclient, but it seems like the dns server is set correctly.
farrell@MyVM:~$ sudo dhclient RTNETLINK answers: File exists farrell@MyVM:~$ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 10.21.12.1 nameserver 127.0.0.1 search cyberbox.itAnyone have any ideas what could be wrong? I'm happy to provide any additional info that could be helpful.
Many Thanks!!
Ryan
From Window 7 x65 Host (subset of "ipconfig /all"):
Wireless LAN adapter Wireless Network Connection: Connection-specific DNS Suffix . : cyberbox.it Description . . . . . . . . . . . : Intel(R) Centrino(R) Advanced-N 6250 AGN Physical Address. . . . . . . . . : 64-80-99-55-8C-44 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::79e2:b6fdFrom Ubuntu 12.04 LTS Guest ("ifconfig -a"):bf13%13(Preferred) IPv4 Address. . . . . . . . . . . : 10.21.12.244(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : Tuesday, October 09, 2012 12:52:36 AM Lease Expires . . . . . . . . . . : Tuesday, October 09, 2012 2:22:35 AM Default Gateway . . . . . . . . . : 10.21.12.1 DHCP Server . . . . . . . . . . . : 10.21.12.1 DHCPv6 IAID . . . . . . . . . . . : 291799193 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-34-AB-6D-64-80-99-55-8C-44 DNS Servers . . . . . . . . . . . : 10.21.12.1 NetBIOS over Tcpip. . . . . . . . : Enabled
farrell@MyVM:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:e0:38:ad
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00
fee0:38ad/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8391 errors:0 dropped:0 overruns:0 frame:0
TX packets:6665 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6275631 (6.2 MB) TX bytes:1125750 (1.1 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:98 errors:0 dropped:0 overruns:0 frame:0
TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13371 (13.3 KB) TX bytes:13371 (13.3 KB)