双网卡绑定(数据库做RAC,4网卡两两绑定)

  • 格式:docx
  • 大小:15.36 KB
  • 文档页数:4

下载文档原格式

  / 10
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

网卡绑定DB1(192.168.3.11)

1.关闭NetworkManager服务

#serviceNetworkManager stop

#chkconfigNetworkManager off

2.添加bond0、bond1配置文件

#cd /etc/sysconfig/network-scripts/

#vi ifcfg-bond0

DEVICE=bond0

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

IPADDR=192.168.3.11

NETMASK=255.255.255.0

GATEWAY=192.168.3.1

#vi ifcfg-bond1

DEVICE=bond1

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

IPADDR=1.1.1.1

NETMASK=255.0.0.0

3.编辑ifcfg-eth0,ifcfg-eth1,ifcfg-eth2,ifcfg-eth3

#cd /etc/sysconfig/network-scripts/

#vi ifcfg-eth0

DEVICE=eth0

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

#vi ifcfg-eth1

DEVICE=eth1

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

#vi ifcfg-eth2

DEVICE=eth2

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

MASTER=bond1

SLAVE=yes

#vi ifcfg-eth3

DEVICE=eth3

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

MASTER=bond1

SLAVE=yes

4.创建/etc/modprobe.conf文件

#vi/etc/modprobe. conf

添加

alias bond0 bonding

options bond0 miimon=100 mode=1

alias bond1 bonding

options bond1miimon=100 mode=1

5.重启网卡

#service network restart

DB2(192.168.3.12)

1.关闭NetworkManager服务

#serviceNetworkManager stop

#chkconfigNetworkManager off

2.添加bond0、bond1配置文件

#cd /etc/sysconfig/network-scripts/

#vi ifcfg-bond0

DEVICE=bond0

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

IPADDR=192.168.3.12

NETMASK=255.255.255.0

GATEWAY=192.168.3.1

#vi ifcfg-bond1

DEVICE=bond1

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

IPADDR=1.1.1.2

NETMASK=255.0.0.0

3.编辑ifcfg-eth0,ifcfg-eth1,ifcfg-eth2,ifcfg-eth3

#cd /etc/sysconfig/network-scripts/

#vi ifcfg-eth0

DEVICE=eth0

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

#vi ifcfg-eth1

DEVICE=eth1

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

MASTER=bond0

SLAVE=yes

#vi ifcfg-eth2

DEVICE=eth2

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

MASTER=bond1

SLAVE=yes

#vi ifcfg-eth3

DEVICE=eth3

TYPE=Ethernet

ONBOOT=yes

BOOTPROTO=none

MASTER=bond1

SLAVE=yes

4.创建/etc/modprobe. conf文件

#vi/etc/modprobe. conf

添加

alias bond0 bonding

options bond0 miimon=100 mode=1

alias bond1 bonding

options bond1miimon=100 mode=1

5.重启网卡

#service network restart