Adding Virtual Interfaces with DHCP

For Ubuntu Workstation, where Network Manager is handling networking, add 'address1' to the ipv4 section

sudo vim  /etc/NetworkManager/system-connections/Wired\ connection\ 1

[ipv4]
dns-search=
method=auto
address1=169.254.2.1/16,0.0.0.0

With ubuntu server, add a ':1' section
 
sudo vim /etc/network/interfaces

# The primary network interface
auto eno1
iface eno1 inet dhcp

auto eno1:1
iface eno1:1 inet static
address 169.254.2.2
netmask 255.255.0.0
broadcast 169.254.255.255
network 169.254.0.0

ip address

Comments