Skip to content

Instantly share code, notes, and snippets.

@celeron633
Created March 26, 2023 13:58
Show Gist options
  • Save celeron633/0f511e6badd4cda0ecb9ec9a0e80a8df to your computer and use it in GitHub Desktop.
Save celeron633/0f511e6badd4cda0ecb9ec9a0e80a8df to your computer and use it in GitHub Desktop.
01-netcfg.yaml for netplan
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp1s0:
dhcp4: no
addresses: [192.168.31.2/24]
gateway4: 192.168.31.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment