* docs: rework files structure * rewrite documentation entrypoint * update category files and use yml * add manuals entry page * update admin-manual titles and page order * create releases sections * move ssl configuration to reverse proxy * docs: update website vars and links * update release note codeblock syntax key * resurect troubleshooting guide * Update freeipa custom auth documentation * add notice about the state of the documentation * update the backup documentation * tmp: allow to deploy the website for preview * Don't use require.resolve for plugins * Update the main page link dest * update development environment title * rewrite the install/upgrade/migrate as guides * update website docs sections links * Fix urls * move release note to documentation * move home links to vars files * tmp: update deploy url * add react to tsconfig to handle jsx linting * fix: replace absolute url to relative path to files * tmp: allow CI Website dpeloy on working branch * Update release note title * use default syntax highlighting theme * update the troubleshooting guide * Wording * use CodeBlock components * Better prose * remove api_client config section * fix prose errors * update import prefix for vars file * reroder docs manuals links * use sentence capitalization for page titles * Wording * missing word * Update note about syslog log file * wording
44 lines
1.1 KiB
Markdown
44 lines
1.1 KiB
Markdown
---
|
|
title: How to setup a static ip using Netplan
|
|
---
|
|
|
|
This tutorials will walk you though the steps required to configure a server static IP address by modifying the [Netplan](https://netplan.io/reference/) configuration.
|
|
|
|
## 1. Edit the configuration
|
|
|
|
First find the right Netplan configuration filename, and edit the file:
|
|
|
|
```bash
|
|
cd /etc/netplan && ls # find the netplan filename
|
|
sudo nano ##-network-manager-all.yaml
|
|
```
|
|
|
|
If the Netplan configuration is empty, fill in the file with the example below. Otherwise,
|
|
input the IP address reserved for the server in `xxx.xxx.xxx.xxx/yy` format, the gateway (the IP address
|
|
of your router), and your DNS server's address.
|
|
|
|
```yaml
|
|
network:
|
|
version: 2
|
|
renderer: networkd
|
|
ethernets:
|
|
enp3s0:
|
|
addresses: [192.168.88.8/24]
|
|
gateway4: 192.168.88.1
|
|
nameservers:
|
|
addresses: [192.168.88.1]
|
|
```
|
|
|
|
:::tip
|
|
|
|
If you don't have your own DNS server you can use the router's address in most cases or a public DNS server like Google `8.8.8.8` or Cloudflare `1.1.1.1`.
|
|
|
|
:::
|
|
|
|
## 2. Apply the configuration
|
|
|
|
After the Netplan file has been saved, apply the changes by running:
|
|
|
|
```bash
|
|
sudo netplan apply
|
|
```
|