[systemd-devel] systemd-networkd IP assignments for wla/usb devs are ignored; using same IP as local eth lan ?
PGNet Dev
pgnet.dev at gmail.com
Thu Apr 9 01:47:59 UTC 2020
I'm migrating a linux box to systemd-network use,
uname -rm
5.6.3-24.ge840c7b-default x86_64
rpm -qa | grep ^systemd-2
systemd-234-lp151.26.13.1.x86_64
systemctl list-unit-files | grep systemd-net
systemd-networkd-wait-online.service enabled
systemd-networkd.service enabled
systemd-networkd.socket enabled
I've got two ethernet ports, and two USB wifi dongles.
I've config'd
/etc/systemd/network/20-enp2s0.network
[Match]
Name=enp2s0
[Network]
DHCP=ipv4
DefaultRouteOnDevice=true
IPForward=0
LinkLocalAddressing=ipv4
IPv6AcceptRA=0
/etc/systemd/network/20-enp3s0.network
[Match]
Name=enp3s0
[Network]
Address=172.30.11.51/22
IPForward=1
IPv6AcceptRA=0
/etc/systemd/network/21-wlp0s16u2u1.network
[Match]
Name=wlp0s16u2u1
[Network]
Address=172.30.12.51/24
Gateway=172.30.12.51
IPForward=1
LinkLocalAddressing=ipv4
IPv6AcceptRA=0
/etc/systemd/network/21-wlp0s16u2u2.network
[Match]
Name=wlp0s16u2u2
[Network]
Address=172.30.13.51/24
Gateway=172.30.13.51
IPForward=1
LinkLocalAddressing=ipv4
IPv6AcceptRA=0
the IPs/gateways assigned are identical to what's running on the system, using distro-native networking, prior to the switch to systemd-networkd
on boot
enp2s0
is correctly config'd from upstream dhcp.
next,
enp3s0
my lan-facing intfc, is up correctly too
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.30.11.51 netmask 255.255.252.0 broadcast 172.30.11.255
...
no prob with loopback,
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
...
BUT,
the two wlan intfcs ARE up, but configured with the SAME ip/mask as the local lan, NOT the one spec'd in the config
wlp0s16u2u1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.30.11.51 netmask 255.255.252.0 broadcast 172.30.11.255
...
wlp0s16u2u2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.30.11.51 netmask 255.255.252.0 broadcast 172.30.11.255
...
clearly, others are config'ing wlans.
what needs to be changed/added in my config to get those wlan IPs correctly allocated?
More information about the systemd-devel
mailing list