<link href="https://fonts.googleapis.com/css?family=Roboto:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&amp;display=swap" rel="stylesheet"/>
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 

Related Posts

 

Comments 1

Guest - andilge on Tuesday, 09 January 2024 20:15

use save after commit to apply your changes to the NVRAM or all changes get lost on reboot.

use save after commit to apply your changes to the NVRAM or all changes get lost on reboot.
Already Registered? Login Here
Friday, 03 October 2025
You can help support this website by buying me a coffee!
Buy Me A Coffee