红联Linux门户
Linux帮助

取消linux bond的方法

发布时间:2006-12-14 22:45:02来源:红联作者:flycocoon
  另外大家关心的一个问题应该是:设置了bond 后如何去掉?

  我现在想到的大致步骤是:

  1,ifconfig bond0 down
  2,vi modprobe.conf

引用:
alias eth0 e1000
alias eth1 e1000
#alias bond0 bonding (注释掉)
#options bond0 miimon=100 mode=1 (注释掉)
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptscsih
alias scsi_hostadapter2 ips
alias usb-controller ohci-hcd


  3,vi /etc/rc.d/rc.local

引用:
#!/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,重启一把机器就ok了!
文章评论

共有 1 条评论

  1. veryfan 于 2006-12-15 00:16:27发表:

    受教了,谢谢分享经验