You are not logged in.

#1 2015-10-02 03:45:18

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

Netctl bond -> bridge howto?

I currently have two network adapters in a network bond (bond0) which are then bridged through to br0 on my VM host.  I have set both of these interfaces up in netctl and enabled them both as per below, but I don't believe it is correct due to errors I'm seeing in the syslog.

/etc/netctl/bond0
Description="A bonded interface"
Interface=bond0
Connection=bond
BindsToInterfaces=(enp2s0 eno1)

/etc/netctl/bridge
Description="Example Bridge connection"
Interface=br0
Connection=bridge
BindsToInterfaces=(bond0)
IP=static
Address="10.1.0.10/23"
Gateway="10.1.1.254"

The error I'm seeing in the syslog:
[adrian@arch_vh0 netctl]$ netctl status bond0
netctl@bond0.service - A bonded interface
   Loaded: loaded (/etc/systemd/system/netctl@bond0.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2015-10-01 21:56:29 CDT; 44min ago
     Docs: man:netctl.profile(5)
  Process: 419 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
Main PID: 419 (code=exited, status=1/FAILURE)

Oct 01 21:56:29 arch_vh0 systemd[1]: Starting A bonded interface...
Oct 01 21:56:29 arch_vh0 network[419]: Starting network profile 'bond0'...
Oct 01 21:56:29 arch_vh0 network[419]: RTNETLINK answers: File exists
Oct 01 21:56:29 arch_vh0 network[419]: Neither IP, nor IP6 was specified
Oct 01 21:56:29 arch_vh0 network[419]: Failed to bring the network up for profile 'bond0'
Oct 01 21:56:29 arch_vh0 systemd[1]: netctl@bond0.service: Main process exited, code=exited, status=1/FAILURE
Oct 01 21:56:29 arch_vh0 systemd[1]: Failed to start A bonded interface.
Oct 01 21:56:29 arch_vh0 systemd[1]: netctl@bond0.service: Unit entered failed state.
Oct 01 21:56:29 arch_vh0 systemd[1]: netctl@bond0.service: Failed with result 'exit-code'.

I do seem to have good network connectivity (but am not sure how to test that I'm actually in a bond, and the bridge shows up properly in brctl show.  I have a feeling they shouldn't *both* be enabled in netctl but disabling the bond0 makes the bridge fail because it bond0 doesn't exist for it to bridge to.

Any help would be appreciated!

Offline

Board footer

Powered by FluxBB