CentOS 6中配置bond多网卡负载均衡
2013-07-01 14:01
489 查看
安装bonding模块
[root@dengyw ~]# modprobe bonding
[root@dengyw ~]# lsmod |grep bonding
bonding 102210 0
ipv6 264702 30 bonding,sit,ip6t_REJECT,nf_conntrack_ipv6
1 设置开机加载bonding模块
vi /etc/modprobe.d/bonding.conf 加入以下两行:
alias bond0 bonding
options bond0 miimon=100 mode=0 #mode0表示负载均衡
2 修改网卡配置文件
cd /etc/sysconfig/network-scripts/ ,新建ifcfg-bond0文件 ,内容如下:
DEVICE=bond0
IPADDR=192.168.106.162
NETMASK=255.255.255.0
NETWORK=192.168.106.0
ONBOOT=yes
NAME=bond0
BOOTPROTO=none
USERCTL=no
GATEWAY=192.168.106.254
修改想要做成bond的网卡的配置文件,如ifcfg-eth0、ifcfg-eth1,内容分别如下:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond0
SLAVE=yes
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond0
SLAVE=yes
3 重启系统,使配置生效
4 配置交换机的端口,将与服务器连接的端口加入到一个端口聚合组中
[root@dengyw ~]# modprobe bonding
[root@dengyw ~]# lsmod |grep bonding
bonding 102210 0
ipv6 264702 30 bonding,sit,ip6t_REJECT,nf_conntrack_ipv6
1 设置开机加载bonding模块
vi /etc/modprobe.d/bonding.conf 加入以下两行:
alias bond0 bonding
options bond0 miimon=100 mode=0 #mode0表示负载均衡
2 修改网卡配置文件
cd /etc/sysconfig/network-scripts/ ,新建ifcfg-bond0文件 ,内容如下:
DEVICE=bond0
IPADDR=192.168.106.162
NETMASK=255.255.255.0
NETWORK=192.168.106.0
ONBOOT=yes
NAME=bond0
BOOTPROTO=none
USERCTL=no
GATEWAY=192.168.106.254
修改想要做成bond的网卡的配置文件,如ifcfg-eth0、ifcfg-eth1,内容分别如下:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond0
SLAVE=yes
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond0
SLAVE=yes
3 重启系统,使配置生效
4 配置交换机的端口,将与服务器连接的端口加入到一个端口聚合组中
相关文章推荐
- CentOS 6中配置bond多网卡负载均衡
- centos系统物理网卡bond——数据链路层负载均衡配置
- CentOS 6.3中配置bond多网卡负载均衡
- CentOS 6中配置bond多网卡负载均衡
- CentOS 7 网卡bond配置
- Centos7,Ubuntu14.04多网卡配置bond,将多网卡绑定在一起
- centos6.5 多网卡配置冗余(bond)
- centos配置网卡bond,多网卡负载
- CentOS 网卡配置bond4(LACP)
- CentOS之——双网卡双IP双网关配置(双网卡配置一个上外网一个接局域网)
- 双网卡bond配置
- centos 无线网卡配置
- 解决CentOS 7.0 VMware虚拟机没有网卡,配置网卡信息
- Vbox下CentOS6 两张网卡配置
- CentOS+Nginx一步一步开始配置负载均衡
- 工作之Suse中配置网卡bond
- CentOS 6.8 Bonding技术实现和网卡功能配置基础
- centos网卡ip、dns配置
- 详解VirtualBox + CentOS 虚拟机网卡配置
- 精华--CentOS多网卡配置