• 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

  • 相关阅读:
    Flex 开源框架及工具 枫
    String.Format格式说明 枫
    HTTP服务器状态代码定义(Status Code Definitions) 枫
    像素对应表 枫
    js各种获取屏幕高度宽度 枫
    c#正则表达式帮助 枫
    使用模板引擎Trimpath 枫
    分布式缓存HttpRuntime.cache应用到单点登陆中_优化登陆 枫
    Query this 和 $(this) 的区别 枫
    css and js style 枫
  • 原文地址:https://www.cnblogs.com/sxgaofeng/p/12819627.html
Copyright © 2020-2023  润新知