Linux 多个网卡邦 bond一个IP

[root@PSX ~]# vi /etc/modprobe.conf

add:

alias bond0 bonding
options bond0 miimon=100 mode=1
alias net-pf-10 off


[root@gxracer3 ~]# cat /etc/rc.local


add:


/sbin/ifenslave bond0 eth0 eth1

root@gxracer3 network-scripts]# cat ifcfg-bond0
DEVICE=bond0
IPADDR=221.7.128.xxx
NETMASK=255.255.255.240
BROADCAST=221.7.128.31
GATEWAY=221.7.128.17
ONBOOT=yes
BOOTPROTO=none
USERCTL=no


[root@gxracer3 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
PEERDNS=no
TYPE=Ethernet


[root@gxracer3 network-scripts]# cat ifcfg-eth1
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
PEERDNS=no
TYPE=Ethernet

你可能感兴趣的:(linux)