CentOS 6.3中配置bond多网卡负载均衡
2013-10-14 00:30
302 查看
为了增加带宽并实现冗余,我们对服务器进行了通道绑定,让两块网卡绑定成一个通道。下面是我们配置的过程,分享给大家。
①加载内核模块,保证绑定接口可用
vi /etc/modprobe.d/dist.conf
加入以下两行:
alias bond0 bonding
options bond0 miimon=100 mode=0#mode0表示负载均衡
②创建绑定接口文件ifcfg-bond0
vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.1.150
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
③修改网卡接口文件,我们将eth0,eth1绑定到一个通道bond0
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
④重启系统,使配置生效
reboot
⑤查看bond0网卡状态
mii-tool -v bond0
⑥配置交换机的端口,将与服务器连接的端口加入到一个端口聚合组中
###############################################
另附四块网卡做bond0
我们服务器上将eth0、eth1绑定到bond0,eth2、eth3绑定到bond1
vi /etc/modprobe.d/dist.conf ,添加如下
alias bond0 bonding
alias bond1 bonding
options bond0 miimon=100 mode=0
options bond1 miimon=100 mode=0
###############################################
bon0配置文件信息
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.1.120
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
##############################################
bond1配置文件信息
DEVICE=bond1
BOOTPROTO=none
ONBOOT=yes
#############################################
本文出自 “运维人生” 博客,请务必保留此出处http://jinyan2049.blog.51cto.com/881440/1308510
①加载内核模块,保证绑定接口可用
vi /etc/modprobe.d/dist.conf
加入以下两行:
alias bond0 bonding
options bond0 miimon=100 mode=0#mode0表示负载均衡
②创建绑定接口文件ifcfg-bond0
vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.1.150
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
③修改网卡接口文件,我们将eth0,eth1绑定到一个通道bond0
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
④重启系统,使配置生效
reboot
⑤查看bond0网卡状态
mii-tool -v bond0
⑥配置交换机的端口,将与服务器连接的端口加入到一个端口聚合组中
###############################################
另附四块网卡做bond0
我们服务器上将eth0、eth1绑定到bond0,eth2、eth3绑定到bond1
vi /etc/modprobe.d/dist.conf ,添加如下
alias bond0 bonding
alias bond1 bonding
options bond0 miimon=100 mode=0
options bond1 miimon=100 mode=0
###############################################
bon0配置文件信息
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.1.120
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
##############################################
bond1配置文件信息
DEVICE=bond1
BOOTPROTO=none
ONBOOT=yes
#############################################
本文出自 “运维人生” 博客,请务必保留此出处http://jinyan2049.blog.51cto.com/881440/1308510
相关文章推荐
- CentOS 6中配置bond多网卡负载均衡
- centos系统物理网卡bond——数据链路层负载均衡配置
- CentOS 6中配置bond多网卡负载均衡
- CentOS 6中配置bond多网卡负载均衡
- CentOS 网卡配置bond4(LACP)
- centos6.5 多网卡配置冗余(bond)
- CentOS6.3网卡配置
- 零起步1-CentOS6.3网卡配置
- Centos7,Ubuntu14.04多网卡配置bond,将多网卡绑定在一起
- centos配置网卡bond,多网卡负载
- CentOS 7 网卡bond配置
- CentOS_6.5_X86 配置多网卡汇聚(bonding)
- 在CentOS 6.3中安装与配置SVN的方法
- 在CentOS 6.3中安装与配置cmake
- CentOS 6.3_Nagios安装配置与登录
- CentOS-6.3安装配置Weblogic-10
- centos6.3配置gitlab项目管理系统
- CentOS下网卡启动、配置等ifcfg-eth0教程(转)
- CentOS-6.3安装配置JDK-7
- 虚拟机添加网卡后Centos7无网卡配置文件的问题