Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[Network]
Address=192.168.10.152/24
Gateway=192.168.10.254
DNS=8.8.8.8

After I have added this file I then reboot the server to bring up the new network settingsNote.  When creating the network address the network mask is appended on to the IP address with a / followed by 27 (192.168.180.101/27) in our case for our network mask, /24 for 255.255.255.0.  See below. 


After adding this file do the following at the command line 

sudo systemctl restart systemd-networkd

You will have to start a new ssh session to the new IP address.


Note.  When creating the network address the network mask is appended on to the IP address with a / followed by 27 (192.168.180.101/27) in our case for our network mask, /24 for 255.255.255.0.  See below.

...