Author Topic: Network bonding for 1.4  (Read 2725 times)

alvinquah

  • Zen Warrior
  • ***
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Network bonding for 1.4
« on: February 09, 2010, 03:56:43 pm »
I did a search on the forum and found the solution proposed by javi.
http://forum.ebox-platform.com/index.php?topic=1682.0

I did actually what is written in it but it is not working. Is the method different in 1.4? thanks

alvinquah

  • Zen Warrior
  • ***
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: Network bonding for 1.4
« Reply #1 on: February 11, 2010, 03:18:57 pm »
anyone tried NIC bonding in eBox? help anyone? thanks

Saturn2888

  • Zen Hero
  • *****
  • Posts: 707
  • Karma: +1/-0
    • View Profile
Re: Network bonding for 1.4
« Reply #2 on: February 11, 2010, 03:30:59 pm »
Do you mean failover and traffic shaping? I tired them a long time ago in version 1.0 and 1.1. Your link seems to say different. Make sure your NICs and switch both support the bonding protocol you're using.

alvinquah

  • Zen Warrior
  • ***
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: Network bonding for 1.4
« Reply #3 on: February 11, 2010, 04:02:44 pm »
Do you mean failover and traffic shaping? I tired them a long time ago in version 1.0 and 1.1. Your link seems to say different. Make sure your NICs and switch both support the bonding protocol you're using.

i means using 2 NIC to enable bonding so that they can either perform round robin, load balancing or link failover over mode.. it has something to do with editing the /etc/networks/interfaces file and add in bond0 for binding ethx with ethy......

Saturn2888

  • Zen Hero
  • *****
  • Posts: 707
  • Karma: +1/-0
    • View Profile
Re: Network bonding for 1.4
« Reply #4 on: February 11, 2010, 04:09:55 pm »
That's gonna be tricky. What she said in there shouldn't be old then.

alvinquah

  • Zen Warrior
  • ***
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: Network bonding for 1.4
« Reply #5 on: February 11, 2010, 04:16:06 pm »
That's gonna be tricky. What she said in there shouldn't be old then.

Bonding is not broken because is not supported :)

However, there's an easy way to support bonding in eBox by using hooks.

You can add a hookd script called /etc/ebox/hooks/network.postsetconf whose content is something like:

Code: [Select]
#!/bin/sh

if grep "slaves eth1 eth2" /etc/network/interfaces >/dev/null; then
        exit 0
fi
echo slaves eth1 eth2 >> /etc/network/interfaces
echo bond-mode 4 >> /etc/network/interfaces
echo bond-miimon 100 >> /etc/network/interfaces

exit 0


This is script is called right after eBox writes /etc/network/interfaces. As you can see the only thing it does is adding the configuration lines related to the bond. You have also unset the configuration for the slaves interfaces in ebox.



Taken from the abstract from the older post, Javi has mentioned it is not broken but not supported. I have tried to recreate the bonding in 1.4 but is not working.

Saturn2888

  • Zen Hero
  • *****
  • Posts: 707
  • Karma: +1/-0
    • View Profile
Re: Network bonding for 1.4
« Reply #6 on: February 11, 2010, 05:43:19 pm »
You have to make sure your hardware and switch is compatible.

alvinquah

  • Zen Warrior
  • ***
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: Network bonding for 1.4
« Reply #7 on: February 11, 2010, 05:53:07 pm »
You have to make sure your hardware and switch is compatible.

thanks saturn2888. i have ensure my hardware and switch are compatible. Now the issue is that the method used in my previous post is not working........

Saturn2888

  • Zen Hero
  • *****
  • Posts: 707
  • Karma: +1/-0
    • View Profile
Re: Network bonding for 1.4
« Reply #8 on: February 11, 2010, 06:04:45 pm »
Ok, hopefully someone that knows what they're doing from here can help. I've never gotten this to work before.
« Last Edit: February 11, 2010, 06:09:14 pm by Saturn2888 »

alvinquah

  • Zen Warrior
  • ***
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: Network bonding for 1.4
« Reply #9 on: February 12, 2010, 04:35:00 am »
can someone help on this? thanks  alot!

alvinquah

  • Zen Warrior
  • ***
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: Network bonding for 1.4
« Reply #10 on: March 08, 2010, 09:05:12 am »
anyone can help? thanks