Last active
December 10, 2023 07:15
-
-
Save Agent-E11/cfb48376c95774b656274dd0cebd5562 to your computer and use it in GitHub Desktop.
basic server `netplan` config
This file contains 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
# Make sure that the `/etc/netplan` folder is not accessable by users other than root | |
# e.g. `chmod 660 -R /etc/netplan` | |
network: | |
version: 2 | |
renderer: NetworkManager # You can also use `networkd` | |
ethernets: | |
enp0s3: # It is possible that you will need to change this. Run `ip address show` to list your network interfaces | |
dhcp4: no | |
addresses: [192.168.0.100/24] # Set your own static IP(s) here (using CIDR notation) | |
routes: | |
- to: default | |
via: 192.168.0.1 # Your default gateway | |
nameservers: | |
addresses: [192.168.0.1,1.1.1.1] # DNS servers (I chose my router and cloudflare as a backup) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment