- 论坛徽章:
- 0
|
10可用积分
OS : fedora 7 || CentOS 5.
两块网卡 eth0 192.168.1.114 eth1 192.168.1.115 接在同一交换机上,gateway 192.168.1.1
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
|
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes |
route 显示如下:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default bogon 0.0.0.0 UG 0 0 0 eth0
|
发生现象如下:
拨网线:
如果拨掉 eth1 的网线,局域网内的其它机器,仍然可以ping 通 eth0 ,eth1;
如果拨掉的是eth0 的网线,则eth0,eth1,都ping 不通。
如果route显示顺序,eth1在最上面的话,则拨线 结果 刚好相反。
ifconfig XX down:
如果将eth0 down掉,两块网卡 都可以 ping 通;
route如下:Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1 |
如果将 eth1 down掉,两块网卡都可以ping 通;
route 如下:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default bogon 0.0.0.0 UG 0 0 0 eth0
|
不解,谁给指条明路 ? |
最佳答案
查看完整内容
关于这个问题的讨论在LINUX板块的网络问题版有很多讨论,自己搜一下吧。解决这个问题的方法就是BOND
|