root@NISEC-1224 network-scripts]# more ifcfg-bond0
DEVICE=bond0
#M_CONTROLLED=no
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.1.90.1
NETMASK=255.255.255.0
#NETWORK=10.1.90.0
GATEWAY=10.1.90.254
USERCTL=no
#TYPE=BOND
#IPV6INIT=no
#USERCTL=no
#BONDING_OPTS="mode=1 miimon=100"
#ARPCHECK=NO
[root@NISEC-1224 network-scripts]# more ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=none
#UUID=6d4dbf57-c063-4dc8-84c5-da3f92ffad1a
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
NM_CONTROLLED=no
HWADDR=08:94:ef:15:a5:27
#DEFROUTE=yes
#PEERDNS=yes
#PEERROUTES=yes
#IPV4_FAILURE_FATAL=yes
#IPV6INIT=no
#NAME="System eth0"
[root@NISEC-1224 network-scripts]# more ifcfg-eth1
DEVICE=eth1
HWADDR=08:94:ef:15:a5:28
TYPE=Ethernet
ONBOOT=yes
NM_CONROLLED=no
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
USERCTL=no
#PEERDNS=yes
#IPV6INIT=no
#IPADDR=10.1.90.17
#NETMASK=255.255.255.0
#GATEWAY=10.1.90.254
[root@NISEC-1224 network-scripts]# cd /etc/modprobe.d/
[root@NISEC-1224 modprobe.d]# ls
anaconda.conf blacklist.conf blacklist-visor.conf dist-alsa.conf dist.conf dist.conf.bak dist-oss.conf openfwwf.conf
[root@NISEC-1224 modprobe.d]# pwd
/etc/modprobe.d
[root@NISEC-1224 modprobe.d]# tail dist.conf
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && /sbin/modprobe snd-emu10k1-synth
alias gre0 ip_gre
alias char-major-89-* i2c-dev
#alias bond0 bonding
alias bond0 bonding
#options bond0 miimon=100 mode=1
options bond0 mode=6 miimon=100 updelay=100 downdelay=500
#use_carrier=1 updelay=500 downdelay=500
mode=0/1/6 0为负载 1为主备 6位动态负载 效果1为最佳
ifconfig #查看网卡信息,在此处三块网卡的mac地址是一样的
vim /proc/net/bonding/bond0 #查看模式及网卡信息。实际mac地址是不一样的
阅读(796) | 评论(0) | 转发(0) |