Get the App
SLTechnology News&Howtos  ›  Servers  › 

Rhel7 Nic bond and team

Shulou Source: shulou.com Published: 2022-06-02 06:26:49 10月01日 Update

Configure the network card bond

1. Create a primary interface

Nmcli con add type bond con-name bond0 ifname bond0 mode active-backup

two。 Assign ip addresses to the primary interfac

Nmcli con mod bond0 ipv4.addresses' 11.16.25.100 Compact 24'

Nmcli con mod bond0 ipv4.method manual

Nmcli con mod bond0 connection.autoconnect yes

3. Create a slave interface

Nmcli con add type bond-slave ifname eno1 master bond0

Nmcli con add type bond-slave ifname eno2 master bond0

4. Turn on the master and slave interfaces

Nmcli con up bond-slave-eno2

Nmcli con up bond-slave-eno1

Nmcli con up bond0

Nic teaming configuration

# nmcli con add type team con-name team0 ifname team0 config'{"runner": {"name": "activebackup"}'

# nmcli con mod team0 ipv4.addresses' 192.168.0.100Universe 24'

# nmcli con mod team0 ipv4.method manual

# nmcli con add type team-slave con-name team0-port1 ifname eno1 master team0

# nmcli con add type team-slave con-name team0-port2 ifname eno2 master team0

# teamdctl team0 state (View status)

Tags: Interface Nic configuration address status assignment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei macOS OPPO Reno Apple Docker