This tutorial will guide you through the process of setting up a static IP address on your server by modifying the Netplan configuration.

 

1. Edit the Configuration:

To find the right Netplan configuration file, run these commands:

cd /etc/netplan && ls  # find the netplan filename
sudo nano ##-network-manager-all.yaml

If the Netplan configuration file is empty, fill it with the example below. If it's not, add the reserved IP address for the server in xxx.xxx.xxx.xxx/yy format, the gateway (IP address of your router), and the DNS server's address.

 

network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      addresses: [192.168.88.8/24]
      gateway4: 192.168.88.1
      nameservers:
        addresses: [192.168.88.1]

 

Note: If you don't have a DNS server, you can use the router's address or a public DNS server like Google (8.8.8.8) or Cloudflare (1.1.1.1).

 

2. Apply the Configuration:

After saving the Netplan file, apply the changes with this command:

sudo netplan apply

And that's it! You have successfully configured a static IP address using Netplan in Libretime.

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)