home *** CD-ROM | disk | FTP | other *** search
/ Sybex Virtual Trainer CCNP Switching / Sybex_Virtual_Trainer_CCNP_Switching.iso / ccnp2711 / media / content / 2711c02.xml < prev    next >
Encoding:
Text File  |  2001-03-11  |  79.5 KB  |  1,014 lines

  1. <CHAPTER ID="2"><TITLE>Connecting the Switch Block</TITLE>
  2.  
  3. <CHAPTEROBJECTIVEBLOCK><CHAPTEROBJECTIVETITLE>The CCNP exam topics covered in this chapter include the following:</CHAPTEROBJECTIVETITLE>
  4. <CHAPTEROBJECTIVE>Cable media and the IEEE</CHAPTEROBJECTIVE>
  5. <CHAPTEROBJECTIVE>The differences and benefits of 10BaseT, FastEthernet, and Gigabit Ethernet</CHAPTEROBJECTIVE>
  6. <CHAPTEROBJECTIVE>Connecting and logging in to a set-based switch and an IOS-based switch</CHAPTEROBJECTIVE>
  7. <CHAPTEROBJECTIVE>Setting the hostname, interface descriptions, passwords, and IP addresses of a set-based switch and an IOS-based switch</CHAPTEROBJECTIVE>
  8. <CHAPTEROBJECTIVE>Configuring the duplex and speed of switch interfaces</CHAPTEROBJECTIVE>
  9. <CHAPTEROBJECTIVE>Verifying IP connectivity</CHAPTEROBJECTIVE>
  10. <CHAPTEROBJECTIVE>Deleting the set-based and IOS-based switch configurations</CHAPTEROBJECTIVE></CHAPTEROBJECTIVEBLOCK>
  11. <PARA><DROPCAP>B</DROPCAP>andwidth is now as important as crude oil. Without oil, we have no cars or factories, and basically, the economy stops. Oil is the fuel of the industrial world's economies. And network bandwidth is the oil of the twenty-first century. Without it-or when it's in short supply-our networks come to a grinding halt. If you think we're exaggerating, or you don't agree at all, just try shutting down a part of your network at work and watch the wars begin. Department will turn against department, friend will turn against friend-people will stop at nothing to get their computers up and running on the network, much like the chaos that would result if a Middle Eastern country were to refuse us our oil. Sure, if we have oil but no bandwidth, we can drive our cars and heat our homes, but we wouldn't be able to use the Internet. And without the Internet, we'd have to get into our cars and drive everywhere, among other inconveniences. Not a nice thought. </PARA>
  12. <PARA>So, can we have bandwidth and world peace all at the same time? Yes. By creating a sound, hierarchical network that follows the Cisco three-layer model, you too can be a Nobel laureate at home and on the job. </PARA>
  13. <PARA>This chapter will help you understand the different <KEYTERM>contention media</KEYTERM> available. Contention networks are first come, first served, or what we call Ethernet. This course covers only contention media because it runs at least 50 percent of the networks in the world, if not much more.</PARA>
  14.  
  15. <SECTION ID="2.1"><TITLE>Cable Media</TITLE>
  16. <PARA><DROPCAP>T</DROPCAP>o know when and how to use the different kinds of cable media, you need to understand what users <EMPHASIS FORMAT="italic">do</EMPHASIS> on the corporate network. The way to find this information is to ask questions. After that, you can use monitoring equipment to really see what is going on inside the network cabling. Before you deploy an application on a corporate network, carefully consider bandwidth requirements as well as latency issues. More and more users need to compete for bandwidth on the network because of bandwidth-consuming applications. Although layer 2 switches break up collision domains and certainly help a congested network if correctly designed and installed, you must also understand the different cable media types available and where to use each type for maximum efficiency. That's where this chapter comes in. </PARA>
  17. <PARA>In this chapter, we'll teach you the basics of Ethernet networking and how to use the various flavors of Ethernet networking in your access, distribution, and core networks. After you have learned about the different Ethernet cable media types, you'll learn how to log in and configure both a set-based switch and an IOS-based switch. The chapter will end with hands-on labs in which you'll connect the switches together and configure them. </PARA>
  18.  
  19. <SECTION ID="2.1.1" POS="1"><TITLE>The Background of IEEE Ethernet</TITLE>
  20. <PARA>In 1980, the Digital, Intel, and Xerox (DIX) consortium created the original Ethernet. Predictably, Ethernet_II followed and was released in 1984. The standards-setting organization Institute of Electrical and Electronics Engineers (IEEE) termed this the 802 project. The 802 project was initially divided into three groups:</PARA>
  21. <LIST MARK="bullet">
  22. <LISTITEM><PARA>The High Level Interface (HILI) became the 802.1 committee and  was responsible for high-level internetworking protocols and  management.</PARA></LISTITEM>
  23. <LISTITEM><PARA>The Logical Link Control (LLC) group became the 802.2 committee and focused on end-to-end link connectivity and the interface between the higher layers and the medium-access-dependant layers.</PARA></LISTITEM>
  24. <LISTITEM><PARA>The Data Link and Medium Access Control (DLMAC) group became responsible for the medium-access protocols. The DLMAC ended up splitting into three different committees:</PARA>
  25. <LIST MARK="bullet">
  26. <LISTITEM><PARA>802.3 for Ethernet</PARA></LISTITEM>
  27. <LISTITEM><PARA>802.4 for Token Bus </PARA></LISTITEM>
  28. <LISTITEM><PARA>802.5 for Token Ring</PARA></LISTITEM>
  29. </LIST></LISTITEM>
  30. </LIST>
  31. <PARA>DEC, Intel, and Xerox pushed Ethernet, while Burroughs, Concord Data Systems, Honeywell, Western Digital, and later, General Motors and Boeing, pushed 802.4. IBM took on 802.5. </PARA>
  32. <PARA>The IEEE then created the 802.3 subcommittee to come up with an Ethernet standard that happens to be almost identical to the Ethernet_II version of Ethernet. The two differ only in their descriptions of the Data Link layer. Ethernet_II has a Type field, whereas 802.3 has a Length field. Even so, they're both common in their Physical layer specifications, MAC addressing, and understanding of the LLC layer's responsibilities.</PARA>
  33. <NOTE>See <EMPHASIS FORMAT="italic">CCNA: Cisco Certified Network Associate Study Guide</EMPHASIS> by Todd Lammle (Sybex, 2000) for a detailed explanation of Ethernet frame types.</NOTE>
  34. <PARA>Ethernet_II and 802.3 both define a bus-topology LAN at 10Mbps, and the cabling defined in these standards are identical:</PARA>
  35. <RUNINBLOCK><RUNINHEAD>10Base2/Thinnet</RUNINHEAD>
  36. <RUNINPARA>Segments up to 185 meters using RG58 coax at  50 ohms.</RUNINPARA></RUNINBLOCK>
  37. <RUNINBLOCK><RUNINHEAD>10Base5/Thicknet</RUNINHEAD>
  38. <RUNINPARA>Segments up to 500 meters using RG8 or 11 at  50 ohms.</RUNINPARA></RUNINBLOCK>
  39. <RUNINBLOCK><RUNINHEAD>10BaseT/UTP</RUNINHEAD>
  40. <RUNINPARA>All hosts connect using unshielded twisted-pair (UTP) cable to a central device (a hub or switch). Category 3 UTP is specified to 10Mbps, category 5 to 100Mbps, category 6 to 155Mbps, and category 7 to 1Gbps.</RUNINPARA></RUNINBLOCK>
  41. </SECTION>
  42.  
  43. <SECTION ID="2.1.2"><TITLE>Switched Ethernet</TITLE>
  44. <PARA>Ethernet is the most popular type of network in the world and will continue to be so. It is important to understand how hubs and switches work within an Ethernet internetwork.</PARA>
  45. <PARA>By using <KEYTERM>switched Ethernet</KEYTERM> in layer 2 of your network, you no longer have to share bandwidth with the different departments in the corporation. With hubs, all devices have to share the same bandwidth, which can cause havoc in today's networks. </PARA>
  46. <PARA>Remember that layer 2 switches break up collision domains, but the network is still one large broadcast domain. Switched Ethernet has replaced shared hubs in the networking world because each connection from a host to the switch is its own collision domain. Remember that, with shared hubs, the network was one large collision domain and one large broadcast domain, whereas layer 2 switches break up collision domains on each port, but all ports are still considered, by default, to be in one large broadcast domain. Only virtual LANs, covered in <NOBR REF="3">Chapter 3</NOBR>, break up broadcast domains in a layer 2 switched network. </PARA>
  47. <PARA>Switched Ethernet is a good way to dynamically allocate dedicated 10, 100, and 1000Mbps connections to each user. By also running full-duplex Ethernet, you can theoretically double the throughput on each link. In the next sections, we'll discuss how Ethernet is used in your internetwork, the differences between the Ethernet types, and half- and full-duplex. </PARA>
  48. </SECTION>
  49. </SECTION>
  50.  
  51. <SECTION ID="2.2"><TITLE>Using Ethernet Media in Your Internetwork</TITLE>
  52. <PARA><DROPCAP>I</DROPCAP>n this section, you'll learn the difference between the Ethernet media types and how to use them in your internetworks. We'll cover the following Ethernet types:</PARA>
  53. <LIST MARK="bullet">
  54. <LISTITEM><PARA>10BaseT</PARA></LISTITEM>
  55. <LISTITEM><PARA>FastEthernet</PARA></LISTITEM>
  56. <LISTITEM><PARA>Gigabit Ethernet</PARA></LISTITEM>
  57. </LIST>
  58.  
  59. <SECTION ID="2.2.1" POS="1"><TITLE>10BaseT</TITLE>
  60. <PARA><KEYTERM>10BaseT</KEYTERM> stands for 10 million bits per second (Mbps), baseband technology, twisted-pair. This Ethernet technology has the highest install base of any network in the world. It runs the Carrier Sense Multiple Access/Collision Detection (CSMA/CD) protocol and, if correctly installed, is an efficient network. However, if it gets too large and the network is not segmented correctly, problems occur. It is important to understand collision and broadcast domains and how to correctly design the network with switches and routers.</PARA>
  61.  
  62. <SECTION ID="2.2.1.1"><TITLE>Use 10BaseT at the Access Layer</TITLE>
  63. <PARA>10BaseT Ethernet is typically used only at the access layer, and even then, FastEthernet (100BaseT) is quickly replacing it as the prices for 100BaseT continue to drop. It would be poor design to place 10BaseT at the distribution or core layers. You need transits that are much faster than 10BaseT at these layers. </PARA>
  64. </SECTION>
  65.  
  66. <SECTION ID="2.2.1.2"><TITLE>Distance</TITLE>
  67. <PARA>The distance that 10BaseT can run and be within specification is 100 meters (330 feet). The 100 meters includes the following:</PARA>
  68. <LIST MARK="bullet">
  69. <LISTITEM><PARA>Five meters from the switch to the patch panel</PARA></LISTITEM>
  70. <LISTITEM><PARA>Ninety meters from the patch panel to the office punch-down block</PARA></LISTITEM>
  71. <LISTITEM><PARA>Five meters from the punch-down block to the desktop connection</PARA></LISTITEM>
  72. </LIST>
  73. <PARACONTINUED>This doesn't mean that you can't really run more then 100 meters on a cable run; it just is not guaranteed to work. </PARACONTINUED>
  74. </SECTION>
  75. </SECTION>
  76.  
  77. <SECTION ID="2.2.2"><TITLE>FastEthernet</TITLE>
  78. <PARA><KEYTERM>FastEthernet</KEYTERM> is 10 times faster than 10Mbps Ethernet. The great thing about FastEthernet is that, like 10BaseT, it is still based on the Carrier Sense Multiple Access/Collision Detection (CSMA/CD) signaling. What this means is that you can run 10BaseT and 100BaseT on the same network without any problems. What a nice upgrade path this type of network can give you.  You can put all your servers on 10BaseT and upgrade only the clients to 100BaseT if you need to. However, you can't really even buy a PC that doesn't have a 10/100 Ethernet card in it anymore, so you really don't need to worry about compatibility and speed issues from the user's perspective. </PARA>
  79.  
  80. <SECTION ID="2.2.2.1"><TITLE>Use FastEthernet at All Three Layers</TITLE>
  81. <PARA>FastEthernet works great at all layers of the hierarchical model. It can be used to give high performance to PCs and other hosts at the access layer, provide connectivity from the access layer to the distribution layer switches, and connect the distribution layer switches to the core network. Connecting a server block to the core layer would need, at a minimum, FastEthernet or maybe even Gigabit Ethernet. </PARA>
  82. </SECTION>
  83.  
  84. <SECTION ID="2.2.2.2"><TITLE>IEEE Specifications for FastEthernet</TITLE>
  85. <PARA>There are two different specifications for FastEthernet, but the IEEE 802.3u is the most popular. The 802.3u specification is 100Mbps over category 3 or 5, twisted-pair (typically just category 5 or 5 plus is used for FastEthernet). The second Ethernet specification, called 802.12, used a different signaling technique, which was more efficient than the CSMA/CD access method. The IEEE passed both methods in June 1995, but because 802.3 Ethernet had such a strong name in the industry, 802.12, also called Demand Priority Access Method (DPAM), has virtually disappeared from the market. As with the Macintosh and NetWare operating systems, it doesn't mean anything if you have a better product; it only matters how you market it.</PARA>
  86. <PARA>The IEEE 802.3u committee can be summarized as follows:</PARA>
  87. <LIST MARK="bullet">
  88. <LISTITEM><PARA>Provide seamless integration with the installed base</PARA></LISTITEM>
  89. <LISTITEM><PARA>Provide 100BaseT at only two times the cost (or less) of 10BaseT</PARA></LISTITEM>
  90. <LISTITEM><PARA>Increase aggregate bandwidth</PARA></LISTITEM>
  91. <LISTITEM><PARA>Provide multiple-vendor standardization and operability</PARA></LISTITEM>
  92. <LISTITEM><PARA>Provide time-bounded delivery</PARA></LISTITEM>
  93. </LIST>
  94. </SECTION>
  95.  
  96. <SECTION ID="2.2.2.3"><TITLE>Media Independent Interface (MII)</TITLE>
  97. <PARA>FastEthernet requires a different interface than 10BaseT Ethernet. 10Mbps Ethernet used the Attachment Unit Interface (AUI) to connect Ethernet segments together. This provided a decoupling of the MAC layer from the different requirements of the various Physical layer topologies, which allowed the MAC to remain constant but meant the Physical layer could support any existing and new technologies. However, the AUI interface could not support 100Mbps Ethernet because of the high frequencies involved. 100BaseT needed a new interface, and the MII provides it.</PARA>
  98. <PARA>100BaseT actually created a new subinterface between the Physical layer and the Data Link layer called the Reconciliation Sublayer (RS). The RS maps the 1s and 0s to the MII interface. The MII uses a nibble, which is defined as 4 bits. AUI used only 1 bit at a time. Data transfers across the MII at one nibble per clock cycle, which is 25MHz. 10Mbps uses a 2.5MHz clock.</PARA>
  99. </SECTION>
  100.  
  101. <SECTION ID="2.2.2.4"><TITLE>Full-Duplex Ethernet and FastEthernet</TITLE>
  102. <PARA>Full-duplex Ethernet can both transmit and receive simultaneously and uses point-to-point connections. It is typically referred to as collision free because it doesn't share bandwidth with any other devices. Frames sent by two nodes cannot collide because there are physically separate transmit and receive circuits between the nodes. </PARA>
  103.  
  104. <SECTION ID="2.2.2.4.1"><TITLE>Use Full-Duplex Ethernet in the Distribution Layer</TITLE>
  105. <PARA>Because users typically use client/server applications using read/write asymmetrical traffic, the best performance for full-duplex would be in the distribution layer, not necessarily in the access layer. </PARA>
  106. <PARA>Full-Duplex with Flow Control was created to avoid packets being dropped if the buffers on an interface fill up before all packets can be processed. However, some vendors might not interoperate, and the buffering might have to be handled by upper-layer protocols instead. </PARA>
  107. </SECTION>
  108. </SECTION>
  109.  
  110. <SECTION ID="2.2.2.5"><TITLE>Auto-Negotiation</TITLE>
  111. <PARA>Auto-negotiation is a process that allows clients and switches to agree on a link capability. This is used to determine the link speed as well as the duplex being used. The auto-negotiation process uses priorities to set the link configuration. Obviously, if both a client and switch port can use 100Mbps, full-duplex connectivity, that would be the highest-priority ranking, whereas half-duplex, 10Mbps Ethernet is the lowest ranking. </PARA>
  112. <PARA>You need to understand that the auto-negotiation protocols do not work that well and you would be better off to configure the switch and NICs to run in a dedicated mode instead of letting the clients and switches auto- negotiate. Later in this chapter, we'll show you how to configure your switches with both the speed and duplex options. </PARA>
  113. </SECTION>
  114.  
  115. <SECTION ID="2.2.2.6"><TITLE>Distance</TITLE>
  116. <PARA>FastEthernet does have some drawbacks. It uses the same singing techniques as 10Mbps Ethernet, so it has the same distance constraints. In addition, 10Mbps Ethernet can use up to four repeaters, whereas FastEthernet can use only one or two, depending on the type of repeater. Table 2.1 shows a comparison of FastEthernet technologies.</PARA>
  117. <TABLE NUM="2.1" TABLEENTRYNUM="3">
  118. <TABLETITLE>Comparison of FastEthernet Technologies</TABLETITLE>
  119. <TABLEHEAD>
  120. <TABLEROW>
  121. <TABLEENTRY><PARA>Technology</PARA></TABLEENTRY>
  122. <TABLEENTRY><PARA>Wiring Category</PARA></TABLEENTRY>
  123. <TABLEENTRY><PARA>Distance</PARA></TABLEENTRY>
  124. </TABLEROW>
  125. </TABLEHEAD>
  126. <TABLEBODY>
  127. <TABLEROW>
  128. <TABLEENTRY><PARA>100BaseTX</PARA></TABLEENTRY>
  129. <TABLEENTRY><PARA>Category 5 UTP wiring, category 6 and 7 is now available. Category 6 is sometimes referred to as cat 5 plus. Two-pair wiring. </PARA></TABLEENTRY>
  130. <TABLEENTRY><PARA>100 meters </PARA></TABLEENTRY>
  131. </TABLEROW>
  132. <TABLEROW>
  133. <TABLEENTRY><PARA>100BaseT4</PARA></TABLEENTRY>
  134. <TABLEENTRY><PARA>Four-pair wiring, using UTP category 3, 4, or 5. </PARA></TABLEENTRY>
  135. <TABLEENTRY><PARA>100 meters</PARA></TABLEENTRY>
  136. </TABLEROW>
  137. <TABLEROW>
  138. <TABLEENTRY><PARA>100BaseFX</PARA></TABLEENTRY>
  139. <TABLEENTRY><PARA>Multi-Mode Fiber (MMF) with 62.5-micron fiber-optic core with a 125-micron outer cladding (62.5/125).</PARA></TABLEENTRY>
  140. <TABLEENTRY><PARA>400 meters </PARA></TABLEENTRY>
  141. </TABLEROW>
  142. </TABLEBODY>
  143. </TABLE>
  144. </SECTION>
  145. </SECTION>
  146.  
  147. <SECTION ID="2.2.3"><TITLE>Gigabit Ethernet</TITLE>
  148. <PARA>In the corporate market, <KEYTERM>Gigabit Ethernet</KEYTERM> is the new hot thing. What is so great about Gigabit is that it can use the same network that your 10 and 100Mbps Ethernet now use. You certainly do have to worry about distance constraints, but what a difference it can make in just a server farm alone!</PARA>
  149. <PARA>Just think how nice it would be to have all your servers connected to Ethernet switches with Gigabit Ethernet and all your users using 100BaseT switched connections. Of course, all your switches would connect with Gigabit links as well. Add the hot xDSL to connect to the Internet and you have more bandwidth than you ever could have imagined just a few years ago. Will it be enough bandwidth a few years from now? Probably not. If you have the bandwidth, users will find a way to use it.</PARA>
  150.  
  151. <SECTION ID="2.2.3.1"><TITLE>Use Gigabit Ethernet in the Switch, Core, and Server Blocks</TITLE>
  152. <PARA>Gigabit Ethernet can work in the switch block, the core block, and your server blocks:</PARA>
  153. <RUNINBLOCK><RUNINHEAD>Switch block</RUNINHEAD>
  154. <RUNINPARA>You can use Gigabit Ethernet between the access layer switches and the distribution layer switches. Gigabit is not typically connected to end users, but that can change quickly.</RUNINPARA></RUNINBLOCK>
  155. <RUNINBLOCK><RUNINHEAD>Core block</RUNINHEAD>
  156. <RUNINPARA>You can use Gigabit Ethernet to connect distribution layer switches in each building to the core switches.</RUNINPARA></RUNINBLOCK>
  157. <RUNINBLOCK><RUNINHEAD>Server block</RUNINHEAD>
  158. <RUNINPARA>By placing a Gigabit switch in the server block, you can effectively connect your high-performance servers to the network with gigabit speeds. However, remember that, unless the server is tremendously fast, you might not notice a difference in speeds from FastEthernet because the server processing can become the bottleneck. Time to throw out your Pentium 90 servers. </RUNINPARA></RUNINBLOCK>
  159. </SECTION>
  160.  
  161. <SECTION ID="2.2.3.2"><TITLE>Protocol Architecture</TITLE>
  162. <PARA>Gigabit Ethernet became an IEEE 802.3 standard in the summer of 1998. The standard was called 802.3z. Gigabit uses Ethernet framing the same way 10BaseT and FastEthernet does. This means that, not only is it fast, it can run on the same network as older Ethernet technology, which provides a nice migration plan. The goal of the IEEE 802.3z was to maintain compatibility to the 10Mb/s and 100Mb/s existing Ethernet network. They needed to provide a seamless operation to forward frames between segments running at different speeds. The committee kept the minimum and maximum frame lengths the same. However, they needed to change the CSMA/CD for half-duplex operation from its 512-bit times to help the distance that Gigabit Ethernet could run.</PARA>
  163. <PARA>Will Gigabit ever run to the desktop? Maybe. People said that FastEthernet would never run to the desktop when it came out, but it's now common. If Gigabit is run to the desktop, however, it's hard to imagine what we'll need to run the backbone with. 1000BaseT to the rescue! Yes, 10 Gigabit Ethernet is just around the corner! </PARA>
  164. </SECTION>
  165.  
  166. <SECTION ID="2.2.3.3"><TITLE>Comparing 10BaseT, FastEthernet, and Gigabit Ethernet</TITLE>
  167. <PARA>There are some major differences between FastEthernet and Gigabit Ethernet. FastEthernet uses the Media Independent Interface (MII), and Gigabit uses the Gigabit Media Independent Interface (GMII). 10BaseT used the Attachment Unit Interface, or AUI. A new interface was designed to help FastEthernet scale to 100Mbps, and this interface was redesigned for Gigabit Ethernet. The GMII uses an 8-bit data path instead of the 4-bit path that FastEthernet MII uses. The clocking must operate at 125MHz to achieve the 1Gb/s data rate. </PARA>
  168. </SECTION>
  169.  
  170. <SECTION ID="2.2.3.4"><TITLE>Time Slots</TITLE>
  171. <PARA>Because Ethernet networks are sensitive to the round-trip-delay constraint of CSMA/CD, time slots are extremely important. Remember that in 10BaseT and 100BaseT, the time slots were 512-bit times. However, this is not feasible for Gigabit because the time slot would be only 20 meters in length. To make Gigabit useable on a network, the time slots were extended to 512 bytes (4096-bit times!). However, the operation of full-duplex Ethernet was not changed at all. Table 2.2 compares the new Gigabit Ethernet technologies.</PARA>
  172. <TABLE NUM="2.2" TABLEENTRYNUM="3">
  173. <TABLETITLE>Comparison of Gigabit Ethernet Technologies</TABLETITLE>
  174. <TABLEHEAD>
  175. <TABLEROW>
  176. <TABLEENTRY><PARA>Technology</PARA></TABLEENTRY>
  177. <TABLEENTRY><PARA>Wiring Category</PARA></TABLEENTRY>
  178. <TABLEENTRY><PARA>Cable Distance</PARA></TABLEENTRY>
  179. </TABLEROW>
  180. </TABLEHEAD>
  181. <TABLEBODY>
  182. <TABLEROW>
  183. <TABLEENTRY><PARA>1000BaseCX</PARA></TABLEENTRY>
  184. <TABLEENTRY><PARA>Copper shielded twisted-pair</PARA></TABLEENTRY>
  185. <TABLEENTRY><PARA>25 meters</PARA></TABLEENTRY>
  186. </TABLEROW>
  187. <TABLEROW>
  188. <TABLEENTRY><PARA>1000BaseT</PARA></TABLEENTRY>
  189. <TABLEENTRY><PARA>Copper category 5, four-pair  wiring, UTP</PARA></TABLEENTRY>
  190. <TABLEENTRY><PARA>100 meters</PARA></TABLEENTRY>
  191. </TABLEROW>
  192. <TABLEROW>
  193. <TABLEENTRY><PARA>1000BaseSX</PARA></TABLEENTRY>
  194. <TABLEENTRY><PARA>MMF using 62.5 and 50-micron core, uses a 780-nanometer laser</PARA></TABLEENTRY>
  195. <TABLEENTRY><PARA>260 meters</PARA></TABLEENTRY>
  196. </TABLEROW>
  197. <TABLEROW>
  198. <TABLEENTRY><PARA>1000BaseLX</PARA></TABLEENTRY>
  199. <TABLEENTRY><PARA>Single-mode fiber that uses  a 9-micron core, 1300- nanometer laser</PARA></TABLEENTRY>
  200. <TABLEENTRY><PARA><NOBR>3 km</NOBR> up to <NOBR>10 km</NOBR></PARA></TABLEENTRY>
  201. </TABLEROW>
  202. </TABLEBODY>
  203. </TABLE>
  204. </SECTION>
  205. </SECTION>
  206. </SECTION>
  207.  
  208. <SECTION ID="2.3"><TITLE>Connecting and Logging In to a Switch</TITLE>
  209. <PARA><DROPCAP>I</DROPCAP>n this section, you will learn about two different types of switches Cisco sells: the Catalyst 1900, which is IOS based, and the Catalyst 5000, which is set based. The Catalyst 1900 switch can now use a command-line interface (CLI) and the Cisco Internetworking Operating System (IOS) runs on the switch. This makes configuring the switch very similar to how you would configure a router. The 5000 series is still set based, which means you use the command <INLINECODE>set</INLINECODE> to configure the router. Throughout the rest of this course, we'll show you commands on both types of switches.</PARA>
  210. <PARA>There are two types of operating systems that run on Cisco switches:</PARA>
  211. <RUNINBLOCK><RUNINHEAD>IOS based</RUNINHEAD>
  212. <RUNINPARA>You can configure the switch from a command-line interface (CLI) that is very similar to the one used on Cisco routers. Catalyst 1900, 2820, and 2900 switches can be used with an IOS-based CLI, although they can be set with a menu system as well. </RUNINPARA></RUNINBLOCK>
  213. <RUNINBLOCK><RUNINHEAD>Set based</RUNINHEAD>
  214. <RUNINPARA>Uses older, set-based CLI configuration commands. The Cisco switches that use the set-based CLI are the 2926 series, the 1948G, the 4000, the 5000, and the 6000 series.</RUNINPARA></RUNINBLOCK>
  215. <PARA>It's time to be introduced to the 1900 and 5000 series of Catalyst switches. Why the 1900? Cisco uses it on the exams, of course, and it allows you to run a CLI with IOS-based commands on a less-expensive switch than you would need to use with the 5000 series. The 1900 switches are great for home offices or other small offices where you can get 10Mbps switched ports with 100Mbps uplinks at a decent price. It sure beats shared hubs! </PARA>
  216.  
  217. <SECTION ID="2.3.1" POS="1"><TITLE>Cabling the Switch Block Devices</TITLE>
  218. <PARA>You can physically connect to a Cisco Catalyst switch by connecting either to the console port or an Ethernet port, just as you would with a router.</PARA>
  219.  
  220. <SECTION ID="2.3.1.1"><TITLE>Connecting to the Console Port</TITLE>
  221. <PARA>The 1900 and 5000 series switches both have a console connector. However, the 5000 series switch has a console connector that uses only an RS-232-type connector, which will come with the switch when purchased. The 1900 switch, on the other hand, has a console port on the back, which is an RJ-45 port. Both console cables are rolled cables.</PARA>
  222. <NOTE>1924 switches use a null-modem cable for the console port.</NOTE>
  223. <PARA>After you connect to the console port, you need to start a terminal emulation program like Hyperterm in Windows. The settings are as follows:</PARA>
  224. <LIST MARK="bullet">
  225. <LISTITEM><PARA>9600 BPS</PARA></LISTITEM>
  226. <LISTITEM><PARA>8 data bits</PARA></LISTITEM>
  227. <LISTITEM><PARA>No parity</PARA></LISTITEM>
  228. <LISTITEM><PARA>1 stop bits</PARA></LISTITEM>
  229. <LISTITEM><PARA>No flow control</PARA></LISTITEM>
  230. </LIST>
  231. <WARNING>Do not connect an Ethernet cable, ISDN, or live telephone line into the console port. These things can damage the electronics of the switch.</WARNING>
  232. </SECTION>
  233.  
  234. <SECTION ID="2.3.1.2"><TITLE>Connecting to an Ethernet Port</TITLE>
  235. <PARA>The Catalyst 1900/2800 series switches have fixed port types. They are not modular like the 5000 series switches. The 1900/2800 switches use only 10BaseT ports for workstations and 100BaseT or FX for uplinks. Each switch has either 12 (model 1912) or 24 (model 1924) 10BaseT switch ports with 2 FastEthernet uplinks. The 100BaseTX ports are referred to as ports A and B. We have connected servers into these ports and are able to run 100Mbps. Works great for a small network. To connect the ports to another switch as an uplink, you must use a crossover cable. It would be nice if there were a button for this function, but there isn't.</PARA>
  236. <PARA>The Catalyst 5000 switches can run either 10 or 100Mbps on any port, depending on the type of cards you buy. The supervisor cards always take the first slot and have two 100BaseTX or FX ports for uplinks. All devices connected into either the 1900/2800 or 5000 series switches must be within 100 meters (330 feet) of the switch port. </PARA>
  237. <NOTE>When connecting devices like workstations, servers, printers, and routers to the switch, you must use a straight-through cable. Use a crossover cable to connect between switches.</NOTE>
  238. <PARA>When a device is connected to a port, the port status LED light comes on and stays on. If the light does not come on, the other end might be off or there might be a cable problem. Also, if a light comes on and off, an auto-speed and duplex problem is possible. We'll show you how to check that in the next section. </PARA>
  239. </SECTION>
  240.  
  241. <SECTION ID="2.3.1.3"><TITLE>5000 Switch Startup</TITLE>
  242. <PARA>The 5000 series switch loads the software image from flash, then asks you to enter a password, even if there isn't one set. Press Enter, and then you will see a Console > prompt. At this point, you can enter enable mode and configure the switch using <INLINECODE>set</INLINECODE> commands:</PARA>
  243. <CODESNIPPET><CODELINE>BOOTROM Version 5.1(2), Dated Apr 26 1999 10:41:04</CODELINE>
  244. <CODELINE>BOOT date: 08/02/02 BOOT time: 08:49:03</CODELINE>
  245. <CODELINE>Uncompressing NMP image.  This will take a minute...</CODELINE>
  246. <CODELINE>Downloading epld sram device please wait ...</CODELINE>
  247. <CODELINE>Programming successful for Altera 10K10 SRAM EPLD</CODELINE>
  248. <CODELINE>Updating epld flash version from 0000 to 0600</CODELINE>
  249. <CODELINE></CODELINE>
  250. <CODELINE>Cisco Systems Console</CODELINE>
  251. <CODELINE></CODELINE>
  252. <CODELINE>Enter password: <EMPHASIS FORMAT="bold">[press return here]</EMPHASIS></CODELINE>
  253. <CODELINE>1997 Mar 22 22:22:56 %SYS-5-MOD_OK:Module 1 is online</CODELINE>
  254. <CODELINE>1997 Mar 22 22:23:06 %SYS-5-MOD_OK:Module 2 is online</CODELINE>
  255. <CODELINE></CODELINE>
  256. <CODELINE>Console></CODELINE></CODESNIPPET>
  257. </SECTION>
  258.  
  259. <SECTION ID="2.3.1.4"><TITLE>1900 Switch Startup</TITLE>
  260. <PARA>When you connect to the 1900 console, the menu below appears. By pressing K, you can use the command-line interface, and M will allow you to configure the switch through a menu system. The I option allows you to configure the IP configuration of the switch (this can also be accomplished through the menu or CLI at any time). Once the IP configuration is set, the I selection no longer appears:</PARA>
  261. <CODESNIPPET><CODELINE>1 user(s) now active on Management Console.</CODELINE>
  262. <CODELINE></CODELINE>
  263. <CODELINE>        User Interface Menu</CODELINE>
  264. <CODELINE></CODELINE>
  265. <CODELINE>     [M] Menus</CODELINE>
  266. <CODELINE>     [K] Command Line</CODELINE>
  267. <CODELINE>     [I] IP Configuration</CODELINE>
  268. <CODELINE></CODELINE>
  269. <CODELINE>Enter Selection:  <EMPHASIS FORMAT="bold">K</EMPHASIS></CODELINE>
  270. <CODELINE></CODELINE>
  271. <CODELINE>      CLI session with the switch is open.</CODELINE>
  272. <CODELINE>      To end the CLI session, enter [Exit].</CODELINE>
  273. <CODELINE></CODELINE>
  274. <CODELINE>></CODELINE></CODESNIPPET>
  275. </SECTION>
  276. </SECTION>
  277.  
  278. <SECTION ID="2.3.2"><TITLE>Cisco IOS- and Set-Based Commands</TITLE>
  279. <PARA>In this section, you'll learn how to configure the basics on both types of switches. Specifically, you'll learn how to do the following:</PARA>
  280. <LIST MARK="bullet">
  281. <LISTITEM><PARA>Set the passwords</PARA></LISTITEM>
  282. <LISTITEM><PARA>Set the hostname</PARA></LISTITEM>
  283. <LISTITEM><PARA>Configure the IP address and subnet mask</PARA></LISTITEM>
  284. <LISTITEM><PARA>Identify the interfaces</PARA></LISTITEM>
  285. <LISTITEM><PARA>Set a description on the interfaces</PARA></LISTITEM>
  286. <LISTITEM><PARA>Configure the port speed</PARA></LISTITEM>
  287. <LISTITEM><PARA>Define the port duplex</PARA></LISTITEM>
  288. <LISTITEM><PARA>Verify the configuration</PARA></LISTITEM>
  289. </LIST>
  290.  
  291. <SECTION ID="2.3.2.1"><TITLE>Setting the Passwords</TITLE>
  292. <PARA>The first thing you should do is configure the passwords. You don't want unauthorized users connecting to the switch. You can set both the usermode and privileged mode passwords, just as you can with a router. However, you use different commands.</PARA>
  293. <PARA>As with any Cisco router, the login (usermode) password can be used to verify authorization of the switch, including telnet and the console port. The enable password is used to allow access to the switch so the configuration can be viewed or changed. </PARA>
  294. <NOTE>The passwords cannot be less than four characters or more than eight. They are not case sensitive.</NOTE>
  295.  
  296. <SECTION ID="2.3.2.1.1"><TITLE>5000 Series Set-Based Switch</TITLE>
  297. <PARA>To configure the two passwords on a 5000 series switch, use the command <INLINECODE>set password</INLINECODE> for the usermode password and the command <INLINECODE>set enablepass</INLINECODE> for the enable password:</PARA>
  298. <CODESNIPPET><CODELINE>1997 Mar 21 06:31:54 %SYS-5-MOD_OK:Module 1 is online</CODELINE>
  299. <CODELINE>1997 Mar 21 06:31:54 %SYS-5-MOD_OK:Module 2 is online</CODELINE>
  300. <CODELINE></CODELINE>
  301. <CODELINE>Console> <EMPHASIS FORMAT="bold">en</EMPHASIS></CODELINE>
  302. <CODELINE></CODELINE>
  303. <CODELINE>Enter password:</CODELINE>
  304. <CODELINE>Console> (enable) <EMPHASIS FORMAT="bold">set password ?</EMPHASIS></CODELINE>
  305. <CODELINE>Usage: set password</CODELINE>
  306. <CODELINE>Console> (enable) <EMPHASIS FORMAT="bold">set password</EMPHASIS> [press enter]</CODELINE>
  307. <CODELINE>Enter old password: </CODELINE>
  308. <CODELINE>Enter new password: </CODELINE>
  309. <CODELINE>Retype new password:</CODELINE>
  310. <CODELINE>Password changed.</CODELINE></CODESNIPPET>
  311. <PARA>When you see the "Enter old password" prompt, you can leave it blank and press Enter if you don't have a password set. The output for the "Enter new password" prompt doesn't show on the console screen. If you want to clear the usermode (login) password, type in the old password and then just press Enter when you're asked for a new password. </PARA>
  312. <PARA>To set the enable password, use the command <INLINECODE>set enablepass</INLINECODE>, then press Enter: </PARA>
  313. <CODESNIPPET><CODELINE>Console> (enable) <EMPHASIS FORMAT="bold">set enablepass</EMPHASIS></CODELINE>
  314. <CODELINE>Enter old password:</CODELINE>
  315. <CODELINE>Enter new password:</CODELINE>
  316. <CODELINE>Retype new password:</CODELINE>
  317. <CODELINE>Password changed.</CODELINE>
  318. <CODELINE>Console> (enable)</CODELINE></CODESNIPPET>
  319. <PARACONTINUED>You can type <EMPHASIS FORMAT="bold">exit</EMPHASIS> at this point to log out of the switch completely, which will allow you to test your new passwords. </PARACONTINUED>
  320. </SECTION>
  321.  
  322. <SECTION ID="2.3.2.1.2"><TITLE>1900 IOS-Based Switch</TITLE>
  323. <PARA>Even though the 1900 switch is a CLI running an IOS, the commands for the usermode and enable mode passwords are different than they are for a router. You use the command <INLINECODE>enable password</INLINECODE>, which is the same, but you choose different access levels, which is optional on a Cisco router but not on the 1900 switch. The enable secret password can be set as well, and it supercedes the enable password level 15. The telnet password is set by setting either the enable password level 15 or the enable secret password. </PARA>
  324. <PARA>Press K to enter CLI mode, and then enter enable mode and global configuration mode by using the <INLINECODE>config t</INLINECODE> command: </PARA>
  325. <CODESNIPPET><CODELINE>1 user(s) now active on Management Console.</CODELINE>
  326. <CODELINE></CODELINE>
  327. <CODELINE>        User Interface Menu</CODELINE>
  328. <CODELINE></CODELINE>
  329. <CODELINE>     [M] Menus</CODELINE>
  330. <CODELINE>     [K] Command Line</CODELINE>
  331. <CODELINE>     [I] IP Configuration</CODELINE>
  332. <CODELINE></CODELINE>
  333. <CODELINE>Enter Selection:  <EMPHASIS FORMAT="bold">K</EMPHASIS></CODELINE>
  334. <CODELINE></CODELINE>
  335. <CODELINE>      CLI session with the switch is open.</CODELINE>
  336. <CODELINE>      To end the CLI session, enter [Exit].</CODELINE>
  337. <CODELINE></CODELINE>
  338. <CODELINE>#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  339. <CODELINE>Enter configuration commands, one per line.  End with CNTL/Z</CODELINE>
  340. <CODELINE>(config)#<EMPHASIS FORMAT="bold">enable password ?</EMPHASIS></CODELINE>
  341. <CODELINE>  level  Set exec level password</CODELINE>
  342. <CODELINE>(config)#<EMPHASIS FORMAT="bold">enable password level ?</EMPHASIS></CODELINE>
  343. <CODELINE>  &lt;1-15>  Level number</CODELINE></CODESNIPPET>
  344. <PARA>To enter the usermode password, use level number 1. To enter the enable mode password, use level mode 15: </PARA>
  345. <CODESNIPPET><CODELINE>(config)#<EMPHASIS FORMAT="bold">enable password level 1 todd</EMPHASIS></CODELINE>
  346. <CODELINE>(config)#<EMPHASIS FORMAT="bold">enable password level 15 sanfran</EMPHASIS></CODELINE>
  347. <CODELINE>(config)#<EMPHASIS FORMAT="bold">enable secret cisco</EMPHASIS></CODELINE>
  348. <CODELINE>(config)#<EMPHASIS FORMAT="bold">exit</EMPHASIS></CODELINE>
  349. <CODELINE>#<EMPHASIS FORMAT="bold">exit</EMPHASIS></CODELINE>
  350. <CODELINE>CLI session with the switch is now closed.</CODELINE>
  351. <CODELINE>Press any key to continue.</CODELINE>
  352. <CODELINE>Catalyst 1900 Management Console</CODELINE>
  353. <CODELINE>Copyright (c) Cisco Systems, Inc.  1993-1998</CODELINE>
  354. <CODELINE>All rights reserved.</CODELINE>
  355. <CODELINE>Enterprise Edition Software</CODELINE>
  356. <CODELINE>Ethernet Address:      00-30-80-CC-7D-00</CODELINE>
  357. <CODELINE>PCA Number:            73-3122-04</CODELINE>
  358. <CODELINE>PCA Serial Number:     FAB033725XG</CODELINE>
  359. <CODELINE>Model Number:          WS-C1912-A</CODELINE>
  360. <CODELINE>System Serial Number:  FAB0339T01M</CODELINE>
  361. <CODELINE>Power Supply S/N:      PHI031801CF</CODELINE>
  362. <CODELINE>PCB Serial Number:     FAB033725XG,73-3122-04</CODELINE>
  363. <CODELINE>-------------------------------------------------</CODELINE>
  364. <CODELINE>1 user(s) now active on Management Console.</CODELINE>
  365. <CODELINE>        User Interface Menu</CODELINE>
  366. <CODELINE>     [M] Menus</CODELINE>
  367. <CODELINE>     [K] Command Line</CODELINE>
  368. <CODELINE>Enter Selection:  <EMPHASIS FORMAT="bold">K</EMPHASIS></CODELINE>
  369. <CODELINE>Enter password:  <EMPHASIS FORMAT="bold">****</EMPHASIS></CODELINE>
  370. <CODELINE>      CLI session with the switch is open.</CODELINE>
  371. <CODELINE>      To end the CLI session, enter [Exit].</CODELINE>
  372. <CODELINE>><EMPHASIS FORMAT="bold">en</EMPHASIS></CODELINE>
  373. <CODELINE>Enter password:  <EMPHASIS FORMAT="bold">****</EMPHASIS></CODELINE>
  374. <CODELINE>#</CODELINE></CODESNIPPET>
  375. <PARA>Notice that the program prompted for a usermode password, which was the level 1 password entered. The enable password was the enable secret password set, which superceded the enable password level 15.</PARA>
  376. </SECTION>
  377. </SECTION>
  378.  
  379. <SECTION ID="2.3.2.2"><TITLE>Setting the Hostname</TITLE>
  380. <PARA>The hostname on a switch, as well as on a router, is only locally significant. This means that it doesn't have any function on the network or for name resolution whatsoever. However, it is helpful to set a hostname on a switch so you can identify the switch when connecting to it. A good rule of thumb is to name the switch after the location it is serving. </PARA>
  381.  
  382. <SECTION ID="2.3.2.2.1"><TITLE>5000 Series Set-Based Switch</TITLE>
  383. <PARA>To set the hostname on a 5000 series switch, use the <INLINECODE>set prompt</INLINECODE> command: </PARA>
  384. <CODESNIPPET><CODELINE>Cisco Systems Console           Thu Mar 21 1997, 06:31:54</CODELINE>
  385. <CODELINE></CODELINE>
  386. <CODELINE>Enter password:</CODELINE>
  387. <CODELINE>Console> <EMPHASIS FORMAT="bold">en</EMPHASIS></CODELINE>
  388. <CODELINE>Enter password:</CODELINE>
  389. <CODELINE>Console> (enable) <EMPHASIS FORMAT="bold">set prompt Todd5000</EMPHASIS></CODELINE>
  390. <CODELINE>Todd5000 (enable) <EMPHASIS FORMAT="bold">set prompt Todd5000></EMPHASIS></CODELINE>
  391. <CODELINE>Todd5000> (enable)</CODELINE></CODESNIPPET>
  392. <PARA>Because the location is his office, Todd5000 works for Todd. Notice that the first command used did not include a > prompt. We like to see that prompt, but you have to choose it. On a router, you can change the prompt, but the default is always a > prompt.  </PARA>
  393. </SECTION>
  394.  
  395. <SECTION ID="2.3.2.2.2"><TITLE>1900 IOS-Based Switch</TITLE>
  396. <PARA>The 1900 switch command to set the hostname is exactly as it is with any router. You use the <INLINECODE>hostname</INLINECODE> command (remember, it is one word):</PARA>
  397. <CODESNIPPET><CODELINE>1 user(s) now active on Management Console.</CODELINE>
  398. <CODELINE></CODELINE>
  399. <CODELINE>        User Interface Menu</CODELINE>
  400. <CODELINE></CODELINE>
  401. <CODELINE>     [M] Menus</CODELINE>
  402. <CODELINE>     [K] Command Line</CODELINE>
  403. <CODELINE>     [I] IP Configuration</CODELINE>
  404. <CODELINE>Enter Selection:  <EMPHASIS FORMAT="bold">K</EMPHASIS></CODELINE>
  405. <CODELINE>Enter password:  <EMPHASIS FORMAT="bold">****</EMPHASIS></CODELINE>
  406. <CODELINE>      CLI session with the switch is open.</CODELINE>
  407. <CODELINE>      To end the CLI session, enter [Exit].</CODELINE>
  408. <CODELINE>><EMPHASIS FORMAT="bold">en</EMPHASIS></CODELINE>
  409. <CODELINE>Enter password:  <EMPHASIS FORMAT="bold">****</EMPHASIS></CODELINE>
  410. <CODELINE>#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  411. <CODELINE>Enter configuration commands, one per line.  End with CNTL/Z</CODELINE>
  412. <CODELINE>(config)#<EMPHASIS FORMAT="bold">hostname Todd1900EN</EMPHASIS></CODELINE>
  413. <CODELINE>Todd1900EN(config)#</CODELINE></CODESNIPPET>
  414. </SECTION>
  415. </SECTION>
  416.  
  417. <SECTION ID="2.3.2.3"><TITLE>Setting the IP Information</TITLE>
  418. <PARA>You do not have to set any IP configuration on the switch to make it work. You can just plug in devices and they should start working, as they do on a hub. IP address information is set so that you can either manage the switch via Telnet or other management software or configure the switch with different VLANs and other network functions.</PARA>
  419.  
  420. <SECTION ID="2.3.2.3.1"><TITLE>5000 Series Set-Based Switch</TITLE>
  421. <PARA>To set the IP address information on a 5000 series switch, configure the supervisor engine that is plugged into slot one of every switch. This is called the <KEYTERM>in-band</KEYTERM> logical interface. Use the command <INLINECODE>set interface sc0</INLINECODE>: </PARA>
  422. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">set int sc0 172.16.10.17 255.255.255.0</EMPHASIS></CODELINE>
  423. <CODELINE>Interface sc0 IP address and netmask set.</CODELINE></CODESNIPPET>
  424. <PARA>By default, the switch is configured for VLAN 1, which can be seen by using the <INLINECODE>show interface</INLINECODE> command. Notice also that the broadcast address for the subnet shows up and that you can change that by entering it with the <INLINECODE>set int sc0</INLINECODE> command (but we can think of only one reason you would want to change that-to mess with the people in your MIS department):</PARA>
  425. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">sh int</EMPHASIS></CODELINE>
  426. <CODELINE>sl0: flags=51&lt;UP,POINTOPOINT,RUNNING></CODELINE>
  427. <CODELINE>  slip 0.0.0.0 dest 0.0.0.0</CODELINE>
  428. <CODELINE>sc0: flags=63&lt;UP,BROADCAST,RUNNING></CODELINE>
  429. <CODELINE> vlan 1 inet 172.16.10.17 netmask 255.255.255.0 broadcast 172.16.10.255 </CODELINE>
  430. <CODELINE>Todd5000> (enable)</CODELINE></CODESNIPPET>
  431. <PARA>If you wanted to have the switch in a different VLAN, instead of the default VLAN 1, you can use the <INLINECODE>set int sc0</INLINECODE> command: </PARA>
  432. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">set int sc0 2</EMPHASIS></CODELINE>
  433. <CODELINE>Interface sc0 vlan set.</CODELINE>
  434. <CODELINE>Todd5000> (enable) sh int</CODELINE>
  435. <CODELINE>sl0: flags=51&lt;UP,POINTOPOINT,RUNNING></CODELINE>
  436. <CODELINE>  slip 0.0.0.0 dest 0.0.0.0</CODELINE>
  437. <CODELINE>sc0: flags=63&lt;UP,BROADCAST,RUNNING></CODELINE>
  438. <CODELINE> vlan 2 inet 172.16.10.11 netmask 255.255.255.0 broadcast 172.16.10.255</CODELINE>
  439. <CODELINE>Todd5000> (enable)</CODELINE></CODESNIPPET>
  440. <PARA>Cisco recommends that you use the VLAN 1 for management of the switch device and then create other VLANs for users. In other words, they don't recommend what we just showed you.</PARA>
  441. </SECTION>
  442.  
  443. <SECTION ID="2.3.2.3.2"><TITLE>1900 IOS-Based Switch</TITLE>
  444. <PARA>To set the IP configuration on a 1900 switch, use the command <INLINECODE>ip address</INLINECODE>. By typing the command <INLINECODE>show ip</INLINECODE>, you can see the configuration (by default, nothing is set): </PARA>
  445. <CODESNIPPET><CODELINE>Todd1900EN#<EMPHASIS FORMAT="bold">sh ip</EMPHASIS></CODELINE>
  446. <CODELINE>IP Address: 0.0.0.0</CODELINE>
  447. <CODELINE>Subnet Mask: 0.0.0.0</CODELINE>
  448. <CODELINE>Default Gateway: 0.0.0.0</CODELINE>
  449. <CODELINE>Management VLAN:  1</CODELINE>
  450. <CODELINE>Domain name:</CODELINE>
  451. <CODELINE>Name server 1: 0.0.0.0</CODELINE>
  452. <CODELINE>Name server 2: 0.0.0.0</CODELINE>
  453. <CODELINE>HTTP server : Enabled</CODELINE>
  454. <CODELINE>HTTP port :  80</CODELINE>
  455. <CODELINE>RIP : Enabled</CODELINE></CODESNIPPET>
  456. <PARA>The default gateway should also be set, and the command is <INLINECODE>ip default-gateway</INLINECODE>: </PARA>
  457. <CODESNIPPET><CODELINE>Todd1900EN#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  458. <CODELINE>Enter configuration commands, one per line.  End with CNTL/Z</CODELINE>
  459. <CODELINE>Todd1900EN(config)#ip address 172.16.10.16 255.255.255.0</CODELINE>
  460. <CODELINE>Todd1900EN(config)#ip default-gateway 172.16.10.1</CODELINE>
  461. <CODELINE>Todd1900EN(config)#</CODELINE>
  462. <CODELINE></CODELINE>
  463. <CODELINE>Todd1900EN#sh ip</CODELINE>
  464. <CODELINE>IP Address: 172.16.10.16</CODELINE>
  465. <CODELINE>Subnet Mask: 255.255.255.0</CODELINE>
  466. <CODELINE>Default Gateway: 172.16.10.1</CODELINE>
  467. <CODELINE>Management VLAN:  1</CODELINE>
  468. <CODELINE>Domain name:</CODELINE>
  469. <CODELINE>Name server 1: 0.0.0.0</CODELINE>
  470. <CODELINE>Name server 2: 0.0.0.0</CODELINE>
  471. <CODELINE>HTTP server : Enabled</CODELINE>
  472. <CODELINE>HTTP port :  80</CODELINE>
  473. <CODELINE>RIP : Enabled</CODELINE>
  474. <CODELINE>Todd1900EN#</CODELINE></CODESNIPPET>
  475. </SECTION>
  476. </SECTION>
  477.  
  478. <SECTION ID="2.3.2.4"><TITLE>Switch Interfaces</TITLE>
  479. <PARA>It is important to understand how to access switch ports. The 5000 series uses the <INLINECODE>slot/port</INLINECODE> command. The 1900 series of switches uses the <INLINECODE>type slot/port</INLINECODE> command. </PARA>
  480.  
  481. <SECTION ID="2.3.2.4.1"><TITLE>5000 Series Set-Based Switch</TITLE>
  482. <PARA>You can use the <INLINECODE>show</INLINECODE> command to view port statistics on a 5000 switch. Notice that, by default, the duplex and speed of the port are both set to auto. Also, typically the ports on a 2900, 4000, 5000, and 6000 series switch may be enabled, but it might be necessary to configure the ports so that they can be enabled with the <INLINECODE>set port enable</INLINECODE> command. You can turn off any port with the <INLINECODE>set port disable</INLINECODE> command: </PARA>
  483. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">show port ?</EMPHASIS></CODELINE>
  484. <CODELINE>Usage: show port</CODELINE>
  485. <CODELINE>       show port &lt;mod_num></CODELINE>
  486. <CODELINE>       show port &lt;mod_num/port_num></CODELINE>
  487. <CODELINE>Todd5000> (enable) show port 2/1</CODELINE>
  488. <CODELINE>Port  Name   Status  Vlan  Level    Duplex Speed Type</CODELINE>
  489. <CODELINE>----- ------------------ ---------- ---------- ------------ </CODELINE>
  490. <CODELINE> 2/1        connect   2     normal   auto  auto 10/100BaseTX </CODELINE>
  491. <CODELINE></CODELINE>
  492. <CODELINE>Todd5000> (enable) set port disable 2/1</CODELINE>
  493. <CODELINE>Port 2/1 disabled.</CODELINE>
  494. <CODELINE>Todd5000> (enable) sh port 2/1</CODELINE>
  495. <CODELINE>Port  Name    Status     Vlan    Level  Duplex Speed  Type</CODELINE>
  496. <CODELINE>----- ------------------ ---------- ------ ------ ----- </CODELINE>
  497. <CODELINE> 2/1          disabled   1      normal   auto  auto 10/100BaseTX </CODELINE>
  498. <CODELINE></CODELINE>
  499. <CODELINE>Todd5000> (enable) set port enable 2/1</CODELINE>
  500. <CODELINE>Port 2/1 enabled.</CODELINE>
  501. <CODELINE>Todd5000> (enable) sh port 2/1</CODELINE>
  502. <CODELINE>Port  Name     Status     Vlan       Level  Duplex  Speed Type</CODELINE>
  503. <CODELINE>----- ------  --------- ---------- ---------- ------ --- ------</CODELINE>
  504. <CODELINE>2/1           connect    1       normal   auto  auto 10/100BaseTX</CODELINE></CODESNIPPET>
  505. <NOTE>The command <INLINECODE>show config</INLINECODE> displays the complete current configuration of the set-based switch. </NOTE>
  506. </SECTION>
  507.  
  508. <SECTION ID="2.3.2.4.2"><TITLE>1900 IOS-Based Switch</TITLE>
  509. <PARA>The 1900 switch takes the <INLINECODE>type slot/port</INLINECODE> command with either the <INLINECODE>interface</INLINECODE> command or the <INLINECODE>show</INLINECODE> command. The <INLINECODE>interface</INLINECODE> command allows you to set interface-specific configurations. The 1900 switch has only one slot, zero (0): </PARA>
  510. <CODESNIPPET><CODELINE>Todd1900EN#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  511. <CODELINE>Enter configuration commands, one per line.  End with CNTL/Z</CODELINE>
  512. <CODELINE>Todd1900EN(config)#<EMPHASIS FORMAT="bold">int ethernet ?</EMPHASIS></CODELINE>
  513. <CODELINE>  &lt;0-0>  IEEE 802.3</CODELINE>
  514. <CODELINE>Todd1900EN(config)#<EMPHASIS FORMAT="bold">int ethernet 0?</EMPHASIS></CODELINE>
  515. <CODELINE>  /</CODELINE>
  516. <CODELINE>Todd1900EN(config)#<EMPHASIS FORMAT="bold">int ethernet 0/?</EMPHASIS></CODELINE>
  517. <CODELINE>  &lt;1-25>  IEEE 802.3</CODELINE>
  518. <CODELINE>Todd1900EN(config)#<EMPHASIS FORMAT="bold">int ethernet 0/1</EMPHASIS></CODELINE>
  519. <CODELINE>Todd1900EN(config-if)#<EMPHASIS FORMAT="bold">?</EMPHASIS></CODELINE>
  520. <CODELINE>Interface configuration commands:</CODELINE></CODESNIPPET>
  521. <CODESNIPPET><CODELINE>  cdp              Cdp interface subcommands</CODELINE>
  522. <CODELINE>  description      Interface specific description</CODELINE>
  523. <CODELINE>  duplex           Configure duplex operation</CODELINE>
  524. <CODELINE>  exit             Exit from interface configuration mode</CODELINE>
  525. <CODELINE>  help             Description of the interactive help system </CODELINE>
  526. <CODELINE>  no               Negate a command or set its defaults</CODELINE>
  527. <CODELINE>  port             Perform switch port configuration</CODELINE>
  528. <CODELINE>  shutdown         Shutdown the selected interface</CODELINE>
  529. <CODELINE>  spantree         Spanning tree subsystem</CODELINE>
  530. <CODELINE>  vlan-membership  VLAN membership configuration</CODELINE></CODESNIPPET>
  531. <PARA>You can switch between interfaces by using the <INLINECODE>int e 0/#</INLINECODE> command. Notice that we demonstrate below commands with spaces or without-it makes no difference. </PARA>
  532. <PARA>To configure the two FastEthernet ports, the command is <INLINECODE>interface fastethernet 0\#</INLINECODE>. You cannot go to the FastEthernet ports from the 10BaseT ports without typing <EMPHASIS FORMAT="bold">exit</EMPHASIS> to go back one level: </PARA>
  533. <CODESNIPPET><CODELINE>Todd1900EN(config-if)#<EMPHASIS FORMAT="bold">int e 0/2</EMPHASIS></CODELINE>
  534. <CODELINE>Todd1900EN(config-if)#<EMPHASIS FORMAT="bold">int e0/3</EMPHASIS></CODELINE>
  535. <CODELINE>Todd1900EN(config-if)#<EMPHASIS FORMAT="bold">exit</EMPHASIS></CODELINE>
  536. <CODELINE></CODELINE>
  537. <CODELINE>Todd1900EN(config)#<EMPHASIS FORMAT="bold">int fastEthernet ?</EMPHASIS></CODELINE>
  538. <CODELINE>  &lt;0-0>  FastEthernet IEEE 802.3</CODELINE>
  539. <CODELINE>Todd1900EN(config)#<EMPHASIS FORMAT="bold">int fastEthernet 0/?</EMPHASIS></CODELINE>
  540. <CODELINE>  &lt;26-27>  FastEthernet IEEE 802.3</CODELINE>
  541. <CODELINE>Todd1900EN(config)#<EMPHASIS FORMAT="bold">int fastEthernet 0/26</EMPHASIS></CODELINE>
  542. <CODELINE>Todd1900EN(config-if)#<EMPHASIS FORMAT="bold">int fast 0/27</EMPHASIS></CODELINE>
  543. <CODELINE>Todd1900EN(config-if)# <EMPHASIS FORMAT="bold">[control+Z]</EMPHASIS></CODELINE></CODESNIPPET>
  544. <PARA>You can view the ports with the <INLINECODE>show interface</INLINECODE> command: </PARA>
  545. <CODESNIPPET><CODELINE>Todd1900EN#<EMPHASIS FORMAT="bold">sh int e0/1</EMPHASIS></CODELINE>
  546. <CODELINE>Ethernet 0/1 is Suspended-no-linkbeat</CODELINE>
  547. <CODELINE>Hardware is Built-in 10Base-T</CODELINE>
  548. <CODELINE>Address is 0030.80CC.7D01</CODELINE>
  549. <CODELINE>MTU 1500 bytes, BW 10000 Kbits</CODELINE>
  550. <CODELINE>802.1d STP State:  Forwarding     Forward Transitions:  1</CODELINE>
  551. <CODELINE>[output cut]</CODELINE>
  552. <CODELINE> Todd1900EN#<EMPHASIS FORMAT="bold">sh int f0/26</EMPHASIS></CODELINE>
  553. <CODELINE>FastEthernet 0/26 is Suspended-no-linkbeat</CODELINE>
  554. <CODELINE>Hardware is Built-in 100Base-TX</CODELINE>
  555. <CODELINE>Address is 0030.80CC.7D1A</CODELINE>
  556. <CODELINE>MTU 1500 bytes, BW 100000 Kbits</CODELINE>
  557. <CODELINE>802.1d STP State:  Blocking     Forward Transitions:  0</CODELINE>
  558. <CODELINE>[output cut]</CODELINE></CODESNIPPET>
  559. </SECTION>
  560. </SECTION>
  561.  
  562. <SECTION ID="2.3.2.5"><TITLE>Configuring Interface Descriptions</TITLE>
  563. <PARA>You can set a description on an interface, which will allow you to administratively set a name for each interface. As with the hostname, the descriptions are only locally significant. </PARA>
  564.  
  565. <SECTION ID="2.3.2.5.1"><TITLE>5000 Series Set-Based Switch</TITLE>
  566. <PARA>To set a description with the 5000 switch, use the <INLINECODE>set port name slot/port</INLINECODE> command. Spaces are allowed. You can set a name up to 21 characters long: </PARA>
  567. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">set port name 2/1 Sales Printer</EMPHASIS></CODELINE>
  568. <CODELINE>Port 2/1 name set.</CODELINE>
  569. <CODELINE>Todd5000> (enable) sh port 2/1</CODELINE>
  570. <CODELINE>Port  Name           Status   Vlan Level  Duplex Speed Type</CODELINE>
  571. <CODELINE>----- -------------- ---------- ---- ----- ------ ------ ----- </CODELINE>
  572. <CODELINE> 2/1  Sales Printer  notconnect 2  normal  auto  auto 10/100BaseTX</CODELINE></CODESNIPPET>
  573. </SECTION>
  574.  
  575. <SECTION ID="2.3.2.5.2"><TITLE>1900 IOS-Based Switch</TITLE>
  576. <PARA>For the 1900 series switch, use the <INLINECODE>description</INLINECODE> command. You cannot use spaces with the <INLINECODE>description</INLINECODE> command, but you can use underlining if you need to: </PARA>
  577. <CODESNIPPET><CODELINE>Todd1900EN#<EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  578. <CODELINE>Enter configuration commands, one per line.  End with CNTL/Z</CODELINE>
  579. <CODELINE>Todd1900EN(config)#int e0/1</CODELINE>
  580. <CODELINE>Todd1900EN(config-if)#description Finance_VLAN</CODELINE>
  581. <CODELINE>Todd1900EN(config-if)#int f0/26</CODELINE>
  582. <CODELINE>Todd1900EN(config-if)#description trunk_to_Building_4</CODELINE>
  583. <CODELINE>Todd1900EN(config-if)#</CODELINE></CODESNIPPET>
  584. <PARA>You can view the descriptions with either the <INLINECODE>show interface</INLINECODE> command or the <INLINECODE>show running-config</INLINECODE> command: </PARA>
  585. <CODESNIPPET><CODELINE>Todd1900EN#<EMPHASIS FORMAT="bold">sh int e0/1</EMPHASIS></CODELINE>
  586. <CODELINE>Ethernet 0/1 is Suspended-no-linkbeat</CODELINE>
  587. <CODELINE>Hardware is Built-in 10Base-T</CODELINE>
  588. <CODELINE>Address is 0030.80CC.7D01</CODELINE>
  589. <CODELINE>MTU 1500 bytes, BW 10000 Kbits</CODELINE>
  590. <CODELINE>802.1d STP State:  Forwarding     Forward Transitions:  1</CODELINE>
  591. <CODELINE>Port monitoring: Disabled</CODELINE>
  592. <CODELINE>Unknown unicast flooding: Enabled</CODELINE>
  593. <CODELINE>Unregistered multicast flooding: Enabled</CODELINE>
  594. <CODELINE><EMPHASIS FORMAT="bold">Description: Finance_VLAN</EMPHASIS></CODELINE>
  595. <CODELINE>Duplex setting: Half duplex</CODELINE>
  596. <CODELINE>Back pressure: Disabled</CODELINE>
  597. <CODELINE></CODELINE>
  598. <CODELINE>Todd1900EN#<EMPHASIS FORMAT="bold">sh run</EMPHASIS></CODELINE>
  599. <CODELINE>Building configuration...</CODELINE>
  600. <CODELINE></CODELINE>
  601. <CODELINE>Current configuration:</CODELINE>
  602. <CODELINE>hostname "Todd1900EN"</CODELINE>
  603. <CODELINE>!</CODELINE>
  604. <CODELINE>ip address 172.16.10.16 255.255.255.0</CODELINE>
  605. <CODELINE>ip default-gateway 172.16.10.1</CODELINE>
  606. <CODELINE>!</CODELINE>
  607. <CODELINE>interface Ethernet 0/1</CODELINE>
  608. <CODELINE></CODELINE>
  609. <CODELINE><EMPHASIS FORMAT="bold">  description "Finance_VLAN"</EMPHASIS></CODELINE>
  610. <CODELINE>!</CODELINE>
  611. <CODELINE>[output cut]</CODELINE></CODESNIPPET>
  612. </SECTION>
  613. </SECTION>
  614.  
  615. <SECTION ID="2.3.2.6"><TITLE>Configuring the Port Speed and Duplex</TITLE>
  616. <PARA>By default, all 10/100 ports on the 5000 series switch are set to auto-detect the speed and duplex of the port. However, the 1900 switch has only 12 or 24 10BaseT ports, which cannot be changed. It comes with one or two FastEthernet ports, which allows you to change the duplex only. The 2820 series has 24 10BaseT ports and 2 modular slots for FastEthernet. </PARA>
  617.  
  618. <SECTION ID="2.3.2.6.1"><TITLE>5000 Series Set-Based Switch</TITLE>
  619. <PARA>Because the ports on a 10/100 card are auto-detect, you don't have to necessarily set the speed and duplex. However, there are situations where the auto-detect does not work correctly, and by setting the speed and duplex, you can stabilize the link: </PARA>
  620. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">set port speed 2/1 ?</EMPHASIS></CODELINE>
  621. <CODELINE>Usage: set port speed &lt;mod_num/port_num> &lt;4|10|16|100|auto></CODELINE>
  622. <CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">set port speed 2/1 100</EMPHASIS></CODELINE>
  623. <CODELINE>Port(s) 2/1 speed set to 100Mbps.</CODELINE></CODESNIPPET>
  624. <PARA>If you set the port speed to auto, both the speed and duplex are set to auto-negotiate the link. You can't set the duplex without first setting the speed: </PARA>
  625. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">set port duplex 2/1 ?</EMPHASIS></CODELINE>
  626. <CODELINE>Usage: set port duplex &lt;mod_num/port_num> &lt;full|half></CODELINE>
  627. <CODELINE>Todd5000> (enable) set port duplex 2/1 full</CODELINE>
  628. <CODELINE>Port(s) 2/1 set to full-duplex.</CODELINE>
  629. <CODELINE>Todd5000> (enable) ^C</CODELINE></CODESNIPPET>
  630. <PARACONTINUED>Notice that the command Ctrl+C was used in the preceding code. This is a break sequence used on both types of switches.</PARACONTINUED>
  631. <PARA>You can view the duplex and speed with the <INLINECODE>show port</INLINECODE> command: </PARA>
  632. <CODESNIPPET><CODELINE>Todd5000> (enable) sh port 2/1</CODELINE>
  633. <CODELINE>Port  Name          Status     Vlan   Level  Duplex Speed Type</CODELINE>
  634. <CODELINE>----- ------------- ---------- ------- ------ ------ ----- ----</CODELINE>
  635. <CODELINE> 2/1  Sales Printer notconnect  2    normal full  100 10/100BaseTX</CODELINE></CODESNIPPET>
  636. </SECTION>
  637.  
  638. <SECTION ID="2.3.2.6.2"><TITLE>1900 IOS-Based Switch</TITLE>
  639. <PARA>You can set only the duplex on the 1900 switch because the ports are all fixed speeds. Use the <INLINECODE>duplex</INLINECODE> command in interface configuration: </PARA>
  640. <CODESNIPPET><CODELINE>Todd1900EN(config)#<EMPHASIS FORMAT="bold">int f0/26</EMPHASIS></CODELINE>
  641. <CODELINE>Todd1900EN(config-if)#duplex ?</CODELINE>
  642. <CODELINE>  auto               Enable auto duplex configuration</CODELINE>
  643. <CODELINE>  full               Force full duplex operation</CODELINE>
  644. <CODELINE>  full-flow-control  Force full duplex with flow control</CODELINE>
  645. <CODELINE>  half               Force half duplex operation</CODELINE>
  646. <CODELINE>Todd1900EN(config-if)#duplex full</CODELINE></CODESNIPPET>
  647. <PARA>Table 2.3 shows the different duplex options available on the 1900/2800 and 2900XL switches. </PARA>
  648. <TABLE NUM="2.3" TABLEENTRYNUM="2">
  649. <TABLETITLE>Duplex Options</TABLETITLE>
  650. <TABLEHEAD>
  651. <TABLEROW>
  652. <TABLEENTRY><PARA>Parameter</PARA></TABLEENTRY>
  653. <TABLEENTRY><PARA>Definition</PARA></TABLEENTRY>
  654. </TABLEROW>
  655. </TABLEHEAD>
  656. <TABLEBODY>
  657. <TABLEROW>
  658. <TABLEENTRY><PARA>Auto</PARA></TABLEENTRY>
  659. <TABLEENTRY><PARA>Sets the port to auto-negotiation mode, which is the default for all 100BaseTX ports </PARA></TABLEENTRY>
  660. </TABLEROW>
  661. <TABLEROW>
  662. <TABLEENTRY><PARA>Full</PARA></TABLEENTRY>
  663. <TABLEENTRY><PARA>Forces the 10 or 100Mbps ports into full-duplex mode.</PARA></TABLEENTRY>
  664. </TABLEROW>
  665. <TABLEROW>
  666. <TABLEENTRY><PARA>Full-flow-control</PARA></TABLEENTRY>
  667. <TABLEENTRY><PARA>Works only with 100BaseTX ports; uses flow control so buffers won't overflow</PARA></TABLEENTRY>
  668. </TABLEROW>
  669. <TABLEROW>
  670. <TABLEENTRY><PARA>Half</PARA></TABLEENTRY>
  671. <TABLEENTRY><PARA>Default for 10BaseT ports, forces the ports to work only in half-duplex mode</PARA></TABLEENTRY>
  672. </TABLEROW>
  673. </TABLEBODY>
  674. </TABLE>
  675. <PARA>Use the <INLINECODE>show interface</INLINECODE> command to view the duplex configuration:</PARA>
  676. <CODESNIPPET><CODELINE>Todd1900EN#<EMPHASIS FORMAT="bold">sh int f0/26</EMPHASIS></CODELINE>
  677. <CODELINE>FastEthernet 0/26 is Suspended-no-linkbeat</CODELINE>
  678. <CODELINE>Hardware is Built-in 100Base-TX</CODELINE>
  679. <CODELINE>Address is 0030.80CC.7D1A</CODELINE>
  680. <CODELINE>MTU 1500 bytes, BW 100000 Kbits</CODELINE>
  681. <CODELINE>802.1d STP State:  Blocking     Forward Transitions:  0</CODELINE>
  682. <CODELINE>Port monitoring: Disabled</CODELINE>
  683. <CODELINE>Unknown unicast flooding: Enabled</CODELINE>
  684. <CODELINE>Unregistered multicast flooding: Enabled</CODELINE>
  685. <CODELINE>Description: trunk_to_Building_4</CODELINE>
  686. <CODELINE>Duplex setting: Full duplex</CODELINE>
  687. <CODELINE>Back pressure: Disabled</CODELINE></CODESNIPPET>
  688. </SECTION>
  689. </SECTION>
  690.  
  691. <SECTION ID="2.3.2.7"><TITLE>Verifying IP Connectivity</TITLE>
  692. <PARA>It is important to test the switch IP configuration. You can, of course, use the Ping program, as well as Telnet. The 5000 series also allows you to use the traceroute command. </PARA>
  693.  
  694. <SECTION ID="2.3.2.7.1"><TITLE>5000 Series Set-Based Switch</TITLE>
  695. <PARA>Use the IP utilities Ping, Telnet, and traceroute to test the switch in the  network: </PARA>
  696. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">ping 172.16.10.10</EMPHASIS></CODELINE>
  697. <CODELINE>172.16.10.10 is alive</CODELINE>
  698. <CODELINE>Todd5000> (enable) telnet ?</CODELINE>
  699. <CODELINE>Usage: telnet &lt;host> [port]</CODELINE>
  700. <CODELINE>       (host is IP alias or IP address in dot notation: a.b.c.d)</CODELINE>
  701. <CODELINE>Todd5000> (enable) traceroute</CODELINE>
  702. <CODELINE>Usage: traceroute [-n] [-w wait] [-i initial_ttl] [-m max_ttl]</CODELINE>
  703. <CODELINE>       [-p dest_port] [-q nqueries] [-t tos] host [data_size]</CODELINE>
  704. <CODELINE>(wait = 1..300, initial_ttl = 1..255, max_ttl = 1..255</CODELINE>
  705. <CODELINE>dest_port = 1..65535, nqueries = 1..1000, tos = 0..255</CODELINE>
  706. <CODELINE>data_size = 0..1420, host is IP alias or IP address in</CODELINE>
  707. <CODELINE>dot notation: a.b.c.d)</CODELINE></CODESNIPPET>
  708. <NOTE>You can use the keystrokes Ctrl+Shift+6, then x, as an escape sequence.</NOTE>
  709. </SECTION>
  710.  
  711. <SECTION ID="2.3.2.7.2"><TITLE>1900 IOS-Based Switch</TITLE>
  712. <PARA>You can use the Ping program, and you can telnet into the 1900 switch. However, you cannot telnet from the 1900 switch or use traceroute: </PARA>
  713. <CODESNIPPET><CODELINE>Todd1900EN#<EMPHASIS FORMAT="bold">ping 172.16.10.10</EMPHASIS></CODELINE>
  714. <CODELINE>Sending 5, 100-byte ICMP Echos to 172.16.10.10, time out is 2 seconds:</CODELINE>
  715. <CODELINE>!!!!!</CODELINE>
  716. <CODELINE>Success rate is 100 percent (5/5), round-trip min/avg/max 0/2/10/ ms</CODELINE>
  717. <CODELINE>Todd1900EN#telnet</CODELINE>
  718. <CODELINE>             ^</CODELINE>
  719. <CODELINE>% Invalid input detected at '^' marker.</CODELINE></CODESNIPPET>
  720. </SECTION>
  721. </SECTION>
  722.  
  723. <SECTION ID="2.3.2.8"><TITLE>Erasing the Switch Configuration</TITLE>
  724. <PARA>The switches automatically copy their configuration to NVRAM. You can delete the configurations if you want to start over. </PARA>
  725.  
  726. <SECTION ID="2.3.2.8.1"><TITLE>5000 Series Set-Based Switch</TITLE>
  727. <PARA>To delete the configurations stored in non-volatile RAM (NVRAM) on the 5000 series switch, use the <INLINECODE>clear config all</INLINECODE> command. The <INLINECODE>erase all</INLINECODE> command will delete the contents of flash without warning! Be careful. Here is the code: </PARA>
  728. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">clear config ?</EMPHASIS></CODELINE>
  729. <CODELINE>Usage: clear config all</CODELINE>
  730. <CODELINE>       clear config &lt;mod_num></CODELINE>
  731. <CODELINE>       clear config rmon</CODELINE>
  732. <CODELINE>       clear config extendedrmon</CODELINE>
  733. <CODELINE>Todd5000> (enable) clear config all</CODELINE>
  734. <CODELINE>This command will clear all configuration in NVRAM.</CODELINE>
  735. <CODELINE>This command will cause ifIndex to be reassigned on the next system startup.</CODELINE>
  736. <CODELINE>Do you want to continue (y/n) [n]? y</CODELINE>
  737. <CODELINE>........</CODELINE>
  738. <CODELINE>.................</CODELINE>
  739. <CODELINE>System configuration cleared.</CODELINE></CODESNIPPET>
  740. <PARA>To delete the contents of flash, use the <INLINECODE>erase all</INLINECODE> command: </PARA>
  741. <CODESNIPPET><CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">erase all</EMPHASIS></CODELINE>
  742. <CODELINE>FLASH on Catalyst:</CODELINE>
  743. <CODELINE>Type            Address             Location</CODELINE>
  744. <CODELINE>Intel 28F016    20000000            NMP (P3) 8MB SIM</CODELINE>
  745. <CODELINE></CODELINE>
  746. <CODELINE>Erasing flash sector...</CODELINE>
  747. <CODELINE>Todd5000> (enable)</CODELINE>
  748. <CODELINE>Todd5000> (enable) <EMPHASIS FORMAT="bold">sh flash</EMPHASIS></CODELINE></CODESNIPPET>
  749. <CODESNIPPET><CODELINE>File      Version        Sector   Size    Built</CODELINE>
  750. <CODELINE>--------- -------------- -------- ------- -------</CODELINE></CODESNIPPET>
  751. <PARACONTINUED>Notice that when you type <INLINECODEUSERINPUT>erase all</INLINECODEUSERINPUT> and press Enter, it just starts erasing the flash and you can't break out of it. By doing a <INLINECODE>show flash</INLINECODE> command, you can see that the contents of flash are now empty. You might not want to try this on your production switches. You can use the <INLINECODE>copy tftp flash</INLINECODE> command to reload the software. </PARACONTINUED>
  752. </SECTION>
  753.  
  754. <SECTION ID="2.3.2.8.2"><TITLE>1900 IOS-Based Switch</TITLE>
  755. <PARA>To delete the contents of NVRAM on a 1900 switch, use the <INLINECODE>delete  NVRAM</INLINECODE> command. VLAN Trunk Protocol configuration is not deleted by using <INLINECODE>delete VRAM</INLINECODE> because it has its own NVRAM. You need to use the command <INLINECODE>delete vtp</INLINECODE> to clear the VTP configuration: </PARA>
  756. <CODESNIPPET><CODELINE>Todd1900EN#<EMPHASIS FORMAT="bold">delete ?</EMPHASIS></CODELINE>
  757. <CODELINE>  nvram  NVRAM configuration</CODELINE>
  758. <CODELINE>  vtp    Reset VTP configuration to defaults</CODELINE>
  759. <CODELINE>Todd1900EN#delete nvram</CODELINE>
  760. <CODELINE>This command resets the switch with factory defaults.  All system parameters will revert to their default factory settings.  All static and dynamic addresses will be removed.</CODELINE>
  761. <CODELINE>Reset system with factory defaults, [Y]es or [N]o?  Yes</CODELINE></CODESNIPPET>
  762. </SECTION>
  763. </SECTION>
  764. </SECTION>
  765. </SECTION>
  766.  
  767. <SECTION ID="2.4"><TITLE>Summary</TITLE>
  768. <PARA><DROPCAP>T</DROPCAP>his chapter covered the different types of Ethernet you can use in an internetwork as well as the distance each type of Ethernet media can run. It's important to remember what you learned here. </PARA>
  769. <PARA>Remember that the distance that 10BaseT can run and be within specification is 100 meters (330 feet). The 100 meters includes the following:</PARA>
  770. <LIST MARK="bullet">
  771. <LISTITEM><PARA>Five meters from the switch to the patch panel</PARA></LISTITEM>
  772. <LISTITEM><PARA>Ninety meters from the patch panel to the office punch-down block</PARA></LISTITEM>
  773. <LISTITEM><PARA>Five meters from the punch-down block to the desktop connection</PARA></LISTITEM>
  774. </LIST>
  775. <PARA>For FastEthernet, the specifications for each type are as follows:</PARA>
  776. <RUNINBLOCK><RUNINHEAD>100BaseTX</RUNINHEAD>
  777. <RUNINPARA>Category 5 UTP wiring; category 6 and 7 is now available. Category 6 is sometimes referred to as cat 5 plus. Two-pair wiring.  100 meters. </RUNINPARA></RUNINBLOCK>
  778. <RUNINBLOCK><RUNINHEAD>100BaseT4</RUNINHEAD>
  779. <RUNINPARA>Four-pair wiring, using UTP category 3, 4, or 5. 100 meters.</RUNINPARA></RUNINBLOCK>
  780. <RUNINBLOCK><RUNINHEAD>100BaseFX</RUNINHEAD>
  781. <RUNINPARA>Multi-Mode Fiber (MMF) with 62.5-micron fiber-optic core with a 125-micron outer cladding (62.5/125). 400 meters. </RUNINPARA></RUNINBLOCK>
  782. <PARA>For Gigabit Ethernet, the specifications for each type are as follows:</PARA>
  783. <RUNINBLOCK><RUNINHEAD>1000BaseCX</RUNINHEAD>
  784. <RUNINPARA>Copper shielded twisted-pair, 25 meters.</RUNINPARA></RUNINBLOCK>
  785. <RUNINBLOCK><RUNINHEAD>1000BaseT</RUNINHEAD>
  786. <RUNINPARA>Copper category 5, four-pair wiring, UTP 100 meters.</RUNINPARA></RUNINBLOCK>
  787. <RUNINBLOCK><RUNINHEAD>1000BaseSX</RUNINHEAD>
  788. <RUNINPARA>MMF using 62.5 and 50-micron core, uses a 780- nanometer laser, up to 260 meters.</RUNINPARA></RUNINBLOCK>
  789. <RUNINBLOCK><RUNINHEAD>1000BaseLX</RUNINHEAD>
  790. <RUNINPARA>Single-mode fiber that uses a 9-micron core, 1300- nanometer laser. From 3 km up to 10 km. </RUNINPARA></RUNINBLOCK>
  791. <PARA>We showed you how to configure both a set-based switch and a  command-line interface (CLI) switch. And we showed you how to set hostnames and passwords. Finally, you learned how to configure an IP address on each switch and how to verify the configuration. </PARA>
  792.  
  793. <SECTION ID="2.4.1" POS="1"><TITLE>Key Terms</TITLE>
  794. <PARA>Before you take the exam, be sure you're familiar with the following terms:</PARA>
  795. <LIST MARK="none">
  796. <LISTITEM><PARA><KEYTERM REF="2.2.1">10BaseT</KEYTERM></PARA></LISTITEM>
  797. <LISTITEM><PARA><KEYTERM REF="2">contention media</KEYTERM></PARA></LISTITEM>
  798. <LISTITEM><PARA><KEYTERM REF="2.2.2">FastEthernet</KEYTERM></PARA></LISTITEM>
  799. <LISTITEM><PARA><KEYTERM REF="2.2.3">Gigabit Ethernet</KEYTERM></PARA></LISTITEM>
  800. <LISTITEM><PARA><KEYTERM REF="2.3.2.3.1">in-band</KEYTERM></PARA></LISTITEM>
  801. <LISTITEM><PARA><KEYTERM REF="2.1.2">switched Ethernet</KEYTERM></PARA></LISTITEM>
  802. </LIST>
  803. </SECTION>
  804.  
  805. <SECTION ID="2.4.2"><TITLE>Commands Used in This Chapter</TITLE>
  806. <TABULARDATA>
  807. <TABULARBODY>
  808. <TABULARROW>
  809. <TABULARENTRY><EMPHASIS FORMAT="bold">Access Layer Switch Commands (1900 Series in This Chapter)</EMPHASIS></TABULARENTRY>
  810. <TABULARENTRY><EMPHASIS FORMAT="bold">Meaning</EMPHASIS></TABULARENTRY>
  811. </TABULARROW>
  812. <TABULARROW>
  813. <TABULARENTRY><INLINECODE>hostname</INLINECODE></TABULARENTRY>
  814. <TABULARENTRY>Assigns a name to the Catalyst 1900 or 2800 series switch</TABULARENTRY>
  815. </TABULARROW>
  816. <TABULARROW>
  817. <TABULARENTRY><INLINECODE>ip address</INLINECODE></TABULARENTRY>
  818. <TABULARENTRY>Assigns an IP address to the 1900 or 2820 switch</TABULARENTRY>
  819. </TABULARROW>
  820. <TABULARROW>
  821. <TABULARENTRY><INLINECODE>interface ethernet module/port</INLINECODE></TABULARENTRY>
  822. <TABULARENTRY>Used to identify or set parameters on an interface on the 1900 or 2820 switch</TABULARENTRY>
  823. </TABULARROW>
  824. <TABULARROW>
  825. <TABULARENTRY><INLINECODE>duplex</INLINECODE></TABULARENTRY>
  826. <TABULARENTRY>Sets the duplex of an interface, with half- or full-duplex</TABULARENTRY>
  827. </TABULARROW>
  828. <TABULARROW>
  829. <TABULARENTRY><INLINECODE>show run</INLINECODE></TABULARENTRY>
  830. <TABULARENTRY>Displays the running-config of the 1900 and 2820 switch</TABULARENTRY>
  831. </TABULARROW>
  832. <TABULARROW>
  833. <TABULARENTRY><INLINECODE>interface fastethernet module/port</INLINECODE></TABULARENTRY>
  834. <TABULARENTRY>Displays or changes parameters on the two available FastEthernet interfaces</TABULARENTRY>
  835. </TABULARROW>
  836. <TABULARROW>
  837. <TABULARENTRY><INLINECODE>enable password level</INLINECODE></TABULARENTRY>
  838. <TABULARENTRY>Sets the usermode (level 1) and the enable password (level 15) of the switch</TABULARENTRY>
  839. </TABULARROW>
  840. <TABULARROW>
  841. <TABULARENTRY><INLINECODE>shutdown</INLINECODE></TABULARENTRY>
  842. <TABULARENTRY>Disables a particular interface</TABULARENTRY>
  843. </TABULARROW>
  844. <TABULARROW>
  845. <TABULARENTRY>Ctrl+Shift+6, then x</TABULARENTRY>
  846. <TABULARENTRY>Used as an escape sequence</TABULARENTRY>
  847. </TABULARROW>
  848. </TABULARBODY>
  849. </TABULARDATA>
  850. <PARA></PARA>
  851. <TABULARDATA>
  852. <TABULARBODY>
  853. <TABULARROW>
  854. <TABULARENTRY><EMPHASIS FORMAT="bold">Distribution Layer Switch Commands (5000 Series in This Chapter)</EMPHASIS></TABULARENTRY>
  855. <TABULARENTRY><EMPHASIS FORMAT="bold">Meaning</EMPHASIS></TABULARENTRY>
  856. </TABULARROW>
  857. <TABULARROW>
  858. <TABULARENTRY>Ctrl+C</TABULARENTRY>
  859. <TABULARENTRY>Used as a break sequence</TABULARENTRY>
  860. </TABULARROW>
  861. <TABULARROW>
  862. <TABULARENTRY><INLINECODE>set prompt</INLINECODE></TABULARENTRY>
  863. <TABULARENTRY>Assigns a name to the Catalyst switch</TABULARENTRY>
  864. </TABULARROW>
  865. <TABULARROW>
  866. <TABULARENTRY><INLINECODE>set interface sco</INLINECODE></TABULARENTRY>
  867. <TABULARENTRY>Assigns an IP address to the management interface of the set-based switch</TABULARENTRY>
  868. </TABULARROW>
  869. <TABULARROW>
  870. <TABULARENTRY><INLINECODE>set password</INLINECODE></TABULARENTRY>
  871. <TABULARENTRY>Sets the usermode password</TABULARENTRY>
  872. </TABULARROW>
  873. <TABULARROW>
  874. <TABULARENTRY><INLINECODE>set enablepass</INLINECODE></TABULARENTRY>
  875. <TABULARENTRY>Sets the enable password</TABULARENTRY>
  876. </TABULARROW>
  877. <TABULARROW>
  878. <TABULARENTRY><INLINECODE>set port speed</INLINECODE></TABULARENTRY>
  879. <TABULARENTRY>Sets the speed of a port</TABULARENTRY>
  880. </TABULARROW>
  881. <TABULARROW>
  882. <TABULARENTRY><INLINECODE>set port duplex</INLINECODE></TABULARENTRY>
  883. <TABULARENTRY>Sets the duplex of a port</TABULARENTRY>
  884. </TABULARROW>
  885. <TABULARROW>
  886. <TABULARENTRY><INLINECODE>show config</INLINECODE></TABULARENTRY>
  887. <TABULARENTRY>Shows the current configuration of the switch</TABULARENTRY>
  888. </TABULARROW>
  889. <TABULARROW>
  890. <TABULARENTRY>Ctrl+Shift+6, then x</TABULARENTRY>
  891. <TABULARENTRY>Used as an escape sequence</TABULARENTRY>
  892. </TABULARROW>
  893. </TABULARBODY>
  894. </TABULARDATA>
  895. </SECTION>
  896. </SECTION>
  897.  
  898. <TESTSECTION ID="2.5"><TITLE>Written Lab</TITLE>
  899. <!-- <TESTDATA>
  900. <TESTBLOCK><QUESTIONBLOCK><QUESTION>100BaseFX is a point-to-point Ethernet topology that can run up to  ___ meters.</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  901. <TESTBLOCK><QUESTIONBLOCK><QUESTION>1000BaseSX uses a 780-meter laser that can run a distance of ___ meters.</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  902. <TESTBLOCK><QUESTIONBLOCK><QUESTION>100BaseT can run a total distance of ___ meters.</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  903. <TESTBLOCK><QUESTIONBLOCK><QUESTION>What command will set port 3 on card 2 of a 5000 series switch to full duplex?</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  904. <TESTBLOCK><QUESTIONBLOCK><QUESTION>What command will allow you to view the speed and duplex of port 6 on card 3 of a 5000 switch?</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  905. <TESTBLOCK><QUESTIONBLOCK><QUESTION>What command will show you the IP address of a 1900 switch?</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  906. <TESTBLOCK><QUESTIONBLOCK><QUESTION>How do you set the IP address on a 5000 series switch to 172.16.10.17 255.255.255.0?</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  907. <TESTBLOCK><QUESTIONBLOCK><QUESTION>What command sets the enable password on a 5000 series switch?</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  908. <TESTBLOCK><QUESTIONBLOCK><QUESTION>What three IP commands can be used to test network connectivity of a device?</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  909. <TESTBLOCK><QUESTIONBLOCK><QUESTION>What type of Ethernet topology is suggested at the core layer?</QUESTION></QUESTIONBLOCK></TESTBLOCK>
  910. </TESTDATA> -->
  911. <SLUG NONUM="w1"/>
  912. </TESTSECTION>
  913.  
  914. <SECTION ID="2.6"><TITLE>Hands-On Lab</TITLE>
  915. <PARA>This lab will provide step-by-step instructions for configuring both access layer and distribution layer switches. You'll use a 1900 switch for the access layer and a 5000 series switch for the distribution layer. Figure 2.1 will provide the network diagram that will be configured in this lab. </PARA>
  916. <SLUG NUM="2.1">Figure 2.1: Access layer to distribution layer configuration    [f0201.eps]</SLUG>
  917. <LIST MARK="number">
  918. <LISTITEM><PARA>Configure the access layer switch by going to the console and pressing K to enter the CLI.</PARA></LISTITEM>
  919. <LISTITEM><PARA>Assign the usermode password:</PARA>
  920. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">enable</EMPHASIS></CODELINE>
  921. <CODELINE>config t</CODELINE>
  922. <CODELINE>enable password level 1 cisco</CODELINE></CODESNIPPET></LISTITEM>
  923. <LISTITEM><PARA>Assign the enable password:</PARA>
  924. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">enable password level 15 sanfran</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  925. <LISTITEM><PARA>(Optional) Assign the enable secret, which will override the enable password: </PARA>
  926. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">enable secret todd</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  927. <LISTITEM><PARA>Set the hostname of the switch:</PARA>
  928. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  929. <CODELINE>hostname 1900A</CODELINE></CODESNIPPET></LISTITEM>
  930. <LISTITEM><PARA>Set the IP address of the switch:</PARA>
  931. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  932. <CODELINE>ip address 172.16.10.2 255.255.255.0</CODELINE></CODESNIPPET></LISTITEM>
  933. <LISTITEM><PARA>Set the default gateway for the switch:</PARA>
  934. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  935. <CODELINE>ip default-gateway 172.16.10.1 </CODELINE></CODESNIPPET></LISTITEM>
  936. <LISTITEM><PARA>Set interface 4 to run in full duplex: </PARA>
  937. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  938. <CODELINE>int Ethernet 0/4</CODELINE>
  939. <CODELINE>duplex full</CODELINE></CODESNIPPET></LISTITEM>
  940. <LISTITEM><PARA>Set the description of the interface to Management PC:</PARA>
  941. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">config t</EMPHASIS></CODELINE>
  942. <CODELINE>int e0/4</CODELINE>
  943. <CODELINE>description Management_PC</CODELINE></CODESNIPPET></LISTITEM>
  944. <LISTITEM><PARA>Type the command to view the current configuration:</PARA>
  945. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">show running-config</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  946. <LISTITEM><PARA>Verify the IP configuration of the switch:</PARA>
  947. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">show ip</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  948. <LISTITEM><PARA>Verify the configuration of interface 4:</PARA>
  949. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">show int e0/4</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  950. <LISTITEM><PARA>Configure the interface to full-duplex and add a description of Link to 5000A:</PARA>
  951. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">config t (if needed)</EMPHASIS></CODELINE>
  952. <CODELINE>int fa 0/27</CODELINE>
  953. <CODELINE>duplex full</CODELINE>
  954. <CODELINE>description Link_To_5000a</CODELINE></CODESNIPPET></LISTITEM>
  955. <LISTITEM><PARA>Configure interface F0/26 to connect to the FastEthernet port 1/2 of the 5000 switch. Set the description and duplex as well: </PARA>
  956. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">Int fa0/26</EMPHASIS></CODELINE>
  957. <CODELINE>Duplex full</CODELINE>
  958. <CODELINE>Description Another_Link_to_5000a</CODELINE></CODESNIPPET></LISTITEM>
  959. <LISTITEM><PARA>Move your console cable to the 5000 series distribution switch. Set the hostname to be 5000A:</PARA>
  960. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">en</EMPHASIS></CODELINE>
  961. <CODELINE>set prompt 5000A></CODELINE></CODESNIPPET></LISTITEM>
  962. <LISTITEM><PARA>Set the usermode and enable passwords:</PARA>
  963. <PARA>(examples)</PARA>
  964. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">set password cisco</EMPHASIS></CODELINE>
  965. <CODELINE>set enablepass sanfran</CODELINE></CODESNIPPET></LISTITEM>
  966. <LISTITEM><PARA>Set the IP address of the 5000A switch:</PARA>
  967. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">set int sc0 172.16.10.4 255.255.255.0</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  968. <LISTITEM><PARA>Configure the port speed and duplex of the connection to the access layer switch:</PARA>
  969. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">set port duplex 1/1 full</EMPHASIS></CODELINE>
  970. <CODELINE>set port speed 1/1 100</CODELINE></CODESNIPPET></LISTITEM>
  971. <LISTITEM><PARA>Set the description of port 1/1 to Link to Access Layer:</PARA>
  972. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">set port name 1/1 Link to Access Layer</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  973. <LISTITEM><PARA>Set port 1/2 as the second connection to the access layer switch: </PARA>
  974. <CODESNIPPET><CODELINE>Set port duplex 1/2 full</CODELINE>
  975. <CODELINE>Set port speed 1/2 100</CODELINE>
  976. <CODELINE>Set port name 1/2 Another Link to Access Layer</CODELINE></CODESNIPPET></LISTITEM>
  977. <LISTITEM><PARA>Type the command to view port 1/1:</PARA>
  978. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">show port 1/1</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  979. <LISTITEM><PARA>Type the command to view the configuration of the 5000 switch:</PARA>
  980. <CODESNIPPET><CODELINE><EMPHASIS FORMAT="bold">show config</EMPHASIS></CODELINE></CODESNIPPET></LISTITEM>
  981. <LISTITEM><PARA>Test the connections by pinging all devices.</PARA></LISTITEM>
  982. </LIST>
  983. </SECTION>
  984.  
  985. <TESTSECTION ID="2.7"><TITLE>Answers to Written Lab</TITLE>
  986. <TESTDATA>
  987. <TESTBLOCK><ANSWERBLOCK><ANSWER>400</ANSWER></ANSWERBLOCK></TESTBLOCK>
  988. <TESTBLOCK><ANSWERBLOCK><ANSWER>260</ANSWER></ANSWERBLOCK></TESTBLOCK>
  989. <TESTBLOCK><ANSWERBLOCK><ANSWER>100</ANSWER></ANSWERBLOCK></TESTBLOCK>
  990. <TESTBLOCK><ANSWERBLOCK><ANSWER><INLINECODE>set port duplex 2/3 full</INLINECODE></ANSWER></ANSWERBLOCK></TESTBLOCK>
  991. <TESTBLOCK><ANSWERBLOCK><ANSWER><INLINECODE>show port 3/6</INLINECODE></ANSWER></ANSWERBLOCK></TESTBLOCK>
  992. <TESTBLOCK><ANSWERBLOCK><ANSWER><INLINECODE>show ip</INLINECODE></ANSWER></ANSWERBLOCK></TESTBLOCK>
  993. <TESTBLOCK><ANSWERBLOCK><ANSWER><INLINECODE>set int sc0 172.16.10.17 255.255.255.0</INLINECODE></ANSWER></ANSWERBLOCK></TESTBLOCK>
  994. <TESTBLOCK><ANSWERBLOCK><ANSWER><INLINECODE>set enablepass</INLINECODE></ANSWER></ANSWERBLOCK></TESTBLOCK>
  995. <TESTBLOCK><ANSWERBLOCK><ANSWER>ping, telnet, and traceroute</ANSWER></ANSWERBLOCK></TESTBLOCK>
  996. <TESTBLOCK><ANSWERBLOCK><ANSWER>FastEthernet or Gigabit Ethernet</ANSWER></ANSWERBLOCK></TESTBLOCK>
  997. </TESTDATA>
  998. </TESTSECTION>
  999.  
  1000. <FIGCOL>
  1001.     <FIG NUM="2.1">
  1002.         <ILL>
  1003.             <FLASH SRC="graphics/static/2711c02/f0201_600x370.swf" WIDTH="600" HEIGHT="370" LOOP="FALSE" MENU="FALSE" QUALITY="HIGH" BGCOLOR="#FFFFFF" />
  1004.         </ILL>
  1005.         <P>Access layer to distribution layer configuration</P>
  1006.     </FIG>
  1007.     <FIG NONUM="w1">
  1008.         <ILL MODE="wlab">
  1009.             <FLASH SRC="graphics/writtenlabs/lab11_02.swf" WIDTH="580" HEIGHT="380" LOOP="FALSE" MENU="FALSE" QUALITY="HIGH" BGCOLOR="#FFFFFF" />
  1010.         </ILL>
  1011.     </FIG>
  1012. </FIGCOL>
  1013. </CHAPTER>
  1014.