create an alias on network card using netplan on Ubuntu server

how to configure two ip (192.168.140.10/24 - 192.168.57.192/25) on same network card on Ubuntu server 18.4.1.using netplan

1 Answer

From the Netplan Examples page, here is the example showing how to create 2 IPs in different networks on the same interface.

network: version: 2 renderer: networkd ethernets: enp3s0: addresses: - 10.100.1.38/24 - 10.100.1.39/24 gateway4: 10.100.1.1

You should also be able to use a list notation as follows:

 ethernets: enp3s0: addresses: [ 10.100.1.38/24, 10.100.1.39/24 ]

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like