多语言展示
当前在线:1006今日阅读:195今日分享:41

配置网卡bond的图文详解

Linux bonding 驱动提供了一个把多个网络接口设备捆绑为单个的网络接口设置来使用,用于网络负载均衡及网络冗余 CentOS6.5,使用4块网卡(eth0、eth1  ==>  bond0;eth2、eth3 ==> bond0:0;eth4、eth5==>bond1)来实现bonding技术
方法/步骤
1

用cd /etc/sysconfig/network-scripts/ 目录下:

2

建立ifcfg-bond0,ifcfg-bond0:0 ,ifcfg-bond,进行修改:

3

修改bond0:0 和bond1的ip地址如下图操作:

4

配置ifcfg-eth0,ifcfg-eth1的MASTER=bond0  ,ifcfg-eth2,eth3的MASTER=bond0:0 ,ifcfg-eth4,ifcfg-eth5的MASTER=bond1 所有SLAVE=yes其他都是下图

5

修改配置文件vim /etc/modprobe.d/dist.conf 如下配置

6

设置开机启动bond,vim /etc/rc.local生效如下图设置:

7

service network restart  出现下面bond配置成功

推荐信息