You are not logged in.

#1 2023-03-26 15:11:43

k4my4b
Member
Registered: 2020-11-08
Posts: 8

Bridge (atop bond) only gains IP when something is "plugged in" a port

Hi I've been scratching my head at this for too long sad
I've scoured both systemd.netdev and systemd.network man pages for information but I cannot figure out what's happening.
My intention is to run LXD on my server with a vlan aware bridge atop of a bond of 2 10gig nics (hooked up on the other end to a unifi dream machine pro via DACs) so that I can run different contianers on differnet vlans.
For visuals:

eno1---\
               \
                bond0---br0
               /
eno2---/

But I cannot figure out why the bridge doesn't gain network connectivity, until say I start LXD and it will create veth pairs for containers which "plug in" to the bridge/switch and then the bridge gets an ip (this only happens when I enable VLANFiltering).
I'm using systemd-networkd as mentioned previously and here's my config, I would really I appreciate if someone could point out what I'm doing wrong. Many thanks!

# /etc/systemd/network/00-eno1.network

[Match]
Name=eno1
Path=pci-0000:18:00.0

[Network]
Bond=bond0

[CAKE]
Bandwidth=10G
PriorityQueueingPreset=diffserv8
# /etc/systemd/network/00-eno2.network

[Match]
Name=eno2
Path=pci-0000:18:00.1

[Network]
Bond=bond0

[CAKE]
Bandwidth=10G
PriorityQueueingPreset=diffserv8
# /etc/systemd/network/bond0.netdev

[NetDev]
Name=bond0
Kind=bond

[Bond]
Mode=802.3ad
TransmitHashPolicy=layer2+3
MIIMonitorSec=1s
LACPTransmitRate=fast
UpDelaySec=2s
DownDelaySec=8s
# /etc/systemd/network/00-bond0.network

[Match]
Name=bond0

[Network]
BindCarrier=eno1 eno2
Bridge=br0
# /etc/systemd/network/br0.netdev

[NetDev]
Name=br0
Kind=bridge

[Bridge]
VLANFiltering=yes
STP=yes
DefaultPVID=none
# /etc/systemd/network/00-br0.network

[Match]
Name=br0

[Network]
DHCP=ipv4
ConfigureWithoutCarrier=yes

[DHCPv4]
UseDomains=yes
RouteMetric=100

[BridgeVLAN]
PVID=1
EgressUntagged=1
VLAN=1-100

Last edited by k4my4b (2023-03-26 15:40:01)

Offline

Board footer

Powered by FluxBB