[Bug 1872185] [NEW] Netplan not connecting bridge with static IP
Jane Atkinson
1872185 at bugs.launchpad.net
Sat Apr 11 10:49:25 UTC 2020
Public bug reported:
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-networkd[367]: br0: Could not set route: Nexthop has invalid
gateway. Network is unreachable
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
ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
Uname: Linux 5.4.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu26
Architecture: amd64
CasperMD5CheckResult: skip
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)
** Affects: netplan.io (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug focal
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1872185
Title:
Netplan not connecting bridge with static IP
Status in netplan.io package in Ubuntu:
New
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-networkd[367]: br0: Could not set route: Nexthop has invalid
gateway. Network is unreachable
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
ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
Uname: Linux 5.4.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu26
Architecture: amd64
CasperMD5CheckResult: skip
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1872185/+subscriptions
More information about the foundations-bugs
mailing list