Centos 双网卡绑定
2016-03-24 00:00
549 查看
[root
@Study ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=none USERCTL=no MASTER=bond0 SLAVE=yes [root
@Study ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 ONBOOT=yes BOOTPROTO=none USERCTL=no MASTER=bond0 SLAVE=yes [root
@Study ~]# [root
@Study ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 ONBOOT=yes BOOTPROTO=none IPADDR=192.168.61.101 NETMASK=255.255.255.0 GATEWAY=192.168.61.2 [root
@Study ~]# 这时候网卡绑定还没有生效,需要进行模块加载 [root@root ~]# cd /etc/modprobe.d/ 切换到modprobe.d目录下 [root@root ~modprobe.d]#vi dist.conf #加载bonding模块,对外虚拟网络接口设备为bond0,在最后加入以下2行 alias bond0 bonding options bond0 mode=6 miimon=100 模式6,为发送接收都能自动的负载均衡 模式1 为,active/standby 模式
@Study ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=none USERCTL=no MASTER=bond0 SLAVE=yes [root
@Study ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 ONBOOT=yes BOOTPROTO=none USERCTL=no MASTER=bond0 SLAVE=yes [root
@Study ~]# [root
@Study ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 ONBOOT=yes BOOTPROTO=none IPADDR=192.168.61.101 NETMASK=255.255.255.0 GATEWAY=192.168.61.2 [root
@Study ~]# 这时候网卡绑定还没有生效,需要进行模块加载 [root@root ~]# cd /etc/modprobe.d/ 切换到modprobe.d目录下 [root@root ~modprobe.d]#vi dist.conf #加载bonding模块,对外虚拟网络接口设备为bond0,在最后加入以下2行 alias bond0 bonding options bond0 mode=6 miimon=100 模式6,为发送接收都能自动的负载均衡 模式1 为,active/standby 模式
相关文章推荐
- 禁用、启用SeLinux
- centos 禁用IPV6
- Centos7 查看IP
- linux常用命令
- Centos6.5 vsftpd 安装配置
- Centos 6.5 vmtools 安装失败
- Centos怎样查看已经安装的软件
- Centos7 禁用IPV6
- Centos 支持NTFS格式磁盘
- centos wget代理设置
- linux 查看软件版本
- Centos 双网卡 默认路由
- 关于linux安装VMTOOLS
- CentOS添加路由
- linux cpu,内存, 使用情况
- linux 自动注销登录帐号
- Centos 7 mini 安装
- centos 路由说明
- Linux kudzu !!!上天了
- linux 主机名常忽略的小问题