You are not logged in.

#1 2012-05-31 13:55:48

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Help with netowork bonding

I need help... i had the network bond setup properly until the last update of netcfg: Since then, i cannot start the bonded interface: It gives an error saying that eth0 and eth1 are down and cannot make the bonding... I tried to fix it myself but failed to.... someone can give me a hand? The wiki is outdated because the configuration from /etc/rc.conf on this matter should be commented and configured somewhere else....

EDIT: Sorry, i kind of panicked... i will collect all the info i can to ellaborate a bit more the case and post an answer.... BWT.... i had to FORCE the update of netcfg because while installing it was complaining that /etc/network.d/examples/bonding already existed....

As said... i will post back with more info.... but basically, when i try to bring the bonding profile up, bonding eth0 and eth1, /etc/rc.d/network-profiles complains that those interfaces are down.....

Last edited by Xi0N (2012-05-31 15:21:40)

Offline

#2 2012-05-31 15:17:28

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Help with netowork bonding

/etc/network.d/examples/bonding seems to cover it - although clearly we have no idea what you're currently trying to use, as you haven't provided any details.

Offline

#3 2012-05-31 15:40:33

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: Help with netowork bonding

Ok, the setup is as follows:

De-activated network daemon and using net-profiles daemon in /etc/rc.conf
Added the bonding module in /etc/rc.conf
Then, I created a profile under /etc/network.d/bonded

CONNECTION="bonding"
INTERFACE="bond0"
SLAVES="eth0 eth1"
IP="static"
ADDR="192.168.1.245"
GATEWAY="192.168.1.155"
DNS=("192.168.1.2")

/etc/conf.d/netcfg has only one line enabled:
NETWORKS=(bonded)
The other ones are commented out

If I run /etc/rc.d/net-profiles start, i get the message:
bonded up
> Slave eth0 is down and timeout reached
> Slave eth1 is down and timeout reached
> No slaves up, aborting

> No profile Started


That profile used to work until the upgrade.......... if any more info is needed, ask me and i will post it ASAP... sad

Last edited by Xi0N (2012-05-31 15:41:23)

Offline

#4 2012-05-31 15:50:51

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Help with netowork bonding

Well, according to the file tomk mentioned (and net-profiles manpage), the CONNECTION line in the config file should be 'bond', not 'bonding'.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2012-05-31 16:07:24

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: Help with netowork bonding

Wow... that file is different for me....... i will try to re-install netcfg... i'm afraid something remains in an old version and something else is in a new one......... guess this is pretty much messed up, isn't it?

EDIT: I reinstalled and seems better... at least the files are different now.... as they should be...

Still, i get a message saying "the interface bond0 already exists".......

I noticed i had a package from aur called netcfg-bonding that i actually uninstalled, thats why before i used the "bonding" string instead of "bond"..... i think i should unload the "bonding" module that perhaps is still floating around... i dunno....

Last edited by Xi0N (2012-05-31 16:31:00)

Offline

#6 2012-05-31 16:39:35

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: Help with netowork bonding

Yes, that was the issue... i still get an error like:

RTLINK: file already exists.... but at least, the network interface starts up...

The problem was the package netcfg-bonding, you must uninstall it and remove "bonding" from the daemons array in /etc/rc.conf

Another thing: ifenslave is a mandatory dependency, because its needed for bonding interfaces. smile

Offline

#7 2012-05-31 20:44:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Help with netowork bonding

Mandatory for bonding, yes - optional for netcfg, as not all users will be using bonded interfaces.

Post a report in the bugtracker about that.

Offline

#8 2012-06-01 05:59:37

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: Help with netowork bonding

tomk wrote:

Post a report in the bugtracker about that.

I don't know how to do this....

Offline

#9 2012-06-01 06:17:22

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Help with netowork bonding

Bugtracker. Just register and you'll be able to open a BR.


Burninate!

Offline

#10 2012-06-01 06:27:33

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: Help with netowork bonding

Cool!! I have a bunch of suggestions.......
Thanks smile

Offline

Board footer

Powered by FluxBB