ITPUX技术网

交流 . 资讯 . 分享
Make progress together!
Linux操作系统下Oracle11g R2 RAC 安装配置教程
Oracle数据库培训-备份恢复-性能优化-集群容灾
Oracle数据库DBA高级工程师培训视频

rhel 6.7下双网卡绑定

内容发布:luashin| 发布时间:2017-6-8 00:42:41
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



上一篇:Linux下使用crontab进行RMAN备份实验
下一篇:LAMP or LNMP一键安装脚本
回复

使用道具 举报

1框架
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表