How to setting bonding

先記得有几張要放

我這是兩張.

OS. centos6-64

        1.  /etc/modprobe.d/modprobe.conf  它裏面沒有的話就自己vi

alias bond0 bonding
options bond0 miimon=100 mode=6 bond

#if 3 NIC (三個網卡綁成一個 Channel...像下面這樣:

options bond0 miimon=100 max_bonds=3)

2. vi ifcfg-eth0

DEVICE=eth0
HWADDR=40:61:86:02:11:9a
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes

3.vi ifcfg- eth1

DEVICE=eth1
HWADDR=00:0A:79:9F:58:78
ONBOOT=yes
BOOTPROTO=dhcp
MASTER=bond0
SLAVE=yes

 

4.vi ifcfg-bond0

DEVICE=bond0
 IPADDR=192.168.7.1
 NETMASK=255.255.255.0
 BROADCAST=192.168.7.254
 GATEWAY=192.168.7.100
 ONBOOT=yes
 BOOTPROTO=none

 

5 /etc/rc.d/init.d/network restart

 

ifconfig  see it!

← 回列表