Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux_wiki:use_network_teaming_or_bonding_to_configure_aggregated_network_links_between_two_red_hat_enterprise_linux_systems [2016/10/10 14:14] billdozor [Prerequisites] |
linux_wiki:use_network_teaming_or_bonding_to_configure_aggregated_network_links_between_two_red_hat_enterprise_linux_systems [2018/05/29 22:07] billdozor |
||
---|---|---|---|
Line 15: | Line 15: | ||
---- | ---- | ||
+ | ====== Help ====== | ||
+ | Finding help in this section. | ||
+ | * nmcli examples< | ||
+ | * Team ' | ||
+ | |||
+ | ---- | ||
====== Team Creation ====== | ====== Team Creation ====== | ||
Line 27: | Line 33: | ||
Each VM should end up with 3 total interfaces: | Each VM should end up with 3 total interfaces: | ||
* Main Management NIC: 192.168.1.x (server1=150 and server2=151) | * Main Management NIC: 192.168.1.x (server1=150 and server2=151) | ||
- | * Additional NIC for slave1: 10.0.0.x | + | * Additional NIC for team-slave: Can be bridged or private |
- | * Additional NIC for slave2: 10.0.0.x | + | * Additional NIC for team-slave: Can be bridged or private |
\\ | \\ | ||
Line 47: | Line 53: | ||
* Once the VM is booted up, set the interfaces to promiscuous mode< | * Once the VM is booted up, set the interfaces to promiscuous mode< | ||
ip link set enp0s9 promisc on</ | ip link set enp0s9 promisc on</ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Packages ===== | ||
+ | |||
+ | Install Teamd package (if not already installed) | ||
+ | <code bash> | ||
+ | yum install teamd | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Install Network Manager team plugin (if not already installed) | ||
+ | <code bash> | ||
+ | yum install NetworkManager-team | ||
+ | </ | ||
---- | ---- | ||
Line 52: | Line 73: | ||
===== Interface Teaming ===== | ===== Interface Teaming ===== | ||
- | Create a new team connection | + | **On each VM**; Create a new team connection |
<code bash> | <code bash> | ||
nmcli con add type team ifname team0 config ' | nmcli con add type team ifname team0 config ' | ||
</ | </ | ||
- | * This creates a connection with a name of "team-team0" using device " | + | * Connection |
+ | * If you really want to, you can define the con-name | ||
* Other team " | * Other team " | ||
* broadcast -> transmit packets via all ports | * broadcast -> transmit packets via all ports | ||
Line 63: | Line 85: | ||
* loadbalance -> balance between ports | * loadbalance -> balance between ports | ||
* lacp -> 802.3ad LACP protocol | * lacp -> 802.3ad LACP protocol | ||
- | * Example JSON configs are available at: / | + | |
+ | * / | ||
+ | * man teamd.conf -> " | ||
\\ | \\ | ||
Assign a static address to the virtual team0 interface | Assign a static address to the virtual team0 interface | ||
- | <code bash> | + | * server1 team<code bash> |
- | nmcli con mod team-team0 ipv4.method manual ipv4.addresses 10.1.2.3/24 | + | * server2 team< |
- | </ | + | |
\\ | \\ | ||
- | Add two **unconfigured** interfaces (enp0s8 and enp0s9) to the virtual team0 interface | + | **On each VM**; Add two **unconfigured** interfaces (enp0s8 and enp0s9) to the virtual team0 interface |
<code bash> | <code bash> | ||
- | nmcli con add type team-slave | + | nmcli con add type team-slave ifname enp0s8 master team0 |
- | nmcli con add type team-slave | + | nmcli con add type team-slave ifname enp0s9 master team0 |
</ | </ | ||
+ | * Connection name is auto-created by combining type and ifname. (team-slave-< | ||
+ | * If you really want to, you can define the con-name during creation | ||
* If the interfaces have any previous configuration, | * If the interfaces have any previous configuration, | ||
* Remove configurations: | * Remove configurations: | ||
\\ | \\ | ||
- | Configure ports and team as up | + | **On each VM**; Configure ports and team as up |
<code bash> | <code bash> | ||
- | nmcli con up team0-port1 | + | nmcli con up team-slave-enp0s8 |
- | nmcli con up team0-port2 | + | nmcli con up team-slave-enp0s9 |
nmcli con up team-team0 | nmcli con up team-team0 | ||
</ | </ | ||
\\ | \\ | ||
- | View team status | + | View team status |
<code bash> | <code bash> | ||
teamdctl team0 state | teamdctl team0 state | ||
</ | </ | ||
+ | |||
+ | \\ | ||
+ | **Team Config Command Examples**< | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Interface Bonding ===== | ||
+ | |||
+ | If you run into issues with teaming not working correctly, you can always set up a bonded connection in order to achieve the objective on the exam. | ||
+ | |||
+ | This is straight from 'man nmcli-examples':< | ||
+ | nmcli con add type ethernet ifname eth1 master mybond0 | ||
+ | nmcli con add type ethernet ifname eth2 master mybond0</ | ||
---- | ---- | ||