You are not logged in.

#1 2015-10-03 11:59:22

Lindhe
Member
Registered: 2015-05-13
Posts: 15

[SOLVED] Bond network needs restart before it works

I've configured a bond network connection with netctl,

/etc/netctl/bonding:

Description="A bonded interface"
Interface=bond0
Connection=bond
BindsToInterfaces=(enp8s0 eno1)
IP=static
Address="192.168.1.100/23"
Gateway="192.168.0.1"
Mode=802.3ad

and I've done

# netctl start bonding
# netctl enable bonding

and

$ netctl is-enabled bonding

returns true,

but the network will not start at boot until I run

# netctl restart bonding

and then it works flawlessly.

Any idea what the problem could be?

Last edited by Lindhe (2015-10-04 18:57:52)

Offline

#2 2015-10-04 15:48:20

EzdineG
Member
Registered: 2014-11-09
Posts: 3

Re: [SOLVED] Bond network needs restart before it works

Lindhe, do you still have the problem if you comment out the "Mode=802.3ad" and add the following to  /etc/modprobe.d/bonding.conf :

options bonding mode=4 miimon=100

I've found that the Mode= line is ignored completely when I check the bond's actual status via

cat /proc/net/bonding/bond0

Last edited by EzdineG (2015-10-04 15:50:31)

Offline

#3 2015-10-04 18:56:30

Lindhe
Member
Registered: 2015-05-13
Posts: 15

Re: [SOLVED] Bond network needs restart before it works

Cool, that did indeed do a difference. Thank you very much. It starts up just fine now, even if it takes a few seconds before it establish a connection (i mount some nfs-shares on boot, which waits for a connection).

Do you think there might be something I could do to connect quicker? In particular I'm thinking about the lacp rate - would it make a difference to have it fast instead of slow? I have not quite grasped what it does. It's the interval between LACP PDU's, right? But what will the actual difference be?

While on the subject - do one need to configure the LACP rate on both the switch and host, or only on the switch?

Offline

#4 2015-10-29 18:52:04

Lindhe
Member
Registered: 2015-05-13
Posts: 15

Re: [SOLVED] Bond network needs restart before it works

I set lacp rate in /etc/modprobe.d/bonding.conf like so:

options bonding mode=4 miimon=100 lacp_rate=1

and I found no measureable change in how fast it connected on boot.

Offline

Board footer

Powered by FluxBB