HP C7000刀片服务器实战6:redhat6.8网卡绑定

1. 配置网卡文件  cd /etc/sysconfig/network-scripts

[root@localhost]# vim ifcfg-Bond0 
DEVICE=Bond0
TYPE=bonding
ONBOOT=yes
IPADDR=10.212.126.219
NETMASK=255.255.255.0
Gateway=10.212.126.1 
MTU=1500
BONDING_OPTS='mode=0 miimon=100'   //mode 0 是主备  
USERCTL=no
NM_CONTROLLED=yes
BOOTPROTO=none

[root@localhost]# cat ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes

MASTER=Bond0
SLAVE=yes
USERCTL=no
NM_CONTROLLED=yes
BOOTPROTO=none

[root@localhost]# cat ifcfg-eth1
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
MASTER=Bond0
SLAVE=yes
USERCTL=no
NM_CONTROLLED=yes

BOOTPROTO=none

转载于:https://blog.51cto.com/574549743/2059783

你可能感兴趣的:(HP C7000刀片服务器实战6:redhat6.8网卡绑定)