[CentOS] how does one remove bond1?

Sat Oct 20 17:40:24 UTC 2007
J. Potter <jpotter-centos at codepuppy.com>

Hi List,

We're using bonding to create bond0 with 2 NICs, and noticing that  
CentOS 5 2.6.18-8.1.14.el5 (and presumably older) creates bond1 as well.

I'd like to remove bond1 from the system, so that our monitoring  
scripts don't pick it up, except for those machines that actually do  
have a bond1.

So... how does one remove bond1?

Thanks! Misc info below of configuration and what doesn't work.

best,
Jeff


% cat /etc/modprobe.conf | grep bond
alias bond0 bonding
options bond0 max_bonds=2 miimon=100 mode=1

% find /etc/ -iname "*bond1*" | wc -l
0

% grep -r bond1 /etc/ 2> /dev/null | wc -l
0

% cat /sys/class/net/bonding_masters
bond0 bond1

% echo "bond0" > /sys/class/net/bonding_masters
-bash: echo: write error: Operation not permitted

% id
uid=0(root) gid=0(root)  ...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20071020/2014330a/attachment-0004.html>