Cisco Router Configuration, Second Edition

Transcription

Cisco Router Configuration,Second EditionAllan LeinwandBruce Pinsky, CCIE #1045Cisco Press201 West 103rd StreetIndianapolis, IN 46290 USA

iiCisco Router Configuration, Second EditionAllan Leinwand and Bruce PinskyCopyright 2001 Cisco PressCisco Press logo is a trademark of Cisco Systems, Inc.Published by:Cisco Press201 West 103rd StreetIndianapolis, IN 46290 USAAll rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronicor mechanical, including photocopying, recording, or by any information storage and retrieval system, without written permission from the publisher, except for the inclusion of brief quotations in a review.Printed in the United States of America 1 2 3 4 5 6 7 8 9 0 04 03 02 01First Printing December 2000Library of Congress Cataloging-in-Publication Number: 00-109754ISBN: 1-57870-241-0Warning and DisclaimerThis book is designed to provide information about Cisco router configuration. Every effort has been made to makethis book as complete and as accurate as possible, but no warranty or fitness is implied.The information is provided on an “as is” basis. The author, Cisco Press, and Cisco Systems, Inc., shall have neitherliability nor responsibility to any person or entity with respect to any loss or damages arising from the informationcontained in this book or from the use of the discs or programs that may accompany it.The opinions expressed in this book belong to the author and are not necessarily those of Cisco Systems, Inc.Trademark AcknowledgmentsAll terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Cisco Press or Cisco Systems, Inc., cannot attest to the accuracy of this information. Use of a term in this bookshould not be regarded as affecting the validity of any trademark or service mark.Feedback InformationAt Cisco Press, our goal is to create in-depth technical books of the highest quality and value. Each book is craftedwith care and precision, undergoing rigorous development that involves the unique expertise of members from theprofessional technical community.Readers’ feedback is a natural continuation of this process. If you have any comments regarding how we couldimprove the quality of this book or otherwise alter it to better suit your needs, you can contact us through e-mail atciscopress@mcp.com. Please make sure to include the book title and ISBN in your message.We greatly appreciate your assistance.

iiiPublisherEditor-in-ChiefCisco Systems Program ManagerManaging EditorAcquisitions EditorSenior EditorCopy EditorTechnical EditorsCover DesignerCompositorIndexerProofreadersCorporate HeadquartersCisco Systems, Inc.170 West Tasman DriveSan Jose, CA 95134-1706USAhttp://www.cisco.comTel: 408 526-4000800 553-NETS (6387)Fax: 408 526-4100John WaitJohn KaneBob AnsteyPatrick KanouseTracy HughesJennifer ChisholmKrista HansingHenry BenjaminKevin BurgessAndre’ Paree-HuffDave SumterMichael TruettLouisa KlucznickSteve GiffordTim WrightChrissy AndryGayle JohnsonEuropean HeadquartersCisco Systems Europe11 Rue Camille Desmoulins92782 Issy-les-MoulineauxCedex 9Francehttp://wwweurope.cisco.comTel: 33 1 58 04 60 00Fax: 33 1 58 04 61 00Americas HeadquartersCisco Systems, Inc.170 West Tasman DriveSan Jose, CA 95134-1706USAhttp://www.cisco.comTel: 408 526-7660Fax: 408 527-0883Asia Pacific HeadquartersCisco Systems Australia,Pty., LtdLevel 17, 99 Walker StreetNorth SydneyNSW 2059 Australiahttp://www.cisco.comTel: 61 2 8448 7100Fax: 61 2 9957 4350Cisco Systems has more than 200 offices in the following countries. Addresses, phone numbers, and fax numbers are listed onthe Cisco Web site at www.cisco.com/go/officesArgentina Australia Austria Belgium Brazil Bulgaria Canada Chile China Colombia CostaRica Croatia Czech Republic Denmark Dubai, UAE Finland France Germany Greece HongKong Hungary India Indonesia Ireland Israel Italy Japan Korea Luxembourg Malaysia Mexico The Netherlands New Zealand Norway Peru Philippines Poland Portugal Puerto Rico Romania Russia Saudi Arabia Scotland Singapore Slovakia Slovenia South Africa Spain Sweden Switzerland Taiwan Thailand Turkey Ukraine United Kingdom United States Venezuela Vietnam ZimbabweCopyright 2000, Cisco Systems, Inc. All rights reserved. Access Registrar, AccessPath, Are You Ready, ATM Director, Browse with Me, CCDA, CCDE, CCDP, CCIE, CCNA,CCNP, CCSI, CD-PAC, CiscoLink, the Cisco NetWorks logo, the Cisco Powered Network logo, Cisco Systems Networking Academy, Fast Step, FireRunner, Follow Me Browsing,FormShare, GigaStack, IGX, Intelligence in the Optical Core, Internet Quotient, IP/VC, iQ Breakthrough, iQ Expertise, iQ FastTrack, iQuick Study, iQ Readiness Scorecard, TheiQ Logo, Kernel Proxy, MGX, Natural Network Viewer, Network Registrar, the Networkers logo, Packet, PIX, Point and Click Internetworking, Policy Builder, RateMUX,ReyMaster, ReyView, ScriptShare, Secure Script, Shop with Me, SlideCast, SMARTnet, SVX, TrafficDirector, TransPath, VlanDirector, Voice LAN, Wavelength Router,Workgroup Director, and Workgroup Stack are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, Empowering the Internet Generation, areservice marks of Cisco Systems, Inc.; and Aironet, ASIST, BPX, Catalyst, Cisco, the Cisco Certified Internetwork Expert Logo, Cisco IOS, the Cisco IOS logo, Cisco Press, CiscoSystems, Cisco Systems Capital, the Cisco Systems logo, Collision Free, Enterprise/Solver, EtherChannel, EtherSwitch, FastHub, FastLink, FastPAD, IOS, IP/TV, IPX,LightStream, LightSwitch, MICA, NetRanger, Post-Routing, Pre-Routing, Registrar, StrataView Plus, Stratm, SwitchProbe, TeleRouter, are registered trademarks of Cisco Systems,Inc. or its affiliates in the U.S. and certain other countries.All other brands, names, or trademarks mentioned in this document or Web site are the property of their respective owners. The use of the word partner does not imply a partnershiprelationship between Cisco and any other company. (0010R)

ivAbout the AuthorsAllan Leinwand is the Chief Technology Officer and Vice President of Engineering at Telegis Networks, Inc.Previously, as Chief Technology Officer and Vice President of Engineering for Digital Island, Inc., he was responsible forthe technical direction of the company’s global network and content distribution strategy. Before Digital Island, he was aConsulting Engineering Manager at Cisco Systems, Inc., responsible for the global network design of customer networks.Allan received his BS in Computer Science at the University of Colorado at Boulder in 1988, and has been working ininternetworking technology and solutions for large corporations since that time. He teaches graduate computer networking courses for the University of California, Berkeley; has published many papers on network management and networkdesign; and is the co-author of the Addison-Wesley text Network Management: A Practical Perspective, Second Edition.Bruce Pinsky, CCIE #1045, is the Vice President of Product Engineering and Network Infrastructure at Telegis Networks, Inc. Previously, as Chief Information Officer, Vice President of Solutions Engineering, and Chief Network Strategist of Digital Island, Inc., he was responsible for the direction and deployment of corporate technology infrastructure andadvanced technology research. Before Digital Island, Bruce was a Senior Internetwork Support Technologist at CiscoSystems, Inc., and was responsible for the escalation of complex customer technical issues. He received his BS in Computer Science at California State University, Hayward, in 1988, and he has been working in internetworking technologyand systems integration for large corporations and consulting firms before and since that time. One of the original CiscoCertified Internetwork Engineers, Bruce has expertise in such topics as network troubleshooting and protocol analysis,network design and configuration, and workstation and server-based operating systems. He routinely teaches courses onnetwork configuration, design, and troubleshooting, and is co-inventor of patented routing technology.About the Technical ReviewersHenry Benjamin, CCIE, CCNA, CCDA, B. Eng., is a Cisco Certified Internetwork Expert and an IT network engineerfor Cisco Systems, Inc. He has more than 10 years of experience in Cisco networks, including planning, designing, andimplementing large IP networks running IGRP, EIGRP, and OSPF. In the past year, Henry has focused on architecturaldesign and implementation in Cisco internal networks across Australia and the Asia/Pacific region. He is the author of abook dedicated to passing the CCIE written exam and has helped with many other titles related to Cisco IOS. Henryholds a Bachelor of Engineering Degree from Sydney University. This review is dedicated to his sick mum.Kevin Burgess has been doing network design, analysis, and maintenance for the past 10 years. As a NetworkEngineer with EDS for the past five years, he has worked on various projects across Canada. Kevin holds certifications from Novell and Cisco and is currently working on his CCIE.André Paree-Huff, CCNP, MCSE I, ASE, A , Network , I-Network , has been working in the computer field formore than 8 years. He is currently working for Compaq Computer Corporation as a Network Support Engineer, LevelIII, for the North America Customer Support Center in Colorado Springs, Colorado. André handles troubleshooting ofnetwork hardware, specializing in Layers 2 and 3 of the OSI model. André has co-authored four network-related technical manuals and has been a technical editor on many others. He is currently working toward his CCIE.Dave Sumter, CCIE #4942, CCDP, has been in the networking industry for close to five years and has been concentrating solely on Cisco solutions for the last three years He works for Cisco Systems, Inc., in South Africa. Dave’scurrent duties involve the design of large-scale campus and WAN solutions for corporate and government clients inSouth Africa. Other duties involve the ongoing training of Cisco partners and participation in the examination ofCCIE candidates at the CCIE routing and switching lab in South Africa.Michael Truett, CCNP, is a network engineer for a large organization specializing in VoIP. He is currently workingon his CCDP and CCIE. His strength lies in the area of network design, implementation, and troubleshooting forlarge networks on many different media types, including Frame Relay and satellite. In his spare time, Michael alsoteaches several classes on Cisco routers and switches.

vDedicationsAllan Leinwand would like to dedicate this book to his family and friends, who have provided continual support,suggestions, encouragement, and insights throughout the writing of this book.Bruce Pinsky would like to thank all his friends and family, who have provided their support in helping to make thisbook a reality. An extra special thank you goes to his wife, Paula, and sons, Eric and Kyle, for their tireless supportduring the many nights and weekends dedicated to the completion of this text.

viAcknowledgmentsWe would like to say thank you to the diligent and persistent efforts of Tracy Hughes, the entire Cisco Press staff,and our technical reviewers in helping to complete this book.

viiContents at a GlanceChapter 1Getting Started in Internetworking2Chapter 2The Basics of Device ConfigurationChapter 3The Basics of Device InterfacesChapter 4TCP/IP BasicsChapter 5AppleTalk BasicsChapter 6IPX BasicsChapter 7Basic Administrative and Management IssuesChapter 8Comprehensive IOS Configuration for the ZIP NetworkIndex322184682196236266294

viiiContentsChapter 1Getting Started in InternetworkingThe OSI Reference Model 3The Application Layer 4The Presentation Layer 4The Session Layer 5The Transport Layer 5The Network Layer 5The Data Link Layer 6The Physical Layer 6The Data Exchange Process7Types of Internetworking DevicesBridges and Switches 9Routers 12Access Servers 13An Internetwork ExampleSummaryReferencesChapter 229131516The Basics of Device ConfigurationPreliminary Configuration Steps 19The Console Port 20The System Configuration DialogThe Help System182125Nonprivileged and Privileged Modes28Memory Configuration Issues 29Device Configuration Memory 29IOS Flash Memory 31User Configuration Mode36Configuration Commands 38Removing Configuration Commands 41Default Configuration Commands 41Merging and Superseding of Configuration CommandsSummaryReferences434542

ixChapter 3The Basics of Device Interfaces46Basic Interface Configuration 47The show interfaces Command 48The encapsulation Command 49The shutdown Command 49The description Command 50Local-Area Network Technologies 51Ethernet and IEEE 802.3 52Fast Ethernet 54Fast Ethernet and Ethernet Interface Configuration SubcommandsGigabit Ethernet 55Token Ring 56Token Ring Interface Configuration Subcommands 58Fiber Distributed Data Interface 58Wide-Area Network and Dialup Network Technologies 60High-Level Data Link Control 62Point-to-Point Protocol 63X.25 64X.25 Interface Configuration Subcommands 65Frame Relay 67Frame Relay Interface Configuration Subcommands 68Asynchronous Transfer Mode 70ATM Interface Configuration Subcommands 72Digital Subscriber Line 73Integrated Services Digital Network 75ISDN Interface Configuration Subcommands 77SummaryReferencesChapter 47980TCP/IP Basics82TCP/IP Addressing 83Address Structure 83Configuring IP Addresses 89LAN Interface Configuration 92WAN Interface Configuration 96Verifying IP Address Configuration102IP Routing Configuration 104Configuring IP Routing Commands 105Verifying IP Routing Configuration 11655

xConfiguring IP Routing Protocols 118Configuring the Routing Information Protocol 123Configuring the Cisco Interior Gateway Routing Protocol 125Configuring the Open Shortest Path First Protocol 126Configuring the Cisco IP Enhanced I

design; and is the co-author of the Addison-Wesley text Network Management: A Practical Perspective, Second Edition. Bruce Pinsky, CCIE #1045, is the Vice President of Product Engineering and Network Infrastructure at Telegis Net-works, Inc. Previously, as Chief Information Officer, Vice President of Solutions Engineering, and Chief Network .