1.编辑:/etc/sysconfig/network-scripts/ifcfg-bond0
# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
DEVICE=bond0
IPADDR=192.168.70.13
NETMASK=255.255.255.0
NETWORK=192.168.70.0
BROADCAST=192.168.70.255
GATEWAY=192.168.70.1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
2.编辑/etc/sysconfig/network-scripts/ifcfg-eth0、ifcfg-eth1
DEVICE=eth0(或者eth1)
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
FREEDNS=no
TYPE=Ethernet
3.修改/etc/modprobe.conf
[root@vasoss3 ~]# cat /etc/modprobe.conf
alias bond0 bonding
options bond0 miimon=100 mode=0
此文件的原内容:
[root@vasoss3 ~]# cat /etc/modprobe.conf.bak
alias eth0 bnx2
alias eth1 bnx2
alias scsi_hostadapter megaraid_sas
alias scsi_hostadapter1 sata_svw
阅读(1853) | 评论(0) | 转发(0) |