- 论坛徽章:
- 0
|
一台redhat linux as4的机器有4块网卡(eth0 - eth3),想两两做成一个绑定,我在/etc/modprob.conf中添加
alias bond0 bonding
options bond0 miimon=100 mode=1 primary=eth2
alias bond1 bonding
options bond1 miimon=100 mode=1 primary=eth3
然后在/etc/sysconfig/network-scripts中添加ifcfg-bond0:
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=x.x.x.x
NETMASK=255.255.255.0
IPADDR=x.x.x.x
USERCTL=no
ifcfg-bond1:
DEVICE=bond1
BOOTPROTO=none
ONBOOT=yes
NETWORK=x.x.x.x
NETMASK=255.255.255.0
IPADDR=x.x.x.x
USERCTL=no
然后分别修改ifcfg-eth0到ifcfg-eth3的配置文件
# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
# cat ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond1
SLAVE=yes
USERCTL=no
# cat ifcfg-eth2
DEVICE=eth2
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
# cat ifcfg-eth3
DEVICE=eth3
BOOTPROTO=none
ONBOOT=yes
MASTER=bond1
SLAVE=yes
USERCTL=no
最后service network restart时bond0启动没问题
启动bond1时报“bonding device bond1 does not seem to be present,delaying initialization.”
手动ifenslave bond1 eth1 eth3启动也不行,报“Master 'bond1' : Error : handshake with driver failed.Aborting”
请高手帮忙 |
|