Need to have an IP address assigned when link is down
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Triaged
|
Wishlist
|
Danilo Egea Gondolfo |
Bug Description
When configuring network via /etc/network/
When the networking is configured via netplan (either via networkd or via NetworkManager), an IP address is assigned to the connection, so when there's no cable connected, there's no IP address assigned. The only working way to assign an address that doesn't disappear on link down I've found is via 'ip addr add' command, which is inconvenient because it's not persistent.
If there's a way of assigning a permanent (not link-dependent) IP address to an interface, it should be described in the documentation. If there's no such way, probably it needs to be implemented. There's some software on the market that uses IP addresses as a way of node identification, and link-dependand address assignment greatly interferes with such approach.
Changed in netplan: | |
assignee: | nobody → Danilo Egea Gondolfo (danilogondolfo) |
tags: | added: foundations-todo |
Changed in netplan: | |
importance: | Undecided → Wishlist |
Changed in netplan: | |
status: | Incomplete → Triaged |
tags: | removed: foundations-todo |
Thank you for the bug report, I wonder if systemd-networkd's ActivationPolicy [0] setting would make any difference in your setup? As controlled by Netplan's "activation-mode" setting. Maybe in addition to the "ignore-carrier"[1] / "ConfigureWitho utCarrier" setting.
[0] https:/ /www.freedeskto p.org/software/ systemd/ man/systemd. network. html#Activation Policy= /netplan. io/reference /www.freedeskto p.org/software/ systemd/ man/systemd. network. html#ConfigureW ithoutCarrier=
[1] https:/
[2] https:/