- 论坛徽章:
- 0
|
做网卡的bond,配置文件如下:
root@IBM001 network-scripts]# cat ifcfg-bond0
DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.163.2
GATEWAY=192.168.163.254
TYPE=Ethernet
[root@IBM001 network-scripts]# cat ifcfg-eth0
# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:21:5E:11:6E:4A
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
MASTER=bond0
SLAVE=yes
[root@IBM001 network-scripts]# cat ifcfg-eth2
# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=eth2
BOOTPROTO=none
HWADDR=00:10:18:8F:FD:60
ONBOOT=no
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
[root@IBM001 network-scripts]# cat /etc/modprobe.conf
alias eth0 bnx2
alias eth1 bnx2
alias eth2 bnx2
alias eth3 bnx2
alias scsi_hostadapter megaraid_sas
alias scsi_hostadapter1 ata_piix
alias scsi_hostadapter2 lpfc
alias usb0 usbnet
alias peth0 bnx2
alias peth1 bnx2
alias bond0 bonding
options bond0 miimon=100 mode=1 primary=eth0
mode=1 主备模式情况下,拔下网线,没有发生切换,把mode改成0,负载模式,把网线可以成功,为什么会出现这种情况呢?
请高手指点。。。。
[root@IBM001 network-scripts]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 200
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0
Currently Active Slave: eth0
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: 0
Permanent HW addr: 00:21:5e:11:6e:4a
Slave Interface: eth2
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:10:18:8f:fd:60 |
|