Created
October 10, 2023 02:06
-
-
Save khiemdoan/0fb650c5a29d075c22d319c1a006a332 to your computer and use it in GitHub Desktop.
Set static IP for Ubuntu 22.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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