User Tools

Site Tools


hstarwiki:cust:gen:routeradvance

This is an old revision of the document!


Distro - openwrt / ubnt edgeos

Commands:

  • reboot to restart
  • set-default restore to factory default (for unifi it might be $syswrapper.sh restore-default, https://help.ubnt.com/hc/en-us/articles/205143490-UniFi-How-to-reset-the-UniFi-Access-Point-to-factory-defaults)
  • info shows a lot of good info aboue devicedhcp lease located in file /tmp/dhcp.leases
  • iwconfig ath0 to see a nice breakdown of AP
  • mca-status to see status of AP - more then above readout, firmware, ip, etc
  • wstalist to see messy complex info of each station
  • wstalist | grep mac to see connected macs
  • wstalist | grep -A 36 [mac of device] To see all relevant data
  • iwlist for various options such as
  • iwilist [interface] accesspoints to see what access points are avaialbe (same if did peers)
  • radarmon - need to check into more, but might be good for DFS issues

Update firmware via cli

Resource: https://help.ubnt.com/hc/en-us/articles/204959804-airMAX-How-do-I-upgrade-the-firmware-from-the-CLI-SSH-

  • Get firmware on device in folder /tmp/ (see below)
  • Rename file to “fwupdate.bin”
  • $fwupdate -m /tmp/fwupdate.bin

There are 3 main ways to get file to device. For First and second option you need to dl firmware onto computer

  • Windows: Use Winscp to transfer file to location. Be sure to have winscp set to scp mode, not sftp
  • Linux: $scp [user]@[dest IP] [local location file] [remote location]

SSH into device:

  • cd /tmp/
  • $wget [firmware url]
  • $mv firmware fwupdate.bin
  • $fwupdate -m /tmp/fwupdate.bin


Tip: the link of file can be copied from the ubnt firmware page when you choose the fw to use.

Change Config File

Reference:https://help.ubnt.com/hc/en-us/articles/205231490-Use-static-IP-address-instead-of-DHCP-Client

When you ssh you can modify the config file by editing:

/tmp/system.cfg

You can use vi, as it is build into the ubnt devices. Once you have saved the new config in ubiquity, you have to execute a save command and reboot. Here is a trick on how to do both:

  • $save && reboot

Tough switch port names

ubntbox

A propriatary tool for ubnt related things such as:

  • $ubntbox mca-status
hstarwiki/cust/gen/routeradvance.1507138790.txt.gz · Last modified: 2017-10-04 T 17:39 by admin