bond网卡

bond网卡

1、关闭要绑定的两个网卡

ifconfig eth0 down

ifconfig eth1 down

2、创建虚拟bond网卡,主备模式,监控间隔100ms

ip link add bond2 type bond mode active-backup miimon 100

3、添加 两个 物理网卡,作为绑定的网卡

ip link set eth0 master bond2

ip link set eth1 master bond2

4、添加IP 启动虚拟网卡

ifconfig bond2 xx.xx.xx.xx/xx up

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注