No support for interface labels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Fix Released
|
Wishlist
|
Unassigned | ||
nplan (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
In the old /etc/network/
auto eth0
iface eth0 inet static
address aaa.aaa.aaa.aaa
netmask 255.255.255.0
gateway aaa.aaa.aaa.1
auto eth0:0
iface eth0:0 inet static
address bbb.bbb.bbb.bbb
netmask 255.255.255.0
This is not possible to achieve with the netplan. The only exisiting posibilities are either to create a VLAN, which may be not an option in some networks where you have no access to other hosts, or to define both addresses for one interface:
network:
version: 2
renderer: networkd
ethernets:
eth0:
gateway4: aaa.aaa.aaa.1
This solution is not optimal either, because configuring iptables or some services may require specific interface name for a single network.
It should be possible to add the same physical interfaces with different networks and different alias names.
Changed in nplan (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in nplan (Ubuntu): | |
status: | Triaged → In Progress |
Changed in nplan (Ubuntu): | |
status: | In Progress → Triaged |
summary: |
- No virtual interfaces + No support for interface labels |
description: | updated |
tags: | added: id-5e98792c0fbd366c03967e8d |
Changed in netplan: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
This is called an interface label, the iproute2 syntax is as follows:
ip address add bbb.bbb.bbb.bbb/24 dev eth0 label eth0:0
netplan should support this configuration.