Inter VLAN Routing Configuration on Packet Tracer (Router on Stick)

Router-On-Stick-ipcisco

Router on Stick Configuration on Packet Tracer

VLANs are the virtual LANS that provide divide your big network, into smaller pieces. Many companies use to divide their networks into different departments. We have discussed the basic logic of VLANs in the previous articles.As you know each VLAN is a seperate VLAN. Each of them is a single network. So at the beginning, there is no communication between VLAN. To enable the communication of these different sub networks, we need Inter VLAN Routing. In other words, this topology called “Router on Stick” topology. Inter VLAN Routing topology or Router on Stick topology is a very common topology for CCNA exams. We will learn Routing on Stick Topology and Router on Stick Config on this lesson.


You can DOWNLOAD the Packet Tracer example with .pkt format At the End of This Lesson.


You can also DOWNLOAD all the Packet Tracer examples with .pkt format in Packet Tracer Labs section.


In this article, we will use the below Router on Stick topology and we will configure Inter VLAN Routing on Packet Tracer.



router on stick topology, inter VLAN routing
 

Router on Stick Topology

Router on Stick (Inter VLAN Routing) topology basically consist of one switch and a router. Here, the switch is the place that our VLANs exist and the router is the device that route the traffic.

Router on Stick Configuration Steps

For Router on Stick topology (Inter VLAN Routing) configuration, we will create router virtual interfaces under the router interfaces. Then, we will assign each of this virtual interface to a specific VLAN. We will also create our VLANs and configure the PCs on that VLAN. For Router on Stick topology (Inter VLAN Routing), we will use one switch, one router and six PCs in Packet Tracer. And we will have 3 VLANs.

Let’s start to configure our Router on Stick topology (Inter VLAN Routing).

IP Configurations For Inter VLAN Routing

We will use 10.0.0.0/24, 20.0.0.0/24 and 30.0.0.0/24 blocks for our Packet Tracer Router on Stick topology example. The first block will be for VLAN 2, the second will be for VLAN 3 and the last one will be for VLAN 4.

Firstly, we ll configure the IP addresses of the PCs on Packet Tracer like below.

PC0 :  10.0.0.2	255.255.255.0
GW : 10.0.0.1

 

PC1 :  10.0.0.3	255.255.255.0
GW : 10.0.0.1

 

PC2 :  20.0.0.2	255.255.255.0
GW : 20.0.0.1

 

PC3 :  20.0.0.3	255.255.255.0
GW : 20.0.0.1

 

PC4 :  30.0.0.2	255.255.255.0
GW : 30.0.0.1

 

PC5 :  30.0.0.3	255.255.255.0
GW : 30.0.0.1

Here, the gateway addresses of the PCs will be the IP address of router virtual interfaces. Each router virtual interface will have an IP addresses as gateway of one of the VLANs.

Creating VLANs

Now, let’s configure our VLANs and assign the interfaces to these VLANs. Firstly we will create VLAN 2,3 and 4. Then, we will enter the interface range and configure the interface range as access interface. Lastly, we will assign the interface to a specific VLAN with “switchport access vlan” command.

Switch (config) # vlan 2
Switch (config-vlan) # vlan 3
Switch (config-vlan) # vlan 4
Switch (config-vlan) # exit
Switch (config) # interface range fastEthernet 0/2-3
Switch (config-if-range) # switchport mode access
Switch (config-if-range) # switchport access vlan 2
Switch (config-if-range) # exit
Switch (config) # interface range fastEthernet 0/4-5
Switch (config-if-range) # switchport mode access
Switch (config-if-range) # switchport access vlan 3
Switch (config-if-range) # exit
Switch (config) # interface range fastEthernet 0/6-7
Switch (config-if-range) # switchport mode access
Switch (config-if-range) # switchport access vlan 4
Switch (config-if-range) # exit

Our VLAN configurations are OK on the switch now. Let’s verify the VLANs.


You can also DOWNLOAD all the Packet Tracer examples with .pkt format in Packet Tracer Labs section.




4 Responses to “Inter VLAN Routing Configuration on Packet Tracer (Router on Stick)”


  • cleetus / Reply

    I cant open the packet tracer topo in my packet tracer version 7.0.0.0306.Which is the right version of packet tracer which I can use to open user examples?

  • zac / Reply

    Gokhan Kosem you are the best. Thanks a lot for this article, you made everything simple for me to understand. i would recommend begginers to use your turtorials

    • gokhankosem / Reply

      Thank you very much for your kind sentences Zac :) it is very nice to hear this…new design is very near, keep on ;)

  • Richard Tuazon / Reply

    Thank you for this one, looking forward for brief explanation for Access list configuration.

Leave a Reply