Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


rhel7_teaming_instead_of_bonding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

rhel7_teaming_instead_of_bonding [2015/03/16 19:04]
admin created
rhel7_teaming_instead_of_bonding [2015/03/16 20:32] (current)
admin [RHEL7 teaming instead of bonding]
Line 2: Line 2:
  
 =====RHEL7 teaming instead of bonding===== =====RHEL7 teaming instead of bonding=====
-  * Configure ​bonding:<​code>#​ Create team device+  * Configure ​teaming:<​code>#​ Create team device
 nmcli c add type team con-name Team0 ifname team0 config '​{"​runner":​ {"​name":​ "​lacp"​}}'​ nmcli c add type team con-name Team0 ifname team0 config '​{"​runner":​ {"​name":​ "​lacp"​}}'​
  
Line 31: Line 31:
 </​code>​ </​code>​
  
 +  * Bonding example:<​code>#​Create bond0 device
 +nmcli con add type bond con-name bond0 ifname bond0 mode 802.3ad
 +
 +#Disable IP on bond0 interface
 +nmcli c mod bond0 ipv4.method disabled
 +nmcli c mod bond0 ipv6.method ignore
 +
 +#Add slaves
 +nmcli con add type bond-slave ifname eno1 master bond0
 +nmcli con add type bond-slave ifname enp2s0f0 master bond0
 +nmcli con add type bond-slave ifname enp2s0f1 master bond0
 +nmcli con add type bond-slave ifname enp4s0 master bond0
 +
 +#Bring up slaves and then the bond0 device.
 +nmcli c up bond-slave-eno1
 +nmcli c up bond-slave-enp2s0f0
 +nmcli c up bond-slave-enp2s0f1
 +nmcli c up bond-slave-enp4s0
 +nmcli c up bond0
 +
 +#Check bond0 interface stats
 +cat /​proc/​net/​bonding/​bond0 ​ | less
 +
 +#Create VLAN devices
 +vlans=( 10 50 100 110 )
 +for i in "​${vlans[@]}"​
 +do
 +  nmcli c add type vlan con-name vlan$i dev bond0 id $i
 +  nmcli c mod vlan$i ipv4.method disabled
 +  nmcli c mod vlan$i ipv6.method ignore
 +done
 +
 +#Create bridges
 +vlans=( 10 50 100 110 )
 +for i in "​${vlans[@]}"​
 +do
 +  nmcli con add type bridge con-name br$i ifname br$i
 +  nmcli c mod br$i ipv4.method disabled
 +  nmcli c mod br$i ipv6.method ignore
 +  nmcli c mod br$i bridge.stp no
 +done
 +
 +#Add bridge slaves
 +vlans=( 10 50 100 110 )
 +for i in "​${vlans[@]}"​
 +do
 +  nmcli c add type bridge-slave ifname bond0.$i master br$i
 +done
 +
 +#Show bridges
 +brctl show</​code>​
rhel7_teaming_instead_of_bonding.txt ยท Last modified: 2015/03/16 20:32 by admin