Chinaunix首页 | 论坛 | 博客
  • 博客访问: 513499
  • 博文数量: 65
  • 博客积分: 2925
  • 博客等级: 上尉
  • 技术积分: 1306
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-01 10:56
个人简介

2013

文章分类

全部博文(65)

分类: LINUX

2011-03-11 11:40:08

Suse 9 双网卡绑定(资料整理)

1、 改服务器内核

Edit the file/etc/sysconfig/kernel and add this line:

MODULES_LOADED_ON_BOOT="driver_name".

   如何查看driver_name是什么名字,如下

   Lspci可以查看driver_name是什么(例如pcnet32

Lsmod也可以查看driver_name是什么(例如pcnet32

 

2、 编辑2个网卡文件

   Edit the created configuration

files/etc/sysconfig/network/ifcfg-eth-id-xx:xx:xx:xx:xx:xx, and change:

      BOOTPROTO='none'

      STARTMODE='off'

      Note the pci-ids from these configuration files.  The pci-id look like this:

      _nm_name='bus-pci-0000:06:08.1’

   把相关行屏蔽或者删除。只保留

BOOTPROTO='none'

      STARTMODE='off'

      _nm_name='bus-pci-0000:06:08.1’

 

3、 创建一个新文件

    Create a new configuration file at /etc/sysconfig/network which contains the configuration for the bonding device.  Name this configuration ifcfg-bond0.  This configuration will be unique to each network environment and desired mode.  As an example:

Touch  ifcfg-bond0

Vi  ifcfg-bond0

BOOTPROTO='static'

BROADCAST='88.88.88.255'

IPADDR='88.88.88.123'

MTU=''

NETMASK='255.255.255.0'

NETWORK='88.88.88.0'

REMOTE_IPADDR=''

STARTMODE='onboot'

BONDING_MASTER=yes

BONDING_SLAVE0='bus-pci-0000:00:11.0'

BONDING_SLAVE1='bus-pci-0000:00:12.0'

BONDING_MODULE_OPTS='miimon=100 mode=1 use_carrier=0'

 

4、  Restart the network:

 Rcnetwork   restart

阅读(2233) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~