当前位置:首页>微思动态 > >详情
全国热线电话 400-881-4699

在线留言

【干货】Linux网卡绑定实施案例

发布作者:微思网络   发布时间:2017-08-03   浏览量:0


1、 网络拓扑




 

2、 项目需求

客户要求Linux系统服务器双网卡分别连接到两台7706核心交换机网卡的bond采取active-backup模式,提高链路容错能力.


3、 配置步骤

1,创建bond0配置文件

Vi /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0

TYPE=Bond

IPADDR=6.0.20.6

NETMASK=255.255.255.0

NETWORK=6.0.20.0

BROADCAST=6.0.20.255

GATEWAY=6.0.20.1

ONBOOT=yes

BOOTPROTO=none

USERCTL=no

2、修改绑定的eth0eth1配置文件

Vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

USERCTL=no

ONBOOT=yes

MASTER=bond0

SLAVE=yes

BOOTPROTO=none

 

Vi /etc/sysconfig/network-scripts/ifcfg-eth1

 

DEVICE=eth1

USERCTL=no

ONBOOT=yes

MASTER=bond0

SLAVE=yes

BOOTPROTO=none

 

3厦门电脑培训教你装载bond模块驱动

vi /etc/modprobe.d/bond0.conf

alias bond0 bonding

options bond0 miimon=100 mode=1

 

4/etc/rc.d/rc.local设置开机自启动

Ifenslave bond0 eth0 eth1

 



返回顶部