Koozali.org: home of the SME Server

Howto Remove bond0 from the command line?

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Howto Remove bond0 from the command line?
« on: September 22, 2009, 05:36:03 AM »
I'm installing a contribs that needs "no bonding" and I need help to do it from the command line instead of the console.

Anyone could help me on this ?
Sophie from Montréal

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Howto Remove bond0 from the command line?
« Reply #1 on: September 22, 2009, 05:50:07 AM »

I have this from config:
Code: [Select]
NICBondingOptions=miimon=200 mode=active-backup

Code: [Select]
# ifenslave bond0
The result of SIOCGIFFLAGS on bond0 is 1443.
The result of SIOCGIFADDR is 00.00.01.01.
The result of SIOCGIFHWADDR is type 1  00:00:00:00:00:00.

And this from ifconfig:
Code: [Select]
bond0     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet adr:1.1.1.1  Bcast:1.255.255.255  Masque:255.0.0.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

br0       Link encap:Ethernet  HWaddr 00:23:54:A3:0D:C8
          inet adr:192.168.2.199  Bcast:192.168.2.255  Masque:255.255.255.0
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:1045 errors:0 dropped:0 overruns:0 frame:0
          TX packets:950 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          RX bytes:201702 (196.9 KiB)  TX bytes:233489 (228.0 KiB)

eth0      Link encap:Ethernet  HWaddr 00:23:54:A3:0D:C8
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:1061 errors:0 dropped:0 overruns:0 frame:0
          TX packets:901 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:226018 (220.7 KiB)  TX bytes:234078 (228.5 KiB)
          Interruption:177

eth3      Link encap:Ethernet  HWaddr 00:23:54:A3:0B:9A
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interruption:193

Any help will be appreciated...
Sophie from Montréal

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Howto Remove bond0 from the command line?
« Reply #2 on: September 22, 2009, 11:06:56 PM »
I'm installing a contribs that needs "no bonding" and I need help to do it from the command line instead of the console.

Hi Sophie! What problem are you trying to solve? Why do you need "no bonding"? What do you actually mean by "no bonding"?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Howto Remove bond0 from the command line?
« Reply #3 on: September 22, 2009, 11:11:02 PM »
Sophie, you have a br0 interface, which suggests that you have a contrib installed. That contrib is probably causing your problem. You should post a bug report against that contrib. The contrib developer might have a workaround for you.

If you don't like that approach, I'd recommend you remove the contrib, and run "Configure" from the admin console.

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Howto Remove bond0 from the command line?
« Reply #4 on: September 23, 2009, 12:02:15 AM »
Hi Charlie, glad to read you...

Indeed, the contribs OpenVPNbridge does not work with bonding enable. A tap interface is required.

It happens that a couple of servers I'm working on (installed by someone else) have bonding activated. I wish I could have a method from the command line. That's the reason why I'm asking here.

I don't say that the contribs is causing a problem.

From what I understand, the server-only mode proposes bonding in the console setup. I don't know how to disable this once it's been enabled.

Thanks for any help...
Sophie from Montréal

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Howto Remove bond0 from the command line?
« Reply #5 on: September 23, 2009, 12:03:59 AM »

... and I'll follow your advice about contacting the author.

Hope you're doing fine!
Sophie from Montréal

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Howto Remove bond0 from the command line?
« Reply #6 on: September 23, 2009, 12:33:52 AM »
It happens that a couple of servers I'm working on (installed by someone else) have bonding activated. I wish I could have a method from the command line.

You'll need to tweak some properties of InternalInterface in the config db, then do 'signal-event post-upgrade; signal-event reboot'.

Why don't you want to use the admin console?

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Howto Remove bond0 from the command line?
« Reply #7 on: September 23, 2009, 12:41:45 AM »

Well, I have to confess I can't find this option from the console once it is set! :oops:

I looked at the documentation for the tweaks, but there is not much.

Any how, I left a note to the author about it.
Sophie from Montréal

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Howto Remove bond0 from the command line?
« Reply #8 on: September 23, 2009, 01:34:35 AM »
Well, I have to confess I can't find this option from the console once it is set! :oops:

If you can't disable bonding via the admin console, then that's a bug which should be reported via the bug tracker.

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Howto Remove bond0 from the command line?
« Reply #9 on: September 23, 2009, 01:44:44 AM »
Thanks for your help Charlie...

 Bug 5482
Sophie from Montréal