风哥教程

培训 . 交流 . 分享
Make progress together!

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框架
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

热门文章教程

  • PostgreSQL数据库中文培训手册
  • Oracle OCP认证考试IZ0-053题库共712题数据
  • Navicat for MySQL最新版下载地址及注册码
  • MySQL5权威指南(第3版)PDF电子版下载
  • Oracle Database 12c 数据库100个新特性与
  • oracle 12c RAC 日志频繁切换 checkpoint n
快速回复 返回顶部 返回列表