Redhat Linux 网卡做Bond

2017/04/21 08-linux

在Redhat/Fedora等Linux中,网络配置文件一般是/etc/sysconfig/network-scripts/ifcfg-eth0;

在SLES 11中是/etc/sysconfig/network/ifcfg-eth0。

cat ifcfg-bond0:

DEVICE=bond0  
BOOTPROTO=static  
ONBOOT=yes  
BONDING_OPTS="mode=4 miimon=100"
IPADDR=10.0.1.27  
NETMASK=255.255.255.0  
GATEWAY=10.0.1.1  

cat ifcfg-bond1:

DEVICE=bond1  
BOOTPROTO=static  
ONBOOT=yes  
BONDING_OPTS="mode=4 miimon=100"
IPADDR=10.0.1.28  
NETMASK=255.255.255.0  
GATEWAY=10.0.1.1  

cat ifcfg-eth0:

DEVICE=eth0  
BOOTPROTO=no  
ONBOOT=yes  
MASTER=bond0
SLAVE=yes

cat ifcfg-eth1:

DEVICE=eth1  
BOOTPROTO=no  
ONBOOT=yes  
MASTER=bond0
SLAVE=yes

cat ifcfg-eth2:

DEVICE=eth2  
BOOTPROTO=no  
ONBOOT=yes  
MASTER=bond1
SLAVE=yes

cat ifcfg-eth3:

DEVICE=eth3  
BOOTPROTO=no  
ONBOOT=yes  
MASTER=bond1
SLAVE=yes

Show Disqus Comments

Search

    Post Directory