rhel7网卡bond和team
配置网卡bond
1. 创建主接口
nmcli con add type bond con-name bond0 ifname bond0 mode active-backup
2. 给主接口分配ip地址
nmcli con mod bond0 ipv4.addresses '11.16.25.100/24'
nmcli con mod bond0 ipv4.method manual
nmcli con mod bond0 connection.autoconnect yes
3. 创建从接口
nmcli con add type bond-slave ifname eno1 master bond0
nmcli con add type bond-slave ifname eno2 master bond0
4. 开启主接口和从接口
nmcli con up bond-slave-eno2
nmcli con up bond-slave-eno1
nmcli con up bond0
网卡teaming配置
#nmcli con add type team con-name team0 ifname team0 config '{"runner": {"name": "activebackup"}}'
#nmcli con mod team0 ipv4.addresses '192.168.0.100/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(查看状态)