rhel 6.7下双网卡绑定
rhel 6.7下双网卡绑定
1、网络配置
以rac01为例,两node都要配置
eth0和eth1 做bond0
eth2和eth3 做bond1
Mac地址记录如下:
eth0 : 00:0C:29:12:28:2C
eth1 : 00:0c:29:12:28:36
eth2 : 00:0c:29:12:28:40
eth3 : 00:0c:29:12:28:4a
[root@test-rac01 network-scripts]# cat ifcfg-bond0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=bond0
BOOTPROTO=none
BROADCAST=10.109.67.255
IPADDR=10.109.67.52
NETMASK=255.255.255.0
NETWORK=10.109.67.0
USERCTL=no
ONBOOT=yes
GATEWAY=10.109.67.1
TYPE=BOND
[root@test-rac01 network-scripts]# cat ifcfg-bond1
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=bond1
BOOTPROTO=none
BROADCAST=193.168.1.255
IPADDR=193.168.1.102
NETMASK=255.255.255.0
NETWORK=193.168.1.0
USERCTL=no
ONBOOT=yes
TYPE=BOND
BONDING_OPTS="mode=1 miimon=50"
[root@test-rac01 network-scripts]# cat ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:0C:29:12:28:2C
MASTER=bond0
ONBOOT=yes
SLAVE=yes
USERCTL=no
TYPE=Ethernet
PEERDNS=yes
IPV6INIT=no
[root@test-rac01 network-scripts]# cat ifcfg-eth1
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:12:28:36
MASTER=bond0
SLAVE=yes
USERCTL=no
TYPE=Ethernet
PEERDNS=yes
IPV6INIT=no
[root@test-rac01 network-scripts]# cat ifcfg-eth2
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth2
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:12:28:40
MASTER=bond1
SLAVE=yes
USERCTL=no
TYPE=Ethernet
PEERDNS=yes
IPV6INIT=no
[root@test-rac01 network-scripts]# cat ifcfg-eth3
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth3
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:12:28:4a
MASTER=bond1
SLAVE=yes
USERCTL=no
TYPE=Ethernet
PEERDNS=yes
IPV6INIT=no
2、内核模块加载
[root@rac01 ~]# vim /etc/modprobe.d/dist.conf
添加内容
alias bond0 bonding
alias bond1 bonding
alias scsi_hostadapter2 lpfc
[root@rac01 ~]# vim /etc/modprobe.d/openfwwf.conf
添加内容
options lpfc lpfc_nodev_tmo=30 lpfc_lun_queue_depth=16 lpfc_discovery_threads=32
options hangcheck-timer hangcheck_tick=1 hangcheck_margin=10 hangcheck_reboot=1
options e1000 FlowControl=1