我今天通过 WOL 启动了我的 Linux 服务器。启动时,我无法通过 SSH 连接到它。我检查了服务器,发现它已启动到操作系统,但无法通过网络访问。我检查了路由器,发现它是一个活动客户端(这可能是几分钟前启动后遗症),但没有连接。因此,我在本地重新启动了它,下次它启动时正常,网络连接活跃。我执行了 on grep
fordmesg
并将'eth'
其与成功启动进行了比较。见下文:
联网启动:
[ 1.331587] skge 0000:01:04.0: eth0: addr 00:0e:a6:15:17:76
[ 1.353667] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.64.
[ 1.353930] forcedeth 0000:00:04.0: PCI INT A -> Link[APCH] -> GSI 22 (level, high) -> IRQ 22
[ 1.353937] forcedeth 0000:00:04.0: setting latency timer to 64
[ 1.872912] forcedeth 0000:00:04.0: ifname eth1, PHY OUI 0x732 @ 1, addr 00:0e:a6:15:0e:a1
[ 1.872917] forcedeth 0000:00:04.0: timirq lnktim desc-v1
[ 16.614650] eth1: no link during initialization.
[ 16.615258] ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 16.649234] skge 0000:01:04.0: eth0: enabling interface
[ 16.668500] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 18.416816] skge 0000:01:04.0: eth0: Link is up at 100 Mbps, full duplex, flow control both
[ 18.417081] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 28.592014] eth0: no IPv6 routers present
无网络启动:
[ 1.293152] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.64.
[ 1.293484] forcedeth 0000:00:04.0: PCI INT A -> Link[APCH] -> GSI 22 (level, high) -> IRQ 22
[ 1.293491] forcedeth 0000:00:04.0: setting latency timer to 64
[ 1.353544] skge 0000:01:04.0: bad (zero?) ethernet address in rom
[ 1.354130] skge 0000:01:04.0: eth0: addr 00:00:00:00:00:00
[ 1.812906] forcedeth 0000:00:04.0: ifname eth1, PHY OUI 0x732 @ 1, addr 00:0e:a6:15:0e:a1
[ 1.812911] forcedeth 0000:00:04.0: timirq lnktim desc-v1
[ 17.384526] eth1: no link during initialization.
[ 17.396719] ADDRCONF(NETDEV_UP): eth1: link is not ready
明显的罪魁祸首似乎是这条线[ 1.353544] skge 0000:01:04.0: bad (zero?) ethernet address in rom
,但我不知道是什么原因导致这种情况发生。
以下是该行周围的一些输出:
[ 1.353449] ACPI: PCI Interrupt Link [APC2] enabled at IRQ 17
[ 1.353456] alloc irq_desc for 17 on node -1
[ 1.353459] alloc kstat_irqs on node -1
[ 1.353470] skge 0000:01:04.0: PCI INT A -> Link[APC2] -> GSI 17 (level, high) -> IRQ 17
[ 1.353533] skge: 1.13 addr 0xe8008000 irq 17 chip Yukon-Lite rev 7
[ 1.353544] skge 0000:01:04.0: bad (zero?) ethernet address in rom
[ 1.354130] skge 0000:01:04.0: eth0: addr 00:00:00:00:00:00
有人有什么建议吗?
如果相关的话,Linux 服务器在路由器上定义了一个静态 IP。当服务器启动时,它应该从 DHCP 服务器(在本例中是我的路由器)请求一个 IP 地址,并且它应该始终获得该 IP 地址192.168.2.103
。
答案1
这具有驱动程序相关问题的所有特征。也许这块主板对于您选择的发行版的内核版本来说太新了。它还看起来像是某种时间问题,与某些模块加载到内核时有关,非工作输出中的 skge 行比工作输出中的行早半秒,也许这就是问题所在。