2013
全部博文(65)
分类: LINUX
2011-03-11 11:40:08
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