Single/Dual NIC Static IP setup
How to setup static IP on single/dual nic using netplan on ubuntu 22.04 and above
Setting up a static IP address on single NIC on Ubuntu 22.04 and higher using netplan
netplannetwork: {config: disabled}network:
ethernets:
enp1s0:
dhcp4: true
version: 2
wifis: {}network:
ethernets:
enp1s0:
dhcp4: false
dhcp6: false
addresses:
- 192.168.50.111/24
routes:
- to: default
via: 192.168.50.1 # Replace with your gateway
nameservers:
addresses: [1.1.1.1, 8.8.8.8]
version: 2
wifis: {}Setting up a static IP address on dual NIC on Ubuntu 22.04 and higher using netplan
netplan Last updated