[Bug 1793189] Re: "netplan apply" does not apply changes to netmask when CIDR notation modified on static IP
Lukas Märdian
1793189 at bugs.launchpad.net
Thu Jan 25 13:57:43 UTC 2024
I cannot reproduce this with Netplan 0.99 on Bionic. Please re-open if
this is still an issue for you.
root at bb:~# cat /etc/netplan/50-cloud-init.yaml
network:
version: 2
ethernets:
eth0:
dhcp4: true
addresses: [10.10.10.23/23]
root at bb:~# netplan apply
root at bb:~# ip a show dev eth0
88: eth0 at if89: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:16:3e:bd:da:7d brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.10.10.23/23 brd 10.10.11.255 scope global eth0
valid_lft forever preferred_lft forever
inet 10.238.94.182/24 brd 10.238.94.255 scope global dynamic eth0
valid_lft 3591sec preferred_lft 3591sec
inet6 fd42:7213:f20e:bd74:216:3eff:febd:da7d/64 scope global mngtmpaddr noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::216:3eff:febd:da7d/64 scope link
valid_lft forever preferred_lft forever
root at bb:~# vim /etc/netplan/50-cloud-init.yaml
root at bb:~# cat /etc/netplan/50-cloud-init.yaml
network:
version: 2
ethernets:
eth0:
dhcp4: true
addresses: [10.10.10.23/24]
root at bb:~# netplan apply
root at bb:~# ip a show dev eth0
88: eth0 at if89: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:16:3e:bd:da:7d brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.10.10.23/24 brd 10.10.10.255 scope global eth0
valid_lft forever preferred_lft forever
inet 10.238.94.182/24 brd 10.238.94.255 scope global dynamic eth0
valid_lft 3595sec preferred_lft 3595sec
inet6 fd42:7213:f20e:bd74:216:3eff:febd:da7d/64 scope global mngtmpaddr noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::216:3eff:febd:da7d/64 scope link
valid_lft forever preferred_lft forever
** Changed in: netplan.io (Ubuntu)
Status: New => Invalid
--
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/1793189
Title:
"netplan apply" does not apply changes to netmask when CIDR notation
modified on static IP
Status in netplan.io package in Ubuntu:
Invalid
Bug description:
So, somebody who hadn't had enough coffee one morning typoed the CIDR
notation in /etc/netplan/01-netcfg.yaml on their server, resulting in
the wrong netmask for the static IP. I corrected the CIDR notation,
but "netplan apply" would not pick up the new info and update the
netmask. Tested across four servers running 18.04 and same behavior
occurred; required a reboot to get them to pick up the changed netmask
info.
Thanks!
-Suzanne
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1793189/+subscriptions
More information about the foundations-bugs
mailing list