两块网卡启动后顺序混乱的问题,百思不得其解。
发表于 : 2006-09-20 17:00
三台硬件一样的机器,板载一个网卡,主板pci上插了一块网卡。
两台装了桌面版A,B,一台C是server版本。
A,B上在Gnome上的图形管理界面中总识别出来是eth2,和eth3。而且每次启动的时候,两块网卡的顺序会换一下。这两块网卡,配置的是不同网段的机器,这让实际工作中碰到了很大的问题。现在每次启动一下就要去换一下网线。
从dmesg |grep eth 看:
dmesg |grep eth
[4294671.526000] Driver 'sd' needs updating - please use bus_type methods
[4294684.228000] eth0: RealTek RTL8139 at 0xf8962100, 00:16:76:80:08:34, IRQ 177
[4294684.228000] eth0: Identified 8139 chip type 'RTL-8101'
[4294684.229000] eth1: RealTek RTL8139 at 0xf8964000, 00:e0:4c:26:da:d6, IRQ 217
[4294684.229000] eth1: Identified 8139 chip type 'RTL-8139C'
[4294684.642000] eth2: link up, 100Mbps, full-duplex, lpa 0x41E1
[4294685.125000] eth3: link up, 100Mbps, full-duplex, lpa 0x41E1
[4294700.674000] hda-intel: Invalid position buffer, using LPIB read method instead.
[4294707.620000] eth3: no IPv6 routers present
[4294708.422000] eth2: no IPv6 routers present
[4295614.052000] eth3: link down
[4295615.632000] eth2: link down
[4295617.281000] eth3: link up, 100Mbps, full-duplex, lpa 0x41E1
[4295619.571000] eth2: link up, 100Mbps, full-duplex, lpa 0x41E1
而服务器C (只插了一根网线)上 dmsg |grep eth 看到的情况是:
[42949378.250000] Driver 'sd' needs updating - please use bus_type methods
[42949385.220000] eth0: RealTek RTL8139 at 0xf88ac100, 00:16:76:80:07:a5, IRQ 11
[42949385.220000] eth0: Identified 8139 chip type 'RTL-8101'
[42949385.220000] eth1: RealTek RTL8139 at 0xf88ee000, 00:e0:4c:20:e0:95, IRQ 11
[42949385.220000] eth1: Identified 8139 chip type 'RTL-8139C'
[42949385.490000] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
[42949405.920000] eth0: no IPv6 routers present
尝试使用在 /etc/network/interfaces 的map命令来解决。但未果。
map eth0 到abc,然后在命令行下 ifup abc 结果说没有abc这个driver。
两台装了桌面版A,B,一台C是server版本。
A,B上在Gnome上的图形管理界面中总识别出来是eth2,和eth3。而且每次启动的时候,两块网卡的顺序会换一下。这两块网卡,配置的是不同网段的机器,这让实际工作中碰到了很大的问题。现在每次启动一下就要去换一下网线。
从dmesg |grep eth 看:
dmesg |grep eth
[4294671.526000] Driver 'sd' needs updating - please use bus_type methods
[4294684.228000] eth0: RealTek RTL8139 at 0xf8962100, 00:16:76:80:08:34, IRQ 177
[4294684.228000] eth0: Identified 8139 chip type 'RTL-8101'
[4294684.229000] eth1: RealTek RTL8139 at 0xf8964000, 00:e0:4c:26:da:d6, IRQ 217
[4294684.229000] eth1: Identified 8139 chip type 'RTL-8139C'
[4294684.642000] eth2: link up, 100Mbps, full-duplex, lpa 0x41E1
[4294685.125000] eth3: link up, 100Mbps, full-duplex, lpa 0x41E1
[4294700.674000] hda-intel: Invalid position buffer, using LPIB read method instead.
[4294707.620000] eth3: no IPv6 routers present
[4294708.422000] eth2: no IPv6 routers present
[4295614.052000] eth3: link down
[4295615.632000] eth2: link down
[4295617.281000] eth3: link up, 100Mbps, full-duplex, lpa 0x41E1
[4295619.571000] eth2: link up, 100Mbps, full-duplex, lpa 0x41E1
而服务器C (只插了一根网线)上 dmsg |grep eth 看到的情况是:
[42949378.250000] Driver 'sd' needs updating - please use bus_type methods
[42949385.220000] eth0: RealTek RTL8139 at 0xf88ac100, 00:16:76:80:07:a5, IRQ 11
[42949385.220000] eth0: Identified 8139 chip type 'RTL-8101'
[42949385.220000] eth1: RealTek RTL8139 at 0xf88ee000, 00:e0:4c:20:e0:95, IRQ 11
[42949385.220000] eth1: Identified 8139 chip type 'RTL-8139C'
[42949385.490000] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
[42949405.920000] eth0: no IPv6 routers present
尝试使用在 /etc/network/interfaces 的map命令来解决。但未果。
map eth0 到abc,然后在命令行下 ifup abc 结果说没有abc这个driver。