WHAT IS INTER-VLAN ROUTING
ROUTER ON A STICK (ROAS) IS A TECHNIQUE USED IN NETWORKING TO CONNECT MULTIPLE VLANS TO A SINGLE PHYSICAL INTERFACE ON A ROUTER.
THIS IS ACHIEVED BY CREATING SUB-INTERFACES ON THE PHYSICAL INTERFACE, WITH EACH SUB-INTERFACE REPRESENTING A DIFFERENT VLAN.
EACH SUB-INTERFACE IS THEN ASSIGNED AN IP ADDRESS FROM THE CORRESPONDING VLAN SUBNET.
CONFIGURATION
STEP 1
Switch(config)# vlan 10
Switch(config-vlan)# name IT
Switch(config-vlan)# vlan 20
Switch(config-vlan)# name HR
ASSIGN PORTS IN VLAN
Switch(config-vlan)# inter fa0/2
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config-if)# inter fa0/3
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 20
Switch(config-if)# inter fa0/1
Switch(config-if)# switchport mode trunk
CHECK VLAN'S
Switch# sh vlan
Router(config)# inter fa0/0
Router(config-if)# no shutdown
Router(config-if)# inter fa0/0.1
Router(config-subif)# encapsulation dot1q 10
Router(config-subif)# ip address 192.168.1.1 255.255.255.0
BASICALLY 10 IS A VLAN NUMBER
Router(config-if)# inter fa0/0.2
Router(config-subif)# encapsulation dot1q 20
Router(config-subif)# ip address 100.100.100.1 255.0.0.0
GO TO VLAN 10 (PC) AND PING TO VLAN 20 (LAPTOP) MEANS THAT
192.168.1.2 PING IS 100.100.100.2
GO TO PC DESKTOP AND CLICK COMMAND PROMPT AND ENTER THE COMMANDS IS.
C:\> ping 100.100.100.2
TO SEE IT COMMUNICATION WITH DIFFERENT VLAN'S
SO CONFIGURATION INTER-VLAN ROUTING IS COMPLETED.
___________________
Comments
Post a Comment