Showing results for 
Search instead for 
Did you mean: 

inter vlan routing


Hi my friend.
What is the method's of inter vlan routing?

Sent from Cisco Technical Support iPhone App

7 Replies 7

Leo Laohoo
VIP Community Legend VIP Community Legend
VIP Community Legend

Depends on what you have.

Do you have a Layer 3 switch or a router?

How To Configure InterVLAN Routing on Layer 3 Switches

Configuring InterVLAN Routing

No i just want name of this method! Both with mls and router.

Sent from Cisco Technical Support iPhone App


Hello Sahar,

If you will use the router for the inter vlan routing than its named as router on a stick, while if you used a Layer three switch than its called Layer 3 switch-Inter VLAN Routing

Hope it will help

Ahmed Sonba

Tnx i get my answer!!!
one question i have. What is the other methods of inter vlan routing except with router and mls!!?

Sent from Cisco Technical Support iPhone App

The last method is to configure each router port ( as a layer 3 port) connecting to each switch port as an access port.

this is the less scalable method of the 3.



If you do not have any other question, please mark the question as answered,

Julio Carvajal
Senior Network Security and Core Specialist


HI Sarah,

Its really depends how you want to configure inter vlan routing and what you want to use.

Please check this link and its explaining all the different methods you can use.


Sandeep Choudhary
VIP Mentor VIP Mentor
VIP Mentor

Hi Sahar,

you have to configure subinterfaces for encapsulation.

see the example:If you are configuring on Router

Create sub-interfaces, set 802.1Q trunking protocol and ip address on each sub-interface

Router(config)#interface f0/0
Router(config-if)#no shutdown

(Note: The main interface f0/0 doesn’t need an IP address but it must be turned on)

Router(config)#interface f0/0.0
Router(config-subif)#encapsulation dot1q 15
Router(config-subif)#ip address
Router(config-subif)#interface f0/0.1
Router(config-subif)#encapsulation dot11 20
Router(config-subif)#ip address

(Note: In the “encapsulation dot1q 15″ command, 15 is the VLAN ID this interface operates in)

Configure VLAN

Switch(config)#vlan 15
Switch(config-vlan)#name SALES
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name TECH

Set ports to access mode & assign ports to VLAN

Switch(config)#interface range fa0/1
Switch(config-if)#no shutdown
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 15
Switch(config-if)#interface range fa0/3
Switch(config-if)#no shutdown
Switch(config-if)#switchport mode access
Switch(config-if)# switchport access vlan 20

see the example:If you are configuring on layer 3 switch:

ip routing
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
interface FastEthernet0/3
switchport access vlan 20
switchport mode access

interface Vlan15
ip address
interface Vlan20
ip address

And on hosts just assign IP addresses and default gateways (to the corresponding interface VLANs) -> hosts in different VLANs can communicate.


please rate if it helps.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers