Ubuntu 14.04 can ping everything, but connect to nothing
Posted: 23. Aug 2015, 00:14
Virtualbox: 4.3.30
Host OS: Windows 8.1
Guest OS: Ubuntu 14.04
Mode: NAT
========================================================================
Problem: Connect on the host is perfect. In the guest os, I can ping the host, gateway, DNS IP, and public IP like google's, no packets lost. But I can't connect to the interner at all.
1.Connection to websites using a domain name: server not found
2.Connection to websites using an IP address: server not found
3.Other way to connect like app-get and system updates doesn't work either
4.able to ping DNS but no able to resolve any domain names:
sk@sk-VirtualBox:~$ dig
; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>>
;; global options: +cmd
;; connection timed out; no servers could be reached
========================================================================
And here are some of the information of configuration of the guest:
sk@sk-VirtualBox:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:e4:a5:db
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00
fee4:a5db/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:1891 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3796 (3.7 KB) TX bytes:165196 (165.1 KB)
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:65536 Metric:1
RX packets:601 errors:0 dropped:0 overruns:0 frame:0
TX packets:601 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:41854 (41.8 KB) TX bytes:41854 (41.8 KB)
sk@sk-VirtualBox:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 * 255.255.255.0 U 1 0 0 eth0
Connection configuraion:
Wired connection 1 (default)
IPv4
IP Address: 10.0.2.15
Subnet Mask: 255.255.255.0
Default Route: 10.0.2.2
========================================================================
When I was on my old laptop with Win7 it works well, it just fail on my new laptop with Win8.1. This is driving me crazy Orz. Plz HELP.
Host OS: Windows 8.1
Guest OS: Ubuntu 14.04
Mode: NAT
========================================================================
Problem: Connect on the host is perfect. In the guest os, I can ping the host, gateway, DNS IP, and public IP like google's, no packets lost. But I can't connect to the interner at all.
1.Connection to websites using a domain name: server not found
2.Connection to websites using an IP address: server not found
3.Other way to connect like app-get and system updates doesn't work either
4.able to ping DNS but no able to resolve any domain names:
sk@sk-VirtualBox:~$ dig
; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>>
;; global options: +cmd
;; connection timed out; no servers could be reached
========================================================================
And here are some of the information of configuration of the guest:
sk@sk-VirtualBox:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:e4:a5:db
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:1891 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3796 (3.7 KB) TX bytes:165196 (165.1 KB)
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:65536 Metric:1
RX packets:601 errors:0 dropped:0 overruns:0 frame:0
TX packets:601 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:41854 (41.8 KB) TX bytes:41854 (41.8 KB)
sk@sk-VirtualBox:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 * 255.255.255.0 U 1 0 0 eth0
Connection configuraion:
Wired connection 1 (default)
IPv4
IP Address: 10.0.2.15
Subnet Mask: 255.255.255.0
Default Route: 10.0.2.2
========================================================================
When I was on my old laptop with Win7 it works well, it just fail on my new laptop with Win8.1. This is driving me crazy Orz. Plz HELP.