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

  • 相关阅读:
    hashMap put的返回值测试
    mysql java 类型对照 int
    crontab
    Caused by: java.lang.IllegalArgumentException: Modifying queries can only use void or int/Integer as return type!
    Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean
    Spring boot ---- java.lang.NoClassDefFoundError: javax/servlet/ServletContext
    蒙特卡罗算法:模拟
    Linux学习笔记:cut命令
    Linux学习笔记:split切分文件并按规律命名及添加拓展名
    Shell学习笔记:awk实现group by分组统计功能
  • 原文地址:https://www.cnblogs.com/lubing666666/p/4403058.html
Copyright © 2011-2022 走看看