• bond0 bingding double network adapter


    bind0 bingding double network adapter

    adapter config one
    vi /etc/sysconfig/network-scripts/ifcfg-ens33
    DEVICE=ens33
    ONBOOT=yes
    BOOTPROTO=none
    USERCTL=no
    MASTER=bond0
    SLAVE=yes
    
    adapter config two
    
    vi /etc/sysconfig/network-scripts/ifcfg-ens37
    DEVICE="ens37"
    BOOTPROTO="none"
    ONBOOT="yes"
    USERCTL=no
    MASTER=bond0
    SLAVE=yes
    bond0配置
    vi /etc/sysconfig/network-scripts/ifcfg-bond0
    DEVICE=bond0
    BOOTPROTO=static
    USERCTL=no
    ONBOOT=yes
    TYPE=Bond
    BONDING_MASTER=yes
    BONDING_OPTS="mode=0 miimon=100"
    IPADDR=192.168.191.177
    NETMASK=255.255.255.0
    GATEWAY=192.168.191.2
    service network restart
    ethtool bond0
    reboot
    

    look this bond0

    ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host 
           valid_lft forever preferred_lft forever
    2: ens33: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP group default qlen 1000
        link/ether 00:0c:29:33:a4:73 brd ff:ff:ff:ff:ff:ff
    3: ens37: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP group default qlen 1000
        link/ether 00:0c:29:33:a4:73 brd ff:ff:ff:ff:ff:ff
    4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
        link/ether 00:0c:29:33:a4:73 brd ff:ff:ff:ff:ff:ff
        inet 192.168.191.177/24 brd 192.168.191.255 scope global bond0
           valid_lft forever preferred_lft forever
        inet6 fe80::20c:29ff:fe33:a473/64 scope link 
           valid_lft forever preferred_lft forever
    

    check bond status : cat /proc/net/bonding/bond0

    cat /proc/net/bonding/bond0
    Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
    
    Bonding Mode: load balancing (round-robin)
    MII Status: up
    MII Polling Interval (ms): 100
    Up Delay (ms): 0
    Down Delay (ms): 0
    
    Slave Interface: ens33
    MII Status: up
    Speed: 1000 Mbps
    Duplex: full
    Link Failure Count: 0
    Permanent HW addr: 00:0c:29:33:a4:73
    Slave queue ID: 0
    
    Slave Interface: ens37
    MII Status: up
    Speed: 1000 Mbps
    Duplex: full
    Link Failure Count: 0
    Permanent HW addr: 00:0c:29:33:a4:7d
    Slave queue ID: 0
    

    资料来源: 鸣谢
    https://www.cnblogs.com/larrypeng/p/11874014.html

  • 相关阅读:
    liunx下mysql数据库使用之三范式,关系模型设计注意项,安装目录结构
    Liunx系统学习一,liunx系统的目录结构及含义
    liunx环境下的mysql数据库配置文件my.conf内的参数含义
    linux下打开chm文件的方法
    java的四舍五入算法
    【JVM】jvm垃圾回收器相关垃圾回收算法
    Linux下MySQL数据库常用基本操作 一
    liunx环境下安装mysql数据库
    加权平均
    Host绑定
  • 原文地址:https://www.cnblogs.com/sxgaofeng/p/12819627.html
Copyright © 2020-2023  润新知