"netplan apply" does not apply changes to netmask when CIDR notation modified on static IP
Bug #1793189 reported by
Suzanne Palmer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
So, somebody who hadn't had enough coffee one morning typoed the CIDR notation in /etc/netplan/
Thanks!
-Suzanne
To post a comment you must log in.
I cannot reproduce this with Netplan 0.99 on Bionic. Please re-open if this is still an issue for you.
root@bb:~# cat /etc/netplan/ 50-cloud- init.yaml
addresses: [10.10.10.23/23] MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 f20e:bd74: 216:3eff: febd:da7d/ 64 scope global mngtmpaddr noprefixroute 3eff:febd: da7d/64 scope link
network:
version: 2
ethernets:
eth0:
dhcp4: true
root@bb:~# netplan apply
root@bb:~# ip a show dev eth0
88: eth0@if89: <BROADCAST,
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:
valid_lft forever preferred_lft forever
inet6 fe80::216:
valid_lft forever preferred_lft forever
root@bb:~# vim /etc/netplan/ 50-cloud- init.yaml 50-cloud- init.yaml
addresses: [10.10.10.23/24] MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 f20e:bd74: 216:3eff: febd:da7d/ 64 scope global mngtmpaddr noprefixroute 3eff:febd: da7d/64 scope link
root@bb:~# cat /etc/netplan/
network:
version: 2
ethernets:
eth0:
dhcp4: true
root@bb:~# netplan apply
root@bb:~# ip a show dev eth0
88: eth0@if89: <BROADCAST,
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:
valid_lft forever preferred_lft forever
inet6 fe80::216:
valid_lft forever preferred_lft forever