November 17, 2012

Inter VLAN Routing (Router on a Stick)

In this tutorial we are going apply inter vlan routing. In order to communicate between different vlans, we use this phenomenon. Let us apply vlan on the following topology, then we will apply vtp (vlan trunking protocol).  

1

Now, in order to communicate between different vlans we will have to create sub interfaces of fast ethernet interface of router. Let us do that. Note that, we will create as many sub interfaces as many vlans we are using in our topology. In this case we are using 2 vlans, so we will create two sub interfaces for both vlans.

 2

We will also apply encapsulation of sub interface.
 3

Let us create vlans and assign those vlans to switch interfaces i.e. PCs
4

And,
 5

In order to apply VTP we will have write the following commands. Apply the domain name, and trunk the ports of switch. Note, trunk only those ports that are connected to router and switches.
6

Thus, vlans are visible in other switches too after trunking.
7

Trunk the port of the switch 1 as well.

 9

Now, we see ,in the bottom right corner,  we are able to communicate in between vlans and that s what we wanted , isnt it ?
 10

8 comments:

  1. please show port labels... i

    ReplyDelete
    Replies
    1. u r right . From next time i ll , but for now , if you have problem with the port numbers,
      you can find out by assuming that only those ports are configured which are not connected to Hosts (PCs). I hope you ll get it. :)

      Delete
  2. thanx a lot.This artlacle was really helpful..
    Keep it up...

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Great post and very helpful! Here you will get all kind of solution like
    routerlogin
    netgear setup

    ReplyDelete
  5. I appreciate the post .Well explained. Please keep sharing
    Find out the easiest way to get your username, password in a safe condition
    192.168.1.1

    ReplyDelete
  6. There are also many terms that you need to learn in the CCNA regarding this WAN technology, you have to know the difference between a PVC and SVC, and the function of the three types of Local Management frames (LMI's). CCNA Classes in Pune

    ReplyDelete

C program to Read From a File

#include <stdio.h> #include <stdlib.h> void main() {     FILE *fptr;     char filename[15];     char ch;   ...