我正在使用 Ubuntu 12.10。我的互联网连接工作正常。我尝试在更改 IP 后连接大学 LAN,但没有成功。然后我更改为以前的 IP 并尝试连接,但现在显示Connection established
没有互联网访问。输出ifconfig
没有wlan
,eth1
显示interrupt17
。
$ ifconfig
eth1 Link encap:Ethernet HWaddr 00:26:22:c8:2d:2a
inet addr:192.168.61.57 Bcast:192.168.61.255 Mask:255.255.255.0
inet6 addr: fe80::226:22ff:fec8:2d2a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5551 errors:0 dropped:0 overruns:0 frame:0
TX packets:232 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:542393 (542.3 KB) TX bytes:46828 (46.8 KB)
Interrupt:17
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:912 errors:0 dropped:0 overruns:0 frame:0
TX packets:912 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:64128 (64.1 KB) TX bytes:64128 (64.1 KB)
我该怎么做才能让它正常工作?
答案1
按下Ctrl+Alt+T
,然后在命令提示符中输入:
echo on | sudo tee /sys/class/net/eth0/device/power/control
之后,拔下以太网电缆,然后重新插入。它应该可以连接... :)