多网卡负载均衡(双网卡做bonding模式)
2012-09-11 10:03
127 查看
如果节点上有多个网络接口时可以通过bonding将多个网络接口虚拟为一个网络接口,bonding可以提供高可用及负载均衡功能,从而提高节点的网络接口性能及可用性。
1、使用如下命令安装
T01-MON11:~# apt-get install ifenslave-2.6
2、修改网络接口配置文件/etc/network/interfaces。
auto lo
iface lo inet loopback
auto bond0
iface bond0 inet static
address 192.168.0.189
netmask 255.255.0.0
gateway 192.168.1.1
slaves eth0 eth1 ①
bond-mode balance-rr ②
bond-miimon 100
其中:
① slaves eth0 eth1,说明绑定两个“从网卡”eth0和eth1到bond0逻辑接口,如果要绑定多个网络接口,继续在该行附加网络接口名字即可。
② bond-mode balance-rr,指定绑定模式为采用Round-robin策略的负载均衡模式,两个网络接口会均匀分担网络负载,另一个常用模式为active-backup,也就是hot standby模式,支持网络接口failover。
如果重新启动网络时出现bonding: Warning:的提示,则需要在/etc/modprobe.d目录下新建名为文件aliases-bond.conf的,并加入如下内容。
alias bond0 bonding
1、使用如下命令安装
T01-MON11:~# apt-get install ifenslave-2.6
2、修改网络接口配置文件/etc/network/interfaces。
auto lo
iface lo inet loopback
auto bond0
iface bond0 inet static
address 192.168.0.189
netmask 255.255.0.0
gateway 192.168.1.1
slaves eth0 eth1 ①
bond-mode balance-rr ②
bond-miimon 100
其中:
① slaves eth0 eth1,说明绑定两个“从网卡”eth0和eth1到bond0逻辑接口,如果要绑定多个网络接口,继续在该行附加网络接口名字即可。
② bond-mode balance-rr,指定绑定模式为采用Round-robin策略的负载均衡模式,两个网络接口会均匀分担网络负载,另一个常用模式为active-backup,也就是hot standby模式,支持网络接口failover。
如果重新启动网络时出现bonding: Warning:的提示,则需要在/etc/modprobe.d目录下新建名为文件aliases-bond.conf的,并加入如下内容。
alias bond0 bonding
相关文章推荐
- linux双网卡绑定——负载均衡模式(bonding)
- 多网卡负载均衡(双网卡做bonding模式)
- 网卡bonding模式 - bond0、1、4配置
- Linux双网卡绑定实现负载均衡(Bonding双网卡绑定)
- linux双网卡负载均衡bonding使用方法
- [linux网络] 双网卡bonding实现冗余/负载均衡
- bonding-多网卡绑定一起,作为一个网卡使用,实现负载均衡和提高带宽
- 网卡bonding模式 - bond0、1、4配置
- 双网卡bonding实现冗余/负载均衡
- Linux双网卡绑定实现负载均衡(Bonding双网卡绑定)
- Linux平台双网卡绑定技术实现负载均衡(网卡聚合)bonding
- 生产环境中linux bonding 主备模式slave网卡切换的方法
- 双网卡bonding实现冗余/负载均衡
- 生产环境中linux bonding 主备模式slave网卡切换的方法
- bonding实现网卡负载均衡与高可用
- VMware下三种网卡(仅主机,桥接,NAT)模式
- linux 双网卡绑定(bonding)实现负载均衡或故障转移
- Intel双网卡绑定一个IP实现负载均衡
- Ubuntu 12.04下实现双网卡负载均衡