Linux学习笔记 --链路聚合

链路聚合


添加网卡

 Linux学习笔记 --链路聚合


Active&Backup

 

[[email protected] ~]# nmcli connection add con-name bond0 ifname bond0 type bond mode active-backup ip4 172.25.254.229/24 ##创建bond0

[[email protected] ~]# nmcli connection add con-name eth0 ifname eth0 type bond-slave master bond0 ##添加eth0网卡

[[email protected] ~]# nmcli connection add con-name eth1 ifname eth1 type bond-slave master bond0 ##添加eth1网卡

 Linux学习笔记 --链路聚合


测试:


监控命令:

[[email protected] ~]# watch -n 1 cat /proc/net/bonding/bond0

[[email protected] ~]# ping 172.25.254.66

Linux学习笔记 --链路聚合


[[email protected] ~]# ifconfig eth0 down

Linux学习笔记 --链路聚合


[[email protected] ~]# ifconfig eth0 up

Linux学习笔记 --链路聚合


[[email protected] ~]# ifconfig eth1 down

Linux学习笔记 --链路聚合