EdgeSwitch - Inter-VLAN Routing


Overview


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

NOTES & REQUIREMENTS:
Applicable to the latest EdgeOS firmware on all EdgeRouter models. Please see the Related Articles below for more information.
 
Device used in this article:

Table of Contents


  1. Network Diagram
  2. Inter-VLAN Routing
  3. Related Articles

Network Diagram


Back to Top

The network topology is shown below and the following interfaces are in use on the EdgeSwitch and EdgeRouter:

ER-4

  • eth0 - 203.0.113.1
  • eth1 - 10.255.12.1/30

ES-8

  • 0/8 - 10.255.12.2/30
  • 0/3 - Untagged (U) VLAN10
  • 0/6 - Untagged (U) VLAN10 / Tagged (T) VLAN20

tagged_untagged_topology_new.png

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


Inter-VLAN Routing


Back to Top

Inter-VLAN routing will allow the VLAN10 and VLAN20 networks to communicate with each other through the switch. You can also set up Inter-VLAN routing on the EdgeRouter (example article here). The advantage of using the EdgeSwitch is that all traffic between VLAN10 and VLAN20 does not have to pass through the router.

 

CLI: Access the command line interface (CLI).

1. Enter privileged mode.

enable

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

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

3. Enter configuration mode.

configure

4. Assign the ports to the VLANs created above.

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

interface 0/6
description server
vlan pvid 10
vlan participation exclude 1,20
vlan participation include 10
exit

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

interface 0/8
description edgerouter
routing
ip address 10.255.12.2 255.255.255.252
exit

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

interface vlan 10
ip address 10.0.10.2 255.255.255.0
routing
exit
 
interface vlan 20
ip address 10.0.20.2 255.255.255.0
routing
exit

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

ip routing
ip route 0.0.0.0 0.0.0.0 10.255.12.1

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

exit
write memory

Related Articles


Back to Top

Intro to Networking - How to Establish a Connection Using SSH

EdgeRouter - Router on a Stick