EdgeSwitch - Inter-VLAN Routing


Readers will learn how to configure Inter-VLAN routing on an EdgeSwitch through the use of Switch Virtual Interfaces (SVI).

Applicable to the latest EdgeSwitch firmware on all EdgeSwitch models. Knowledge of the Command Line Interface (CLI) and basic networking knowledge is required. Please see the Related Articles below for more information.
Devices used in this article:

Configuring Inter-VLAN Routing

Back to Top

Inter-VLAN routing will allow the VLAN10 and VLAN20 networks to communicate with each other through the switch. It is also possible to set up Inter-VLAN routing on an EdgeRouter, see the Router on a Stick article for more information.


The UAP-AC-Pro will tag the wireless network with VLAN20. The management traffic from the UAP is sent untagged and will be placed in VLAN10.

CLI: Access the EdgeSwitch Command Line Interface.

1. Enter privileged mode.


2. Create the VLANs and VLAN-Interfaces (SVIs).

vlan database 
vlan 10,20
vlan routing 10
vlan routing 20

3. Enter configuration mode.


4. Assign the ports to the VLANs created above.

interface 0/2
description controller
vlan pvid 10
vlan participation exclude 1,20
vlan participation include 10

interface 0/6
description uap
vlan tagging 20
vlan pvid 10
vlan participation exclude 1
vlan participation include 10,20

5. Enable routing functionality on the uplink port (0/8) and assign it an IP address.

interface 0/8
description edgerouter
ip address

6. Associate the VLAN10 and VLAN20 SVIs with IP addresses and enable routing.

interface vlan 10
ip address
interface vlan 20
ip address

7. Globally enable the routing functionality and create a default route to the EdgeRouter.

ip routing
ip route
NOTE:The EdgeRouter will also need to be configured with static routes for the VLAN networks ( and

8. Exit back to privileged mode and write the changes to the startup configuration.

write memory

Related Articles

Back to Top

EdgeRouter - Router on a Stick

EdgeSwitch - Limiting Inter-VLAN Routing with Access-Lists

EdgeSwitch - Configuration and Administration Guides

Intro to Networking - How to Establish a Connection Using SSH

Was this article helpful?
53 out of 89 found this helpful