双网卡绑定(数据库做RAC,4网卡两两绑定)
- 格式:docx
- 大小:15.36 KB
- 文档页数:4
网卡绑定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