【一、mode1出现丢包问题】
环境:鲲鹏920服务器,操作系统0518,双网口
现象:将2个网卡通过NetworkManager以主备模式绑定且配置vlan后,出现丢包现象,配置步骤如下:
nmcli c add type bond con-name bond0 ifname bond0 bond.options "mode=active-backup,miimon=100" ipv4.method disabled
nmcli c add type ethernet ifname ens1f0 master bond0
nmcli c add type ethernet ifname ens1f1 master bond0
nmcli c up bond-slave-ens1f0
nmcli c up bond-slave-ens1f1
nmcli c up bond0
nmcli c add type vlan ifname bond0.355 con-name bond0.355 id 355 dev bond0 ip4 192.168.1.139/24 gw4 192.168.1.1
原因:bond0配置文件中有一条“IPV6INIT=yes” ,导致NetworkManager将网卡重复性up/down。
解决:同时添加"ipv6.method.ignore"参数, 新的配置如下:
nmcli c add type bond con-name bond0 ifname bond0 bond.opt