0% found this document useful (0 votes)
170 views3 pages

Switch (Config) #Ip Routing: Step by Step Cisco L3 Switch Configuration

This document provides step-by-step instructions for configuring L3 switching on a Cisco switch to enable inter-VLAN routing. The key steps include: 1) Enabling IP routing on the switch; 2) Configuring VLAN interfaces with IP addresses; 3) Assigning switch ports to VLANs; 4) Configuring a switch port as a Layer 3 interface with an IP address and default route. This allows the switch to route traffic between VLANs and to other networks.

Uploaded by

maheshreddy437
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
170 views3 pages

Switch (Config) #Ip Routing: Step by Step Cisco L3 Switch Configuration

This document provides step-by-step instructions for configuring L3 switching on a Cisco switch to enable inter-VLAN routing. The key steps include: 1) Enabling IP routing on the switch; 2) Configuring VLAN interfaces with IP addresses; 3) Assigning switch ports to VLANs; 4) Configuring a switch port as a Layer 3 interface with an IP address and default route. This allows the switch to route traffic between VLANs and to other networks.

Uploaded by

maheshreddy437
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

StepbyStep Cisco L3 Switch Configuration: 1.

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:

Swtich(config)#vlan 2 Switch(config)#name xxx


3. Determine the IP addresses you want to assign to the VLAN interface on the switch. For the switch to be able to route between the VLANs, the VLAN interfaces must be configured with an IP address. When the switch receives a packet destined for another subnet/VLAN, the switch looks at the routing table to determine where to forward the packet. The packet is then passed to the VLAN interface of the destination and in turn it is sent to the port where the end device is attached. 4. Configure the VLAN interfaces with the IP address

Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface Vlan2 Switch(configif)#ip address 192.168.1.1 255.255.255.0 Switch(configif)#no shutdown


Repeat the procedure for all VLANs as above. 5. Assign required number of switch ports to particular VLANs.

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

Switch(config)#ip route 0.0.0.0 0.0.0.0 172.16.15.1


Note that IP address of the default router is 172.16.15.1. If the switch receives a packet for a network which is not in the routing table, it forwards it to the default gateway for further processing. Note: The ip defaultgateway command is used to specify the default gateway when routing is not enabled. However, in this case, routing is enabled (from Step 1) hence the ip defaultgateway command is unnecessary. 8. Configure your end devices to use the respective Catalyst 3550 VLAN interface as their defaultGateway. For example, devices in VLAN 2 should use the interface VLAN 2 IP address as its default gateway. Refer to the appropriate client configuration guide for more information on designating the default gateway.

You might also like