Setting A Static IP On The Nodal Agent
Setting a static IP on the Nodal Agent
Introduction
A newly deployed Nodal VPN agent will default to using DHCP to attempt to automatically request an IP address on your network.
If you need to set a static IP address instead, this article will explain how.
Setting a static IP
Log in to your Nodal Agent terminal using nodal-agent as the username, plus the password you set on initial deployment.
Edit the interfaces file with the following command:
sudo nano /etc/network/interfaces
Delete the last line of this file
iface eth0 inet dhcp
and replace it with
iface eth0 inet static
address 192.168.0.2
gateway 192.168.0.1
netmask 255.255.255.0
Replacing the values of address, gateway and netmask as appropriate for your network. Save the file with CTRL-X, then Y, then Enter.
Restart the networking service with:
sudo systemctl restart networking
Your Nodal Agent should now be running on the new IP address