Monday, 7 April 2014

Inter valn routing demo

Vlan details
Green is vlan 10
red is vlan 20
blue is vlan 30

Configuration 
switch:-

Switch(config)#interfacre fastethernet 0/23
Switch(config-if)#switchport mode trunk 

Router:-

Router(config)#inter fa 0/0
Router(config-if)#no shutdown

Sub interface:-

Router(config)#interface fastEthernet 0/0.1
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add 10.0.0.100 255.0.0.0

Router(config)#interface fastEthernet 0/0.2
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add 20.0.0.100 255.0.0.0

Router(config)#interface fastEthernet 0/0.3
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip add 30.0.0.100 255.0.0.0

No comments:

Post a Comment