Gain access to radio via ssh
open up the /tmp/system.cfg
Delete the following line. To move the cursor to the following line and type “dd” and vi will delete the whole line.
Add the following 5 lines. Hit “i” to enter vi insert mode.
br0 should be correct interface in most scenarios.
Save the file by hitting esc and then “:wq” followed by Return/Enter
Save the config changes and reboot the radio so it pulls an address.
/usr/etc/rc.d/rc.softrestart save && reboot
Initial setup from command line
ubnt@ubnt:~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
--------- ---------- --- -----------
br0 10.2.2.1/24 u/u Local Bridge
br0.73 - u/u
br0.75 - u/u
eth0 192.168.99.1/24 u/u Internet
eth1 - u/u Local Bridge
eth2 - u/D Local Bridge
eth3 - u/u eth3-pc1
eth4 - u/u eth4-printer
eth5 - u/u eth5-pc3
eth6 - u/u eth6-rotuer
eth7 - u/u eth7-extra
lo 127.0.0.1/8 u/u
Double tab in session to show more commands
add Add an object to a service
clear Clear system information
configure Enter configure mode
connect Establish a connection
copy Copy data
debug Enable debugging of specified routing protocol
delete Delete a file
disconnect Take down a connection
generate Generate an object
initial-setup Enter initial configuration dialog
no Disable or reset operational variable
ping Send Internet Control Message Protocol (ICMP) echo request
ping6 Send IPv6 Internet Control Message Protocol (ICMP) echo request
reboot Reboot the system
release Release specified variable
rename Re-name something.
renew Renew specified variable
reset Reset a service
restart Restart a service
set Set system or shell options
show Show system information
Change eth0 to the interface you would like to change.
SSH into EdgePoint and type in configure to get into a configuration prompt
Now set interface eth0 to dhcp
set interfaces ethernet eth0 address dhcp
Delete the static IP address on eth0 if needed
delete interfaces ethernet eth0 address 192.168.1.1/24
Scenario: Remote device in a PTP configuration has been reset to factory defaults and is not connected.
Objective: Reconnect remote device and reconfigure using backup file
We’ll refer to Radio A as the radio you initially have access to
Radio B will be the remote radio that was reset.
Reinitiate temporary wireless connection
We know that the default Ubiquiti Wireless settings are
To reconnect the device wirelessly we can setup the Radio A as an AP with the above wireless settings.
Setup temporary network connection
Radio B should now connect wirelessly, but is going to be on a static 192.168.1.20 address. There are a handful of ways to overcome this.
- Setup a 192.168.1.x network and log into the device. If you are remote you may be able to setup that address range on the router and then ssh into the router or AP then ssh into the remote device
- Use a Mikrotik hotspot
- Use an SSH proxy
Configure remote device via SSH
Open up your backup file with a text editor and copy the whole config
Once access is gained to Radio B, open up the /tmp/system.cfg file, delete all the contents and paste in the contents of the backup configuration.
Save file and write changes to radio with
The device should now apply the backup settings and disconnect again as it should now have the proper SSID and settings.
Restore Radio A’s settings and verify that both sides reconnect.
SSH into radio
Put the following two lines into the /tmp/system.cfg file. Doesn’t matter where
Apply changes with
Go accept device in UNMS.
When applying changes over ssh you’ll need to “write” or “save” the changes. Usually you’ll edit the /tmp/system.cfg config file and then save the changes with one of the following commands.
cfgmtd -f /tmp/system.cfg -w && reboot
rc.softrestart has some advantages. It does not require the radio to reboot when making changes to things like SNMP or the device name.
It does seem to have issues sometimes with certain changes. The following happened when attempting to replace the whole /tmp/system.cfg with a previous backup config.
XM.v6.1.8# XM.v6.1.8# /usr/etc/rc.d/rc.softrestart save
@@ -1,110 +1,256 @@
... more random stuff ...
Fast system script build Success.
Fast syslog script build Success.
Fast users script build Success.
Fast poepass script build Success.
Fast resolv script build Success.
do_radio_fast_script: rname wifi0
Unsuported change in radio.1.dfs.status for fast update
Fast radio script build failed
Fixup Startup_list …Done.
If you have issues applying changes with the softrestart, you can try it with cfgmtd. Downside is the radio does reboot.
cfgmtd -f /tmp/system.cfg -w && reboot
You could potentially take the reboot off the end of the above command, but have had random issues in the past where the only way to fix it was a physical reboot. Having the radio reboot after applying the config seems to resolve the issue
It appears that with one of the latest 8.5 updates that you can no longer change Wireless Security to none from the web interface. Work around is to disable it in a config then apply the config. You can do this from the command line or upload a config under the System tab.
Go to the System tab, backup configuration
open configuration in a text editor and change
“aaa.1.status=enabled” to “aaa.1.status=disabled”
Upload Configuration and Apply to device
sed -i '/aaa.1.status=enabled/aaa.1.status=disabled/g' /tmp/system.cfg
The above should be it, or you can manually edit “/tmp/system.cfg” and change the following line
The following is a method to recover from a command that may inadvertenly make a radio go offline.
The idea is to launch a process in the background that sleeps for 5 minutes and then reboots the radio, so any changes not saved will be reverted. If the changes were successful, you’ll just need to log back in and kill the background process to keep the device from rebooting.
This can be helpful if your changing networking settings using ifconfig, trying to change routes, or something went wrong while trying to apply a system.cfg setting.
sleep 300 && reboot &
Execute whatever command you need to. i.e.
If your command worked you can log back into the device and search for the process id of the sleep command and kill it so the radio doesn’t reboot.
ps | grep sleep
2XC.v8.5.12# ps | grep sleep
412 admin 1636 S sleep 500
414 admin 1640 S grep sleep
Kill the pid
Boot up radio in tftp mode by pressing the reset button for ~20seconds or till you get the crossing blinky lights.
In Windows, search for
“turn windows features on or off”
Open up and select tftp client. Then hit OK.
That should install the tftp client
To flash the firmware, open up a command prompt and run the tftp command
tftp -i 192.168.1.20 PUT "\Users\bob\Downloads\XM.v18.104.22.168939.171117.1238.bin"
ubntmod command with save without rebooting.
./ubntmod.sh -i 192.168.1.20 -s "private;email@example.com;[30.69636, -88.04811]" -X '/usr/etc/rc.d/rc.softrestart save'
Open config file
Find the SNMP settings and modify as needed. Example below
Save and exit file with :x