Skip to content

Instantly share code, notes, and snippets.

@gmassawe
Created May 21, 2019 14:04
Show Gist options
  • Save gmassawe/cc56228d0f3db85a20120171ef5f56ea to your computer and use it in GitHub Desktop.
Save gmassawe/cc56228d0f3db85a20120171ef5f56ea to your computer and use it in GitHub Desktop.
Ubuntu Server 18.04 - Static IP - Netplan
# Netplan static IP config Ubuntu Server 18.04
network:
version: 2
renderer: networkd
ethernets:
enp6s7:
dhcp4: no
dhcp6: no
addresses: [xxx.xxx.xxx.xxx/xx]
gateway4: xxx.xxx.xxx.xxx
nameservers:
addresses: [xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx]
enp7s8:
dhcp4: true
dhcp6: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment