linux双网卡绑定
2015-07-10 14:33
429 查看
环境:eth0,eth1绑定为bond0,绑定ip为192.168.1.110。
操作:
1:bondind模块配置。
在/etc/modprobe.conf中添加bond模块内容:#vi /etc/modprobe.conf
alias bond0 bonding
options bond0 miimon=100 mode=0 mode0表示负载均衡模式,mode1表示主备模式,默认eth0为主工作网卡
2:创建网卡ifcfg-bond0。#cd /etc/sysconfig/network-scripts/
#vi ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.1.110
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=static
USERCTL=no
3:配置网卡eth0,ech1。
echo0:vi ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static ONBOOT=yes MASTER=bond0 SLAVE=yes USERCTL=yes
#vi ifcfg-eth1 DEVICE=eth1 BOOTPROTO=static ONBOOT=yes MASTER=bond0 SLAVE=yes USERCTL=yes把两张网卡的MASTER都指向bond0。
4:重启网络,使配置生效。
#service network restart
阅读更多相关文章推荐
- 在linux中实现多网卡的绑定 介绍常见的7种Bond模式
- linux系统单网卡绑定多个IP地址 推荐
- Linux下双网卡绑定技术实验(未解决)
- Linux 网卡绑定
- Linux下双网卡绑定bond0
- linux 实现双 网卡 绑定 (实验成功)
- Red Hat Enterprise Linux Server release 6.3 实现双网卡绑定
- linux网卡绑定原理详解
- linux 下网卡做绑定
- linux系统单网卡绑定多个IP地址
- linux系统单网卡绑定双IP的方法
- Linux中1个网卡绑定多个IP
- linux 网卡bond绑定
- 在Linux中实现多网卡绑定
- Linux 双网卡绑定
- 在 Linux 中用 nmcli 命令绑定多块网卡的方法
- linux系统下单网卡绑定多个IP地址
- Linux双网卡绑定
- Linux 双网卡绑定
- 五条命令搞定linux共享上网(单网卡+交换机+地址绑定)