I create a NIC bond with two NICs with mode 6 in Cent OS 6.5. This is the configuration file:
# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
TYPE=ethernet
BOOTPROTO=static
IPADDR=192.168.1.8
NETMASK=255.255.255.0
MTU=1500
BONDING_OPTS="mode=6 miimon=100 xmit_hash_policy=1"
However, after reboot, I can't see bond0. Then I view the bond configuration file again, I find the last line disappears:
# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
TYPE=ethernet
BOOTPROTO=static
IPADDR=192.168.8.81
NETMASK=255.255.0.0
MTU=1500
I add this line and restart, then the bond NIC can work.
BONDING_OPTS="mode=6 miimon=100 xmit_hash_policy=1"
Does anyone know what's wrong with it? I don't change the file manually when the problem occurs.
Thanks a lot!