15 December, 2013

Router on a stick vs L3 Switch

#Configure Router On A Stick 


#Configure Trunk Port on Switch
Switch#configure terminal 
Switch(config)#interface fa0/1
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk

#Cteate and Configure Sub-Interfaces
Router#configure terminal 
Router(config)#interface fa0/0
Router(config-if)#no shutdown

Router(config)#interface fa0/0.10
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#ip address 10.1.10.1 255.255.255.0
Router(config-subif)#description VLAN-10

Router(config)#interface fa0/0.20
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#ip address 10.1.20.1 255.255.255.0
Router(config-subif)#description VLAN-20 

#Configure L3 Switch


#Enable IP Routing
Switch(config)#ip routing

#Create SVI 
Switch#configure terminal 
Switch(config)#interface vlan 10
Switch(config-if)#ip address 10.1.10.1 255.255.255.0
Switch(config-if)#no shutdown

Switch(config)#interface vlan 20
Switch(config-if)#ip address 10.1.20.1 255.255.255.0
Switch(config-if)#no shutdown