EdgeSwitch
Administration Guide
™
Using the Command-Line Interface
The command-line interface (CLI) is a text-based way to manage and monitor the system. You can access the
CLI by using a direct serial connection or by using a remote logical connection with Telnet or SSH.
The CLI groups commands into modes according to the command function. Each of the command modes
supports specific software commands. The commands in one mode are not available until you switch to
that particular mode, with the exception of the User EXEC mode commands. You can execute the User EXEC
mode commands in the Privileged EXEC mode.
To display the commands available in the current mode, enter a question mark (?) at the command prompt.
To display the available command keywords or parameters, enter a question mark (?) after each word you
type at the command prompt. If there are no additional command keywords or parameters, or if additional
parameters are optional, the following message appears in the output:
<cr>
For more information about the CLI, see the EdgeSwitch CLI Command Reference Guide.
The EdgeSwitch CLI Command Reference lists each command available from the CLI by the command name
and provides a brief description of the command. Each command reference also contains the following
information:
• The command keywords and the required and optional parameters.
• The command mode you must be in to access the command.
• The default value, if any, of a configurable setting on the device.
show
Each
command in this document also includes a description of the information displayed by the
command.
Ubiquiti Networks, Inc.
Press Enter to execute the command
Getting Started
16
Need help?
Do you have a question about the EdgeSwitch ES-24-250W and is the answer not in the manual?
Questions and answers
How do i assign a static IP address to a vlan?
To assign a static IP address to a VLAN on the Ubiquiti EdgeSwitch ES-24-250W, follow these steps:
1. Create the VLANs
Enter VLAN configuration mode and define the VLANs:
```
(UBNT EdgeSwitch) #vlan database
vlan 10,20,30,40
exit
```
2. Enable Routing on the VLANs
Assign VLAN interfaces and configure static IP addresses:
```
vlan routing 10 1.1.1.1/24
vlan routing 20 2.2.2.1/24
vlan routing 30 3.3.3.1/24
vlan routing 40 4.4.4.3/24
exit
```
3. Assign Physical Ports to VLANs
Configure the physical interfaces to be part of the VLANs and set the PVID (Port VLAN ID) accordingly.
This ensures that each VLAN has a static IP assigned for inter-VLAN routing.
This answer is automatically generated