Just would like to understand how you define static IP addresses for Ubuntu 17.10 server with multiple NIC adapters (i.e.eth0 and eth1) using the /etc/netplan directory. (basically a continuance from this post Ubuntu 17.10 will not accept static IP and thanks to everyone who answered this also)
here's an example of my new /etc/netplan/01-netcfg.yaml which works a treat.
# This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: eth0: dhcp4: no dhcp6: no addresses: [192.168.10.254/24] gateway4: 192.168.10.1 nameservers: addresses: [192.168.10.1,192.168.10.252]
how would I define eth1 so it could be on a different subnet (e.g 192.168.20.10/24)?
thanks in advance also!