CCIISSCCOO BBAASSIICCSS CCII SSCCOO RROO UU TT EE RR SS FFOORR AADDMMIINNSS IINN CCRRIISSIISS MMOODDEE CC II SS FFOORR TTHHEE DDEESSPPEERR AATTEE™ CC OO R R 22NNDD EEDDIITTIIOONN “If you are a new network admin, or a systems • Security concerns, like how to keep your network OO person just exploring routers and their use, this is equipment safe from hackers and install a private UU R O U T E R A N D S W I T C H M A N A G E M E N T , a great investment.”—ITworld network between two offices TT T H E E A S Y W A Y • How to implement basic network redundancy to EE Cisco routers and switches are the cornerstones of many reduce the risk of network downtime RR networks. But when things break, repairs can intimidate SS even the most competent administrator. Luckily, just knowing Cisco Routers for the Desperate, 2nd Edition is designed M I C H A E L W . L U C A S the “in case of emergency” basics will take you far. to be read once and left alone until something breaks. FF When it does, you’ll have everything you need to know OO Just like the original, this second edition of the highly in one easy-to-follow guidebook. RR acclaimed Cisco Routers for the Desperate is written for the administrator in crisis mode. Updated to cover ABOUT THE AUTHOR T T switches and the latest Cisco terminology, with a tighter HH Michael W. Lucas is a network/security engineer with focus on the needs of the small network administrator, extensive experience working with high-availability EE this second edition gives you what you need to know to systems. He is the author of the critically acclaimed DD provide reliable network services and fix problems fast. Absolute FreeBSD, Absolute OpenBSD, and PGP & EE You’ll find coverage of: GPG, all from No Starch Press. SS • Installation—how to get your router and network PP connections up and running right the first time EE RR • Troubleshooting routers and switches, so that you can determine whether your hardware or the Internet AA is broken TT EE ™ 22 // EE THE FINEST IN GEEK ENTERTAINMENT™ www.nostarch.com L U “I LAY FLAT.” $24.95 ($24.95 CDN) C This book uses RepKover—a durable binding that won’t snap shut. NETWORKINGSHELVE IN: AS www.it-ebooks.info www.it-ebooks.info PRAISE FOR THE FIRST EDITION OF CISCO ROUTERS FOR THE DESPERATE “If you are a new network admin, or a systems person just exploring routers and their use, this is a great investment. The tongue in cheek writing style and excellent descriptions make it a generally good read.” —ITWORLD “The topics it covers are those that 95% of readers will need, and they’re explained well enough, and in so few pages, that it’ll actually get read. Which is a rare thing these days.” —UNIX DAEMON “Step-by-step directions, an informal writing style, and a reader-friendly layout make the book especially useful.” —BOOK NEWS “This book isn’t a reference—it’s a survival guide, a ‘break glass in case of emergency’ safety harness. . . . What I found remarkable was how it was obviously written for people like me—who have little interest in router management but whose jobs depend on the consistent, trusted functioning of such infrastructure.” —ASP.NETPRO “Packed with essential information for all types of scenarios in dealing with Cisco router problems.” —HOSTINGRESOLVE.COM “If only [Cisco Routers for the Desperate] had been on my bookshelf a few yearsago! It would have definitely saved me many hours of searching for configuration help on my Cisco routers.” —BLOGCRITICS.ORG www.it-ebooks.info www.it-ebooks.info C I S C O R O U T E R S F O R T H E D E S P E R A T E ™ 2 N D E D I T I O N Router and Switch Management, the Easy Way by Michael W. Lucas San Francisco www.it-ebooks.info CISCO ROUTERS FOR THE DESPERATE, 2ND EDITION. Copyright © 2009 by Michael W. Lucas. All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. 13 12 11 10 09 1 2 3 4 5 6 7 8 9 ISBN-10: 1-59327-193-X ISBN-13: 978-1-59327-193-0 Publisher: William Pollock Production Editor: Megan Dunchak Cover and Interior Design: Octopod Studios Developmental Editor: William Pollock Technical Reviewer: Richard Bejtlich Copyeditor: Kathleen Mish Compositor: Riley Hoffman Proofreader: Roxanna Usher Indexer: Karin Arrigoni For information on book distributors or translations, please contact No Starch Press, Inc. directly: No Starch Press, Inc. 555 De Haro Street, Suite 250, San Francisco, CA 94107 phone: 415.863.9900; fax: 415.863.9950; [email protected]; www.nostarch.com Library of Congress Cataloging-in-Publication Data: Lucas, Michael, 1967- Cisco routers for the desperate : router and switch management, the easy way / Michael W. Lucas. -- 2nd ed. p. cm. Includes index. ISBN-13: 978-1-59327-193-0 ISBN-10: 1-59327-193-X 1. Routers (Computer networks) 2. Routing (Computer network management) 3. Cisco IOS. 4. Cisco Systems, Inc. I. Title. TK5105.543.L83 2009 004.6--dc22 2008050188 No Starch Press and the No Starch Press logo are registered trademarks of No Starch Press, Inc. Other product and company names mentioned herein may be the trademarks of their respective owners. Rather than use a trademark symbol with every occurrence of a trademarked name, we are using the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The information in this book is distributed on an “As Is” basis, without warranty. While every precaution has been taken in the preparation of this work, neither the author nor No Starch Press, Inc. shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in it. www.it-ebooks.info To all those poor bastards who are awake at oh-dark-thirty trying to get their router working. www.it-ebooks.info Thanks to Liz, for not smothering me in my sleep as I wrote this book. www.it-ebooks.info B R I E F C O N T E N T S Introduction....................................................................................................................1 Chapter 1: Befriending the Command Line.........................................................................7 Chapter 2: Router Configuration.....................................................................................11 Chapter 3: Router Interfaces...........................................................................................17 Chapter 4: Wide Area Network Connections...................................................................27 Chapter 5: Troubleshooting Routers.................................................................................41 Chapter 6: IOS Changes...............................................................................................57 Chapter 7: Redundancy with BGP and HSRP....................................................................65 Chapter 8: Cisco Switches.............................................................................................87 Chapter 9: Logins, Authentication, and Remote Access......................................................95 Chapter 10: Cisco Network Services.............................................................................103 Appendix: IP Addresses and Netmasks..........................................................................111 Index.........................................................................................................................115 www.it-ebooks.info www.it-ebooks.info
Description: