Ethernet
無法連接到電纜調製解調器上的乙太網
我有一個Arris電纜調製解調器,我的筆記型電腦有一個JMC250 PCI Express 千兆乙太網控制器。我無法使用 NetworkManager、Wicd 或 Debian Stable 上的命令行連接到其有線網路。我也嘗試過執行 Porteus(基於 Slackware)的 LiveCD,但結果是一樣的。
我也嘗試過多次解除安裝
jme
模組並重新載入它,沒有任何選項,也有選項force_pseudohp=1
、no_pseudohp=1
和no_extplug=1
,但無濟於事。我也試過關閉 rfkill 開關,因為我可以使用 NetworkManager 連接到 Wifi 而沒有任何問題。
以下是嘗試連接 NetworkManager 時的日誌:
Feb 5 15:38:50 localhost NetworkManager[2225]: <info> enable requested (sleeping: no enabled: no) Feb 5 15:38:50 localhost NetworkManager[2225]: <info> waking up and re-enabling... Feb 5 15:38:50 localhost NetworkManager[2225]: <info> (wlan0): now managed Feb 5 15:38:50 localhost NetworkManager[2225]: <info> (wlan0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2] Feb 5 15:38:50 localhost NetworkManager[2225]: <info> (wlan0): bringing up device. Feb 5 15:38:50 localhost NetworkManager[2225]: <info> (wlan0): deactivating device (reason 'managed') [2] Feb 5 15:38:50 localhost NetworkManager[2225]: <info> (eth0): now managed Feb 5 15:38:50 localhost NetworkManager[2225]: <info> (eth0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2] Feb 5 15:38:50 localhost NetworkManager[2225]: <info> (eth0): preparing device. Feb 5 15:38:50 localhost NetworkManager[2225]: <info> (eth0): deactivating device (reason 'managed') [2]
來自 Wicd 的日誌(使用標準命令行工具):
2014/02/05 15:35:50 :: Executing /etc/network/if-down.d/upstart with params 2014/02/05 15:35:50 :: /etc/network/if-down.d/upstart returned 0 2014/02/05 15:35:50 :: Executing /etc/network/if-down.d/wpasupplicant with params 2014/02/05 15:35:50 :: /etc/network/if-down.d/wpasupplicant returned 0 2014/02/05 15:35:50 :: attempting to set hostname with dhclient 2014/02/05 15:35:50 :: using dhcpcd or another supported client may work better 2014/02/05 15:35:50 :: /sbin/dhclient -v -r wlan0 2014/02/05 15:35:50 :: ifconfig wlan0 0.0.0.0 2014/02/05 15:35:50 :: /sbin/ip route flush dev wlan0 2014/02/05 15:35:50 :: ifconfig wlan0 down 2014/02/05 15:35:50 :: ifconfig wlan0 up 2014/02/05 15:35:50 :: Executing /etc/network/if-post-down.d/wireless-tools with params 2014/02/05 15:35:50 :: /etc/network/if-post-down.d/wireless-tools returned 0 2014/02/05 15:35:50 :: Executing /etc/network/if-post-down.d/wpasupplicant with params 2014/02/05 15:35:50 :: /etc/network/if-post-down.d/wpasupplicant returned 0 2014/02/05 15:35:50 :: wpa_cli -i wlan0 terminate 2014/02/05 15:35:50 :: Executing /etc/network/if-down.d/upstart with params 2014/02/05 15:35:50 :: /etc/network/if-down.d/upstart returned 0 2014/02/05 15:35:50 :: Executing /etc/network/if-down.d/wpasupplicant with params 2014/02/05 15:35:50 :: /etc/network/if-down.d/wpasupplicant returned 0 2014/02/05 15:35:50 :: attempting to set hostname with dhclient 2014/02/05 15:35:50 :: using dhcpcd or another supported client may work better 2014/02/05 15:35:50 :: /sbin/dhclient -v -r eth0 2014/02/05 15:35:50 :: ifconfig eth0 0.0.0.0 2014/02/05 15:35:50 :: /sbin/ip route flush dev eth0 2014/02/05 15:35:50 :: ifconfig eth0 down 2014/02/05 15:35:50 :: ifconfig eth0 up 2014/02/05 15:35:50 :: Executing /etc/network/if-post-down.d/wireless-tools with params 2014/02/05 15:35:50 :: /etc/network/if-post-down.d/wireless-tools returned 0 2014/02/05 15:35:50 :: Executing /etc/network/if-post-down.d/wpasupplicant with params 2014/02/05 15:35:50 :: /etc/network/if-post-down.d/wpasupplicant returned 0 2014/02/05 15:35:50 :: wpa_cli -i eth0 terminate 2014/02/05 15:35:50 :: found lastused in configuration True 2014/02/05 15:35:50 :: Executing /etc/network/if-pre-up.d/ethtool with params 2014/02/05 15:35:50 :: /etc/network/if-pre-up.d/ethtool returned 0 2014/02/05 15:35:50 :: Executing /etc/network/if-pre-up.d/wireless-tools with params 2014/02/05 15:35:50 :: /etc/network/if-pre-up.d/wireless-tools returned 0 2014/02/05 15:35:50 :: Executing /etc/network/if-pre-up.d/wpasupplicant with params 2014/02/05 15:35:50 :: /etc/network/if-pre-up.d/wpasupplicant returned 0 2014/02/05 15:35:50 :: Putting interface down 2014/02/05 15:35:50 :: ifconfig eth0 down 2014/02/05 15:35:50 :: Releasing DHCP leases... 2014/02/05 15:35:50 :: attempting to set hostname with dhclient 2014/02/05 15:35:50 :: using dhcpcd or another supported client may work better 2014/02/05 15:35:50 :: /sbin/dhclient -v -r eth0 2014/02/05 15:35:50 :: Setting false IP... 2014/02/05 15:35:50 :: ifconfig eth0 0.0.0.0 2014/02/05 15:35:50 :: Stopping wpa_supplicant 2014/02/05 15:35:50 :: wpa_cli -i eth0 terminate 2014/02/05 15:35:50 :: Flushing the routing table... 2014/02/05 15:35:50 :: /sbin/ip route flush dev eth0 2014/02/05 15:35:50 :: Putting interface up... 2014/02/05 15:35:50 :: ifconfig eth0 up 2014/02/05 15:35:52 :: Running DHCP with hostname localhost 2014/02/05 15:35:52 :: attempting to set hostname with dhclient 2014/02/05 15:35:52 :: using dhcpcd or another supported client may work better 2014/02/05 15:35:52 :: /sbin/dhclient -v eth0 2014/02/05 15:35:52 :: Internet Systems Consortium DHCP Client 4.2.2 2014/02/05 15:35:52 :: Copyright 2004-2011 Internet Systems Consortium. 2014/02/05 15:35:52 :: All rights reserved. 2014/02/05 15:35:52 :: For info, please visit https://www.isc.org/software/dhcp/ 2014/02/05 15:35:52 :: 2014/02/05 15:35:52 :: Listening on LPF/eth0/80:ee:73:1f:6d:47 2014/02/05 15:35:52 :: Sending on LPF/eth0/80:ee:73:1f:6d:47 2014/02/05 15:35:52 :: Sending on Socket/fallback 2014/02/05 15:35:52 :: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 2014/02/05 15:36:00 :: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 2014/02/05 15:36:14 :: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15 2014/02/05 15:36:29 :: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17 2014/02/05 15:36:46 :: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 2014/02/05 15:36:53 :: No DHCPOFFERS received. 2014/02/05 15:36:53 :: No working leases in persistent database - sleeping. 2014/02/05 15:36:53 :: DHCP connection failed 2014/02/05 15:36:53 :: exiting connection thread 2014/02/05 15:36:53 :: Sending connection attempt result dhcp_failed 2014/02/05 15:36:53 :: ifconfig eth0 2014/02/05 15:36:53 :: ifconfig wlan0 2014/02/05 15:36:53 :: Forced disconnect on 2014/02/05 15:36:53 :: iwconfig wlan0 2014/02/05 15:36:53 :: Executing /etc/network/if-down.d/upstart with params 2014/02/05 15:36:53 :: /etc/network/if-down.d/upstart returned 0 2014/02/05 15:36:53 :: Executing /etc/network/if-down.d/wpasupplicant with params 2014/02/05 15:36:53 :: /etc/network/if-down.d/wpasupplicant returned 0 2014/02/05 15:36:53 :: attempting to set hostname with dhclient 2014/02/05 15:36:53 :: using dhcpcd or another supported client may work better 2014/02/05 15:36:53 :: /sbin/dhclient -v -r wlan0 2014/02/05 15:36:53 :: ifconfig wlan0 0.0.0.0 2014/02/05 15:36:53 :: /sbin/ip route flush dev wlan0 2014/02/05 15:36:53 :: ifconfig wlan0 down 2014/02/05 15:36:53 :: ifconfig wlan0 up 2014/02/05 15:36:53 :: Executing /etc/network/if-post-down.d/wireless-tools with params 2014/02/05 15:36:53 :: /etc/network/if-post-down.d/wireless-tools returned 0 2014/02/05 15:36:53 :: Executing /etc/network/if-post-down.d/wpasupplicant with params 2014/02/05 15:36:53 :: /etc/network/if-post-down.d/wpasupplicant returned 0 2014/02/05 15:36:53 :: wpa_cli -i wlan0 terminate 2014/02/05 15:36:53 :: Executing /etc/network/if-down.d/upstart with params 2014/02/05 15:36:53 :: /etc/network/if-down.d/upstart returned 0 2014/02/05 15:36:53 :: Executing /etc/network/if-down.d/wpasupplicant with params 2014/02/05 15:36:53 :: /etc/network/if-down.d/wpasupplicant returned 0 2014/02/05 15:36:53 :: attempting to set hostname with dhclient 2014/02/05 15:36:53 :: using dhcpcd or another supported client may work better 2014/02/05 15:36:53 :: /sbin/dhclient -v -r eth0 2014/02/05 15:36:53 :: ifconfig eth0 0.0.0.0 2014/02/05 15:36:53 :: /sbin/ip route flush dev eth0 2014/02/05 15:36:53 :: ifconfig eth0 down 2014/02/05 15:36:53 :: ifconfig eth0 up 2014/02/05 15:36:53 :: Executing /etc/network/if-post-down.d/wireless-tools with params 2014/02/05 15:36:53 :: /etc/network/if-post-down.d/wireless-tools returned 0 2014/02/05 15:36:53 :: Executing /etc/network/if-post-down.d/wpasupplicant with params 2014/02/05 15:36:53 :: /etc/network/if-post-down.d/wpasupplicant returned 0 2014/02/05 15:36:53 :: wpa_cli -i eth0 terminate
其他一些資訊:
$ sudo ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Advertised pause frame use: Symmetric Receive-only Advertised auto-negotiation: Yes Speed: 10Mb/s Duplex: Half Port: MII PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: pg Wake-on: g Current message level: 0x000020c6 (8390) probe link rx_err tx_err hw Link detected: no $ sudo nm-tool NetworkManager Tool State: disconnected - Device: eth0 ----------------------------------------------------------------- Type: Wired Driver: jme State: unavailable Default: no HW Address: 80:EE:73:1F:6D:47 Capabilities: Carrier Detect: yes Wired Properties Carrier: off
感謝上帝,我堅持這樣做 :) 取自Ubuntu 論壇:
sudo ethtool -s eth0 autoneg off speed 100 duplex full
執行此命令後的結果:
Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Speed: 100Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: internal Auto-negotiation: off Supports Wake-on: pg Wake-on: g Current message level: 0x000020c6 (8390) probe link rx_err tx_err hw Link detected: yes
輸出說明
ethtool
了一切:Link detected: no
網路電纜、介面本身或您要連接的設備已損壞/損壞。您甚至嘗試過多個作業系統,而且它們的行為都相同,這一事實支持了這一點。
基本上這不是軟體問題。