bond建立
只能2块网卡
nmcli connection show ###查看存在网卡
nmcli connection delete eth0 ###删除网卡
nmcli connection add con-name bond0 ifname bond0 type bond mode active-backup ip4 172.25.254.225/24
nmcli connection add con-name eth0 ifname eth0 type bond-slave master bond0
nmcli connection add con-name eth1 ifname eth1 type bond-slave master bond0
ifconfig eth0 down 或 ifdown eth0
cat /proc/net/bonding/bond0
team建立
恢复实验环境
nmcli connection add type team con-name team0 ifname team0 config '{"runner":{"name":"activebackup"}}' ip4 172.25.254.225/24
nmcli connection add con-name eth0 ifname eth0 type team-slave master team0
nmcli connection add con-name eth1 ifname eth1 type team-slave master team0
teamdctl team0 state
网卡桥接配置
真机中配置IP:172.25.254.56
vim /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
ONBOOT=yes
BOOTPROTO=none
TYPE=Bridge
IPADDR=172.25.254.56
NETMASK=255.255.255.0
vim /etc/sysconfig/network-scripts/ifcfg-enp0s25
DEVICE=enp0s25
BOOTPROTO=none
ONBOOT=yes
BRIDGE=br0
systemctl restart network