不需要做路由设置,给你个列子:# cat /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0BOOTPROTO=noneONBOOT=yesUSERCTL=noIPADDR=103.10.84.96NETMASK=255.255.255.128GATEWAY=103.10.84.1# cat /etc/sysconfig/network-scripts/ifcfg-eth2 # Broadcom Corporati...显示全部
不需要做路由设置,给你个列子:
# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPADDR=103.10.84.96
NETMASK=255.255.255.128
GATEWAY=103.10.84.1
# cat /etc/sysconfig/network-scripts/ifcfg-eth2
# Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe
DEVICE=eth2
BOOTPROTO=none
HWADDR=90:b1:1c:09:83:06
ONBOOT=yes
MASTER=bond0
SLAVE=yes
# cat /etc/sysconfig/network-scripts/ifcfg-eth3
# Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe
DEVICE=eth3
BOOTPROTO=none
ONBOOT=yes
HWADDR=90:b1:1c:09:83:07
MASTER=bond0
SLAVE=yes
# cat /etc/modprobe.conf
alias eth0 tg3
alias eth1 tg3
alias eth2 tg3
alias eth3 tg3
alias scsi_hostadapter megaraid_sas
alias scsi_hostadapter1 ahci
alias bond0 bonding
options bond0 miimon=100 mode=1
mode=0 负载均衡(需要交换机支持) mode=1 热备,一块网停止工作,另一块网卡工作
重启网卡收起