In the old /etc/network/interfaces
I could define a virtual interface:
auto enp7s0f0
iface enp7s0f0 inet static
address aaa.aaa.aaa.aaa
netmask 255.255.255.0
gateway aaa.aaa.aaa.1
auto enp7s0f0:0
iface enp7s0f0:0 inet static
address bbb.bbb.bbb.bbb
netmask 255.255.255.0
How this can be achieved with netplan on Ubuntu Server 17.10?
Right now I have:
network:
version: 2
renderer: networkd
ethernets:
enp7s0f0:
addresses: [aaa.aaa.aaa.aaa/24]
gateway4: aaa.aaa.aaa.1
How to add virtual interface with the address bbb.bbb.bbb.bbb
?
ip
command, but how to to this with the netplan. However, it seems that simply netplan does not have such functionality. I have already filled a bug report. – Maciek D. Feb 11 '18 at 16:37