Edge Router X "terminal/console" access



  • So this is neat.... I was getting slow upload speeds on my internet connection yesterday. It turns out, it was my ERX all along. I logged in and pressed the reboot button in the GUI, and now the thing does not respond to any pings, I can't connect to it, no internet, nothing. I'm about to do a reset on it and restore the config from a backup. (hopefully that works) I'd like to see what's going on on the router to see where it is stuck. Is there any other way to connect to these devices?



  • There should be a console port. At least some models have that. Should say "Console".



  • @scottalanmiller said in Edge Router X "terminal/console" access:

    There should be a console port. At least some models have that. Should say "Console".

    Nope. Not on the ERX. On the ER-Lite, it has one, but on the ERX, nothing.



  • @fuznutz04 said in Edge Router X "terminal/console" access:

    @scottalanmiller said in Edge Router X "terminal/console" access:

    There should be a console port. At least some models have that. Should say "Console".

    Nope. Not on the ERX. On the ER-Lite, it has one, but on the ERX, nothing.

    Correct, the ERX does not have a console port. But if you are willing to open it and void the warranty, you can apparently do something to connect a console cable.



  • This page shows a picture of the inside.
    The serial pins are there.
    http://sector5d.org/openwrt-on-the-ubiquiti-edgerouter-x.html



  • @JaredBusch said in Edge Router X "terminal/console" access:

    This page shows a picture of the inside.
    The serial pins are there.
    http://sector5d.org/openwrt-on-the-ubiquiti-edgerouter-x.html

    Yikes... I'll pass for now since it is brand new.

    1. So I factory reset, then attempted to restore from config without doing anything else first. It restored and rebooted, but I couldn't connect to the router anymore at all. (with the old IP address or the new one that was in the config file.)

    2. I reset again and this time put in the IP address to match what is in the config file. Then did a restore. Hooray, I can connect now.

    3. However, none of my NAT rules, Firewall rules, etc are in the router. WTH If I open the config file, I can see all of the rules there, but they are not being restored.



  • @fuznutz04 said in Edge Router X "terminal/console" access:

    @JaredBusch said in Edge Router X "terminal/console" access:

    This page shows a picture of the inside.
    The serial pins are there.
    http://sector5d.org/openwrt-on-the-ubiquiti-edgerouter-x.html

    Yikes... I'll pass for now since it is brand new.

    1. So I factory reset, then attempted to restore from config without doing anything else first. It restored and rebooted, but I couldn't connect to the router anymore at all. (with the old IP address or the new one that was in the config file.)

    2. I reset again and this time put in the IP address to match what is in the config file. Then did a restore. Hooray, I can connect now.

    3. However, none of my NAT rules, Firewall rules, etc are in the router. WTH If I open the config file, I can see all of the rules there, but they are not being restored.

    That means something in your config is hosed and causing the initial load to fail. Start from a clean system and set it up again.

    If you have made NO changes in the GUI since you restored, you can check this from the command line.

    #--go into config mode
    configure
    #--load the config file
    load
    #--compare changes from running to what you just loaded
    compare
    


  • @JaredBusch will do. Is there an easy way to copy and paste working parts of the config, or do I need to issue commands one by one?



  • @fuznutz04 said in Edge Router X "terminal/console" access:

    @JaredBusch will do. Is there an easy way to copy and paste working parts of the config, or do I need to issue commands one by one?

    log into the CLI (command line interface) and before you go into configure mode, run this command

    show configuration commands
    

    That will output your router config in a copy/paste compatible view.

    Obviously, it will likely be missing stuff, but that should help you figure out how to manually add it if you want.

    Also, from my prior instructions, if there are differences after you run compare, just type commit to try and make the changes go live. You should get an error if there is a problem.



  • @JaredBusch said in Edge Router X "terminal/console" access:

    @fuznutz04 said in Edge Router X "terminal/console" access:

    @JaredBusch will do. Is there an easy way to copy and paste working parts of the config, or do I need to issue commands one by one?

    log into the CLI (command line interface) and before you go into configure mode, run this command

    show configuration commands
    

    Thanks for this @JaredBusch. Really a life saver. Spent some time last evening rebuilding the config and now I have an actual good source for manual copy/paste restore if needed. I believe i found the culprit in the configs. A couple of months ago, I put in some traffic shaping configuration. The router took the commands, and even accepted them with the commit command, but I guess I must have never actually restarted the router after I made the changes. Yesterday was the first time restarting the unit since installation a few months ago.

    Now I just need to find the best way to setup QoS on the router since we have VoIP phones in the office. I see the latest firmware has some QoS items in the GUI. Is this the best way to set up QoS on these devices, or are there better ways through CLI?



  • @fuznutz04 said in Edge Router X "terminal/console" access:

    @JaredBusch said in Edge Router X "terminal/console" access:

    @fuznutz04 said in Edge Router X "terminal/console" access:

    @JaredBusch will do. Is there an easy way to copy and paste working parts of the config, or do I need to issue commands one by one?

    log into the CLI (command line interface) and before you go into configure mode, run this command

    show configuration commands
    

    Thanks for this @JaredBusch. Really a life saver. Spent some time last evening rebuilding the config and now I have an actual good source for manual copy/paste restore if needed. I believe i found the culprit in the configs. A couple of months ago, I put in some traffic shaping configuration. The router took the commands, and even accepted them with the commit command, but I guess I must have never actually restarted the router after I made the changes. Yesterday was the first time restarting the unit since installation a few months ago.

    Now I just need to find the best way to setup QoS on the router since we have VoIP phones in the office. I see the latest firmware has some QoS items in the GUI. Is this the best way to set up QoS on these devices, or are there better ways through CLI?

    The new QoS stuff should work just fine.



  • Great will do, thanks.


Log in to reply