1 minute reading time
(146 words)
Change UniFi Security Gateway (USG) LAN IP address before adoption using SSH
How to change UniFi Security Gateway (USG) LAN IP address before adoption using SSH and CLI commands
USG factory default IP address
The USG factory default IP address is 192.168.1.1. You will want to change this if your existing LAN subnet is different or if you want the USG to use a different IP address, for example, 192.168.1.254
Show USG IP addresses using CLI
Connect to the USG using SSH and login with the default username and password ubnt ubnt
# show ip addresses ip address
Set USG LAN IP address and subnet using CLI
# change to root user sudo su - # enter configuration mode configure # delete existing eth1 configuration delete interfaces ethernet eth1 # change eth1 ip address set interfaces ethernet eth1 address 192.168.1.254/24 # save changes commit # exit configuration mode exit
Comments