linux center os 两个网卡做一个bond

[root@lxp ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0
# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=bond0
BOOTPROTO=none
IPADDR=192.168.180.70
NETMASK=255.255.255.224
GATEWAY=192.168.180.65
ONBOOT=yes
USERCTL=no
#BONDING_OPTS="mode=1 arp_interval=100 arp_ip_target=192.168.180.65"
BONDING_OPTS="mode=1"   #mode=1是代表一个网卡工作,另一个做备份 mode=0就是代表两个 网卡做负载均衡


[root@lxp ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no


[root@lxp ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no


[root@lxp ~]# cat /etc/modprobe.conf 
alias eth0 bnx2
alias eth1 bnx2
alias eth2 bnx2
alias eth3 bnx2
alias scsi_hostadapter megaraid_sas
alias scsi_hostadapter1 ata_piix
alias bond0 bonding

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16111659/viewspace-673078/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/16111659/viewspace-673078/

你可能感兴趣的:(linux center os 两个网卡做一个bond)