The blog includes a vivid coverage of the concepts of CCNA, CCNP (Routing & Switching) , Basic Linux and Linux servers. Projects have also been simulated to give a practical exposure.

Thursday 29 May 2014

Inter vlan routing on GNS3

No comments



VLAN is the part of switching in networking, it is essential part of switch. Basically VLAN divides the switch into parts. VLANs are isolated from one from each other so that packets in one VLAN cannot communicate with other VLAN.
 To send packets from one VLAN to other, a Layer 3 device is needed. If router is used for this function then it must have a physical or logical connection to each VLAN so it can transfer packets between them. This is known as interVLAN routing.

In this topology Layer 3 device is Router R2, switch on which VLANs are created is SW1 and there are 4 hosts, connected to the switch, in which host C1, C2 are in VLAN 10 and C3, C4 are in VLAN 20.

When Host C1 in VLAN 10 needs to communicate with Host C2 in VLAN 10, it sends a packet
addressed to that host, Switch SW1 forwards the packet directly to Host C2, without sending it to the router. And when C1 want to communicate with C3 or C4 which are inn VLAN 20, then switch SW1 forwards the packets of C1 to router and router receive the traffic, send it to Hosts C3, C4 which are in VLAN 20. Router R2 is connected through two links with switch SW1, interface f0/0 is used for VLAN 10 and f0/1 is for VLAN 20.

Configuration of Router R2 :-

interface FastEthernet0/0
 ip address 10.0.0.1 255.255.255.0
 duplex auto
 speed auto
 !
interface FastEthernet0/1
 ip address 20.0.0.1 255.255.255.0
 duplex auto
 speed auto

Configuration of Switch SW1 :-


All VLANs type is access.

Configuration of Hosts :-

The hosts used here are VPCS hosts. It is the integrated feature of GNS3.

VPCS[1]> ip 10.0.0.2 255.255.255.0 10.0.0.1

 VPCS[1]> ip (ip addresss) (netmask) (gateway)


Verification

Ping Host C1 from C2 :- 
(Both the Hosts are in same vlan.)


Ping Host C3 from C1 :-
(Both are in different vlans)



 

No comments :

Post a Comment