zoukankan      html  css  js  c++  java
  • bond做法

    [root@BMS036 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0
    DEVICE="bond0"
    ONBOOT="yes"
    IPADDR="192.168.50.155"
    NETMASK="255.255.255.0"
    BROADCAST="192.168.50.255"
    GATEWAY="192.168.50.1"
    BOOTPROTO="none"
    USERCTL="no"
    [root@BMS036 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
    BOOTPROTO="none"
    DEVICE="eth0"
    #HWADDR="78:2B:CB:48:CB:D7"
    ONBOOT="yes"
    MASTER="bond0"
    USERCTL="no"
    SLAVE="yes"

    [root@BMS036 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
    BOOTPROTO="none"
    DEVICE="eth1"
    #HWADDR="78:2B:CB:48:CB:D9"
    ONBOOT="yes"
    MASTER="bond0"
    USERCTL="no"
    SLAVE="yes"

    [root@supermaster ifcfg]# rm -rf /etc/init.d/NetworkManager ^C
    [root@supermaster ifcfg]# ls
    ifcfg-bond0  ifcfg-bond1  ifcfg-em1  ifcfg-em2  ifcfg-em3  ifcfg-em4  ifcfg-lo
    [root@supermaster ifcfg]# cd ..
    [root@supermaster bondconf_example]# ls
    bond0.conf  bond1.conf  ifcfg
    [root@supermaster bondconf_example]# cp bond* /etc/modprobe.d/^C

    [root@supermaster bondconf_example]# ls
    bond0.conf  bond1.conf  ifcfg
    [root@supermaster bondconf_example]# cat bond0.conf
    alias bond0 bonding
    options bond0 miimon=100 mode=1
    [root@supermaster bondconf_example]# cat bond1.conf
    alias bond1 bonding
    options bond1 miimon=100 mode=1

    [root@supermaster bondconf_example]# ls
    bond0.conf  bond1.conf  ifcfg
    [root@supermaster bondconf_example]# cd ifcfg/
    [root@supermaster ifcfg]# lks
    -bash: lks: command not found
    [root@supermaster ifcfg]# ls
    ifcfg-bond0  ifcfg-bond1  ifcfg-em1  ifcfg-em2  ifcfg-em3  ifcfg-em4  ifcfg-lo
    [root@supermaster ifcfg]# cat ifcfg-bond0
    DEVICE="bond0"
    ONBOOT="yes"
    #IPADDR="192.168.51.112"
    PREFIX=24
    #GATEWAY="192.168.51.1"
    BOOTPROTO="none"
    USERCTL="no"
    [root@supermaster ifcfg]# cat ifcfg-bond1
    DEVICE="bond1"
    ONBOOT="yes"
    #IPADDR="192.168.51.112"
    PREFIX=24
    #GATEWAY="192.168.51.1"
    BOOTPROTO="none"
    USERCTL="no"

    [root@supermaster ifcfg]# cat ifcfg-em1
    BOOTPROTO=none
    DEVICE=em1
    ONBOOT=yes
    MASTER="bond0"
    USERCTL=no
    SLAVE=yes
    TYPE=Ethernet
    IPV6INIT=no
    [root@supermaster ifcfg]# cat ifcfg-em2
    BOOTPROTO=none
    DEVICE=em2
    ONBOOT=yes
    MASTER="bond0"
    USERCTL=no
    SLAVE=yes
    TYPE=Ethernet
    IPV6INIT=no
    [root@supermaster ifcfg]# cat ifcfg-em3
    BOOTPROTO=none
    DEVICE=em3
    ONBOOT=yes
    MASTER="bond1"
    USERCTL=no
    SLAVE=yes
    TYPE=Ethernet
    IPV6INIT=no
    [root@supermaster ifcfg]# cat ifcfg-em4
    BOOTPROTO=none
    DEVICE=em4
    ONBOOT=yes
    MASTER="bond1"
    USERCTL=no
    SLAVE=yes
    TYPE=Ethernet
    IPV6INIT=no

    [root@supermaster ifcfg]# cat ifcfg-lo
    DEVICE=lo
    IPADDR=127.0.0.1
    NETMASK=255.0.0.0
    NETWORK=127.0.0.0
    # If you're having problems with gated making 127.0.0.0/8 a martian,
    # you can change this to something else (255.255.255.255, for example)
    BROADCAST=127.255.255.255
    ONBOOT=yes
    NAME=loopback

  • 相关阅读:
    webpack基本使用
    vue-路由-显示名称
    vue-父组件和路由
    vue-路由
    vue-父子组件和ref
    vue-组件
    go-面向对象编程(上)
    JavaScript的历史
    vue-列表动画
    钩子函数实现小球弹落
  • 原文地址:https://www.cnblogs.com/lubing666666/p/4403058.html
Copyright © 2011-2022 走看看