![Ubiquiti ES-24-250W Administration Manual Download Page 266](http://html2.mh-extra.com/html/ubiquiti/es-24-250w/es-24-250w_administration-manual_3227362266.webp)
265
Configuration Examples
EdgeSwitch
™
Administration Guide
Ubiquiti Networks, Inc.
Configuring VLAN Routing
This section provides an example of how to configure the EdgeSwitch software to support VLAN routing. The
configuration of the VLAN router port is similar to that of a physical port. The main difference is that, after the
VLAN has been created, you must use the
show ip vlan
command to determine the VLAN’s interface ID so
that you can use it in the router configuration commands.
The diagram in this section shows a Layer-3 switch configured for port routing. It connects two VLANs, with
two ports participating in one VLAN, and one port in the other. The script shows the commands you would
use to configure the EdgeSwitch software to provide the VLAN routing support shown in the diagram.
24V
24V
24V
24V
VLAN 10
VLAN 20
24V
24V
24V
24V
Layer 2 Switch
Layer 2 Switch
Physical Port 0/2
VLAN Router Port 3/1
192.150.3.1
Physical Port 0/3
VLAN Router Port 3/2
192.150.4.1
Layer 3 Switch
VLAN Routing Example Network Diagram
Using the CLI to Configure VLAN Routing
1. Create VLAN 10 and VLAN 20.
(UBNT EdgeSwitch) #vlan database
vlan 10
vlan 20
exit
2. Configure ports 0/1, 0/2 as members of VLAN 10 and specify that untagged frames received on these
ports will be assigned to VLAN 10.
config
interface 0/1
vlan participation include 10
vlan pvid 10
exit
interface 0/2
vlan participation include 10
vlan pvid 10
exit