LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1330|回复: 1

RHEL5下bonding网卡后,如何设置两块网卡的MAC地址不同?

[复制链接]
发表于 2008-5-5 11:22:57 | 显示全部楼层 |阅读模式
某机器eth0,eth1做bond0(mode=1 主备方式),分别接到2台交换机,但是查看2个网卡的MAC地址却相同
---------------------------------------------------------------------------------
[root@localhost ~]# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 qlen 1000
    link/ether [color="Red"]00:1e:0b:46:f4:e0 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 qlen 1000
    link/ether [color="red"]00:1e:0b:46:f4:e0 brd ff:ff:ff:ff:ff:ff
4: sit0: <NOARP> mtu 1480 qdisc noop
    link/sit 0.0.0.0 brd 0.0.0.0
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue
    link/ether [color="red"]00:1e:0b:46:f4:e0 brd ff:ff:ff:ff:ff:ff
---------------------------------------------------------------------------------
通过查看/proc/net/bonding/bond0:
---------------------------------------------------------------------------------
[root@localhost ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.1.2 (January 20, 2007)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 1
Permanent HW addr: [color="red"]00:1e:0b:46:f4:e0

Slave Interface: eth1
MII Status: up
Link Failure Count: 1
Permanent HW addr:[color="red"] 00:1e:0b:46:f4:d0
---------------------------------------------------------------------------------
这个文件里面是实际地址。如果MAC地址相同,会引起交换机报错:
---------------------------------------------------------------------------------
May  5 10:24:38 46.0.0.33 102: May  5 10:30:29: %SW_MATM-4-MACFLAP_NOTIF: Host 001e.0b46.f
4e0 in vlan 102 is flapping between port Gi0/17 and port Gi0/12
May  5 10:24:40 46.0.0.33 103: May  5 10:30:32: %SW_MATM-4-MACFLAP_NOTIF: Host 001e.0b46.f
4e0 in vlan 102 is flapping between port Gi0/12 and port Gi0/17
---------------------------------------------------------------------------------
有什么办法配置这个MAC地址么?
十分感谢!!!
 楼主| 发表于 2008-5-8 23:10:28 | 显示全部楼层
aaaaaaaaaaaaaaaaaaaaaa
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表