Setup bond1 using eth1 and eth2 in master slave ( 10g eth)
cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: xx
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth1 (primary_reselect always)
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: mac add
Slave queue ID: 0
Slave Interface: eth2
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: mac add
Slave queue ID: 0
[root@test-host network-scripts]# more ifcfg-bond1
DEVICE="bond1"
BOOTPROTO="none"
BROADCAST="xx.xx.xx.xx"
IPADDR="xx.xx.xx.xx"
NETMASK="xx.xx.xx.xx"
NETWORK=xx.xx.xx.xx
GATEWAY=xx.xx.xx.xx
ONBOOT="yes"
IPV6INIT=no
USERCTL=no
BONDING_OPTS="mode=1 miimon=100 primary=eth1"
[root@test-host network-scripts]# more ifcfg-eth1
DEVICE="eth1"
HWADDR=mac add
MASTER=bond1
BOOTPROTO="none"
SLAVE=yes
ONBOOT=yes
USERCTL=no
[root@test-host network-scripts]# more ifcfg-eth2
DEVICE="eth2"
HWADDR="mac add"
MASTER=bond1
BOOTPROTO="none"
SLAVE=yes
ONBOOT=yes
USERCTL=no
When had issues with the wrong bond
ifconfig bond down
ifconfig eth? down
echo -bond1 /sys/class/net/bonding_masters
echo "-eth2" > /sys/class/net/bond1/bonding/slaves
echo "-eth1" > /sys/class/net/bond1/bonding/slaves
cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: xx
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth1 (primary_reselect always)
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: mac add
Slave queue ID: 0
Slave Interface: eth2
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: mac add
Slave queue ID: 0
[root@test-host network-scripts]# more ifcfg-bond1
DEVICE="bond1"
BOOTPROTO="none"
BROADCAST="xx.xx.xx.xx"
IPADDR="xx.xx.xx.xx"
NETMASK="xx.xx.xx.xx"
NETWORK=xx.xx.xx.xx
GATEWAY=xx.xx.xx.xx
ONBOOT="yes"
IPV6INIT=no
USERCTL=no
BONDING_OPTS="mode=1 miimon=100 primary=eth1"
[root@test-host network-scripts]# more ifcfg-eth1
DEVICE="eth1"
HWADDR=mac add
MASTER=bond1
BOOTPROTO="none"
SLAVE=yes
ONBOOT=yes
USERCTL=no
[root@test-host network-scripts]# more ifcfg-eth2
DEVICE="eth2"
HWADDR="mac add"
MASTER=bond1
BOOTPROTO="none"
SLAVE=yes
ONBOOT=yes
USERCTL=no
When had issues with the wrong bond
ifconfig bond down
ifconfig eth? down
echo -bond1 /sys/class/net/bonding_masters
echo "-eth2" > /sys/class/net/bond1/bonding/slaves
echo "-eth1" > /sys/class/net/bond1/bonding/slaves
No comments:
Post a Comment