0

Until Ubuntu 16.04, I've set label (eg: eth0:1) to secondary IP address with the following /etc/network/interfaces.

# primary address
auto eth0
iface eth0 inet static
  address  192.0.2.100
  netmask  255.255.255.0
  gateway  192.0.2.1

# secodary address with label "eth0:1"
auto  eth0:1
iface eth0:1 inet static
  address 192.0.2.20
  netmask 255.255.255.0

How can I set lable (eg: eth0:1) with Ubuntu 18.04 and netplan?

I read https://netplan.io/reference but cannot find.

0

Netplan does not support interface aliases (what you are calling here a "label"). The convention is to assign multiple addresses to the interface instead.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.