
Sometimes you might need to update the WAN IP address of a UXG device (UXG Lite, UXG Max, UXG Pro, UXG Fiber or UXG Enterprise) via SSH for a multitude of reasons.
For example, if you use a static IP address to connect to your ISP and this changes for any reason, you can easily update the WAN IP address without having to reset and readopt the UXG.
Thankfully, this can be done via SSH if required. To do this, first log into the UXG via SSH. Follow our guide here for more detailed instructions.
First, run ifconfig to check the list of interfaces.
ifconfigNext, flush out the current IP address from the UXG. In this example, we used a UXG Lite, with eth1 being the WAN interface and eth0 being the LAN.
sudo ip addr flush dev eth1Then, set a static IP address on the WAN port.
sudo ip addr add ipaddress/netmask dev eth1Example
sudo ip addr add 172.18.38.5/24 dev eth1Now, set the gateway IP address
sudo ip route add default via gatewayip dev eth1Example
sudo ip route add default via 172.18.38.1 dev eth1Once this is done, the UXG will connect back to the UniFi Controller. What is important to remember is that this configuration change is only temporary and will only be overwritten whenever the UXG reboots. So make sure to update the new WAN connection details within UniFi.
No spam. Unsubscribe anytime.
Newsletter Subscriber
Newsletter Subscriber
Newsletter Subscriber