我关闭了无头、无 GUI 文件服务器来更换卡住的风扇,现在 eth0 接口无法通过 DHCP 获取 IP 地址;在启动期间,它只是坐在那里“等待网络配置”并最终超时。
/etc/网络/接口
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
$grep eth0 /var/log/syslog
Sep 9 18:14:27 server kernel: [ 1.921881] e1000 0000:02:00.0: eth0: (PCI:33MHz:32-bit) 00:07:e9:08:02:17
Sep 9 18:14:27 server kernel: [ 1.921894] e1000 0000:02:00.0: eth0: Intel(R) PRO/1000 Network Connection
Sep 9 18:14:27 server kernel: [ 9.657153] ADDRCONF(NETDEV_UP): eth0: link is not ready
Sep 9 18:14:27 server kernel: [ 10.140090] ADDRCONF(NETDEV_UP): eth0: link is not ready
Sep 9 18:14:29 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
Sep 9 18:14:33 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Sep 9 18:14:44 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Sep 9 18:14:58 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Sep 9 18:15:06 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
Sep 9 18:15:15 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
Sep 9 18:15:27 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
Sep 9 18:15:46 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Sep 9 18:15:53 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
Sep 9 18:16:05 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
Sep 9 18:16:21 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
Sep 9 18:16:41 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
Sep 9 18:16:56 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Sep 9 18:17:10 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
Sep 9 18:17:31 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
Sep 9 18:17:44 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
Sep 9 18:18:03 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Sep 9 18:18:10 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Sep 9 18:18:17 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
Sep 9 18:18:29 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Sep 9 18:18:43 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
Sep 9 18:19:03 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
Sep 9 18:19:16 server dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCP 服务器是我的 ADSL 调制解调器,它正在工作并为其他网络设备分配地址。
有想法吗?
更新 1:使用已知可以正常工作的早期内核启动;仍然无法正常工作。
更新 2:尝试了不同的以太网电缆;仍然无法正常工作。
答案1
找到了解决办法,虽然我不知道为什么它有效。我很想在评论中听听这可能是如何解决问题的。
我在 BIOS 中禁用了板载以太网适配器并启动了服务器(因此没有 eth0,只有环回设备)。我重新启动,在 BIOS 中重新启用了以太网适配器,这次它正常工作了。
答案2
在你的日志中我看到
ADDRCONF(NETDEV_UP): eth0: link is not ready
您能使用相同的 RJ45 电缆与其他设备一起测试您的 ADSL 调制解调器吗?
您能否登录到您的调制解调器并查看您的 MAC 地址(例如00:07:e9:08:02:17
)是否未被列入黑名单?
如果调制解调器上有多个端口,您是否更改过端口?
编辑
好吧,既然你已经做完了功课,我能想到的唯一“解决方案”就是 LAN 卡坏了 ;-(