Skip to content

Instantly share code, notes, and snippets.

@khiemdoan
Created October 10, 2023 02:06
Show Gist options
  • Save khiemdoan/0fb650c5a29d075c22d319c1a006a332 to your computer and use it in GitHub Desktop.
Save khiemdoan/0fb650c5a29d075c22d319c1a006a332 to your computer and use it in GitHub Desktop.
Set static IP for Ubuntu 22.04
# /etc/netplan/00-installer-config.yaml
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: false
dhcp6: false
addresses:
- 192.168.10.10/24
routes:
- to: default
via: 192.168.10.1
nameservers:
addresses: [192.168.10.1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment