Set and Unset WAN Commands via CLI
Learn how to configure a static WAN IP address or set dynamic host addressing (DHCP) on a Neeve node using command-line interface commands via SSH.
Before connecting, ensure you have the following:
- An Ethernet cable connected from your laptop to the LAN B (Management) Port on the node.
- Your laptop's IP address configured within the same subnet range as the management port (
192.168.192.x). - The private SSH key saved on your local machine.
Step 1: Connect to the Node via SSH
- Open your terminal or command prompt.
- Navigate to the directory containing your SSH key or provide the full file path.
- Run the following command to log in:
ssh -i /path/to/<private-key>.pem iotium@192.168.192.168
Set Static WAN IP
To configure a static IP address for the WAN interface, enter the WAN configuration mode and apply your network settings:
set wan
(set wan) > ip --addr <IP-ADDR> --netmask <NETMASK> --gateway <GATEWAY>
(set wan) > save
(set wan) > exit
Unset WAN / Enable DHCP
To revert to Dynamic Host Configuration Protocol (DHCP) for dynamic IP assignment:
unset wan
(unset wan) >
(unset wan) > ip
(unset wan) > save
(unset wan) > exit
After applying the WAN configuration changes, verify that the new settings have taken effect by running the command below:
show interface
Sample snap
