0

I have been working with the GUI Network Manager (Method 1 in the link below) for over a year on Ubuntu 20.04 to set static ip addresses for all Ubuntu devices.

While this solution has been working well so far, I have been wondering if there is a chance that:

  1. One Ubuntu device is removed from the network and the DHCP allocates that IP address to another device will there be a clash if the original Ubuntu device comes online?
  2. DHCP allocates the same IP address to another new device resulting in an IP clash with an already existing static Ubuntu device configured using the GUI network manager

Alternatively, /etc/netplan/ configurations seem to be better because they go through the DHCP to request for a static ip if possible (this is Method 2 in the link below).

TLDR: Is method 2 (The “Ubuntu Server” steps.) in the link below better than method 1 (The “Ubuntu Desktop” steps.) in the link?

Link: https://linuxconfig.org/how-to-configure-static-ip-address-on-ubuntu-18-10-cosmic-cuttlefish-linux

==== Edit, the answer I have come to accept, thanks Tom Yan ==== If the router is inaccessible, use Method 2 to request for a particular IP address first, if unable then a dynamic IP address will be set but at least this avoids IP conflicts with other devices if Method 1 was used. The best method would be to of course reserve an IP address (192.168.1.12) using the MAC address of the device by adjusting the DHCP settings on the router. One step further would to assign dynamic IP addresses outside of this range (192.168.1.50 to 192.168.1.150)

0 Answers0