Skip to content

Instantly share code, notes, and snippets.

@Sy3Omda
Created June 11, 2024 20:01
Show Gist options
  • Save Sy3Omda/f62094b3e63c3dbd5e340a57f91a1e4f to your computer and use it in GitHub Desktop.
Save Sy3Omda/f62094b3e63c3dbd5e340a57f91a1e4f to your computer and use it in GitHub Desktop.
# set static IP in Ubuntu Server
network:
version: 2
renderer: networkd
ethernets:
ens33:
addresses:
- 192.168.1.100/24
routes:
- to: default
via: 192.168.1.1
nameservers:
addresses: [1.1.1.1, 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