Netplan not connecting bridge with static IP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
System is Xubuntu 20.04, built up from Xubuntu-core base.
I have a very simple bridge consisting of one ethernet interface, which I need for bridging to QEMU/KVM vms. It used to work properly on 18.04.
The .yaml file is as follows:
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
dhcp4: no
bridges:
br0:
dhcp4: no
dhcp6: no
addresses: [ 192.168.1.65/24 ]
gateway4: 192.168.1.1
nameservers:
addresses: [ 192.168.1.1 ]
interfaces:
- enp3s0
On logging in immediately after bootup, I see that br0 is UP, but has no IP address assigned to it.
syslog contains the item:
systemd-
If I run "sudo netplan apply", either after logging in or as a @reboot cron job, the bridge then connects with no problem.
If I change br0 to dhcp4: yes (and remove addresses, gateway4 and nameservers), br0 connects automatically on bootup. I can tweak dnsmasq on the router so that the machine gets the IP I want every time, but I'd prefer to be able to set a static IP address and have it work.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: netplan.io 0.98-0ubuntu4
ProcVersionSign
Uname: Linux 5.4.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu26
Architecture: amd64
CasperMD5CheckR
Date: Sat Apr 11 22:44:49 2020
InstallationDate: Installed on 2020-04-08 (3 days ago)
InstallationMedia: Xubuntu Core 20.04 - amd64 - 20200403
SourcePackage: netplan.io
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.