zoukankan      html  css  js  c++  java
  • 红帽6.4 双网卡绑定

    一.、/etc/sysconfig/network-scripts下新建文件ifcfg-bond0

    1.编辑文件  vi ifcfg-bond0

    DEVICE=bond0

    ONBOOT=yes

    BOOTPROTO=static

    TYPE=Ethernet

    USERCTL=no

    IPADDP=

    NETMASK=

    GATEWAY=

    2.分别编辑两块网卡配置文件  ifcfg-eth0、ifcfg-eth1

    DEVICE=eth0

    ONBOOT=yes

    BOOTPROTO=none

    TYPE=Ethernet

    USERCTL=no

    MASTER=bond0

    SLAVE=yes

    二.加载bond,编辑 /etc/modprobe.d/dist.conf  在文件末尾加上

    alias bond0 bonding

    options bond0 mode=1 miimon=100

    三.开机自动加载bond0 并添加路由,编辑 /etc/rc.d/rc.local  最后增加

    Ifenslave bond0 eth0 eth1

    route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.230.X.X bond0

    心跳IP不用加路由

    四.重启网络服务

    service network restart

    五.验证

    Ifconfig   检查bond0 eth0 eth1 MAC地址是否一致。

  • 相关阅读:
    访问者模式
    解释器模式
    享元模式
    职责链模式
    中介者模式
    单例模式
    桥接模式
    命令模式
    迭代器模式
    Python 学习笔记15 类
  • 原文地址:https://www.cnblogs.com/datalife/p/4749660.html
Copyright © 2011-2022 走看看