bond加带宽

2020-02-13  本文已影响0人  linux_python

bonding配置案例:

  1. 接口配置文件
    [root@install network-scripts]# cat ifcfg-bond0
    DEVICE=bond0
    TYPE=Ethernet
    ONBOOT=yes
    NM_CONTROLLED=no
    BOOTPROTO=none
    IPADDR=
    PREFIX=24
    IPV6INIT=no
    USERCTL=no
    GATEWAY=8.8.8.8

[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

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

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

[root@install ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)

上一篇 下一篇

猜你喜欢

热点阅读