Configuring InterVLAN Routing

Similar documents
Lab 1. CLI Navigation. Scenario. Initial Configuration for R1

Configuring Token Ring Inter-Switch Link

3. What could you use if you wanted to reduce unnecessary broadcast, multicast, and flooded unicast packets?

Configuring VLANs. Understanding VLANs CHAPTER

Configuring HSRP. Understanding HSRP CHAPTER

Configuring VLANs. Understanding VLANs CHAPTER

RealCiscoLAB.com. Configure inter-vlan routing with HSRP to provide redundant, fault-tolerant routing to the internal network.

Cisco IOS Commands. abort CHAPTER

Configuring VLANs. Understanding VLANs CHAPTER

For information about configuring these settings from Cluster Management Suite (CMS), refer to the online help.

Configuring VLANs. Understanding VLANs CHAPTER

Using the Command-Line Interface

Command-Line Interface (CLI) Basics

Configuring VLANs. Understanding VLANs CHAPTER

Configuring VLANs. Understanding VLANs CHAPTER

Using the Command-Line Interface

Configuring VLANs. Understanding VLANs CHAPTER

Using the Command-Line Interface

Configuring VRRP. Finding Feature Information. The Virtual Router Redundancy Protocol (VRRP) is an election protocol that dynamically assigns

Lab 5-1 Hot Standby Router Protocol

Configuring VLANs. Understanding VLANs CHAPTER

CCNA Layer 2 switching. Revision no.: PPT/2K605/03

standby arp gratuitous through track vrrp

Configuring VRRP. Finding Feature Information. Contents

Chapter 6 Lab 6-1, First Hop Redundancy Protocols HSRP and VRRP INSTRUCTOR VERSION

CCNA 1 Chapter 2 v5.0 Exam Answers %

Configuring CDP. Understanding CDP CHAPTER. This chapter describes how to configure Cisco Discovery Protocol (CDP) on the Catalyst 3560 switch.

Cisco IOS Commands for the Catalyst 4500 Series Switches

Cisco IOS Commands. abort CHAPTER

Cisco IOS Commands for the Catalyst 4500 Series Switches

Configuring Token Ring LAN Emulation

Lab Configuring HSRP and GLBP Topology

Configuring VLANs. Understanding VLANs CHAPTER

Configuring Private VLANs

Configuring STP. Understanding Spanning-Tree Features CHAPTER

Configuring Host Router and Cisco Analog Video Gateway Module Interfaces

22 Cisco IOS Commands for the Cisco 7600 Series Router policy-map

IP MultiLayer Switching Sample Configuration

Corporate Headquarters: Cisco Systems, Inc., 170 West Tasman Drive, San Jose, CA USA

Configuring Secure (Router) Mode, Redundancy, Fault Tolerance, and HSRP

CCNA 1 Chapter 2 v5.0 Exam Answers 2013

VLAN Configuration. Understanding VLANs CHAPTER

Configuring RPR and RPR+ Supervisor Engine Redundancy

This module was first published on May 2, 2005, and last updated on May 2, 2005.

Managing Switches. Finding More Information About IOS Commands CHAPTER

Configuring Voice VLAN

Configuring Stateful Interchassis Redundancy

Education by Simulation Sequential Labs For CCNA

CCNA2 Chapter 1 Practice

Configuring a Basic Wireless LAN Connection

itexamdump 최고이자최신인 IT 인증시험덤프 일년무료업데이트서비스제공

Lab 7 Configuring Basic Router Settings with IOS CLI

Configuring WCCPv2. Information About WCCPv2. Send document comments to CHAPTER

Static NAT Mapping with HSRP

no udld {aggressive enable message time seconds}

King Fahd University of Petroleum & Minerals. Configuration of Routers and Establishing Routed Networks

Catalyst 2960-X Switch Routing Configuration Guide, Cisco IOS Release 15.0(2)EX

Powering On the Cisco VG224 Voice Gateway

Cisco 4-Port and 8-Port Layer 2 Gigabit EtherSwitch Network Interface Module Configuration Guide for Cisco 4000 Series ISR

LAB 3 Basic Switch Configuration Commands

Cisco IOS Commands for the Catalyst 4500 Series Switches

Configuring VLANs. Finding Feature Information. Prerequisites for VLANs

Configuring Interface Characteristics

Configuring VLANs. Finding Feature Information. Prerequisites for VLANs

Lab Using the CLI to Gather Network Device Information Topology

Content Switching Module with SSL Commands

Upon completion of this chapter, you will be able to perform the following tasks: Identify what a VLAN is and how it operates. Configure a VLAN to

Configuring VTP. Understanding How VTP Works CHAPTER

First-Time Configuration

SEMESTER 2 Chapter 1 Planning and Cabling a Network V 4.0

Configuring a Management IP Address on Catalyst 4500/4000, 5500/5000, 6500/6000, and Catalyst Fixed Configuration Switches

Configuring for the First Time

Layer 3 Switch Processing. CEF-Based Multilayer Switches. Layer 3 Switch Processing (Cont.)

Checking Port Status and Connectivity

First Hop Redundancy Protocols Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)

Configuring Cisco Prime NAM

Understanding and Configuring STP

Hot Standby Router Protocol (HSRP): Frequently Asked Questions

Configuring IP Unicast Routing

Zone-Based Policy Firewall High Availability

Configuring Interface Characteristics

Configuring Spanning Tree Protocol

MiPDF.COM. 3. Which procedure is used to access a Cisco 2960 switch when performing an initial configuration in a secure environment?

Using the Command-Line Interface

CHAPTER 2 ACTIVITY

CCNA 1 Final Exam Answers UPDATE 2012 eg.2

Configuring Port Security

The following graphic shows a single switch VLAN configuration.

T e c h n i c a l D o c u m e n t. Cisco 2960G, 2960S, and 2960X Configuration for WheatNet-IP

Configuring NAT for High Availability

Configuring IP Unicast Routing

Configuring Interface Characteristics

Configuring VRF-lite CHAPTER

Configuring HSRP. Global Knowledge Training LLC L5-1

Configuring VTP. Understanding VTP CHAPTER

Configuring Spanning Tree

Cisco HWIC-4ESW and HWIC-D-9ESW EtherSwitch Interface Cards

Cisco IOS Commands for the Catalyst 4500 Series Switches

Cisco IOS Commands for the Catalyst 6500 Series Switches with the Supervisor Engine 32 PISA

Lab Securing Network Devices

Transcription:

CHAPTER 2 Configuring InterVLAN Routing This chapter describes how to configure the Multilayer Switch Feature Card (MSFC) for intervlan routing on the Catalyst 6000 family switches and MSFC. Note For more information on the syntax and usage for the switch commands used in this chapter, refer to the Catalyst 6000 Family Reference publication. This chapter contains these sections: Understanding How InterVLAN Routing Works, page 2-1 Configuring VLAN Trunk Protocol and VLANs on the Switch, page 2-2 Basic Router Configuration s, page 2-3 Configuring InterVLAN Routing on the MSFC, page 2-5 Understanding How InterVLAN Routing Works Network devices in different VLANs cannot communicate with one another without a router to route traffic between the VLANs. In most network environments, VLANs are associated with individual networks or subnetworks. For example, in an IP network, each subnetwork is mapped to an individual VLAN. In an IPX network, each VLAN is mapped to an IPX network number. Configuring VLANs helps control the size of the broadcast domain and keeps local traffic local. However, when an end station in one VLAN needs to communicate with an end station in another VLAN, intervlan communication is required. This communication is supported by intervlan routing. You configure one or more routers to route traffic to the appropriate destination VLAN. Figure 2-1 shows a basic intervlan routing topology. Switch A is in VLAN 10 and Switch B is in VLAN 20. The router has an interface in each VLAN. Configuring InterVLAN Routing 2-1

Configuring VLAN Trunk Protocol and VLANs on the Switch Figure 2-1 Basic InterVLAN Routing Topology VLAN 10 VLAN 20 A Host B Host Switch A ISL Trunks Switch B C Host 18071 When Host A in VLAN 10 needs to communicate with Host B in VLAN 10, it sends a packet addressed to that host. Switch A forwards the packet directly to Host B, without sending it to the router. When Host A sends a packet to Host C in VLAN 20, Switch A forwards the packet to the router, which receives the traffic on the VLAN 10 interface. The router checks the routing table, determines the correct outgoing interface, and forwards the packet out the VLAN 20 interface to Switch B. Switch B receives the packet and forwards it to Host C. Configuring VLAN Trunk Protocol and VLANs on the Switch To configure the MSFC for intervlan routing, you must configure VLAN Trunk Protocol (VTP) and create and configure VLANs on the switch. Note This section describes the basics of VTP and VLAN configuration. For more information, refer to the Catalyst 6000 Family Software Configuration Guide. Note You must have an active VLAN on the switch before the MSFC will bring that VLAN interface up. Note The MSFC can be configured with up to 256 VLAN interfaces. To configure VTP and VLANs on the switch, perform this task in privileged mode: Specify the VTP mode. set vtp mode {client server transparent} Configure a VTP domain (if you configured the switch as a VTP client or server). set vtp domain name Create VLANs on the switch. set vlan vlan_num Step 4 Assign ports to the VLAN. set vlan vlan_num mod_num/port_num 2-2 Catalyst 6000 Family Multilayer Switch Feature Card and Policy Feature Card Configuration Guide

Basic Router Configuration s This example shows how to configure VTP, create two VLANs, and assign switch ports to those VLANs: Console> (enable) set vtp mode server VTP domain modified Console> (enable) set vtp domain Corp_Net VTP domain Corp_Net modified Console> (enable) set vlan 100 Vlan 100 configuration successful Console> (enable) set vlan 200 Vlan 200 configuration successful Console> (enable) set vlan 100 3/1-12 VLAN 100 modified. VLAN 1 modified. VLAN Mod/Ports ---- ----------------------- 100 1/1-2 3/1-12 Console> (enable) set vlan 200 3/13-24 VLAN 200 modified. VLAN 1 modified. VLAN Mod/Ports ---- ----------------------- 200 1/1-2 3/13-24 Console> (enable) Basic Router Configuration s These sections describe basic router configuration tasks you need to understand before you configure intervlan routing: Accessing the MSFC from the Switch, page 2-3 Accessing Configuration Mode on the Router, page 2-4 Viewing and Saving the Router Configuration, page 2-5 Bringing Up a Router Interface, page 2-5 Accessing the MSFC from the Switch These sections describe how to access the MSFC from a directly connected console port or from a Telnet session: Accessing the MSFC from the Console Port, page 2-3 Accessing the MSFC from a Telnet Session, page 2-4 Accessing the MSFC from the Console Port You can use the switch console command to access the MSFC from the switch command-line interface (CLI) directly connected to the supervisor engine console port. To exit from the router CLI and return to the switch CLI, enter the exit command at the Router> prompt. Configuring InterVLAN Routing 2-3

Basic Router Configuration s This example shows how to access the MSFC from the switch CLI, and how to exit the router CLI and return to the switch CLI: Console> (enable) switch console Router> exit Console> (enable) Accessing the MSFC from a Telnet Session You can use the session mod command to access the MSFC from the switch CLI using a Telnet session. To exit from the router CLI back to the switch CLI, enter the exit command at the Router> prompt. Note The supervisor engine software sees the MSFC as module 15 (when installed on a supervisor engine in slot 1) or module 16 (when installed on a supervisor engine in slot 2). This example shows how to access the MSFC from the switch CLI, and how to exit the router CLI and return to the switch CLI: Console> (enable) session 15 Router> exit Console> (enable) Accessing Configuration Mode on the Router To access configuration mode on the router, perform this task: Note Use the switch console command to access the MSFC from the switch CLI when directly connected to the supervisor engine console port. To access the MSFC from a Telnet session, see Accessing the MSFC from a Telnet Session section on page 2-4. Step 4 If you are in the switch CLI, enter the router CLI. At the EXEC prompt, enter enable mode. At the privileged EXEC prompt, enter global configuration mode. Enter the commands to configure intervlan routing. Console> switch console Router> enable Step 5 Exit configuration mode. Router(config)# Ctrl-Z (Refer to the appropriate configuration tasks later in this chapter.) 2-4 Catalyst 6000 Family Multilayer Switch Feature Card and Policy Feature Card Configuration Guide

Viewing and Saving the Router Configuration Viewing and Saving the Router Configuration To view and save the configuration after you make changes, perform this task: View the current operating configuration at the privileged EXEC prompt. Router# show running-config View the configuration in NVRAM. Router# show startup-config Save the current configuration to NVRAM. Router# copy running-config startup-config Bringing Up a Router Interface In some cases, a router interface might be administratively shut down. You can check the status of an interface using the show interface command. Note In a redundant supervisor engine setup, if an interface on one MSFC is shutdown, the matching VLAN interface on the redundant MSFC will stop forwarding packets. Therefore, you should manually shut down the matching interface on the redundant MSFC. To bring up a router interface that is administratively shut down, perform this task in privileged mode: Specify the interface to bring up. Router(config)# interface interface_type interface_number Bring the interface up. Router(config-if)# no shutdown Exit configuration mode. Router(config-if)# Ctrl-Z Configuring InterVLAN Routing on the MSFC Note This section is for those who are familiar with Cisco IOS software and have some experience configuring Cisco routers. If you are not familiar with configuring Cisco routers, refer to the documentation for your router platform. These sections describe how to configure intervlan routing on the MSFC: MSFC Configuration Guidelines, page 2-6 Configuring IP InterVLAN Routing on the MSFC, page 2-6 Configuring IPX InterVLAN Routing on the MSFC, page 2-6 Configuring AppleTalk InterVLAN Routing on the MSFC, page 2-7 Configuring Redundancy with HSRP, page 2-8 Configuring InterVLAN Routing 2-5

Configuring InterVLAN Routing on the MSFC MSFC Configuration Guidelines Configuring intervlan routing on the MSFC consists of two main procedures: 1 You must create and configure VLANs on the switch and assign VLAN membership to switch ports. For more information, see the Configuring VLAN Trunk Protocol and VLANs on the Switch section on page 2-2. 2 You must create and configure VLAN interfaces for intervlan routing on the MSFC. You must configure a VLAN interface between each VLAN you want to route traffic. VLAN interfaces on the MSFC are virtual interfaces. However, you configure them much as you do a physical router interface. Configuring IP InterVLAN Routing on the MSFC To configure intervlan routing for IP, perform this task: (Optional) Enable IP routing on the router 1. (Optional) Specify an IP routing protocol 2. Specify a VLAN interface on the MSFC. Router(config)# ip routing Router(config)# router ip_routing_protocol Router(config)# interface vlan-id Step 4 Assign an IP address to the VLAN. Router(config-if)# ip address n.n.n.n mask Step 5 Exit configuration mode. Router(config-if)# Ctrl-Z 1 This step is necessary if you have multiple routers in the network. 2 This step is necessary if you enabled IP routing in. This step might include other commands, such as specifying the networks to route for using the network router configuration command. Refer to the documentation for your router platform for detailed information on configuring routing protocols. This example shows how to enable IP routing on the MSFC, create a VLAN interface, and assign the interface an IP address: Enter configuration commands, one per line. End with CNTL/Z. Router(config)# ip routing Router(config)# router rip Router(config-router)# network 10.0.0.0 Router(config-router)# interface vlan 100 Router(config-if)# ip address 10.1.1.1 255.0.0.0 Router(config-if)# ^Z Router# Configuring IPX InterVLAN Routing on the MSFC To configure intervlan routing for Internetwork Packet Exchange (IPX), perform this task: (Optional) Enable IPX routing on the router 1. (Optional) Specify an IPX routing protocol 2. Router(config)# ipx routing Router(config)# ipx router ipx_routing_protocol 2-6 Catalyst 6000 Family Multilayer Switch Feature Card and Policy Feature Card Configuration Guide

Configuring AppleTalk InterVLAN Routing on the MSFC Step 4 Specify a VLAN interface on the MSFC. Assign a network number to the VLAN 3. Router(config)# interface vlan-id Router(config-if)# ipx network [network unnumbered] encapsulation encapsulation-type Step 5 Exit configuration mode. Router(config-if)# Ctrl-Z 1 This step is necessary if you have multiple routers in the network. 2 This step is necessary if you enabled IPX routing in. This step might include other commands, such as specifying the networks to route for using the network router configuration command. Refer to the documentation for your router platform for detailed information on configuring routing protocols. 3 This enables IPX routing on the VLAN. When you enable IPX routing on the VLAN, you can also specify an encapsulation type. This example shows how to enable IPX routing on the MSFC, create a VLAN interface, and assign the interface an IPX network address: Enter configuration commands, one per line. End with CNTL/Z. Router(config)# ipx routing Router(config)# ipx router rip Router(config-ipx-router)# network all Router(config-ipx-router)# interface vlan100 Router(config-if)# ipx network 100 encapsulation snap Router(config-if)# ^Z Router# Configuring AppleTalk InterVLAN Routing on the MSFC To configure intervlan routing for AppleTalk, perform this task: (Optional) Enable AppleTalk routing on the router 1. Specify a VLAN interface on the RSM. Router(config)# appletalk routing Router(config)# interface vlan-id Assign a cable range to the VLAN. Router(config-if)# appletalk cable-range cable-range Step 4 Assign a zone name to the VLAN. Router(config-if)# appletalk zone zone-name Step 5 Exit configuration mode. Router(config-if)# Ctrl-Z 1 This step is necessary if you have multiple routers in the network. This example shows how to enable AppleTalk routing on the MSFC, create a VLAN interface, and assign the interface an AppleTalk cable-range and zone name: Enter configuration commands, one per line. End with CNTL/Z. Router(config)# appletalk routing Router(config)# interface vlan100 Router(config-if)# appletalk cable-range 100-100 Router(config-if)# appletalk zone Engineering Router(config-if)# ^Z Router# Configuring InterVLAN Routing 2-7

Configuring InterVLAN Routing on the MSFC Configuring Redundancy with HSRP You can configure one or more Hot Standby Routing Protocol (HSRP) groups on MSFC VLAN interfaces to provide automatic routing backup for your network. Each VLAN interface in an HSRP group shares a virtual IP address and MAC address. You can configure end stations and other devices to use the HSRP address as the default gateway so that the failure of one router interface does not interrupt service to those devices. The interface with the highest HSRP priority is the active interface for that HSRP group. To use HSRP, you must have one of the following configurations: Two supervisor engines in a single chassis (redundant supervisor engines) each supervisor engine must have both an MSFC and PFC installed. Two supervisor engines in two chassis you must have one supervisor engine, equipped with an MSFC and PFC, in each chassis. To configure HSRP on an MSFC VLAN interface, perform this task in interface configuration mode: Enable HSRP and specify the HSRP IP address. If you do not specify a group-number, group 0 is used. Router(config-if)# standby [group-number] ip [ip-address] Step 4 Step 5 Specify the priority for the HSRP interface. Increase the priority of at least one interface in the HSRP group (the default is 100). The interface with the highest priority becomes active for that HSRP group. (Optional) Configure the interface to preempt the current active HSRP interface and become active if the interface priority is higher than the priority of the current active interface. (Optional) Set the HSRP hello timer and holdtime timer for the interface. The default values are 3 (hello) and 10 (holdtime). All interfaces in the HSRP group should use the same timer values. (Optional) Specify a clear-text HSRP authentication string for the interface. All interfaces in the HSRP group should use the same authentication string. Router(config-if)# standby [group-number] priority priority Router(config-if)# standby [group-number] preempt [delay delay] Router(config-if)# standby [group-number] timers hellotime holdtime Router(config-if)# standby [group-number] authentication string This example shows how to configure an interface as part of HSRP group 100: Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface vlan100 Router(config-if)# standby 100 ip 172.20.100.10 Router(config-if)# standby 100 priority 110 Router(config-if)# standby 100 preempt Router(config-if)# standby 100 timers 5 15 Router(config-if)# standby 100 authentication Secret Router(config-if)# ^Z Router# 2-8 Catalyst 6000 Family Multilayer Switch Feature Card and Policy Feature Card Configuration Guide