You are on page 1of 5

How To Configure InterVLAN Routing on Layer 3 Switches - Cisco Systems

Cisco.com [change] Worldwide My Log In Account Register Worldwide Products Cisco Home Support & Services

How to Buy

Training & Events

Partners

Layer-Three Switching and Forwarding

How To Configure InterVLAN Routing on Layer 3 Switches

HOME
r

SUPPORT

Document ID: 41860

TECHNOLOGY SUPPORT

LAN SWITCHING

LAYER-THREE SWITCHING AND FORWARDING

Contents
Introduction Prerequisites Requirements Components Used Conventions Configure InterVLAN Routing Task Step-by-Step Instructions Verify Troubleshoot Troubleshooting Procedure Cisco Support Community - Featured Conversations Related Information

CONFIGURE

CONFIGURATION EXAMPLES AND TECHNOTES

How To Configure InterVLAN Routing on Layer 3 Switches

Feedback: Help us help you Please rate this document. Excellent Good Average Fair Poor This document solved my problem. Yes No Just Browsing Suggestions to improve this document.

Introduction
VLANs divide broadcast domains in a LAN environment. Whenever hosts in one VLAN need to communicate with hosts in another VLAN, the traffic must be routed between them. This is known as inter-VLAN routing. On Catalyst switches it is accomplished by creating Layer 3 interfaces (Switch virtual interfaces (SVI) ). This document provides the configuration and troubleshooting steps applicable to this capability. Note: This document uses a Catalyst 3550 as an example. However, the concepts can also be applied to other Layer 3 switches that run Cisco IOS (for example, Catalyst 3560, 3750, Catalyst 4500/4000 Series with Sup II+ or later, or Catalyst 6500/6000 Series that run Cisco IOS System software).

Prerequisites
(512 character limit)

If you have provided a suggestion, please enter your full name and e-mail address. This information is optional and allows us to contact you if necessary. Name: Email: Submit

Requirements

Catalyst switch models 3560, 3750, Catalyst 4500/4000 Series with Sup II+ or later, or Catalyst 6500/6000 Series that run Cisco IOS system software support basic InterVLAN routing features in all their supported software versions. Before you attempt this configuration on a 3550 series switch, ensure that you meet these prerequisites:

InterVLAN routing on the Catalyst 3550 has certain software requirements to support interVLAN routing on the switch. See this table to determine whether your switch can Image Type and Version Enhanced Multilayer Image (EMI) - All Versions Standard Multilayer Image (SMI) - prior to Cisco IOS Software Release12.1(11) EA1 Standard Multilayer Image (SMI) - Cisco IOS Software Release 12.1(11)EA1 and later

InterVLAN Rou Yes

No

Yes

For more information on the differences between SMI and E Catalyst 3550 Series Switches Using the Command Line In to upgrade the IOS code to a version that supports interVLA

This document assumes that Layer 2 has been configured a to the 3550 communicate with one another. If you need info and trunking on the 3550, refer to Creating Ethernet VLANs Software Configuration Guide for the specific IOS version y

Components Used

The information in this document is based on these software and h

Catalyst 3550-48 that runs Cisco IOS Software Release 12.

The information presented in this document was created from dev the devices used in this document started with a cleared (default) network, ensure that you understand the potential impact of any co

Conventions

For more information on document conventions, refer to the Cisco

Configure InterVLAN Routing


Task

In this section, you are presented with the information to configure


http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008019e74e.shtml (1 of 5) [1/5/2012 2:01:17 PM]

How To Configure InterVLAN Routing on Layer 3 Switches - Cisco Systems

This logical diagram explains a simple interVLAN routing scenario a multi-switch environment by first configuring and testing inter-sw before configuring the routing capability. For such a scenario that Configuring InterVLAN Routing with Catalyst 3550 Series Switche

Step-by-Step Instructions
Complete these steps to configure a switch to perform interVLAN

1. Enable routing on the switch by using the ip routing comm step ensures that it is activated.

Switch(config)#ip routing

Note: If the switch does not accept the ip routing comman Software Release12.1(11)EA1 or later, or an EMI image, an for more information.

Tip: Check the show running-configuration . Verify wheth enabled, appears towards the top of the output.

hostname Switch ! ! ip subnet-zero ip routing ! vtp domain Cisco vtp mode transparent

2. Make note of the VLANs that you want to route between. In VLANs 2, 3 and 10.

3. Use the show vlan command to verify that the VLANs exist on the switch. This is an example of adding VLANs 2, 3, an

Switch#vlan database Switch(vlan)#vlan 2 VLAN 2 added: Name: VLAN0002 Switch(vlan)#vlan 3 VLAN 3 added: Name: VLAN0003 Switch(vlan)#vlan 10 VLAN 10 added: Name: VLAN0010 Switch(vlan)#exit APPLY completed. Exiting....

Tip: You can use VLAN Trunking Protocol (VTP) to propaga to Understanding and Configuring VLAN Trunk Protocol (VT

4. Determine the IP addresses you want to assign to the VLAN to route between the VLANs, the VLAN interfaces must be c receives a packet destined for another subnet/VLAN, the sw to forward the packet. The packet is then passed to the VLA the port where the end device is attached.

5. Configure the VLAN interfaces with the IP address identified

Switch#configure terminal Enter configuration commands, on


http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008019e74e.shtml (2 of 5) [1/5/2012 2:01:17 PM]

How To Configure InterVLAN Routing on Layer 3 Switches - Cisco Systems

Switch(config)#interface Vlan2 Switch(config-if)#ip address 10. Switch(config-if)#no shutdown


Repeat this process for all VLANs identified in step 1.

6. Configure the interface to the default router. In this scenario

Switch(config)#interface FastEth Switch(config-if)#no switchport Switch(config-if)#ip address 200 Switch(config-if)#no shutdown


The no switchport command makes the interface Layer 3 the default router.

Note: This step can be omitted if the switch reaches the de IP address for that VLAN interface. 7. Configure the default route for the switch.

Switch(config)#ip route 0.0.0.0

From the diagram in the Task section, note that the IP addr switch receives a packet for a network not in the routing tab further processing. From the switch, verify that you can ping

Note: The ip default-gateway command is used to specify enabled. However, in this case, routing is enabled (from ste is unnecessary.

8. Configure your end devices to use the respective Catalyst 3 For example, devices in VLAN 2 should use the interface V the appropriate client configuration guide for more informati

9. (Optional) When you implement Inter-VLAN routing, you ca to the Isolation Between Two Layer 3 VLANs section of Cre more information.

Verify

This section provides the information to confirm that your configura Certain show commands are supported by the Output Interpreter you to view an analysis of show command output.

show ip route - Provides a snapshot of the routing table en

Cat3550#show ip route Codes: C - connected, S - static - BGP D - EIGRP, EX - EIGRP ext area N1 - OSPF NSSA external t 2 E1 - OSPF external type 1 i - IS-IS, su - IS-IS sum IS level-2, ia - IS-IS inter area, * static route, o - ODR, P - periodic dow

Gateway of last resort is 200.1.

C C C C S*

200.1.1.0/30 is subnetted, 200.1.1.0 is directly co 10.0.0.0/24 is subnetted, 3 10.1.10.0 is directly co 10.1.3.0 is directly con 10.1.2.0 is directly con 0.0.0.0/0 [1/0] via 200.1.1

Note that the routing table has an entry for each VLAN inter can communicate with devices in VLAN 10, VLAN 2 and vic 200.1.1.2 allows the switch to forward traffic to the gateway

show ip interface brief - Lists a brief summary of an interfa used to verify that the VLAN interfaces and ports on the swi

Troubleshoot

This section provides the information used to troubleshoot your co

Troubleshooting Procedure

Here is troubleshooting information relevant to this configuration. F your configuration.

1. Issue Internet Control Message Protocol (ICMP) pings in or


r

If you are not able to ping between two devices on th and destination ports have devices connected to them

http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008019e74e.shtml (3 of 5) [1/5/2012 2:01:17 PM]

How To Configure InterVLAN Routing on Layer 3 Switches - Cisco Systems

information, refer to Creating Ethernet VLANs on Cat


r

If you are not able to ping between two devices on th trunking is configured properly and that the native VL

2. Initiate an ICMP ping from an end device connected to the C In this example, you can use a host on VLAN 2 (10.1.2.2) a able to ping the interface, verify that the host's default gatew IP address and that the subnet masks match. For example, should point to Interface VLAN 2 (10.1.2.1). Also verify the i interface brief command.
r

If the interface status is administratively down, issue interface configuration mode.

If the interface status is down/down, verify the VTP co VLAN database. Check to see if a port is assigned to forwarding state.

3. Initiate a ping from an end device in one VLAN to the interfa switch routes between VLANs. In this example, ping from V or Interface VLAN 10 (10.1.10.1). If the ping fails, verify that interfaces status is up by issuing the show ip interface brie

4. Initiate a ping from the end device in one VLAN to the end d VLAN 2 should be able to ping a device on VLAN 3. If the p end device on other the VLAN, verify that the default gatew

5. If you are not able to reach the Internet or corporate networ the correct IP address on the default router. Also verify that are configured correctly.

There is no set recommended value of bandwidth on a VLAN inter (1 Gigabit), because the route processor internal inband is only 1 G on the show interface vlan output is not fixed bandwidth used by backplane. The bandwidth number can be used in order to manipu load statistics, and so forth.

The Catalyst 6500 switch platform mostly forwards traffic in hardw for example, SNMP, Telnet, SSH, Routing protocols, and ARP, wh which is done in the software.

Cisco Support Community - Featured Conv

Cisco Support Community is a forum for you to ask and answer qu with your peers. Below are just some of the most recent and relev

Want to see more? Join us by clicking here

Inter Vlanadnan.dhl5 Replies3 years, 10 months ago

Vlan Recommendationscreateshare776 Replies8 months, 3 days ago

inter-vlan routingxiaodong-lou0 Replies10 years, 2 weeks ago

Inter VLANCSCO103209531 Reply5 years, 2 weeks ago

two vlan in a switch not communicatingkarthikgopi8 Replies1 year, 9 mon

Inter-VLAN routing - Internet access...iholdings9 Replies1 year, 9 months

CAT 6509 configure intervlan routingtsrader1 Reply7 years, 4 months ago

how to configure inter vlan routingCSCO116443544 Replies2 months, 2 w

InterVLAN Routing Speedtiagolages1 Reply6 years, 11 months ago

How Host A talks to Host Bsmothuku5 Replies4 years, 3 months ago

ISL or 802.1q for inter VLAN routing ?fkseow3 Replies9 years, 6 months a

Related Information

Start A New Discu

Configuring InterVLAN Routing with Catalyst 3550 Serie Configuring Interface Characteristics on the 3560 Serie Configuring Interface Characteristics on the 3750 Serie Configuring Layer 3 Interfaces on Catalyst 6500 Switch Switches Product Support LAN Switching Technology Support Technical Support & Documentation - Cisco Systems

http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008019e74e.shtml (4 of 5) [1/5/2012 2:01:17 PM]

How To Configure InterVLAN Routing on Layer 3 Switches - Cisco Systems

Updated: Sep 26, 2011

Information For

News & Alerts


Support

About Cisco

Small Business Service Provider Executives Home

Newsroom Blogs Newsletters Field Notices

Downloads Documentation

Investor Relations Corporate Social Responsibility Environmental Sustainability Human Network Career Opportunities

Communities

Developer Network Learning Network Support Community

Industries Contacts

Security Advisories

Technology Trends

Offers

Cloud IPv6 Video Architecture Virtualization Experience Infrastructure | Privacy Statement | Cookie Policy | Trademarks

Contact Cisco

Special Offers Financing Options

Find a Partner

Contacts | Feedback | Help | Site Map | Terms & Conditions

http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008019e74e.shtml (5 of 5) [1/5/2012 2:01:17 PM]

You might also like