Inter VLAN Routing in L3 Switches



Inter VLAN Routing in L3 Switches

Inter VLAN Routing in L3 Switches

Inter-VLAN routing using a Layer 3 switch is simpler to configure than the router-on-a-stick method. After the configuration is complete, the configuration can be verified by testing connectivity between the hosts. From a host, verify connectivity to a host in another VLAN using the ping command

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface Vlan 2
Switch(config-if)#no shutdown
Switch(config-if)#interface Vlan 2
%LINK-5-CHANGED: Interface Vlan20, changed state to up
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#interface Vlan 3
%LINK-5-CHANGED: Interface Vlan30, changed state to up
Switch(config-if)#ip address 192.168.2.1 255.255.255.0
Switch(config-if)#no shutdown .

Comments are closed.