home *** CD-ROM | disk | FTP | other *** search
/ Sybex Virtual Trainer CCNP Switching / Sybex_Virtual_Trainer_CCNP_Switching.iso / ccnp2711 / media / content / 2711c06.xml < prev    next >
Encoding:
Text File  |  2001-03-27  |  61.4 KB  |  710 lines

  1. <CHAPTER ID="6"><TITLE>Inter-VLAN Routing</TITLE>
  2.  
  3. <CHAPTEROBJECTIVEBLOCK><CHAPTEROBJECTIVETITLE>The CCNP exam topics covered in this chapter include the following:</CHAPTEROBJECTIVETITLE>
  4. <CHAPTEROBJECTIVE>Inter-VLAN routing issues and solutions</CHAPTEROBJECTIVE>
  5. <CHAPTEROBJECTIVE>Configuring inter-VLAN routing</CHAPTEROBJECTIVE>
  6. <CHAPTEROBJECTIVE>Configuring internal route processors </CHAPTEROBJECTIVE>
  7. <CHAPTEROBJECTIVE>Configuring external route processors</CHAPTEROBJECTIVE></CHAPTEROBJECTIVEBLOCK>
  8. <PARA><DROPCAP>R</DROPCAP>outers break up broadcast domains. Layer 2 switches are used to break up collision domains. If you connect all your switches together, they will be in one broadcast domain. You can break up broadcast domains in layer 2 switched networks by creating virtual LANs (VLANs). However, the hosts within a VLAN can communicate only within the same VLAN by default. </PARA>
  9. <PARA>For devices in one VLAN to communicate with devices in a different VLAN, they must be routed through a layer 3 device. This is called <KEYTERM>inter-VLAN</KEYTERM> routing. You can perform inter-VLAN routing with internal route processors in a layer 2 switch or with an external router called an <KEYTERM>external route processor</KEYTERM>. </PARA>
  10. <PARA>In this chapter, we will cover both internal route processors, known as Route Switch Modules (RSMs), and external route processors and how to configure them for inter-VLAN configuration.</PARA>
  11.  
  12. <SECTION ID="6.1"><TITLE>Routing between VLANs</TITLE>
  13. <PARA><DROPCAP>A </DROPCAP>VLAN's main job is to keep local traffic local, which it does very well. We have already mentioned in this course that you cannot communicate between VLANs without a router (layer 3 device), so understanding the configuration of VLANs and understanding routing go hand in hand.</PARA>
  14. <PARA>Route processors provide the communication that hosts need between VLANs. However, if you are using local VLANs (see <NOBR REF="3">Chapter 3</NOBR> for a thorough explanation), you want to design your networks so at least 80 percent of the users' traffic does not cross over into another VLAN. Therefore, you should design the network so that the users have access to local servers and other needed resources to prevent excessive packets from crossing the route processor. </PARA>
  15. <PARA>VLANs should be configured one for one with IP subnet designs. What this means is that you need to create a subnet mask for your network, then design your VLANs around the subnet design. For example, if you have engineering, marketing, sales, and support departments, you will typically-not always, but typically-create a subnet for each department, making sure you have room for growth. You would then create a VLAN for each department. In <NOBR REF="3">Chapter 3</NOBR>, we discussed the difference between local and end-to-end VLANs. Regardless of the type of VLAN you configure, each of these types would associate with a subnet.</PARA>
  16. <PARA>Each device within a VLAN would have a default gateway of the inter-VLAN device connected to its LAN. The inter-VLAN device would then route any packets with a destination not on the local network. </PARA>
  17. <PARA>Before configuring routing between your VLANs, you need to understand the type of data sharing that is needed. By understanding the user and business needs, you can design the network with load balancing and/or redundant links if needed. </PARA>
  18. <PARA>There are basically three options that you can choose from:</PARA>
  19. <LIST MARK="bullet">
  20. <LISTITEM><PARA>Multiple links</PARA></LISTITEM>
  21. <LISTITEM><PARA>A single trunked link</PARA></LISTITEM>
  22. <LISTITEM><PARA>Route Switch Module (RSM)</PARA></LISTITEM>
  23. </LIST>
  24.  
  25. <SECTION ID="6.1.1" POS="1"><TITLE>Multiple Links and A Single Trunked Link</TITLE>
  26. <!-- <PARA>You can configure your VLANs to communicate by connecting a router interface into a switch port that is configured for each VLAN. Each workstation in the VLAN would have its default gateway configured for this router interface. Figure 6.1 shows how this might look in an internetwork.</PARA> -->
  27. <SLUG NUM="6.1">Figure 6.1: Routers with multiple links        [f0601.eps]</SLUG>
  28. <!-- <PARA>This is not a bad solution, but it does not scale well when you have over four or so VLANs. It depends on the type of router you have. For every VLAN, you need to have a router interface (typically FastEthernet or Gigabit Ethernet) so a larger, more expensive router can have more interfaces without being saturated.</PARA>
  29. <PARA>The more VLANs you have, the more router interfaces you have to purchase with the router. Also, you should have a fast router like a high-end (at least a 4700 or 7000 series) router that can route quickly so the router does not become a bottleneck. Cost then becomes the issue with multiple links. </PARA> -->
  30. <!-- </SECTION>
  31.  
  32. <SECTION ID="6.1.2"><TITLE>A Single Trunked Link</TITLE>
  33. <PARA>Another possible solution to routing between VLANs is creating a trunked link on a switch and then using a frame tagging protocol such as ISL or 802.1q (which are used to identify frames as they traverse FastEthernet and Gigabit Ethernet links) on the router. Cisco calls this solution "router on a stick."</PARA>
  34. <PARA>Figure 6.2 shows how the internetwork might look with a single trunked link for all VLANs. </PARA> -->
  35. <!-- <SLUG NUM="6.2">Figure 6.2: Single trunked link for all VLANs            [f0602.eps]</SLUG> -->
  36. <!-- <PARA>This solution uses only one router interface on the router, but it also puts all the traffic on one interface. You really have to have a fast router to do this. Also, to even perform this function, you need at minimum a FastEthernet interface on a 2600 series router. ISL does not work on 10BaseT interfaces, nor would you want to run this on 10BaseT because it is processor and bandwidth intensive. </PARA> -->
  37. <PARA>There are some really nice high-end routers that provide multi-layer switching by communicating to a NetFlow Feature Card (NFFC) in the Cisco Catalyst 5000 series of switches. The routers must have the IOS versions of 11.3.4 or later and run the MultiLayer Switch Protocol (MLSP). The routers that support this are the 7500, 7200, 4500, and 4700 series of routers. </PARA>
  38. </SECTION> 
  39.  
  40. <SECTION ID="6.1.2"><TITLE>Route Switch Modules (RSMs)</TITLE>
  41. <PARA><KEYTERM>Route Switch Modules (RSMs)</KEYTERM> are also called <KEYTERM>internal route processors</KEYTERM> because the processing of layer 3 packets is internal to a switch. You need to add an RSM to a layer 2 device-for example, a 5000 Catalyst switch-to be able to provide switching of layer 3 packets without a router. </PARA>
  42. <PARA>An RSM makes layer 2 switches a multi-layer switch and can integrate layer 2 and layer 3 functionality in a single box. The 5000 series uses the RSM or a <KEYTERM>Route Switch Feature Card (RSFC)</KEYTERM>, and the 6000 series uses the Multilayer Switch Module (MSM) to perform this function. The RSM, RSFC, and MSM are configured in exactly the same way on the switch.</PARA>
  43. <PARA>The RSM is a module plugged directly into the switch, which runs the Cisco IOS in order to perform inter-VLAN communication. The 5000 series switch sees the RSM as a single trunked port and a single MAC address. In other words, it appears as a router on a stick to the switch. The RSM interface to the switch is through VLAN 0 and VLAN 1. VLAN 0 is not accessible to the administrator. The RSM uses two channels, and VLAN 0 maps to channel 0, which supports communication between the RSM and the Catalyst 5000 series default VLAN (VLAN 1). VLAN 1 maps to channel 1. The MAC address assigned to the RSM is from the Programmable Read Only Memory (PROM) on the line communication processor (LCP). This MAC address is used to identify the slot of the RSM and for diagnostics. The MAC addresses for VLAN 1 are assigned from a PROM that contains 512 MAC addresses. All routing interfaces except VLAN 0 use the base MAC address.</PARA>
  44. <PARA>The RSFC is a daughter card for the Supervisor Engine II G and Supervisor III G cards. The RSFC is a fully functioning router running the Cisco IOS. </PARA>
  45. <PARA>The MSM uses four full-duplex Gigabit Ethernet interfaces to connect to the switch and looks like an external router to the switch. These four interfaces can be four separate links for four different VLANs, or they can be trunked and configured as one load-balanced link running EtherChannel and ISL or 802.1q. Subinterfaces are then used to configure each VLAN. </PARA>
  46. </SECTION>
  47. </SECTION>
  48.  
  49. <SECTION ID="6.2"><TITLE>Inter-Switch Link Routing</TITLE>
  50. <PARA><DROPCAP>T</DROPCAP>he best solution to inter-VLAN routing is to provide a Gigabit Ethernet router interface for each VLAN. However, we have found that this can be cost prohibitive. What if you have 500 VLANs? Can you really afford a router with 500 Gigabit Ethernet ports? That would be an interesting configuration. </PARA>
  51. <PARA>Cisco to the rescue! You can use either one FastEthernet or one Gigabit Ethernet interface for all your VLANs. Cisco has created the proprietary protocol Inter-Switch Link (ISL) to allow routing between VLANs with only one Ethernet interface. To run ISL, you need to have two VLAN-capable FastEthernet or Gigabit Ethernet devices, such as a Cisco 5000 switch and a 7000 series router. </PARA>
  52. <PARA>Remember from <NOBR REF="3">Chapter 3</NOBR> that ISL is a way of explicitly tagging VLAN information onto an Ethernet frame? This tagging information allows VLANs to be multiplexed over a trunk link through an external encapsulation method. By running ISL, you can interconnect multiple switches and still maintain VLAN information as traffic travels between switches on trunk links.</PARA>
  53.  
  54. <SECTION ID="6.2.1" POS="1"><TITLE>Configuring ISL</TITLE>
  55. <PARA>You can configure inter-VLAN routing with either an external router or an internal route processor that can be placed in a slot of a Catalyst switch. In this section, we'll take a look at both options.</PARA>
  56.  
  57. <SECTION ID="6.2.1.1"><TITLE>External </TITLE>
  58. <PARA>An external layer 3 device can be used to provide routing between VLANs. You can use almost any router to perform this function, but FastEthernet or Gigabit Ethernet is suggested. If you have many small VLANs that perform at least 80 percent or more of their network function on the local VLAN, then you can probably get away with a 10Mbps Ethernet connection into each VLAN. Still, you should get FastEthernet if you can. </PARA>
  59. <PARA>The external router can be configured to have one Ethernet interface for each VLAN, or you can use trunking protocols like ISL or 802.1q to configure one FastEthernet or Gigabit Ethernet for all the VLANs that use subinterfaces. These subinterfaces give you an extremely flexible solution for providing routing between VLANs. To perform ISL routing on a single interface, the interface must be at least a FastEthernet interface that supports ISL routing. The Cisco 2600 is the least expensive router that can perform this function. </PARA>
  60. <PARA>To configure ISL routing on a single interface, you must configure subinterfaces. These are configured by using the <INLINECODEVARIABLE>type int.subinterface_number</INLINECODEVARIABLE> command. Here is an example on a 2600 router with a FastEthernet interface:</PARA>
  61. <CODESNIPPET><CODELINE>Router#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  62. <CODELINE>Enter configuration commands, one per line.  End with CNTL/Z.</CODELINE>
  63. <CODELINE>Router(config)#<EMPHASIS FORMAT="bold">int f0/0.?</EMPHASIS></CODELINE>
  64. <CODELINE>  &lt;0-4294967295>  FastEthernet interface number</CODELINE>
  65. <CODELINE></CODELINE>
  66. <CODELINE>Router(config)#<EMPHASIS FORMAT="bold">int f0/0.1</EMPHASIS></CODELINE>
  67. <CODELINE>Router(config-subif)#</CODELINE></CODESNIPPET>
  68. <PARA>Notice the amount of subinterfaces available (4.2 billion). You can choose any number that feels good because they are only locally significant to the router. However, we usually like to choose the VLAN number for ease of administration. Notice that the prompt on the router is now telling you that you are configuring a subinterface (<INLINECODE>config-subif</INLINECODE>). </PARA>
  69. <PARA>Once you configure the subinterface number you want, you then need to define the type of encapsulation you are going to use. Here is an example of the different types of trunking protocols you can use:</PARA>
  70. <CODESNIPPET><CODELINE>Router(config-subif)#<EMPHASIS FORMAT="bold">encap ?</EMPHASIS></CODELINE>
  71. <CODELINE>  dot1Q   IEEE 802.1Q Virtual LAN</CODELINE>
  72. <CODELINE>  isl     Inter Switch Link - Virtual LAN encapsulation</CODELINE>
  73. <CODELINE>  sde     IEEE 802.10 Virtual LAN - Secure Data Exchange</CODELINE>
  74. <CODELINE>  tr-isl  Token Ring Inter Switch Link - Virtual LAN   encapsulation</CODELINE></CODESNIPPET>
  75. <PARA>You're not done yet. You need to tell the subinterface which VLAN it is a member of, and you provide this information on the same line as the encapsulation command. Here is an example:</PARA>
  76. <CODESNIPPET><CODELINE>Router(config-subif)#<EMPHASIS FORMAT="bold">encap isl ?</EMPHASIS></CODELINE>
  77. <CODELINE>  &lt;1-1000>  Virtual LAN Identifier.</CODELINE></CODESNIPPET>
  78. <PARA>Notice that you can configure the subinterface to be a part of any VLAN up to 1000. The dot1q encapsulation is for the IEEE standard 802.1q trunking. ISL is for ISL encapsulation. </PARA>
  79. <PARA>After you choose the interface and encapsulation type and VLAN number, configure the IP address this subinterface is a member of. The complete configuration would look like this:</PARA>
  80. <CODESNIPPET><CODELINE>Router#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  81. <CODELINE>Enter configuration commands, one per line.  End with CNTL/Z.</CODELINE>
  82. <CODELINE>Router(config)#<EMPHASIS FORMAT="bold">int f0/0.1</EMPHASIS></CODELINE>
  83. <CODELINE>Router(config-subif)#<EMPHASIS FORMAT="bold">encap isl 1</EMPHASIS></CODELINE>
  84. <CODELINE>Router(config-subif)#<EMPHASIS FORMAT="bold">ip address 172.16.10.1 255.255.255.0</EMPHASIS></CODELINE></CODESNIPPET>
  85. <PARACONTINUED>The above configuration is for subinterface f0/0.1 to VLAN 1. You would create a subinterface for each VLAN. You can verify your configuration with the <INLINECODE>show running-config</INLINECODE> command: </PARACONTINUED>
  86. <CODESNIPPET><CODELINE>!</CODELINE>
  87. <CODELINE>interface FastEthernet0/0.1</CODELINE>
  88. <CODELINE> encapsulation isl 1</CODELINE>
  89. <CODELINE> ip address 172.16.10.1 255.255.255.0</CODELINE>
  90. <CODELINE>!</CODELINE></CODESNIPPET>
  91. </SECTION>
  92.  
  93. <SECTION ID="6.2.1.2"><TITLE>Internal</TITLE>
  94. <PARA>If you do not have an external router or if you have many VLANs, you should use a Route Switch Module (RSM) or Route Switch Feature Card (RSFC) to provide the layer 3 routing for your 5000 series switch. </PARA>
  95. <PARA>The first thing you need to type in is the <INLINECODE>show module</INLINECODE> command so you can see the RSM. Notice in the switch output below that the 5000 switch has an RSFC in slot 1, but it is in module 15. This information will allow you to connect and configure the internal route processor:</PARA>
  96. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">sh module</EMPHASIS></CODELINE>
  97. <CODELINE>Mod Slot Ports Module-Type               Model          Status</CODELINE>
  98. <CODELINE>--- ---- ----- ------------------------- ------------- --------</CODELINE>
  99. <CODELINE>1   1    2     1000BaseX Supervisor IIIG WS-X5550          ok</CODELINE>
  100. <CODELINE>15  1    1     Route Switch Feature Card WS-F5541          ok</CODELINE>
  101. <CODELINE>2   2    24    10/100BaseTX Ethernet     WS-X5225R         ok</CODELINE>
  102. <CODELINE>3   3    2     UTP OC-3 Dual-Phy ATM     WS-X5156          ok</CODELINE>
  103. <CODELINE>13  13         ASP/SRP</CODELINE>
  104. <CODELINE></CODELINE>
  105. <CODELINE>Mod Module-Name         Serial-Num</CODELINE>
  106. <CODELINE>--- ------------------- --------------------</CODELINE>
  107. <CODELINE>1                       00014364176</CODELINE>
  108. <CODELINE>15                      14452699</CODELINE>
  109. <CODELINE>2                       00017581709</CODELINE>
  110. <CODELINE>3                       00014173130</CODELINE>
  111. <CODELINE></CODELINE>
  112. <CODELINE>Mod MAC-Address(es)                        Hw     Fw         Sw</CODELINE>
  113. <CODELINE>--- -------------------------------------- ------ ------- -----------</CODELINE>
  114. <CODELINE>1   00-b0-c2-b2-d0-00 to 00-b0-c2-b2-d3-ff 1.1    5.1(1)     5.2(1)</CODELINE>
  115. <CODELINE>15  00-30-f2-c8-11-00 to 00-30-f2-c8-11-3f 1.0    12.0(3c)W5 12.0(3c)W5(8a),</CODELINE>
  116. <CODELINE>2   00-30-7b-36-2b-50 to 00-30-7b-36-2b-67 3.3    4.3(1)     5.2(1)</CODELINE>
  117. <CODELINE>3   00-10-7b-42-e7-da                      2.4    1.3   11.3(8)WA4(11a)3.2(13)</CODELINE></CODESNIPPET>
  118. <PARA>Not only does the command <INLINECODE>show module</INLINECODE> provide the module and slot that each card is in, it provides the serial number and the modules' MAC addresses. Once you find the module number, you can then connect to that module using the <INLINECODE>session</INLINECODE> command. Here is an example:</PARA>
  119. <CODESNIPPET><CODELINE>Todd5000> (enable)</CODELINE>
  120. <CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">session 15</EMPHASIS></CODELINE>
  121. <CODELINE>Trying Router-15...</CODELINE>
  122. <CODELINE>Connected to Router-15.</CODELINE>
  123. <CODELINE>Escape character is '^]'.</CODELINE></CODESNIPPET>
  124. <PARA>You are now connected to the internal route processor and can continue to configure the device like any other router. Notice in the router output below that we set the hostname and routing protocol as well: </PARA>
  125. <CODESNIPPET><CODELINE>Router></CODELINE>
  126. <CODELINE>Router><EMPHASIS FORMAT="bold">ena</EMPHASIS></CODELINE>
  127. <CODELINE>Router#</CODELINE>
  128. <CODELINE>Router#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  129. <CODELINE>Enter configuration commands, one per line.  End with CNTL/Z.</CODELINE>
  130. <CODELINE>Router(config)#<EMPHASIS FORMAT="bold">hostname ToddRSM</EMPHASIS></CODELINE>
  131. <CODELINE>ToddRSM(config)#<EMPHASIS FORMAT="bold">router eigrp 10</EMPHASIS></CODELINE>
  132. <CODELINE>ToddRSM(config-router)#<EMPHASIS FORMAT="bold">netw 172.16.0.0</EMPHASIS></CODELINE></CODESNIPPET>
  133. <PARA>As we mentioned, the route processor looks like any Cisco router, which is a really nice feature. It's just as important to configure the routing protocols on this device as it is to configure them on any other router.</PARA>
  134. <PARA>Before we continue with configuring VLANs on the internal route processor, let's take a look at another 5000 series switch that has a Route Switch Module:</PARA>
  135. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">sh module</EMPHASIS></CODELINE>
  136. <CODELINE>Mod Module-Name  Ports Module-Type           Model    Serial-Num Status</CODELINE>
  137. <CODELINE>--- ----------   ----- --------------------- --------- --------- </CODELINE>
  138. <CODELINE>1                  2    100BaseTX Supervisor  WS-X5509  005147178 ok</CODELINE>
  139. <CODELINE>2                 12    10/100BaseTX Ethernet WS-X5213A 005153813 ok</CODELINE>
  140. <CODELINE>4                       Route Switch Ext Port</CODELINE>
  141. <CODELINE>5                  1    Route Switch          WS-X5304  018465234 ok</CODELINE>
  142. <CODELINE></CODELINE>
  143. <CODELINE>Mod MAC-Address(es)                        Hw     Fw         Sw</CODELINE>
  144. <CODELINE>--- -------------------------------------- ------ ---------- --------</CODELINE>
  145. <CODELINE>1   00-e0-34-88-fc-00 to 00-e0-34-88-ff-ff 1.8    5.1(2)     4.5(5)</CODELINE>
  146. <CODELINE>2   00-e0-1e-11-73-64 to 00-e0-1e-11-73-6f 1.1    1.4        4.5(5)</CODELINE>
  147. <CODELINE>5   00-e0-1e-90-d2-bc to 00-e0-1e-90-d2-bd 7.6    20.14 11.3(8)WA4(11)</CODELINE>
  148. <CODELINE></CODELINE>
  149. <CODELINE>Mod Sub-Type Sub-Model Sub-Serial Sub-Hw</CODELINE>
  150. <CODELINE>--- -------- --------- ---------- ------</CODELINE>
  151. <CODELINE>1   EARL 1+  WS-F5511  0005059935 1.1</CODELINE></CODESNIPPET>
  152. <PARA>Notice that the RSM on the 5000 series is in module 5. To configure the RSM, we would type <INLINECODEUSERINPUT>session 5</INLINECODEUSERINPUT>, as shown below:</PARA>
  153. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">session 5</EMPHASIS></CODELINE>
  154. <CODELINE>Trying Router-5...</CODELINE>
  155. <CODELINE>Connected to Router-5.</CODELINE>
  156. <CODELINE>Escape character is '^]'.</CODELINE>
  157. <CODELINE></CODELINE>
  158. <CODELINE>Router><EMPHASIS FORMAT="bold">en</EMPHASIS></CODELINE>
  159. <CODELINE>Router#</CODELINE></CODESNIPPET>
  160. <PARACONTINUED>Once we have entered the CLI of the RSM, you can see that the Router# prompt appears just as it does on the RSFC. They are configured exactly the same. </PARACONTINUED>
  161.  
  162. <SECTION ID="6.2.1.2.1"><TITLE>Creating VLANs on an RSM</TITLE>
  163. <PARA>Instead of creating subinterfaces as you would with an external router, you configure each VLAN with the <INLINECODE>int vlan </INLINECODE><INLINECODEVARIABLE>#</INLINECODEVARIABLE> command. Here is an example of how to configure the processor to route between three VLANs:</PARA>
  164. <CODESNIPPET><CODELINE>ToddRSM#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  165. <CODELINE>ToddRSM(config)#<EMPHASIS FORMAT="bold">int vlan 1</EMPHASIS></CODELINE>
  166. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">ip address 172.16.1.1 255.255.255.0</EMPHASIS></CODELINE>
  167. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">int vlan 2</EMPHASIS></CODELINE>
  168. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">ip address 172.16.2.1 255.255.255.0</EMPHASIS></CODELINE>
  169. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">int vlan 3</EMPHASIS></CODELINE>
  170. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">ip address 172.16.3.1 255.255.255.0</EMPHASIS></CODELINE>
  171. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">no shut</EMPHASIS></CODELINE></CODESNIPPET>
  172. <PARACONTINUED>The interesting part of the configuration is the necessary <INLINECODE>no shutdown</INLINECODE> command for each VLAN interface. Notice in the configuration above that we only performed a <INLINECODE>no shut</INLINECODE> on interface vlan 3. Take a look at the output of interface vlan 2:</PARACONTINUED>
  173. <CODESNIPPET><CODELINE>ToddRSM#<EMPHASIS FORMAT="bold">sh int vlan 2</EMPHASIS></CODELINE>
  174. <CODELINE>Vlan2 is administratively down, line protocol is down</CODELINE>
  175. <CODELINE>  Hardware is Cat5k RP Virtual Ethernet, address is 0030.f2c8.1138 (bia 0030.f2c8.1138)</CODELINE></CODESNIPPET>
  176. <PARACONTINUED>It is important to think of each VLAN interface as a separate interface that needs an <INLINECODE>IP address</INLINECODE> and a <INLINECODE>no shutdown</INLINECODE> performed, just as with any other router interface. </PARACONTINUED>
  177. <PARA>You can then verify your configuration with the <INLINECODE>show running-config</INLINECODE> command: </PARA>
  178. <CODESNIPPET><CODELINE>ToddRSM#<EMPHASIS FORMAT="bold">sh run</EMPHASIS>              </CODELINE>
  179. <CODELINE>Current configuration:</CODELINE>
  180. <CODELINE>!</CODELINE>
  181. <CODELINE>version 12.0</CODELINE>
  182. <CODELINE>service timestamps debug uptime</CODELINE>
  183. <CODELINE>service timestamps log uptime</CODELINE>
  184. <CODELINE>no service password-encryption</CODELINE>
  185. <CODELINE>!</CODELINE>
  186. <CODELINE>hostname ToddRSM</CODELINE>
  187. <CODELINE>!</CODELINE>
  188. <CODELINE>interface Vlan1</CODELINE>
  189. <CODELINE> ip address 172.16.1.1 255.255.255.0</CODELINE>
  190. <CODELINE>!</CODELINE>
  191. <CODELINE>interface Vlan2</CODELINE>
  192. <CODELINE> ip address 172.16.2.1 255.255.255.0</CODELINE>
  193. <CODELINE>!</CODELINE>
  194. <CODELINE>interface Vlan3</CODELINE>
  195. <CODELINE> ip address 172.16.3.1 255.255.255.0</CODELINE>
  196. <CODELINE>!</CODELINE>
  197. <CODELINE>router eigrp 10</CODELINE>
  198. <CODELINE> network 172.16.0.0</CODELINE></CODESNIPPET>
  199. <PARA>To view the routing table on the internal processor, use the <INLINECODE>show ip route</INLINECODE> command:</PARA>
  200. <CODESNIPPET><CODELINE>ToddRSM#<EMPHASIS FORMAT="bold">sh ip route</EMPHASIS></CODELINE>
  201. <CODELINE>Codes: C - connected, S - static, I - IGRP, R - RIP, M - [output cut]</CODELINE>
  202. <CODELINE>Gateway of last resort is not set</CODELINE>
  203. <CODELINE></CODELINE>
  204. <CODELINE>     172.16.0.0/24 is subnetted, 3 subnets</CODELINE>
  205. <CODELINE>C       172.16.3.0 is directly connected, Vlan3</CODELINE>
  206. <CODELINE>C       172.16.2.0 is directly connected, Vlan2</CODELINE>
  207. <CODELINE>C       172.16.1.0 is directly connected, Vlan1</CODELINE>
  208. <CODELINE>C    127.0.0.0/8 is directly connected, Vlan0</CODELINE>
  209. <CODELINE>ToddRSM#</CODELINE></CODESNIPPET>
  210. <PARACONTINUED>OK, the most interesting part about the difference between the RSM and an external router is the presence of VLAN0. Notice in the <INLINECODE>show ip route</INLINECODE> output above that VLAN0 is connected via 127.0.0.0/8, which is a diagnostic IP address. Remember that VLAN0 cannot be accessed by an administrator and is used to provide support for the communication between the RSM and the Catalyst 5000 switch. </PARACONTINUED>
  211. </SECTION>
  212.  
  213. <SECTION ID="6.2.1.2.2"><TITLE>Assigning MAC Addresses to VLAN Interfaces</TITLE>
  214. <PARA>The RSM uses only one global MAC address for all VLAN interfaces on the device. If you want to assign a specific MAC address to a VLAN interface, use the <INLINECODE>mac-address</INLINECODE> command. You may want to configure this option to enhance the operation of the RSM interface. Here is an example:</PARA>
  215. <CODESNIPPET><CODELINE>ToddRSM#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  216. <CODELINE>ToddRSM(config)#<EMPHASIS FORMAT="bold">int vlan 2</EMPHASIS> </CODELINE>
  217. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">mac-address 4004.0144.0011</EMPHASIS></CODELINE>
  218. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">exit</EMPHASIS></CODELINE>
  219. <CODELINE>ToddRSM(config)#<EMPHASIS FORMAT="bold">exit</EMPHASIS></CODELINE>
  220. <CODELINE>ToddRSM#<EMPHASIS FORMAT="bold">sh run</EMPHASIS></CODELINE>
  221. <CODELINE>[oputput cut]</CODELINE>
  222. <CODELINE>interface Vlan2</CODELINE>
  223. <CODELINE> mac-address 4004.0144.0011</CODELINE>
  224. <CODELINE> ip address 172.16.2.1 255.255.255.0</CODELINE></CODESNIPPET>
  225. </SECTION>
  226.  
  227. <SECTION ID="6.2.1.2.3"><TITLE>Defining a Default Gateway</TITLE>
  228. <PARA>One thing to keep in mind before configuring ISL on your switches is that the switches must be configured correctly with an IP address, subnet mask, and default gateway. Understand that this has nothing to do with routing because the switches work only at layer 2. However, the switches need to communicate with IP through the network. Remember that this will not affect data that is passing through the switch. You can think of layer 2 switches as being just like any host on the network. To be able to send packets off the local network, you need to have a default gateway configured. </PARA>
  229. <PARA>To configure a default gateway on a 5000 series switch, use the <INLINECODE>set ip route</INLINECODE> command: </PARA>
  230. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">set ip route 0.0.0.0 172.16.1.1</EMPHASIS></CODELINE>
  231. <CODELINE>Route added.</CODELINE></CODESNIPPET>
  232. <PARA>You can also use the command <INLINECODE>set ip route default 172.16.1.1</INLINECODE>, which will configure the route the same as the <INLINECODE>set ip route 0.0.0.0 172.16.1.1</INLINECODE> will.<INLINECODE> </INLINECODE></PARA>
  233. <NOTE>The 1900 switch <INLINECODE>default-gateway</INLINECODE> command was covered in <NOBR REF="2">Chapter 2</NOBR>. </NOTE>
  234. </SECTION>
  235. </SECTION>
  236. </SECTION>
  237. </SECTION>
  238.  
  239. <SECTION ID="6.3"><TITLE>Summary</TITLE>
  240. <PARA><DROPCAP>I</DROPCAP>n this chapter, we described inter-VLAN routing issues and solutions. Because routers are needed to allow hosts on different networks to communicate, you also need to remember that a layer 3 device, either an external router or an internal route processor, is needed to allow inter-VLAN communication. </PARA>
  241. <PARA>We discussed both internal route processors, known as Route Switch Modules (RSMs), and external route processors and showed you how to use them for inter-VLAN configuration.</PARA>
  242.  
  243. <SECTION ID="6.3.1" POS="1"><TITLE>Key Terms</TITLE>
  244. <PARA>Before you take the exam, be sure you're familiar with the following terms:</PARA>
  245. <LIST MARK="none">
  246. <LISTITEM><PARA><KEYTERM REF="6">external route processor</KEYTERM></PARA></LISTITEM>
  247. <LISTITEM><PARA><KEYTERM REF="6.1.2">internal route processors</KEYTERM></PARA></LISTITEM>
  248. <LISTITEM><PARA><KEYTERM REF="6">inter-VLAN routing</KEYTERM></PARA></LISTITEM>
  249. <LISTITEM><PARA><KEYTERM REF="6.1.2">Route Switch Feature Card (RSFC)</KEYTERM></PARA></LISTITEM>
  250. <LISTITEM><PARA><KEYTERM REF="6.1.2">Route Switch Modules (RSMs)</KEYTERM></PARA></LISTITEM>
  251. </LIST>
  252. </SECTION>
  253.  
  254. <SECTION ID="6.3.2"><TITLE>Commands Used in This Chapter</TITLE>
  255. <PARA>This chapter showed how to configure only a distribution layer switch, so there is no listing for the access layer commands. </PARA>
  256. <TABULARDATA>
  257. <TABULARBODY>
  258. <TABULARROW>
  259. <TABULARENTRY><EMPHASIS FORMAT="bold">Commands</EMPHASIS></TABULARENTRY>
  260. <TABULARENTRY><EMPHASIS FORMAT="bold">Meaning</EMPHASIS></TABULARENTRY>
  261. </TABULARROW>
  262. <TABULARROW>
  263. <TABULARENTRY><INLINECODE>session</INLINECODE></TABULARENTRY>
  264. <TABULARENTRY>Connects the CLI to a session on a route processor module</TABULARENTRY>
  265. </TABULARROW>
  266. <TABULARROW>
  267. <TABULARENTRY><INLINECODE>set ip route</INLINECODE></TABULARENTRY>
  268. <TABULARENTRY>Configures a default route on a set-based switch</TABULARENTRY>
  269. </TABULARROW>
  270. <TABULARROW>
  271. <TABULARENTRY><INLINECODE>show config</INLINECODE></TABULARENTRY>
  272. <TABULARENTRY>Shows the configuration of the 5000 series switch</TABULARENTRY>
  273. </TABULARROW>
  274. <TABULARROW>
  275. <TABULARENTRY><INLINECODE>show module</INLINECODE></TABULARENTRY>
  276. <TABULARENTRY>Shows the module and numbers of cards in the switch</TABULARENTRY>
  277. </TABULARROW>
  278. <TABULARROW>
  279. <TABULARENTRY><INLINECODE>interface vlan</INLINECODE></TABULARENTRY>
  280. <TABULARENTRY>Enables interface configuration mode for the specified VLAN interface</TABULARENTRY>
  281. </TABULARROW>
  282. <TABULARROW>
  283. <TABULARENTRY><INLINECODE>mac-address</INLINECODE></TABULARENTRY>
  284. <TABULARENTRY>Sets a specific MAC address on an interface</TABULARENTRY>
  285. </TABULARROW>
  286. </TABULARBODY>
  287. </TABULARDATA>
  288. </SECTION>
  289. </SECTION>
  290.  
  291. <TESTSECTION ID="6.4"><TITLE>Written Lab</TITLE>
  292. <!-- <PARA>Complete this lab by writing out the answers to the following  questions.</PARA>
  293. <TESTDATA>
  294. <TESTBLOCK><QUESTIONBLOCK><QUESTION>Write the command to configure ISL routing for VLAN 1 with an IP address of 172.16.10.0 on FastEthernet interface 0/0. </QUESTION></QUESTIONBLOCK></TESTBLOCK>
  295. <TESTBLOCK><QUESTIONBLOCK><QUESTION>Write the command to view the different type of cards in a 5000 series switch.</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  296. <TESTBLOCK><QUESTIONBLOCK><QUESTION>Write the command to connect to an RSM module in slot 3.</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  297. <TESTBLOCK><QUESTIONBLOCK><QUESTION>Write the command to configure two VLANs on an RSM. VLAN 1 has an IP address of 172.16.1.1, and VLAN 2 has an IP address of 172.16.2.1. </QUESTION></QUESTIONBLOCK></TESTBLOCK>
  298. <TESTBLOCK><QUESTIONBLOCK><QUESTION>Write the command to set a hardware address on the VLAN 2 interface of 4004.0144.0011.</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  299. <TESTBLOCK><QUESTIONBLOCK><QUESTION>What type of link is needed to run ISL routing on a FastEthernet  interface?</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  300. <TESTBLOCK><QUESTIONBLOCK><QUESTION>What is the IEEE version of ISL?</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  301. <TESTBLOCK><QUESTIONBLOCK><QUESTION>True/False: You can assign a MAC address to a VLAN ISL interface.</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  302. <TESTBLOCK><QUESTIONBLOCK><QUESTION>How many VLANs can you create with subinterfaces on a FastEthernet interface?</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  303. <TESTBLOCK><QUESTIONBLOCK><QUESTION>What command would you use to see the configuration on a Catalyst 5000 switch?</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  304. </TESTDATA> -->
  305. <SLUG NONUM="w1"/>
  306. </TESTSECTION>
  307.  
  308. <SECTION ID="6.5"><TITLE>Hands-On Lab</TITLE>
  309. <PARA>In this lab, you will configure a 5000 series switch, two 1900 switches, and one 2621 router to provide ISL routing between VLANs. </PARA>
  310. <PARA>This section will provide two labs:</PARA>
  311. <RUNINBLOCK><RUNINHEAD>Lab 6.1</RUNINHEAD>
  312. <RUNINPARA>External Inter-VLAN Routing</RUNINPARA></RUNINBLOCK>
  313. <RUNINBLOCK><RUNINHEAD>Lab 6.2</RUNINHEAD>
  314. <RUNINPARA>Internal Inter-VLAN Routing</RUNINPARA></RUNINBLOCK>
  315. <PARACONTINUED>In both of the labs, refer to Figure 6.3 for configuring inter-VLAN  communication.</PARACONTINUED>
  316. <SLUG NUM="6.3">Figure 6.3: Configuring inter-VLAN communication for hands-on lab        [f0603.eps]</SLUG>
  317.  
  318. <SECTION ID="6.5.1" POS="1"><TITLE>Lab 6.1: External Inter-VLAN Routing</TITLE>
  319. <PARA>In this first lab, you'll configure the 2621 with ISL routing. You'll start with configuring the two 1900 switches, then the 5000 switch, and then the 2621 router. </PARA>
  320.  
  321. <SECTION ID="6.5.1.1"><TITLE>Configuring the 1900A Switch</TITLE>
  322. <LIST MARK="number">
  323. <LISTITEM><PARA>Plug into the 1900A console port and press k to enter the CLI.</PARA></LISTITEM>
  324. <LISTITEM><PARA>Enter privileged mode by typing <INLINECODEUSERINPUT>enable</INLINECODEUSERINPUT>.</PARA></LISTITEM>
  325. <LISTITEM><PARA>Enter configuration mode and set the hostname.</PARA>
  326. <CODESNIPPET><CODELINE>#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  327. <CODELINE>(config)#<EMPHASIS FORMAT="bold">hostname 1900A</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  328. <LISTITEM><PARA>Set the usermode and privilege mode passwords.</PARA>
  329. <CODESNIPPET><CODELINE>1900A(config)#<EMPHASIS FORMAT="bold">enable password level 1 cisco</EMPHASIS></CODELINE>
  330. <CODELINE>1900A(config)#<EMPHASIS FORMAT="bold">enable secret todd</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  331. <LISTITEM><PARA>Set the IP address of the switch by using the IP address assigned in Figure 6.3. Set the default gateway address by using the interface f0/0 of the 2621 as the gateway.</PARA>
  332. <CODESNIPPET><CODELINE>1900A(config)#<EMPHASIS FORMAT="bold">ip address 172.16.1.3 255.255.255.0</EMPHASIS></CODELINE>
  333. <CODELINE>1900A(config)#<EMPHASIS FORMAT="bold">ip default-gateway 172.16.1.1</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  334. <LISTITEM><PARA>Verify the IP configuration on the switch by typing <INLINECODEUSERINPUT>show ip</INLINECODEUSERINPUT>.</PARA></LISTITEM>
  335. <LISTITEM><PARA>Set the VTP domain to SwitchSim and then make the switch a VTP client so that when you set the VLANs on the 5000 switch, the 1900A switch will automatically be updated with VLAN information.</PARA>
  336. <CODESNIPPET><CODELINE>1900A(config)#<EMPHASIS FORMAT="bold">vtp domain SwitchSim</EMPHASIS></CODELINE>
  337. <CODELINE>1900A(config)#<EMPHASIS FORMAT="bold">vtp client</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  338. <LISTITEM><PARA>Set the FastEthernet interfaces to trunk on so that all VLAN information will be sent down both links from the 5000 series switch. </PARA>
  339. <CODESNIPPET><CODELINE>1900A(config)#<EMPHASIS FORMAT="bold">int f0/26</EMPHASIS></CODELINE>
  340. <CODELINE>1900A(config-if)#<EMPHASIS FORMAT="bold">trunk on</EMPHASIS></CODELINE>
  341. <CODELINE>1900A(config-if)#<EMPHASIS FORMAT="bold">int f0/27</EMPHASIS></CODELINE>
  342. <CODELINE>1900Aconfig-if)#<EMPHASIS FORMAT="bold">trunk on</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  343. <LISTITEM><PARA>Configure the FastEthernet connection to the 5000 series switch to be full duplex.</PARA>
  344. <CODESNIPPET><CODELINE>1900A(config)#<EMPHASIS FORMAT="bold">int f0/26</EMPHASIS></CODELINE>
  345. <CODELINE>1900A(config-if)#<EMPHASIS FORMAT="bold">duplex full</EMPHASIS></CODELINE>
  346. <CODELINE>1900A(config-if)#<EMPHASIS FORMAT="bold">int f0/27</EMPHASIS></CODELINE>
  347. <CODELINE>1900A(config-if)#<EMPHASIS FORMAT="bold">duplex full</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  348. </LIST>
  349. </SECTION>
  350.  
  351. <SECTION ID="6.5.1.2"><TITLE>Configuring the 1900B Switch</TITLE>
  352. <LIST MARK="number">
  353. <LISTITEM><PARA>Plug into the 1900B switch console port and press k to enter the CLI. </PARA></LISTITEM>
  354. <LISTITEM><PARA>Enter privileged mode by typing <INLINECODEUSERINPUT>enable</INLINECODEUSERINPUT>.</PARA></LISTITEM>
  355. <LISTITEM><PARA>Enter configuration mode and set the hostname.</PARA>
  356. <CODESNIPPET><CODELINE>#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  357. <CODELINE>(config)#<EMPHASIS FORMAT="bold">hostname 1900B</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  358. <LISTITEM><PARA>Set the usermode and privilege mode passwords.</PARA>
  359. <CODESNIPPET><CODELINE>1900B(config)#<EMPHASIS FORMAT="bold">enable password level 1 cisco</EMPHASIS></CODELINE>
  360. <CODELINE>1900B(config)#<EMPHASIS FORMAT="bold">enable secret todd</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  361. <LISTITEM><PARA>Set the IP address of the switch by using the IP address assigned in Figure 6.3. Set the default gateway address by using the interface f0/0 of the 2621 as the gateway.</PARA>
  362. <CODESNIPPET><CODELINE>1900B(config)#<EMPHASIS FORMAT="bold">ip address 172.16.1.4 255.255.255.0</EMPHASIS></CODELINE>
  363. <CODELINE>1900B(config)#<EMPHASIS FORMAT="bold">ip default-gateway 172.16.1.1</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  364. <LISTITEM><PARA>Verify the IP configuration on the switch by typing <INLINECODEUSERINPUT>show ip</INLINECODEUSERINPUT>.</PARA></LISTITEM>
  365. <LISTITEM><PARA>Set the VTP domain to Routersim and then make the switch a VTP client so that when you set the VLANs on the 5000 switch, the 1900B switch will automatically be updated with VLAN information.</PARA>
  366. <CODESNIPPET><CODELINE>1900B(config)#<EMPHASIS FORMAT="bold">vtp domain SwitchSim</EMPHASIS></CODELINE>
  367. <CODELINE>1900B(config)#<EMPHASIS FORMAT="bold">vtp client</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  368. <LISTITEM><PARA>Set the FastEthernet interfaces to trunk on so that all VLAN information will be sent down both links from the 5000 series switch. </PARA>
  369. <CODESNIPPET><CODELINE>1900B(config)#<EMPHASIS FORMAT="bold">int f0/26</EMPHASIS></CODELINE>
  370. <CODELINE>1900B(config-if)#<EMPHASIS FORMAT="bold">trunk on</EMPHASIS></CODELINE>
  371. <CODELINE>1900B(config-if)#<EMPHASIS FORMAT="bold">int f0/27</EMPHASIS></CODELINE>
  372. <CODELINE>1900B(config-if)#<EMPHASIS FORMAT="bold">trunk on</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  373. <LISTITEM><PARA>Configure the FastEthernet connection to the 5000 series switch to be full duplex.</PARA>
  374. <CODESNIPPET><CODELINE>1900B(config)#<EMPHASIS FORMAT="bold">int f0/26</EMPHASIS></CODELINE>
  375. <CODELINE>1900B(config-if)#<EMPHASIS FORMAT="bold">duplex full</EMPHASIS></CODELINE>
  376. <CODELINE>1900B(config-if)#<EMPHASIS FORMAT="bold">int f0/27</EMPHASIS></CODELINE>
  377. <CODELINE>1900B(config-if)#<EMPHASIS FORMAT="bold">duplex full</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  378. <LISTITEM><PARA>Set the ports to configure an EtherChannel bundle when the 5000 series is configured. This can be run only on the supervisor card or a specific EtherChannel card. EtherChannel will be run only on the 1900B connection to the 5000 switch. </PARA>
  379. <CODESNIPPET><CODELINE>1900B(config-if)#<EMPHASIS FORMAT="bold">port-channel mode on</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  380. </LIST>
  381. </SECTION>
  382.  
  383. <SECTION ID="6.5.1.3"><TITLE>Configuring the 5000 Series Switch</TITLE>
  384. <LIST MARK="number">
  385. <LISTITEM><PARA>Connect your console cable to the 5000 series switch and press Enter. Press Enter at the password prompt, then again at the password prompt, type <INLINECODEUSERINPUT>enable</INLINECODEUSERINPUT> and press Enter.</PARA></LISTITEM>
  386. <LISTITEM><PARA>Set the hostname of the switch.</PARA>
  387. <CODESNIPPET><CODELINE>#(enable)<EMPHASIS FORMAT="bold">set prompt Cat5000></EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  388. <LISTITEM><PARA>Set the usermode and privilege mode passwords.</PARA>
  389. <CODESNIPPET><CODELINE>Cat5000>(enable)<EMPHASIS FORMAT="bold">set password</EMPHASIS> [press enter]</CODELINE>
  390. <CODELINE>Enter old password: [press enter]</CODELINE>
  391. <CODELINE>Enter new password: [this doesn't show]</CODELINE>
  392. <CODELINE>Retype new password: [this doesn't show]</CODELINE>
  393. <CODELINE>Password changed.</CODELINE>
  394. <CODELINE>Cat5000> (enable)<EMPHASIS FORMAT="bold">set enablepass</EMPHASIS></CODELINE>
  395. <CODELINE>Enter old password:[press enter]</CODELINE>
  396. <CODELINE>Enter new password: [this doesn't show]</CODELINE>
  397. <CODELINE>Retype new password: [this doesn't shoow]</CODELINE>
  398. <CODELINE>Password changed.</CODELINE>
  399. <CODELINE>Cat5000> (enable)</CODELINE></CODESNIPPET></LISTITEM>
  400. <LISTITEM><PARA>Set the IP address and default gateway of the switch.</PARA>
  401. <CODESNIPPET><CODELINE>Cat5000>(enable)<EMPHASIS FORMAT="bold">set int sc0 172.16.1.2 255.255.255.0</EMPHASIS></CODELINE>
  402. <CODELINE>Cat5000>(enable)<EMPHASIS FORMAT="bold">set route default 172.16.1.1</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  403. <LISTITEM><PARA>Verify this configuration by typing <INLINECODEUSERINPUT>show int</INLINECODEUSERINPUT>.</PARA></LISTITEM>
  404. <LISTITEM><PARA>Set the VTP domain name to SwitchSim.</PARA>
  405. <CODESNIPPET><CODELINE>Cat5000>(enable)<EMPHASIS FORMAT="bold">set vtp domain SwitchSim</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  406. <LISTITEM><PARA>Set all ports connected to the 1900 switches as 100Mbps and full duplex. The two ports on the supervisor engine are labeled 1/1 and 1/2 and only run in 100Mbps, so only the duplex can be set on those ports. </PARA>
  407. <CODESNIPPET><CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set port duplex 1/1 full</EMPHASIS></CODELINE>
  408. <CODELINE>Port(s) 1/1-2 set to full-duplex.</CODELINE>
  409. <CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set port duplex 1/2 full</EMPHASIS></CODELINE>
  410. <CODELINE>Port(s) 1/1-2 set to full-duplex.</CODELINE>
  411. <CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set port speed 2/1 100</EMPHASIS></CODELINE>
  412. <CODELINE>Port(s) 2/1 speed set to 100Mbps.</CODELINE>
  413. <CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set port speed 2/2 100</EMPHASIS></CODELINE>
  414. <CODELINE>Port(s) 2/2 speed set to 100Mbps.</CODELINE>
  415. <CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set port duplex 2/1 full</EMPHASIS></CODELINE>
  416. <CODELINE>Port(s) 2/1 set to full-duplex.</CODELINE>
  417. <CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set port duplex 2/2 full</EMPHASIS></CODELINE>
  418. <CODELINE>Port(s) 2/2 set to full-duplex.</CODELINE>
  419. <CODELINE>Cat5000> (enable)</CODELINE></CODESNIPPET></LISTITEM>
  420. <LISTITEM><PARA>It is possible that the ports on the 5000 may have been disabled because of mismatched port configurations between the 1900 and 5000. Type the command <INLINECODEUSERINPUT>show port slot/port</INLINECODEUSERINPUT> to see the status. If it is disabled, use the <INLINECODE>set port enable slot/port</INLINECODE> command.</PARA>
  421. <CODESNIPPET><CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set port enable 1/1</EMPHASIS></CODELINE>
  422. <CODELINE>Port 1/1 enabled.</CODELINE></CODESNIPPET></LISTITEM>
  423. <LISTITEM><PARA>Configure trunking on all ports connected to the 1900A and 1900B switches.</PARA>
  424. <CODESNIPPET><CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set trunk 2/1 on isl</EMPHASIS></CODELINE>
  425. <CODELINE>Port(s) 2/1 trunk mode set to on.</CODELINE>
  426. <CODELINE>Port(s) 2/1 trunk type set to isl.</CODELINE>
  427. <CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set trunk 2/2 on isl</EMPHASIS></CODELINE>
  428. <CODELINE>Port(s) 2/2 trunk mode set to on.</CODELINE>
  429. <CODELINE>Port(s) 2/2 trunk type set to isl.</CODELINE>
  430. <CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set trunk 1/1 on isl</EMPHASIS></CODELINE>
  431. <CODELINE>Port(s) 1/1-2 trunk mode set to on.</CODELINE>
  432. <CODELINE>Port(s) 1/1-2 trunk type set to isl.</CODELINE>
  433. <CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set trunk 1/2 on isl</EMPHASIS></CODELINE>
  434. <CODELINE>Port(s) 1/1-2 trunk mode set to on.</CODELINE>
  435. <CODELINE>Port(s) 1/1-2 trunk type set to isl.</CODELINE></CODESNIPPET></LISTITEM>
  436. <LISTITEM><PARA>Verify that the trunk ports are working by typing <INLINECODEUSERINPUT>show trunk</INLINECODEUSERINPUT>.</PARA>
  437. <CODESNIPPET><CODELINE>Cat5000>(enable)<EMPHASIS FORMAT="bold">show trunk</EMPHASIS></CODELINE>
  438. <CODELINE>Port      Mode         Encapsulation  Status    Native vlan</CODELINE>
  439. <CODELINE>--------  -----------  -------------  ---------  --------</CODELINE>
  440. <CODELINE> 1/1      on           isl            trunking      1</CODELINE>
  441. <CODELINE> 1/2      on           isl            trunking      1</CODELINE>
  442. <CODELINE> 2/1      on           isl            trunking      1</CODELINE>
  443. <CODELINE> 2/2      on           isl            trunking      1</CODELINE>
  444. <CODELINE> 5/1      on           isl            trunking      1</CODELINE>
  445. <CODELINE></CODELINE>
  446. <CODELINE>[output cut]</CODELINE></CODESNIPPET></LISTITEM>
  447. <LISTITEM><PARA>Configure EtherChannel on both ports connected to the 1900B switch.</PARA>
  448. <CODESNIPPET><CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set port channel 1/1-2 on</EMPHASIS></CODELINE>
  449. <CODELINE>Port(s) 1/1-2 channel mode set to on.</CODELINE></CODESNIPPET></LISTITEM>
  450. <LISTITEM><PARA>Verify that the EtherChannel is working by typing <INLINECODEUSERINPUT>show channel</INLINECODEUSERINPUT>.</PARA>
  451. <CODESNIPPET><CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">show port channel</EMPHASIS></CODELINE>
  452. <CODELINE>Port  Status     Channel   Channel     Neighbor       Neighbor</CODELINE>
  453. <CODELINE>                 mode      status      device          port</CODELINE>
  454. <CODELINE>----- ---------- --------- ----------- --------------  -----</CODELINE>
  455. <CODELINE> 1/1  connected  on        channel   cisco 1900  1900B  A</CODELINE>
  456. <CODELINE> 1/2  connected  on        channel   cisco 1900  1900B  B</CODELINE>
  457. <CODELINE>----- ---------- --------- ----------- --------------- -----</CODELINE>
  458. <CODELINE>Cat5000> (enable)</CODELINE></CODESNIPPET></LISTITEM>
  459. <LISTITEM><PARA>At this point, the three switches should be up and working and you should be able to ping all devices in the 172.16.1.0 network.</PARA>
  460. <CODESNIPPET><CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">ping 172.16.1.3</EMPHASIS></CODELINE>
  461. <CODELINE>172.16.1.3 is alive</CODELINE>
  462. <CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">ping 172.16.1.4</EMPHASIS></CODELINE>
  463. <CODELINE>172.16.1.4 is alive</CODELINE></CODESNIPPET></LISTITEM>
  464. </LIST>
  465. </SECTION>
  466.  
  467. <SECTION ID="6.5.1.4"><TITLE>Configuring VLANs</TITLE>
  468. <PARA>Because the 5000 series switch is a VTP server and the two 1900 switches are VTP clients, you can configure VLANs on just the 5000 series switch and the 5000 switch will automatically update the VTP NVRAM on the 1900 switches. </PARA>
  469. <LIST MARK="number">
  470. <LISTITEM><PARA>On the 5000 series switch console, create two new VLANs.</PARA>
  471.     <LIST MARK="none">
  472.     <LISTITEM><PARA>VLAN 2: Sales</PARA></LISTITEM>
  473.     <LISTITEM><PARA>VLAN 3: Admin</PARA></LISTITEM>
  474.     </LIST>
  475. <CODESNIPPET><CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set vlan 2 name Sales</EMPHASIS></CODELINE>
  476. <CODELINE>Vlan 2 configuration successful</CODELINE>
  477. <CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set vlan 3 name Admin</EMPHASIS></CODELINE>
  478. <CODELINE>Vlan 3 configuration successful</CODELINE>
  479. <CODELINE>Cat5000>(enable)</CODELINE></CODESNIPPET>
  480. </LISTITEM>
  481. <LISTITEM><PARA>Type the command <INLINECODEUSERINPUT>show vlan</INLINECODEUSERINPUT> to view the configured VLANs on the switch.</PARA>
  482. <CODESNIPPET><CODELINE>Cat5000>(enable)<EMPHASIS FORMAT="bold">sh vlan</EMPHASIS></CODELINE>
  483. <CODELINE>VLAN Name                Status    IfIndex Mod/Ports, Vlans</CODELINE>
  484. <CODELINE>---- --------------    --------- ------- -------------------</CODELINE>
  485. <CODELINE>1    default              active    5       2/3-12</CODELINE>
  486. <CODELINE>2    Sales                active    10</CODELINE>
  487. <CODELINE>3    Admin                active    11</CODELINE>
  488. <CODELINE>1002 fddi-default         active    6</CODELINE>
  489. <CODELINE>1003 token-ring-default   active    9</CODELINE>
  490. <CODELINE>1004 fddinet-default      active    7</CODELINE>
  491. <CODELINE>1005 trnet-default        active    8       1003</CODELINE>
  492. <CODELINE>[output cut]</CODELINE></CODESNIPPET></LISTITEM>
  493. <LISTITEM><PARA>Verify that VTP is up and running correctly by telneting into 1900A and 1900B and typing <INLINECODEUSERINPUT>show vlan</INLINECODEUSERINPUT>. The same VLANs should appear if VTP if working properly. If not, verify that you spelled the VTP domain the same on all switches.</PARA></LISTITEM>
  494. <LISTITEM><PARA>Configure HostA to be in VLAN 1, HostB to be in VLAN 2, and HostC to be in VLAN 3.</PARA>
  495. <CODESNIPPET><CODELINE>1900A#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  496. <CODELINE>Enter configuration commands, one per line.  End with   CNTL/Z</CODELINE>
  497. <CODELINE>1900A(config)#<EMPHASIS FORMAT="bold">int e0/1</EMPHASIS></CODELINE>
  498. <CODELINE>1900A(config-if)#<EMPHASIS FORMAT="bold">vlan-membership static 1</EMPHASIS></CODELINE>
  499. <CODELINE>1900A(config-if)#<EMPHASIS FORMAT="bold">int e0/2</EMPHASIS></CODELINE>
  500. <CODELINE>1900A(config-if)#<EMPHASIS FORMAT="bold">vlan-membership static 2</EMPHASIS></CODELINE>
  501. <CODELINE></CODELINE>
  502. <CODELINE>1900B#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  503. <CODELINE>Enter configuration commands, one per line.  End with   CNTL/Z</CODELINE>
  504. <CODELINE>1900B(config)#<EMPHASIS FORMAT="bold">int e0/2</EMPHASIS></CODELINE>
  505. <CODELINE>1900B(config-if)#<EMPHASIS FORMAT="bold">vlan-membership static 3</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  506. <LISTITEM><PARA>Type the <INLINECODEUSERINPUT>show vlan</INLINECODEUSERINPUT> command on the 1900B switch and verify that  e0/2 is a member of VLAN 3. Type the same command on 1900A and verify that e0/1 is a member of VLAN 1 and e0/2 is a member of VLAN 2. </PARA>
  507. <CODESNIPPET><CODELINE>1900B#<EMPHASIS FORMAT="bold">sh vlan</EMPHASIS></CODELINE>
  508. <CODELINE>VLAN Name             Status     Ports</CODELINE>
  509. <CODELINE>--------------------------------------</CODELINE>
  510. <CODELINE>1    default          Enabled    1, 3-12, AUI, A, B</CODELINE>
  511. <CODELINE>2    Sales            Enabled</CODELINE>
  512. <CODELINE>3    Admin            Enabled    2</CODELINE>
  513. <CODELINE>[output cut]</CODELINE>
  514. <CODELINE>1900A#<EMPHASIS FORMAT="bold">sh vlan</EMPHASIS></CODELINE>
  515. <CODELINE>VLAN Name             Status     Ports</CODELINE>
  516. <CODELINE>--------------------------------------</CODELINE>
  517. <CODELINE>1    default          Enabled    1, 3-12, AUI, A, B</CODELINE>
  518. <CODELINE>2    Sales            Enabled    2</CODELINE>
  519. <CODELINE>3    Admin            Enabled</CODELINE>
  520. <CODELINE>[output cut]</CODELINE></CODESNIPPET></LISTITEM>
  521. <LISTITEM><PARA>Configure each host with the following IP addresses:</PARA>
  522. <LIST MARK="none">
  523. <LISTITEM><PARA>HostA: 172.16.1.5/24 default gateway 172.16.1.1</PARA></LISTITEM>
  524. <LISTITEM><PARA>HostB: 172.16.2.2/24 default gateway 172.16.2.1</PARA></LISTITEM>
  525. <LISTITEM><PARA>HostC: 172.16.3.2/24 default gateway 172.16.3.1</PARA></LISTITEM>
  526. </LIST></LISTITEM>
  527. <LISTITEM><PARA>Try pinging from host to host. This should fail. However, you should be able to ping from HostA to all switches in the network, and all switches should be able to ping to HostA because they are all in the same VLAN. To allow hosts in different VLANs to communicate, you need to configure inter-VLAN routing. </PARA></LISTITEM>
  528. </LIST>
  529. </SECTION>
  530.  
  531. <SECTION ID="6.5.1.5"><TITLE>Configuring the 2621 Router</TITLE>
  532. <PARA>The 2621 router will provide the inter-VLAN routing and allow the hosts to communicate with each other. </PARA>
  533. <LIST MARK="number">
  534. <LISTITEM><PARA>Go to the privilege mode of the router and enter global configuration mode.</PARA>
  535. <CODESNIPPET><CODELINE>Router><EMPHASIS FORMAT="bold">ena</EMPHASIS></CODELINE>
  536. <CODELINE>Router#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  537. <CODELINE>Router(config)#</CODELINE></CODESNIPPET></LISTITEM>
  538. <LISTITEM><PARA>Set the hostname and passwords on the 2621 router.</PARA>
  539. <CODESNIPPET><CODELINE>Router(config)#<EMPHASIS FORMAT="bold">hostname 2621A</EMPHASIS></CODELINE>
  540. <CODELINE>2621A(config)#<EMPHASIS FORMAT="bold">enable secret todd</EMPHASIS></CODELINE>
  541. <CODELINE>2621A(config)#<EMPHASIS FORMAT="bold">line con 0</EMPHASIS></CODELINE>
  542. <CODELINE>2621A(Config-line)<EMPHASIS FORMAT="bold">login</EMPHASIS></CODELINE>
  543. <CODELINE>2621A(config-line)<EMPHASIS FORMAT="bold">password console</EMPHASIS></CODELINE>
  544. <CODELINE>2621A(config)#<EMPHASIS FORMAT="bold">line vty 0 4</EMPHASIS></CODELINE>
  545. <CODELINE>2621A(Config-line)<EMPHASIS FORMAT="bold">login</EMPHASIS></CODELINE>
  546. <CODELINE>2621A(config-line)<EMPHASIS FORMAT="bold">password telnet</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  547. <LISTITEM><PARA>Configure the FastEthernet interface to run ISL routing for all three VLANs.</PARA>
  548. <CODESNIPPET><CODELINE>2621A(config-line)#<EMPHASIS FORMAT="bold">exit</EMPHASIS></CODELINE>
  549. <CODELINE>2621A(config)#<EMPHASIS FORMAT="bold">int f0/0.1</EMPHASIS></CODELINE>
  550. <CODELINE>2621A(config-subif)#<EMPHASIS FORMAT="bold">encap isl 1</EMPHASIS></CODELINE>
  551. <CODELINE>2621A(config-subif)#<EMPHASIS FORMAT="bold">ip address 172.16.1.1 255.255.255.0</EMPHASIS></CODELINE>
  552. <CODELINE>2621A(config-subif)#<EMPHASIS FORMAT="bold">int f0/0.2</EMPHASIS></CODELINE>
  553. <CODELINE>2621A(config-subif)#<EMPHASIS FORMAT="bold">encap isl 2</EMPHASIS></CODELINE>
  554. <CODELINE>2621A(config-subif)#<EMPHASIS FORMAT="bold">ip address 172.16.2.1 255.255.255.0</EMPHASIS></CODELINE>
  555. <CODELINE>2621A(config-subif)#<EMPHASIS FORMAT="bold">int f0/0.3</EMPHASIS></CODELINE>
  556. <CODELINE>2621A(config-subif)#<EMPHASIS FORMAT="bold">encap isl 3</EMPHASIS></CODELINE>
  557. <CODELINE>2621A(config-subif)#<EMPHASIS FORMAT="bold">ip address 172.16.3.1 255.255.255.0</EMPHASIS></CODELINE>
  558. <CODELINE>2621A(config-subif)#<EMPHASIS FORMAT="bold">int f0/0</EMPHASIS></CODELINE>
  559. <CODELINE>2621A(config-if)#<EMPHASIS FORMAT="bold">no shut</EMPHASIS></CODELINE>
  560. <CODELINE>2621A(config-if)#</CODELINE></CODESNIPPET></LISTITEM>
  561. <LISTITEM><PARA>Before this will work, you need to set the port on the 5000 to trunk mode. Go to the 5000 switch and configure the port. </PARA>
  562. <CODESNIPPET><CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">set trunk 2/3 on</EMPHASIS></CODELINE>
  563. <CODELINE>Port(s) 2/3 trunk mode set to on.</CODELINE>
  564. <CODELINE>Cat5000> (enable)</CODELINE></CODESNIPPET></LISTITEM>
  565. <LISTITEM><PARA>Test the configuration by pinging to all devices from the router. </PARA>
  566. <CODESNIPPET><CODELINE>2621A#<EMPHASIS FORMAT="bold">ping 172.16.3.2</EMPHASIS></CODELINE>
  567. <CODELINE>Type escape sequence to abort.</CODELINE>
  568. <CODELINE>Sending 5, 100-byte ICMP Echos to 172.16.3.2, timeout   is 2 seconds:</CODELINE>
  569. <CODELINE>.!!!!</CODELINE>
  570. <CODELINE>Success rate is 80 percent (4/5), round-trip min/avg/     max = 1/1/4 ms</CODELINE>
  571. <CODELINE>2621A#<EMPHASIS FORMAT="bold">ping 172.16.1.3</EMPHASIS></CODELINE>
  572. <CODELINE>Type escape sequence to abort.</CODELINE>
  573. <CODELINE>Sending 5, 100-byte ICMP Echos to 172.16.1.3, timeout    is 2 seconds:</CODELINE>
  574. <CODELINE>.!!!!</CODELINE>
  575. <CODELINE>Success rate is 80 percent (4/5), round-trip min/avg/    max = 4/5/8 ms</CODELINE>
  576. <CODELINE>2621A#<EMPHASIS FORMAT="bold">ping 172.16.2.2</EMPHASIS></CODELINE>
  577. <CODELINE>Type escape sequence to abort.</CODELINE>
  578. <CODELINE>Sending 5, 100-byte ICMP Echos to 172.16.2.2, timeout    is 2 seconds:</CODELINE>
  579. <CODELINE>.!!!!</CODELINE>
  580. <CODELINE>Success rate is 80 percent (4/5), round-trip min/avg/    max = 4/5/8 ms</CODELINE>
  581. <CODELINE>2621A#<EMPHASIS FORMAT="bold">ping 172.16.1.5</EMPHASIS></CODELINE>
  582. <CODELINE>Type escape sequence to abort.</CODELINE>
  583. <CODELINE>Sending 5, 100-byte ICMP Echos to 172.16.2.2, timeout    is 2 seconds:</CODELINE>
  584. <CODELINE>.!!!!</CODELINE>
  585. <CODELINE>Success rate is 80 percent (4/5), round-trip min/avg/    max = 4/5/8 ms</CODELINE>
  586. <CODELINE>2621A#<EMPHASIS FORMAT="bold">ping 172.16.1.4</EMPHASIS></CODELINE>
  587. <CODELINE>Type escape sequence to abort.</CODELINE>
  588. <CODELINE>Sending 5, 100-byte ICMP Echos to 172.16.2.2, timeout    is 2 seconds:</CODELINE>
  589. <CODELINE>.!!!!</CODELINE>
  590. <CODELINE>Success rate is 80 percent (4/5), round-trip min/avg/    max = 4/5/8 ms</CODELINE>
  591. <CODELINE>2621A#</CODELINE></CODESNIPPET>
  592. <PARA>    The reason for the 80% success rate is that the IP hosts have not communicated before and the first ping timed out waiting for the ARP protocol to resolve the hardware addresses of each device. </PARA></LISTITEM>
  593. <LISTITEM><PARA>Verify that all hosts can communicate by pinging from host to host.</PARA></LISTITEM>
  594. </LIST>
  595. </SECTION>
  596. </SECTION>
  597.  
  598. <SECTION ID="6.5.2"><TITLE>Lab 6.2: Internal Inter-VLAN Routing</TITLE>
  599. <PARA>In this second lab, you'll configure the RSM in the 5000 switch for inter-VLAN routing using ISL. The 1900s will be configured first, then the 5000s. The 2621 router will not be needed in this lab. </PARA>
  600. <LIST MARK="number">
  601. <LISTITEM><PARA>Unplug the 2621 router from the 5000 series switch. The hosts should no longer be able to ping each other. </PARA></LISTITEM>
  602. <LISTITEM><PARA>Configure the RSM on the 5000 series switch to provide inter-VLAN routing. Use the <INLINECODE>show module</INLINECODE> command to view the RSM card location. </PARA>
  603. <CODESNIPPET><CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">sh module</EMPHASIS></CODELINE>
  604. <CODELINE>Mod Module-Name Ports Module-Type Model    Serial-Num Status</CODELINE>
  605. <CODELINE>--- ----------- ------- --------------------- --------- </CODELINE>
  606. <CODELINE>1                2  100BaseTX Supervisor  WS-X5509  005147178 ok</CODELINE>
  607. <CODELINE>2               12  10/100BaseTX Ethernet WS-X5213A 005153813 ok</CODELINE>
  608. <CODELINE>4                   Route Switch Ext Port</CODELINE>
  609. <CODELINE>5                1  Route Switch         WS-X5304  018465234 ok</CODELINE></CODESNIPPET></LISTITEM>
  610. <LISTITEM><PARA>Connect to the RSM through the 5000 console. </PARA>
  611. <CODESNIPPET><CODELINE>Cat5000> (enable) <EMPHASIS FORMAT="bold">session 5</EMPHASIS></CODELINE>
  612. <CODELINE>Trying Router-5...</CODELINE>
  613. <CODELINE>Connected to Router-5.</CODELINE>
  614. <CODELINE>Escape character is '^]'.</CODELINE>
  615. <CODELINE></CODELINE>
  616. <CODELINE>Router></CODELINE></CODESNIPPET></LISTITEM>
  617. <LISTITEM><PARA>Configure three VLAN interfaces, one for each VLAN configured in the switched internetwork. </PARA>
  618. <CODESNIPPET><CODELINE>Router><EMPHASIS FORMAT="bold">en</EMPHASIS></CODELINE>
  619. <CODELINE>Router#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  620. <CODELINE>Enter configuration commands, one per line.  End with CNTL/Z.</CODELINE>
  621. <CODELINE>Router(config)#<EMPHASIS FORMAT="bold">hostname 5000RSM</EMPHASIS></CODELINE>
  622. <CODELINE>5000RSM(config)#<EMPHASIS FORMAT="bold">int vlan 1</EMPHASIS></CODELINE>
  623. <CODELINE>5000RSM(config-if)#<EMPHASIS FORMAT="bold">ip address 172.16.1.1 255.255.255.0</EMPHASIS></CODELINE>
  624. <CODELINE>5000RSM(config-if)#<EMPHASIS FORMAT="bold">no shut</EMPHASIS></CODELINE>
  625. <CODELINE>5000RSM(config-if)#<EMPHASIS FORMAT="bold">int vlan 2</EMPHASIS></CODELINE>
  626. <CODELINE>5000RSM(config-if)#<EMPHASIS FORMAT="bold">ip address 172.16.2.1 255.255.255.0</EMPHASIS></CODELINE>
  627. <CODELINE>5000RSM(config-if)#<EMPHASIS FORMAT="bold">no shut</EMPHASIS></CODELINE>
  628. <CODELINE>5000RSM(config-if)#<EMPHASIS FORMAT="bold">int vlan 3</EMPHASIS></CODELINE>
  629. <CODELINE>5000RSM(config-if)#<EMPHASIS FORMAT="bold">ip address 172.16.3.1 255.255.255.0</EMPHASIS></CODELINE>
  630. <CODELINE>5000RSM(config-if)#<EMPHASIS FORMAT="bold">no shut</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  631. <LISTITEM><PARA>Verify that the RSM is working by pinging between hosts.</PARA></LISTITEM>
  632. </LIST>
  633. </SECTION>
  634. </SECTION>
  635.  
  636. <TESTSECTION ID="6.6"><TITLE>Answers to Written Lab</TITLE>
  637. <TESTDATA>
  638. <TESTBLOCK><ANSWERBLOCK><ANSWER>
  639. <COMMENT><NBSP/></COMMENT>
  640. <CODESNIPPET>
  641. <CODELINE>Router#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  642. <CODELINE>Enter configuration commands, one per line.  End with CNTL/Z.</CODELINE>
  643. <CODELINE>Router(config)#<EMPHASIS FORMAT="bold">int f0/0.1</EMPHASIS></CODELINE>
  644. <CODELINE>Router(config-subif)#<EMPHASIS FORMAT="bold">encap isl 1</EMPHASIS></CODELINE>
  645. <CODELINE>Router(config-subif)#<EMPHASIS FORMAT="bold">ip address 172.16.10.1 255.255.255.0</EMPHASIS></CODELINE>
  646. </CODESNIPPET></ANSWER></ANSWERBLOCK></TESTBLOCK>
  647.  
  648. <TESTBLOCK><ANSWERBLOCK><ANSWER><INLINECODE>show module</INLINECODE></ANSWER></ANSWERBLOCK></TESTBLOCK>
  649.  
  650. <TESTBLOCK><ANSWERBLOCK><ANSWER><INLINECODE>session 3</INLINECODE></ANSWER></ANSWERBLOCK></TESTBLOCK>
  651.  
  652. <TESTBLOCK><ANSWERBLOCK><ANSWER>
  653. <COMMENT><NBSP/></COMMENT>
  654. <CODESNIPPET>
  655. <CODELINE>ToddRSM#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  656. <CODELINE>ToddRSM(config)#<EMPHASIS FORMAT="bold">int vlan 1</EMPHASIS></CODELINE>
  657. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">ip address 172.16.1.1 255.255.255.0</EMPHASIS></CODELINE>
  658. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">no shut</EMPHASIS></CODELINE>
  659. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">int vlan 2</EMPHASIS></CODELINE>
  660. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">ip address 172.16.2.1 255.255.255.0</EMPHASIS></CODELINE>
  661. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">no shut</EMPHASIS></CODELINE>
  662. </CODESNIPPET></ANSWER></ANSWERBLOCK></TESTBLOCK>
  663.  
  664. <TESTBLOCK><ANSWERBLOCK><ANSWER>
  665. <COMMENT><NBSP/></COMMENT>
  666. <CODESNIPPET>
  667. <CODELINE>ToddRSM#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  668. <CODELINE>ToddRSM(config)#<EMPHASIS FORMAT="bold">int vlan 2</EMPHASIS> </CODELINE>
  669. <CODELINE>ToddRSM(config-if)#<EMPHASIS FORMAT="bold">mac-address 4004.0144.0011</EMPHASIS></CODELINE>
  670. </CODESNIPPET></ANSWER></ANSWERBLOCK></TESTBLOCK>
  671.  
  672. <TESTBLOCK><ANSWERBLOCK><ANSWER>Trunk</ANSWER></ANSWERBLOCK></TESTBLOCK>
  673.  
  674. <TESTBLOCK><ANSWERBLOCK><ANSWER>802.1q</ANSWER></ANSWERBLOCK></TESTBLOCK>
  675.  
  676. <TESTBLOCK><ANSWERBLOCK><ANSWER>True</ANSWER></ANSWERBLOCK></TESTBLOCK>
  677.  
  678. <TESTBLOCK><ANSWERBLOCK><ANSWER>1000</ANSWER></ANSWERBLOCK></TESTBLOCK>
  679.  
  680. <TESTBLOCK><ANSWERBLOCK><ANSWER><INLINECODE>show config</INLINECODE></ANSWER></ANSWERBLOCK></TESTBLOCK>
  681. </TESTDATA>
  682. </TESTSECTION>
  683.  
  684. <FIGCOL>
  685.     <FIG NUM="6.1">
  686.         <ILL>
  687.             <FLASH SRC="graphics/animations/sb0601a600x400.swf" WIDTH="600" HEIGHT="400" LOOP="FALSE" MENU="FALSE" QUALITY="HIGH" BGCOLOR="#FFFFFF" />
  688.         </ILL>
  689.         <P>Routers with multiple links</P>
  690.     </FIG>
  691.     <FIG NUM="6.2">
  692.         <ILL>
  693.             <FLASH SRC="graphics/static/2711c06/f0602_490x165.swf" WIDTH="490" HEIGHT="165" LOOP="FALSE" MENU="FALSE" QUALITY="HIGH" BGCOLOR="#FFFFFF" />
  694.         </ILL>
  695.         <P>Single trunked link for all VLANs</P>
  696.     </FIG>
  697.     <FIG NUM="6.3">
  698.         <ILL>
  699.             <FLASH SRC="graphics/static/2711c06/f0603_450x330.swf" WIDTH="450" HEIGHT="330" LOOP="FALSE" MENU="FALSE" QUALITY="HIGH" BGCOLOR="#FFFFFF" />
  700.         </ILL>
  701.         <P>Configuring inter-VLAN communication for hands-on lab</P>
  702.     </FIG>
  703.     <FIG NONUM="w1">
  704.         <ILL MODE="wlab">
  705.             <FLASH SRC="graphics/writtenlabs/lab11_06.swf" WIDTH="580" HEIGHT="380" LOOP="FALSE" MENU="FALSE" QUALITY="HIGH" BGCOLOR="#FFFFFF" />
  706.         </ILL>
  707.     </FIG>
  708. </FIGCOL>
  709. </CHAPTER>
  710.