linux下多网上绑定实现负载均衡V1.1
Author:gaojinbo
Time:2010-5-11
linux下多网上绑定实现负载均衡,该文档在ubuntu下制作,如果所有centos/rhel需要适当修改!绑定4个网卡也非常简单,参考方法2
1.安装软件
apt-get install ifenslave
2.修改配置文件
/etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.50
netmask 255.255.255.0
iface eth1 inet static
address 192.168.1.51
netmask 255.255.255.0
auto bond0
iface bond0 inet static
address 192.168.1.55
netmask 255.255.255.0
gateway 192.168.1.1
up ifenslave bond0 eth0 eth1
down ifenslave -d bond0 eth0 eth1
3./etc/modules中添加
bonding
方法2:
vim /etc/network/interfaces
iface eth0 inet dhcp
iface eth1 inet dhcp
iface eth2inet dhcp
iface eth3inet dhcp
auto bond0
iface bond0 inet static
address 119.147.106.194
netmask 255.255.255.192
gateway 119.147.106.193
up ifenslave bond0 eth0 eth1 eth2 eth3
down ifenslave -d bond0 eth0 eth1 eth2 eth3
完成!
五月 14th, 2010 at 11:15
[...] linux下多网上绑定实现负载均衡V1.1 五月 14th, 2010 by chinawiz 原文见 http://www.gaojinbo.com/linux%E4%B8%8B%E5%A4%9A%E7%BD%91%E4%B8%8A%E7%BB%91%E5%AE%9A%E5%AE%9E%E7%8E%B... [...]
五月 9th, 2011 at 19:59
Related Websites…
[...]here are some other links to sites that we find everyday so here are some popular sites we like today[...]…
六月 24th, 2011 at 03:13
Blogs ou should be reading…
[...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……
二月 6th, 2012 at 08:52
[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……
[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]……