我有一台双启动机器。当我使用 Windows 时,互联网完全正常;我可以正常访问所有网站。
但是,当我改用 Ubuntu 时,我无法再访问 Facebook、Twitter、YouTube 等。
发生了什么事?我应该怎么做才能解决这个问题?
编辑 :
我的 DNS :8.8.8.8, 8.8.4.4
从ifconfig
eth0 Link encap:Ethernet HWaddr 50:46:5d:3f:f5:09
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
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:2515 errors:0 dropped:0 overruns:0 frame:0
TX packets:2515 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:202999 (202.9 KB) TX bytes:202999 (202.9 KB)
wlan0 Link encap:Ethernet HWaddr dc:85:de:a4:e4:7d
inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::de85:deff:fea4:e47d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11092 errors:0 dropped:0 overruns:0 frame:0
TX packets:9984 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7149295 (7.1 MB) TX bytes:1679041 (1.6 MB)
从ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 50:46:5d:3f:f5:09 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether dc:85:de:a4:e4:7d brd ff:ff:ff:ff:ff:ff
inet 192.168.0.102/24 brd 192.168.0.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::de85:deff:fea4:e47d/64 scope link
valid_lft forever preferred_lft forever
我可以 ping 通www.google.com
(0% 丢失),但是当我尝试 ping 时www.youtube.com
,这里只发生永久加载:
PING www.youtube.com (46.82.174.68) 56(84) bytes of data.
当我跑步时nm-tool | tail -n 8
:
IPv4 Settings:
Address: 192.168.0.102
Prefix: 24 (255.255.255.0)
Gateway: 192.168.0.1
DNS: 192.168.0.1
请帮我。
答案1
尝试
sudo ifconfig eth0 mtu 1450
sudo ifconfig wlan0 mtu 1450