当设置了bond后,如何才能删除掉这些配置信息呢?
大致的步骤如下:以centos5.5为基础,双网卡组bond0
1、ifconfig bond0 down
2、编辑bond的配置信息(不同的操作系统,不同的组建方式位置不同)
vi modprobe.conf(注释掉下面两行的内容)
#alias bond0 bonding(注释掉)
#options bond0 miimon=100 mode=6(注释掉)
3、vi /etc/rc.d/rc.local(有的操作系统上会配置这些,有的不用配置以下信息也能组bond)
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
#ifenslave bond0 eth0 eth1 (如果有注释掉,如果没有,跳过此步骤)
然后重启服务器
lsmod 查看bond是否存在,如果存在执行rmmod,再重启一次就可以了。(当然这一步我重来没做过)