rhel7_teaming_instead_of_bonding
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
rhel7_teaming_instead_of_bonding [2015/03/16 18:04] – created admin | rhel7_teaming_instead_of_bonding [2015/03/16 19:32] – [RHEL7 teaming instead of bonding] admin | ||
---|---|---|---|
Line 2: | Line 2: | ||
=====RHEL7 teaming instead of bonding===== | =====RHEL7 teaming instead of bonding===== | ||
- | * Configure | + | * Configure |
nmcli c add type team con-name Team0 ifname team0 config ' | nmcli c add type team con-name Team0 ifname team0 config ' | ||
Line 31: | Line 31: | ||
</ | </ | ||
+ | * Bonding example:< | ||
+ | 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 / | ||
+ | |||
+ | #Create VLAN devices | ||
+ | vlans=( 10 50 100 110 ) | ||
+ | for i in " | ||
+ | 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 " | ||
+ | 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 " | ||
+ | do | ||
+ | nmcli c add type bridge-slave ifname bond0.$i master br$i | ||
+ | done | ||
+ | |||
+ | #Show bridges | ||
+ | brctl show</ |
rhel7_teaming_instead_of_bonding.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1