Switch (Config) #Ip Routing: Step by Step Cisco L3 Switch Configuration
Switch (Config) #Ip Routing: Step by Step Cisco L3 Switch Configuration
We have to enable the routing on the switch using the ip routing command to perform interVLAN Routing and other Routing functionalities. Even if IP routing was previously enabled, this step ensures that it is indeed activated.
Switch(config)#ip routing
Note: If the switch does not accept the ip routing command, you need to upgrade to either SMI image 12.1(11)EA1 or later, or an EMI image, and repeat this step. You can verify whether ip routing is enabled or not with runningconfigurationcommand, if enabled, it will appear on the top of the output. the show
Switch#sh run hostname Switch ! ip subnetzero ip routing vtp domain Cisco vtp mode transparent
2. Make note of all the VLANs that you want to route between. In our example, we want to route traffic between VLANs 2, 3 and 5. 3. Use the show vlan command to verify that the VLANs exist in the VLAN database. If they do not exist, you must add them on the switch. You can add VLANs from VLAN database mode or from configuration mode but latest Cisco IOS Switches having only configuration mode option. From Database Mode:
Switch#vlan database Switch(vlan)#vlan 2 VLAN 2 added: Name: VLAN0002 Switch(vlan)#vlan 3 VLAN 3 added:
Name: VLAN0003 Switch(vlan)#vlan 5 VLAN 10 added: Name: VLAN005 Switch(vlan)#exit APPLY completed. Exiting....
From Configuration Mode:
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface FastEthernet 0/1 Switch(configif)#deception ##VLAN 2## Switch(configif)#switchport mode access Switch(configif)#switchport access vlan 2 Switch(configif)#no shutdown
Repeat the procedure for all VLANs as above. 6. Configure the interface to the default router for other end. We can covert the switch port from L2 to L3 capable using no switchport command. Now we can configure IP address on interface directly.
Switch(config)#interface FastEthernet 0/1 Switch(configif)#no switchport Switch(configif)#ip address 172.16.15.2 255.255.255.0 Switch(configif)#no shutdown
7. Now Configure the default route for the switch