38
Appendix A: Command Line Interface
EdgeRouter
™
Lite User Guide
Ubiquiti Networks, Inc.
Appendix A: Command Line
Interface
Overview
The Command Line Interface (CLI) is available if you
need to configure and monitor advanced features on the
EdgeRouter or prefer configuration by command line. The
CLI provides direct access to standard Linux tools and shell
commands. This chapter explains how to access the CLI
and describes a basic set of frequently used commands.
Access the CLI
There are four methods you can use to access the CLI:
•
terminal emulator
Go to the following section,
Connect
to the Console Port
.
•
SSH
If you are using the console port, go to the
following section,
Connect to the Console Port
; otherwise,
go to
“Access Using SSH” on page 39
.
•
Telnet
If you are using the console port, go to the
following section,
Connect to the Console Port
; otherwise,
go to
“Access Using Telnet” on page 39
.
•
EdgeOS Configuration Interface
Go to
“Access Using
the EdgeOS Configuration Interface” on page 40
.
Connect to the Console Port
Instructions may vary slightly, depending on your specific
terminal emulator.
1.
Use a RJ45 to DB9, serial console cable, also known
as a rollover cable, to connect the
Console
port of the
EdgeRouter to your computer. (If your computer does
not have a DB9 port, then you will also need a DB9
adapter.)
Computer
Console
2. Follow the appropriate set of instructions:
•
terminal emulator
Go to the following section,
Access Using a Terminal Emulator
.
•
SSH
Go to
“Access Using SSH” on page 39
.
•
Telnet
Go to
“Access Using Telnet” on page 39
.
Access Using a Terminal Emulator
Instructions may vary slightly, depending on your specific
terminal emulator.
1.
Open the terminal emulator on your computer, and
configure it with the following serial port settings:
•
Baud rate
115200
•
Stop bits
8
•
Parity
1
•
Flow control
NONE
2. Select
Serial
as the connection type.
3. Click
Open
to connect to the EdgeRouter.
4. At the
ubnt login
prompt, enter the username (the
default is
ubnt
).
5. At the
Password
prompt, enter the password (the
default is
ubnt
).
6.
For help with commands, you can either press the
?
key
or enter
show
and press the
?
key.
Note:
To enhance security, we recommend that you
change the default login using at least one of the
following options:
•
Set up a new user account (preferred option).
For details, go to
“Remove the Default User
Account” on page 42
.
• Change the default password of the
ubnt
login.
Use the
set
command as detailed in
“Remove the
Default User Account” on page 42
.