我无法通过以太网电缆连接到网络,但无线连接正常。这只发生在这台笔记本电脑上 - PC 网线连接正常。
是否配置
eth0 Link encap:Ethernet HWaddr my mac address
inet6 addr: my inet6 address Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1296 (1.2 KB) TX bytes:5733 (5.7 KB)
Interrupt:16
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:1584 errors:0 dropped:0 overruns:0 frame:0
TX packets:1584 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:49690 (49.6 KB) TX bytes:49690 (49.6 KB)
wlan0 Link encap:Ethernet HWaddr d0:df:9a:be:b7:0a
inet addr:46.237.123.248 Bcast:46.237.123.255 Mask:255.255.255.0
inet6 addr: 2a02:6800:0:125:d2df:9aff:febe:b70a/64 Scope:Global
inet6 addr: fe80::d2df:9aff:febe:b70a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:58300 errors:0 dropped:0 overruns:0 frame:0
TX packets:1857 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5518132 (5.5 MB) TX bytes:380517 (380.5 KB)
答案1
据我从您的 ifconfig 输出中看到的那样,您的 eth0 接口正在工作(传输和接收),但无法从您的 ISP 获取 IP。您的 ISP 是否允许多个连接(并提供多个 IP)?您可以尝试断开 Wi-Fi 接口,看看电缆是否连接。
更新:您可以尝试输入/etc/network/interfaces
:
auto lo eth0 wlan0
iface lo inet loopback
iface eth0 inet dhcp
iface wlan0 inet dhcp
并重新启动网络sudo /etc/init.d/networking restart
(或重启)