| 2 comments ]

Overview

Add a note hereNetwork topologies generally associate VLANs with individual networks or subnetworks. However, network devices in different VLANs cannot communicate with each other without a Layer 3 switch or a router to forward traffic between the VLANs. The initial VLAN design recommends that each VLAN is associated with a different subnet as a best practice, therefore inter-VLAN routing is required to route traffic between VLANs. Cisco provides several solutions to enable inter-VLAN routing. Many Catalyst switches have integrated Layer 3 routing capabilities using hardware switching to achieve line-rate performance. In addition, several families of switches use Layer 3 modules to provide inter-VLAN routing.

Add a note hereThis chapter discusses the advantages and disadvantages of different methods of inter-VLAN routing. In addition, it discusses how to plan, implement, and verify inter-VLAN routing using a variety of methods. This chapter also discusses how to configure and implement Dynamic Host Configuration Host (DHCP). Finally, it mentions how a multilayer switch forwards Layer 3 traffic using CEF. CEF is one of the Cisco methods of switches. This chapter goes into detail on how CEF builds and utilizes hardware tables to perform multilayer switching.

Add a note hereUpon completing this chapter, you will be able to implement inter-VLAN routing in a campus network. This ability includes being able to meet these objectives:

  • Add a note here Given an enterprise network, design, plan, implement, and verify inter-VLAN routing using an external router or a multilayer switch, using either switch virtual interfaces or routed interfaces.

  • Add a note hereUnderstand DHCP operation and its implementation and verification in given enterprise network.

  • Add a note hereImplement and verify Cisco Express Forwarding (CEF) on a Cisco Catalyst multilayer switch.


Describing Inter-VLAN Routing

Add a note hereFollowing the recommendation from Campus design, the distribution and Collapsed Core switches always have many VLANs terminating to these switches. Switches at the distribution layer, or in a collapsed core, will almost certainly have multiple VLANs connected to them. A switch with multiple VLANs requires a means of passing Layer 3 traffic to communicate between those VLANs.

Add a note hereThis section describes the process and the various methods of routing traffic from VLAN to VLAN. A router that is external to the Layer 2 switch hosting the VLANs can perform inter-VLAN routing. In addition, Cisco Catalyst multilayer switch can be used to perform both intra-VLAN frame forwarding and inter-VLAN routing.

Add a note hereThis section focuses on how to perform inter-VLAN packet transfer using an external router and a multilayer switch. These sections focus on the following objectives:

  • Add a note hereIntroduction to inter-VLAN routing

  • Add a note hereInter-VLAN routing with an external router

  • Add a note hereInter-VLAN routing with switch virtual interfaces

  • Add a note hereRouting with routed ports

Add a note here Introduction to Inter-VLAN Routing

Add a note hereBecause VLANs isolate traffic to a defined broadcast domain and subnet, network devices in different VLANs cannot communicate with each other natively. As shown in Figure 4-1, the devices in different VLANs cannot communicate without any Layer 3 device. The devices in each VLAN can communicate to the network devices in another VLAN only through a Layer 3 routing device, referred to as an inter-VLAN router (see Figure 4-2). Cisco recommends the implementation of routing in the distribution or core switches of the multilayer switched network to terminate local VLANs. This helps to isolate network problems and to prevent them from affecting the campus backbone. In addition, packet manipulation and control of the traffic across VLANs is simplified by routing in the distribution layer instead of the core layer.

Click to collapse
Add a note hereFigure 4-1: VLAN Isolation
Click to collapse
Add a note hereFigure 4-2: Inter-VLAN Routing

Add a note here The following devices can provide inter-VLAN routing:

  • Add a note hereAny Layer 3 multilayer Catalyst switch

  • Add a note hereAny external router with an interface that supports trunking (router-on-a-stick)

  • Add a note hereAny external router or group of routers with a separate interface in each VLAN


Note

Add a note hereAdding an external router with an individual interface in each VLAN is a nonscalable solution, especially when between 20 and 50 VLANs exist in the network. In addition, adding an external router for inter-VLAN routing on trunk interfaces does not scale beyond 50 VLANs. This chapter discusses only using Layer 3 switches and external routers with trunk interfaces (router-on-a-stick) to route VLANs. Furthermore, Cisco IOS routers support trunking in specific Cisco IOS Software feature sets, such as the IP Plus Feature set. Refer to the documentation on Cisco.com for software requirements before deploying inter-VLAN routing on Cisco IOS routers.

Add a note hereRouter-on-a-stick is simple to implement because routers are usually available in every network, but most enterprise networks use multilayer switches to achieve high packet-processing rates using hardware switching. In addition, Layer 3 switches usually have packet-switching throughputs in the millions of packets per second (pps), whereas traditional general-purpose routers provide packet switching in the range of 100,000 pps to more than 1 million pps.

Add a note here All the Catalyst multilayer switches support three different types of Layer 3 interfaces:

  • Add a note here Routed port: A pure Layer 3 interface similar to a routed port on a Cisco IOS router.

  • Add a note here Switch virtual interface (SVI): A virtual VLAN interface for inter-VLAN routing. In other words, SVIs are the virtual routed VLAN interfaces.

  • Add a note here Bridge virtual interface (BVI): A Layer 3 virtual bridging interface.

Add a note hereBecause of high-performance switches such as the Catalyst 6500 and Catalyst 4500, almost every function, from spanning tree to routing, is done through hardware switching using features such as MLS and Cisco Express Forwarding (CEF)-based MLS, both of which are discussed in detail in later sections of this chapter.

Add a note hereAll Layer 3 Cisco Catalyst switches support routing protocols, but several models of Catalyst switches require enhanced software for specific routing protocol features. Table 4-1 lists the Catalyst switches and their capabilities to support Layer 3.

Add a note here Table 4-1: Cisco Catalyst Switches with Inter-VLAN Routing Support
Open table as spreadsheet

Add a note hereType of Switch

Add a note hereInter-VLAN Routing Capability

Add a note hereInter-VLAN Routing Solution

Add a note hereCatalyst 2940/2950/2955/2960/2970

Add a note hereNo

Add a note hereNot applicable

Add a note hereCatalyst 3560/3750/3760

Add a note hereYes

Add a note hereIntegrated

Add a note hereCatalyst 4000/4500/4948

Add a note hereYes

Add a note hereCatalyst 4000 running Cisco CatOS with Supervisor I or II, using the Layer 3 module, WS-X4232-L3

Add a note hereCatalyst 4000 with a Supervisor II+, III, IV, or V running Cisco IOS using integrated routing

Add a note hereCatalyst 6500

Add a note hereYes

Add a note hereCatalyst 6500 with an MSFC, MSFC II, or MSFC III daughter card running Cisco CatOS on the supervisors and Cisco IOS on the MSFC

Add a note hereCatalyst 6500 with MSFC, MSFC II, or MSFC III running Cisco Native IOS

Add a note hereCatalyst 6500 using a legacy MSM module

Add a note hereCatalyst switches use different default settings for interfaces. For example, all members of the Catalyst 3550 and 4500 families of switches use Layer 2 interfaces by default, whereas members of the Catalyst 6500 family of switches running Cisco IOS use Layer 3 interfaces by default. Recall that default interface configurations do not appear in the running or startup configuration. As a result, depending on which Catalyst family of switches is used, the switchport or no switchport command might be present in the running-config or startup-config files.


Note

Add a note hereAs mentioned in previous chapters, the default configurations do not appear in the running or start-up config. For some Cisco switches, the switchport command is the default config and for others the no switchport command is the default config.

Add a note here Inter-VLAN Routing Using an External Router (Router-on-a-Stick)

Add a note hereIf a switch supports multiple VLANs but has no Layer 3 capability to route packets between those VLANs, the switch must be connected to a device external to the switch that possesses this capability. That device is normally a router, although it could be a multilayer switch (discussed in later subsections). This setup is not a high performance solution but it is quite simple. It just needs a single trunk link between the switch and the router. This single physical link should be Fast Ethernet or greater, although 802.1Q is supported on some new router 10-Mb Ethernet interfaces.

Add a note here Figure 4-3 shows a configuration where the router is connected to a core switch using a single 802.1Q trunk link. This configuration is commonly referred to as router-on-a-stick. The router can receive packets on one VLAN, for example on VLAN 10, and forward them to another VLAN, for example on VLAN 20. To support 802.1Q trunking, subdivide the physical router interface into multiple, logical, addressable interfaces, one per VLAN. The resulting logical interfaces are called subinterfaces.

Image from book
Add a note hereFigure 4-3: Inter-VLAN Routing Using External Router

Add a note here Assume that client PC-1 needs to send traffic to server PC-2, as shown in Figure 4-4. Because the hosts are on different VLANs, transferring this traffic requires a Layer 3 device. In this example, an external router connects to the switch via an 802.1Q trunk—a router-on-a-stick.

Image from book
Add a note hereFigure 4-4: Router-on-a-Stick Forwarding Path

Add a note here Table 4-2 describes the actions necessary for traffic to be routed between VLANs using an external router, as illustrated in Figure 4-4.

Add a note here Table 4-2: Router-on-a-Stick Forwarding Path Steps
Open table as spreadsheet

Add a note hereStep

Add a note hereAction

Add a note here1

Add a note hereThe frame is transmitted by the source device and enters the switch where it is associated with a specific VLAN.

Add a note here2

Add a note hereThe switch determines (from the destination MAC address) that the frame must be forwarded across a trunk link. It adds an 802.1Q tag to the frame header and forwards to the router.

Add a note here3

Add a note hereBased on the 802.1Q tag received, the router accepts the packets from VLAN10 on its subinterface in that VLAN.

Add a note hereThe router performs Layer 3 processing based on the destination network address.

Add a note hereBecause the destination network is associated with a VLAN accessed over the trunk link, the router adds the appropriate 802.1Q tag to the frame header.

Add a note here4

Add a note hereThe router then routes the packet out the appropriate subinterface on VLAN20.

Add a note here5

Add a note hereThe switch removes the 802.1Q tag from the frame. The switch determines from the destination MAC address that the frame will be transmitted through an access mode port in VLAN 20, so the frame is transmitted as an untagged Ethernet frame.

External Router: Advantages and Disadvantages

Add a note hereEvery method of inter-VLAN routing has it advantages and disadvantages. The following are the advantage of the router-on-a-stick method:

  • Add a note here It works with any switch that supports VLANs and trunking because Layer 3 services are not required on the switch. Many switches do not contain Layer 3 forwarding capability, especially switches used at the access layer of a hierarchical network, as listed in Table 4-1. If using Local VLANs, mostly none of the switches at the access layer have Layer 3 forwarding capability. Depending on the network design, it might be possible to have no Layer 3-capable switches at all.

  • Add a note hereThe implementation is simple. Only one switch port and one router interface require configuration. If the switch enables all VLANs to cross the trunk (the default), it literally takes only a few commands to configure the switch.

  • Add a note hereThe router provides communication between VLANs. If the network design includes only Layer 2 switches, this makes the design and troubleshooting traffic flow simply because only one place in the network exists where VLANs inter-connect.

Add a note hereThe following are some of the disadvantages of using the external router for inter-VLAN routing:

  • Add a note here The router is a single point of failure.

  • Add a note hereA single traffic path may become congested. With a router-on-a-stick model, the trunk link is limited by the speed of the router interface shared across all trunked VLANs. Depending on the size of the network, the amount of inter-VLAN traffic, and the speed of the router interface, congestion could result with this design.

  • Add a note hereLatency might be higher as frames leave and re-enter the switch chassis multiple times and the router makes software-based routing decisions. Latency increases any time traffic must flow between devices. Additionally, routers make routing decisions in software, which always incurs a greater latency penalty than switching with hardware.

Add a note here Inter-VLAN Routing Using Switch Virtual Interfaces

Add a note hereIn the early days of switched networks, switching was fast (often at hardware speed) and routing was slow (routing had to be processed in software). This prompted network designers to extend the switched part of the network as much as possible. Access, distribution, and core layers were often partly configured to communicate at Layer 2. This architecture is referred as switched, as shown in Figure 4-5. This topology created loop issues. To solve these issues, spanning-tree technologies were used to prevent loops while still enabling flexibility and redundancy in inter-switch connections.

Click to collapse
Add a note hereFigure 4-5: Routed Versus Switched Campus Architecture

Add a note hereAs network technologies evolved, routing became faster and cheaper. Today, routing can be performed at hardware speed. One consequence of this evolution is that routing can be brought down to the core and the distribution layers without impacting network performance. As many users are in separate VLANs, and as each VLAN is usually a separate subnet, it is logical to configure the distribution switches as Layer 3 gateways for the users of each access switch VLAN. This implies that each distribution switch must have IP addresses matching each access switch VLAN. This architecture is referred to as routed, as shown in Figure 4-5.

Add a note here As reflected in Figure 4-5, between the distribution and the core layer, implement Layer 3 ports instead of L2. Because dynamic routing protocols can dynamically adapt to any change in the network topology, this new topology also eliminates Layer 2 loops. Between access and distribution switches, where Layer 2 connections remain, FlexLink technology can be used to activate only one link at a time or Layer 2 EtherChannel can be used, thus removing the risk of loops and the need for spanning tree.

Add a note hereAn SVI is a virtual interface configured within a multilayer switch compared to external router configuration where the trunk is needed, as shown in Figure 4-6. An SVI can be created for any VLAN that exists on the switch, as illustrated in Figure 4-6. Only one VLAN associates with one SVI. An SVI is “virtual” in that there is no physical port dedicated to the interface, yet it can perform the same functions for the VLAN as a router interface would and can be configured in much the same way as a router interface (IP address, inbound/outbound ACLs, and so on). The SVI for the VLAN provides Layer 3 processing for packets to or from all switch ports associated with that VLAN.

Click to collapse
Add a note hereFigure 4-6: SVI Versus External Router

Add a note hereBy default, an SVI is created for the default VLAN (VLAN1) to permit remote switch administration. Additional SVIs must be explicitly created. SVIs are created the first time the VLAN interface configuration mode is entered for a particular VLAN SVI (for instance, when the command interface vlan ## is entered). The VLAN number used corresponds to the VLAN tag associated with data frames on an 802.1Q encapsulated trunk or to the VLAN ID (VID) configured for an access port. For instance, if creating an SVI as a gateway for VLAN 10, name the SVI interface VLAN 10. Configure and assign an IP address to each VLAN SVI that is to route traffic off of and onto a VLAN.

Add a note hereWhenever the SVI is created, make sure that particular VLAN is present in the VLAN database manually or learned via VTP. As shown in Figure 4-6, the switch should have VLAN 10 and VLAN 20 present in the VLAN database; otherwise, the SVI interface will stay down.

Add a note hereThe following are some of the reasons to configure SVI:

  • Add a note here To provide a gateway for a VLAN so that traffic can be routed into or out of that VLAN

  • Add a note hereTo provide fallback bridging if it is required for nonroutable protocols


    Note

    Add a note hereUsing fallback bridging, non-IP packets can be forwarded across the routed interfaces. This book focuses only on inter-VLAN routing, so only IP connectivity is discussed.

  • Add a note hereTo provide Layer 3 IP connectivity to the switch

  • Add a note hereTo support routing protocol and bridging configurations

SVI: Advantages and Disadvantages

Add a note hereThe following are some of the advantage of SVI:

  • Add a note hereIt is much faster than router-on-a-stick because everything is hardware switched and routed.

  • Add a note hereNo need for external links from the switch to the router for routing.

  • Add a note hereNot limited to one link., Layer 2 EtherChannels can be used between the switches to get more bandwidth.

  • Add a note hereLatency is much lower because it doesn’t need to leave the switch.

Add a note hereThe following are some of the disadvantages:

  • Add a note hereIt needs a Layer 3 switch to perform Inter-VLAN routing, which is more expensive.

Add a note here Routing with Routed Ports

Add a note hereA routed port is a physical port that acts similarly to a port on a traditional router with Layer 3 addresses configured. Unlike an access port, a routed port is not associated with a particular VLAN. A routed port behaves like a regular router interface. Also, because Layer 2 functionality has been removed, Layer 2 protocols, such as STP and VTP, do not function on a routed interface. However, protocols such as LACP, which can be used to build either Layer 2 or Layer 3 EtherChannel bundles, would still function at Layer 3.


Note

Add a note hereRouted interfaces don’t support subinterfaces as with Cisco IOS routers.

Add a note hereRouted ports are used for point-to-point links; connecting WAN routers and security devices are examples of the use of routed ports. In the campus switched network, routed ports are mostly configured between the switches in the campus backbone and between switches in the campus backbone and building distribution switches if Layer 3 routing is applied in the distribution layer. Figure 4-7 illustrates an example of routed ports for point-to-point links in a campus switched network.

Image from book
Add a note hereFigure 4-7: Inter-VLAN Routing with Routed Ports

Add a note here To configure routed ports, make sure to configure the respective interface as a Layer 3 interface using the no switchport interface command, if the default configurations of the interfaces are Layer 2 interfaces as with the Catalyst 3560 family of switches. In addition, assign an IP address and other Layer 3 parameters as necessary. After assigning the IP address, make certain that IP routing is globally enabled and that applicable routing protocols are configured.

Add a note hereThe number of routed ports and SVIs that can be configured on a switch is not limited by software. However, the interrelationship between these interfaces and other features configured on the switch may overload the CPU due to hardware limitations, so a network engineer should fully consider these limits before configuring these features on numerous interfaces.

Routed Port: Advantage and Disadvantages

Add a note hereFollowing are some of the advantages of routed ports:

  • Add a note hereA multilayer switch can have SVI and routed ports in a single switch.

  • Add a note hereMultilayer switches forward either Layer 2 or Layer 3 traffic in hardware, so it helps to do routing faster.

Add a note here L2 EtherChannel Versus L3 EtherChannel

Add a note here The EtherChannel technology is available to bundle ports of the same type. On a Layer 2 switch, EtherChannel can aggregate access ports such as servers that support EtherChannel or trunk links to connect switches. As each EtherChannel link is seen as one logical connection, ports that are member of an EtherChannel can load balance traffic on all the links that are up.

Add a note hereOn Layer 3 switches, switched ports can be converted to routed ports. These ports do not perform switching at Layer 2 anymore, but become Layer 3 ports similar to those found on router platforms. Routed Layer 3 ports can also form EtherChannel just like Layer 2.

Add a note hereOn a multilayer switch, it is easy to configure Layer 2 EtherChannels or Layer 3 EtherChannels, depending on what type of devices connect and depending on their position in the network. The configuration requires that ports on both sides are configured the same way: switch ports (access or trunk) or routed ports. As shown in Figure 4-8, the bottom switch is Layer 2-only because it is an access switch, so Layer 2 EtherChannel is configured. At the distribution or the core layer, where Layer 3 links are recommended, Layer 3 EtherChannels are configured.

Image from book
Add a note hereFigure 4-8: Layer 2 Versus Layer 3 EtherChannel

2 comments

Unknown said... @ May 8, 2018 at 10:48 PM

good job and hope all of people learn how it's work
for more info check my account
https://staff.najah.edu/en/profiles/administrative-staff/8713/

Unknown said... @ May 8, 2018 at 10:48 PM

https://staff.najah.edu/en/profiles/administrative-staff/8713/

Post a Comment