www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

1 编辑/etc/modprobe.conf
  在/etc/modprobe.conf里加入如下两行:

  alias bond0 bonding

  options bond0 mode=1 miimon=100 use_carrier=0

2 创建bond0虚拟设备
  vim /etc/sysconfig/network-scripts/ifcfg-bond0
 
  DEVICE=bond0

  BOOTPROTO=none

  ONBOOT=yes

  NETMASK=255.255.255.0

  IPADDR=192.168.68.150

  GATEWAY=192.168.68.254

3 配置 eth0 eth1

  vim /etc/sysconfig/network-scripts/ifcfg-eth0
 
  DEVICE=eth0
  BOOTPROTO=none
  ONBOOT=yes
  MASTER=bond0
  SLAVE=yes

  vim /etc/sysconfig/network-scripts/ifcfg-eth1
 
  DEVICE=eth1
  BOOTPROTO=none
  ONBOOT=yes
  MASTER=bond0
  SLAVE=yes

4 重启系统

posted on 2013-07-14 21:31  秦瑞It行程实录  阅读(591)  评论(0编辑  收藏  举报
www.cnblogs.com/ruiyqinrui