1

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

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 ]
| 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.