Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 558432 - sys-apps/systemd-218-r3 bonding network not work
Summary: sys-apps/systemd-218-r3 bonding network not work
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-22 16:27 UTC by Christophe DAPREMONT
Modified: 2015-09-07 18:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe DAPREMONT 2015-08-22 16:27:39 UTC
Hi,

with sys-apps/systemd-218-r3 i use systemd-network for setup my lan
and have a bug with bonding, the bond do not up until i manually start it with :

# ifenslave bond0 enp8s0 eno1

this bug is describe here :
http://superuser.com/questions/722823/systemd-networkd-does-not-enslave-interfaces-on-bond

and they say this bug is solved in systemd-211, but not for gentoo

my basic setup with 3 network cards 2 for bond and 1 for wan:

in /etc/systemd/network/10-static.network (ip configuration for my wan card)

[Match]
Name=enp3s0

[Network]
DNS=89.233.43.71

[Address]
Address=192.168.253.5/24

[Route]
Gateway=192.168.253.254

in /etc/systemd/network/11-bond0.netdev (bond0 setup)

[NetDev]
Name=bond0
Kind=bond

[Bond]
Mode=balance-rr
MIIMonitorSec=1s
UpDelaySec=1s
DownDelaySec=1s

in /etc/systemd/network/12-NetworkCardToBond.network (add 2 ethernet card to bond)

[Match]
Name=enp8s0 eno1

[Network]
Bond=bond0

in /etc/systemd/network/13-bond0.network (ip configuration for my bond lan)

[Match]
Name=bond0

[Network]
Address=192.168.0.1/22
Gateway=192.168.0.1


# systemctl start systemd-networkd.service
# networkctl list
IDX LINK             TYPE               OPERATIONAL SETUP     
  1 lo               loopback           carrier     unmanaged 
  2 eno1             ether              carrier     unmanaged 
  3 enp8s0           ether              carrier     unmanaged 
  4 sit0             sit                off         unmanaged 
  5 enp3s0           ether              routable    configured
  6 bond0            ether              no-carrier  configured

The bond become ready after ifenslave manually with
# ifenslave bond0 enp8s0 eno1
that need to install: net-misc/ifenslave

# networkctl list
IDX LINK             TYPE               OPERATIONAL SETUP     
  1 lo               loopback           carrier     unmanaged 
  2 eno1             ether              carrier     unmanaged 
  3 enp8s0           ether              carrier     unmanaged 
  4 sit0             sit                off         unmanaged 
  5 enp3s0           ether              routable    configured
  6 bond0            ether              routable    configured

Thanks.
Comment 1 Mike Gilbert gentoo-dev 2015-08-22 16:56:26 UTC
We are not doing anything special to systemd-networkd as part of Gentoo packaging. Please try with the latest systemd, and seek help upstream if you still have trouble.
Comment 2 Pacho Ramos gentoo-dev 2015-09-07 18:54:22 UTC
Also try with 225 please