Hi,
I plan to switch to networkd on next debian image (bullseye) to not install the old ifupdown.
Have anyone tried it before and give tips how to put gmac (ethx) up and configure dsa ports?
Maybe vlan, pppoe and ipv6-over-ipv4 (hurrican electric tunnel) configuration. If anybody has this already done i can save the time for try and error
have eth0 working
/etc/systemd/network/eth0.network:
[Match]
Name=eth0
[Network]
DHCP=no
LinkLocalAddressing=no
ConfigureWithoutCarrier=true
/etc/systemd/network/wan.network
[Match]
Name=wan
[Network]
BindCarrier=eth0
ConfigureWithoutCarrier=true
IPForward=yes
IPMasquerade=yes
Address=192.168.0.18/24
Gateway=192.168.0.10
#DNS=192.168.0.10
now i try to setup lanbridge like it’s done here
i’ve created 3 files to do this:
/etc/systemd/network/lanbr.netdev
[NetDev]
Name=lanbr0
Kind=bridge
[Bridge]
DefaultPVID=1
VLANFiltering=1
/etc/systemd/network/lanbr.network
[Match]
Name=lanbr0
[Network]
Address=192.168.1.1/24
/etc/systemd/network/lan.network
[Match]
Name=lan0 lan1 lan2 lan3
[Network]
BindCarrier=lanbr0
Bridge=lanbr0
binding seems to work, but it ip-address is not set (second file)
5: lan0@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master lanbr0 state DOWN group default qlen 1000
link/ether 3a:5d:98:f7:50:8b brd ff:ff:ff:ff:ff:ff
6: lan1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master lanbr0 state DOWN group default qlen 1000
link/ether 3e:de:03:53:13:70 brd ff:ff:ff:ff:ff:ff
7: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master lanbr0 state DOWN group default qlen 1000
link/ether 66:8a:45:e7:49:14 brd ff:ff:ff:ff:ff:ff
8: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master lanbr0 state DOWN group default qlen 1000
link/ether 0a:81:22:f8:21:57 brd ff:ff:ff:ff:ff:ff
9: lanbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:29:84:c3:04:47 brd ff:ff:ff:ff:ff:ff
any idea why?
edit: i need ConfigureWithoutCarrier=true in the network-section, then address is set…
currently i have problems with Gateway not set for wan
syslog says
wan: Could not set route: Nexthop has invalid gateway. Network is unreachable
but gateway is same subnet as wan’s IP-address
any idea? Found it (ConfigureWithoutCarrier must not be set for wan)
Seems like pppoe and ifup/ifdown is not possible…bad seems it can only be started with systemd-service
at least i have eth0/wan with vlan/lanbridge working with systemd now
bpi-r2_networkd.tar.gz (606 Bytes)