Creating a teamed interface
Interface teaming, interface bonding, and link aggregation are all the same. It was already implemented in the kernel by way of the bonding
driver. The team driver provides a different mechanism (from bonding) to team multiple network interfaces into a single logical one.
Getting ready
To set up a teamed interface, we'll need more than one network interface.
How to do it…
For the sake of ease, our physical network interfaces are called eth1
and eth2
. The IPv4 address for the team interface is 10.0.0.2
, with a subnet mask of 255.0.0.0
and a default gateway of 10.0.0.1
.
Creating the teamed interface using nmcli
Using this approach, we'll need to create the team connection and two team slaves and activate the connection, as follows:
- Use the following command line to create the team connection:
~]# nmcli connection add type team ip4 10.0.0.2/8 gw4 10.0.0.1 Connection 'team' (cfa46865-deb0-49f2-9156-4ca5461971b4) successfully added. ~]#
- Add
eth1...