配band

本文介绍了Linux系统中配置网络Bonding的步骤,包括创建bond0接口文件,配置eth0和eth1作为Bonding的从属接口,并设置了bonding模式和监控间隔。重启网络服务后,系统将使用配置的Bonding实现网络冗余和负载均衡。
摘要由CSDN通过智能技术生成

bonding配置案例:
1. 接口配置文件
[root@install network-scripts]# cat ifcfg-bond0
DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=ip地址
PREFIX=24
IPV6INIT=no
USERCTL=no
GATEWAY=子网掩码

[root@install network-scripts]# cat ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPV6INIT=no
USERCTL=no
MASTER=bond0
SLAVE=yes

[root@install network-scripts]# cat ifcfg-eth1
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPV6INIT=no
USERCTL=no
MASTER=bond0
SLAVE=yes

2. bonding参数
[root@install ~]# tail -2 /etc/modprobe.d/bond0.conf
alias  bond0 bonding
options bonding mode=0 miimon=100

3. 重启网络服务
[root@install ~]# service network restart
[root@install ~]# ip a

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值