Download Cisco Press CCNP Official Guide and more Study notes Networking in PDF only on Docsity!
• III• III•
C ISCO.
Implementing Cisco IP Routing (ROUTE)
Foundation Learning Guide
CCNP ROUTE 300-
i
I I
ciscopress.oom
Diane Teare Bob Vachon Rick Graziani
Implementing Cisco
IP Routing (ROUTE)
Foundation Learning Guide
Diane Teare Bob Vachon Rick Graziani
Cisco Press
800 East 96th Street
Indianapolis, IN 46240 USA
2 Implementing Cisco IP Routing (ROUTE) Foundation Learning Guide
Implementing Cisco IP Routing (ROUTE) Foundation Learning Guide Diane Teare, Bob Vachon, Rick Graziani Copyright © 2015 Cisco Systems, Inc. Published by: Cisco Press 800 East 96th Street Indianapolis, IN 46240 USA All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information stor- age 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 First Printing January 2015 Library of Congress Control Number: 2014957555 ISBN-13: 978-1-58720-456- ISBN-10: 1-58720-456-
Warning and Disclaimer This book is designed to provide information about Cisco CCNP routing. Every effort has been made to make this 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 authors, Cisco Press, and Cisco Systems, Inc. shall have neither liability nor responsibility to any person or entity with respect to any loss or dam- ages arising from the information contained 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 Acknowledgments All 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 book should not be regarded as affecting the validity of any trademark or service mark.
iii
Special Sales For information about buying this title in bulk quantities, or for special sales opportunities (which may include electronic versions; custom cover designs; and content particular to your business, training goals, marketing focus, or branding interests), please contact our corporate sales depart- ment at [email protected] or (800) 382-3419. For government sales inquiries, please contact [email protected]. For questions about sales outside the U.S., please contact [email protected].
Feedback Information At Cisco Press, our goal is to create in-depth technical books of the highest quality and value. Each book is crafted with care and precision, undergoing rigorous development that involves the unique expertise of members from the professional technical community. Readers’ feedback is a natural continuation of this process. If you have any comments regarding how we could improve the quality of this book, or otherwise alter it to better suit your needs, you can contact us through email at [email protected]. Please make sure to include the book title and ISBN in your message. We greatly appreciate your assistance. Publisher: Paul Boger Associate Publisher: Dave Dusthimer Business Operation Manager, Executive Editor: Mary Beth Ray Cisco Press: Jan Cornelssen Managing Editor: Sandra Schroeder Senior Development Editor: Christopher Cleveland Project Editor: Mandie Frank Copy Editor: Keith Cline Technical Editor: Denise Donahue Team Coordinator: Vanessa Evans Designer: Mark Shirar Composition: Trina Wurst Indexer: Tim Wright Proofreader: Paula Lowell
Dedications From Diane: This book is dedicated to my husband, Allan Mertin—thank you for your love, encouragement, and patience; to our extraordinary son, Nicholas—thank you for your love and for sharing as you discover the world; and to my parents, Syd and Beryl, for their inspiration. From Rick: This book is dedicated to the Cabrillo College CIS/CS faculty, staff, administration, and especially students for giving me the privilege and honor to teach computer networking courses at such a wonderful institution. I would also like to thank all my family and friends for their love and support. From Bob: This book is dedicated to my beautiful wife, Judy, and my girls, Lee-Anne, Joëlle, Brigitte, and Lilly. Thank you for your encouragement and for putting up with me while working on this project. I also dedicate this book to my students at Cambrian College and to my dean, Joan Campbell, for your continued support.
6 Implementing Cisco IP Routing (ROUTE) Foundation Learning Guide
Acknowledgments We want to thank many people for helping to put this book together: The Cisco Press team: Mary Beth Ray, the executive editor, coordinated the whole project, steered the book through the necessary processes, and understood when the inevitable snags appeared. Sandra Schroeder, the managing editor, brought the book to production. Vanessa Evans was once again wonderful at organizing the logistics and administration. Chris Cleveland, the development editor, has been invaluable in coordinating and ensuring we all focused on producing the best manuscript. We also want to thank Mandie Frank, the project editor, and Keith Cline, the copy editor, for their excellent work in getting this book through the editorial process. The Cisco ROUTE course development team: Many thanks to the members of the team who developed the ROUTE course. The technical reviewer: We want to thank the technical reviewer of this book, Denise Donahue, for her thorough review and valuable input. Our families: Of course, this book would not have been possible without the endless understanding and patience of our families. They have always been there to motivate and inspire us and we are forever grateful. From Diane: A few special thank yous are in order. First, to Brett Bartow (who invited me to first write with Cisco Press many years ago) and Mary Beth Ray, for the very warm welcome when I finally met you both in person and for continuing to involve me in your projects. Second, to Rick and Bob for including me in this book; it has been a great pleasure to work with you both! From Rick: A special thank you to Mary Beth Ray for giving me the opportunity years ago to begin writing for Cisco Press, and for being such a wonderful friend. Also, thank you to my two good friends Diane and Bob for letting me work with you on this book. From Bob: A special thank you to Mary Beth Ray and her team at Cisco Press for your continued support, your professionalism, and skills to make us look good. Also, a big thank you to my fellow co-authors, Diane and my good friend Rick, whom I’ve had the honor and pleasure to work with on numerous projects.
8 Implementing Cisco IP Routing (ROUTE) Foundation Learning Guide
Contents
18 Implementing Cisco IP Routing (ROUTE) Foundation Learning Guide
- Chapter 1: Basic Network and Routing Concepts Introduction xxv
- Chapter 2: EIGRP Implementation
- Chapter 3: OSPF Implementation
- Chapter 4: Manipulating Routing Updates
- Chapter 5: Path Control Implementation
- Chapter 6: Enterprise Internet Connectivity
- Chapter 7: BGP Implementation
- Chapter 8: Routers and Routing Protocol Hardening
- Appendix A: Answers to End of Chapter Review Questions
- Appendix B: IPv4 Supplement
- Appendix C: BGP Supplement
- Appendix D: Acronyms and Abbreviations
- Index
- Chapter 1 Basic Network and Routing Concepts Introduction xxv
- Differentiating Routing Protocols
- Enterprise Network Infrastructure
- Role of Dynamic Routing Protocols
- Choosing a of Dynamic Routing Protocols
- IGP versus EGP
- Types of Routing Protocols
- Convergence
- Route Summarization
- Route Protocol Scalability
- Understanding Network Technologies
- Traffic Types
- IPv6 Address Types
- ICMPv6 Neighbor Discovery
- Network Types
- NBMA Networks
- Routing Over the Internet
- Connecting Remote Locations with Headquarters
- Principles of Static Routing
- Configuring an IPv4 Static Route
- Configuring a Static Default Route
- Basic PPP Overview
- PPP Authentication Overview
- PPPoE
- Basic Frame Relay Overview
- VPN Connectivity Overview
- MPLS-based VPNs
- Tunneling VPNs
- Hybrid VPNs
- Routing Across MPLS VPNs
- Routing Over GRE Tunnel
- Dynamic Multipoint Virtual Private Network
- Multipoint GRE
- NHRP
- IPsec
- Routing and TCP/IP Operations 9 Implementing Cisco IP Routing (ROUTE) Foundation Learning Guide
- MSS, Fragmentation, and PMTUD
- IPv4 Fragmentation and PMTUD
- Bandwidth Delay Product
- TCP Starvation
- Latency
- ICMP Redirect
- Implementing RIPng
- RIP Overview
- RIPv2 Overview
- Configuring RIPng
- Basic RIPng Configuration
- Propagating a Default Route
- Investigating the RIPng Database
- Summary
- Review Questions
- Chapter 2 EIGRP Implementation
- Establishing EIGRP Neighbor Relationships
- EIGRP Features
- EIGRP Features
- EIGRP Operation Overview
- Configuring and Verifying Basic EIGRP for IPv4
- Manipulating EIGRP Timers
- EIGRP Neighbor Relationship over Frame Relay
- Establishing EIGRP over Layer 3 MPLS VPN
- Establishing EIGRP over Layer 2 MPLS VPN
- Building the EIGRP Topology Table
- Building and Examining the EIGRP Topology Table
- Choosing the Best Path
- Exchange of Routing Knowledge in EIGRP
- EIGRP Metric
- EIGRP Metric Calculation
- EIGRP Wide Metrics
- EIGRP Metric Calculation Example
- EIGRP Metric Calculation Example
- EIGRP Path Calculation Example
- Optimizing EIGRP Behavior ix
- EIGRP Queries
- EIGRP Stub Routers
- Configuring EIGRP Stub Routing
- EIGRP Stub Options
- Stuck in Active
- Reducing Query Scope by Using Summary Routes
- Configuring EIGRP Summarization
- Determining the Summary Route
- Obtaining Default Route
- Load Balancing with EIGRP
- Configuring EIGRP Load Balancing
- EIGRP Load Balancing
- EIGRP Load Balancing Across Unequal-Metric Paths
- Configuring EIGRP for IPv6
- Overview of EIGRP for IPv6
- Configuring and Verifying EIGRP for IPv6
- EIGRP for IPv6 Configuration
- Determining the IPv6 Summary Route
- Named EIGRP Configuration
- Introduction to Named EIGRP Configuration
- Configuring Named EIGRP
- Address Families
- EIGRP for IPv4 Address Family
- EIGRP for IPv6 Address Family
- Named EIGRP Configuration Modes
- Classic Versus Named EIGRP Configuration
- Summary
- Review Questions
- Chapter 3 OSPF Implementation
- Establishing OSPF Neighbor Relationships
- OSPF Features
- OSPF Operation Overview
- Hierarchical Structure of OSPF
- Design Restrictions of OSPF
- OSPF Message Types
- Basic OSPF Configuration
- Optimizing OSPF Adjacency Behavior
- Using OSPF Priority in the DR/BDR Election
- OSPF Behavior in NBMA Hub-and-Spoke Topology 11 Implementing Cisco IP Routing (ROUTE) Foundation Learning Guide
- The Importance of MTU
- Manipulating OSPF Timers
- OSPF Neighbor Relationship over Point-to-Point Links
- OSPF Neighbor Relationship over Layer 3 MPLS VPN
- OSPF Neighbor Relationship over Layer 2 MPLS VPN
- OSPF Neighbor States
- OSPF Network Types
- Configuring Passive Interfaces
- Building the Link-State Database
- OSPF LSA Types
- Examining the OSPF Link-State Database
- OSPF Link-State Database
- OSPF Type 2 Network LSA
- OSPF Type 3 Summary LSA
- OSPF Type 4 ASBR Summary LSA
- OSPF Type 5 External LSA
- Periodic OSPF Database Changes
- Exchanging and Synchronizing LSDBs
- Synchronizing the LSDB on Multiaccess Networks
- Running the SPF Algorithm
- Configuring OSPF Path Selection
- OSPF Path Selection
- OSPF Best Path Calculation
- Default OSPF Costs
- Calculating the Cost of Intra-Area Routes
- Calculating the Cost of Interarea Routes
- Selecting Between Intra-Area and Interarea Routes
- Optimizing OSPF Behavior
- OSPF Route Summarization
- Benefits of Route Summarization
- Configuring OSPF Route Summarization
- Summarization on ABRs
- Summarization on ASBRs
- OSPF Virtual Links
- Configuring OSPF Virtual Links
- Configuring OSPF Stub Areas
- OSPF Stub Areas
- OSPF Totally Stubby Areas
- Cost of the Default Route in a Stub Area xi
- The default-information originate Command
- Other Stubby Area Types
- OSPFv3
- Configuring OSPFv3
- Implementing OSPFv3
- OSPFv3 for IPv4 and IPv6
- Configuring Advanced OSPFv3
- OSPFv3 Caveats
- Summary
- Review Questions
- Chapter 4 Manipulating Routing Updates
- Using Multiple IP Routing Protocols on a Network
- Why Run Multiple Routing Protocols?
- Running Multiple Routing Protocols
- Administrative Distance
- Multiple Routing Protocols Solutions
- Implementing Route Redistribution
- Defining Route Redistribution
- Planning to Redistribute Routes
- Redistributing Routes
- Seed Metrics
- Default Seed Metrics
- Configuring and Verifying Basic Redistribution in IPv4 and IPv6
- Redistributing OSPFv2 Routes into the EIGRP Routing Domain
- Domain Redistributing OSPFv3 Routes into the EIGRP for IPv6 Routing
- Redistributing EIGRP Routes into the OSPFv2 Routing Domain
- Domain Redistributing EIGRP for IPv6 Routes into the OSPFv3 Routing
- Types of Redistribution Techniques
- One-Point Redistribution
- Multipoint Redistribution
- Redistribution Problems
- Preventing Routing Loops in a Redistribution Environment
- Verifying Redistribution Operation
- Controlling Routing Update Traffic
- Why Filter Routes?
- Route Filtering Methods
- Using Distribute Lists 13 Implementing Cisco IP Routing (ROUTE) Foundation Learning Guide
- Configuring Distribute Lists
- Distribute List and ACL Example
- Using Prefix Lists
- Prefix List Characteristics
- Configuring Prefix Lists
- Distribute List and Prefix List Example
- Prefix List Examples
- Verifying Prefix Lists
- Lists Manipulating Redistribution Using ACLs, Prefix Lists, and Distribute
- Using Route Maps
- Understanding Route Maps
- Route Map Applications
- Configuring Route Maps
- Route Map Match and Set Statements
- Configuring Route Redistribution Using Route Maps
- Using Route Maps with Redistribution
- Manipulating Redistribution Using Route Maps
- Mutual Redistribution without Route Filtering
- Mutual Redistribution with Route Maps
- Change Administrative Distance to Enable Optimal Routing
- Manipulating Redistribution Using Route Tagging
- Caveats of Redistribution
- Summary
- References
- Review Questions
- Chapter 5 Path Control Implementation
- Using Cisco Express Forwarding Switching
- Control and Data Plane
- Cisco Switching Mechanisms
- Process and Fast Switching
- Cisco Express Forwarding
- Analyzing Cisco Express Forwarding
- Verify the Content of the CEF Tables
- Enable and Disable CEF by Interface and Globally
- Understanding Path Control
- The Need for Path Control
- Implementing Path Control Using Policy-Based Routing xiii
- PBR Features
- Steps for Configuring PBR
- Configuring PBR
- Verifying PBR
- Configuring PBR Example
- Implementing Path Control Using Cisco IOS IP SLAs
- PBR and IP SLA
- IP SLA Features
- Steps for Configuring IP SLAs
- Verifying Path Control Using IOS IP SLAs
- Configuring IP SLA Example
- Configuring PBR and IP SLA Example
- Summary
- References
- Review Questions
- Chapter 6 Enterprise Internet Connectivity
- Planning Enterprise Internet Connectivity
- Connecting Enterprise Networks to an ISP
- Enterprise Connectivity Requirements
- ISP Redundancy
- Public IP Address Assignment
- The Internet Assigned Numbers Authority
- Regional Internet Registries
- Public IP Address Space
- Autonomous System Numbers
- Establishing Single-Homed IPv4 Internet Connectivity
- Configuring a Provider-Assigned IPv4 Address
- DHCP Operation
- Obtaining a Provider-Assigned IPv4 Address with DHCP
- Configuring a Router as a DHCP Server and DHCP Relay Agent
- NAT
- Configuring Static NAT
- Configuring Dynamic NAT
- Configuring PAT
- Limitations of NAT
- NAT Virtual Interface
- Configuring NAT Virtual Interface
- Verifying NAT Virtual Interface
- Establishing Single-Homed IPv6 Internet Connectivity
- Obtaining a Provider-Assigned IPv6 Address
- Manual Assignment
- Configuring Basic IPv6 Internet Connectivity
- Stateless Address Autoconfiguration
- DHCPv6 Operation
- Stateless DCHPv6
- Stateful DHCPv6
- DHCPv6 Prefix Delegation
- NAT for IPv6
- NAT64
- NPTv6
- IPv6 ACLs
- IPv6 ACL Characteristics
- Configuring IPv6 ACLs
- Securing IPv6 Internet Connectivity
- Improving Internet Connectivity Resilience
- Drawbacks of a Single-Homed Internet Connectivity
- Dual-Homed Internet Connectivity
- Dual-Homed Connectivity Options
- Configuring Best Path for Dual-Homed Internet Connectivity
- Multihomed Internet Connectivity
- Summary
- References
- Review Questions
- Chapter 7 BGP Implementation
- BGP Terminology, Concepts, and Operation
- BGP Use Between Autonomous Systems
- Comparison with Other Scalable Routing Protocols
- BGP Path Vector Characteristics
- BGP Characteristics
- BGP Tables
- BGP Message Types
- Open and Keepalive Messages
- Update Messages
- Notification Messages
- When to Use BGP
- When Not to Use BGP
- Implementing Basic BGP 16 Implementing Cisco IP Routing (ROUTE) Foundation Learning Guide
- BGP Neighbor Relationships
- External BGP Neighbors
- Internal BGP Neighbors
- iBGP on All Routers in a Transit Path
- Basic BGP Configuration Requirements
- Entering BGP Configuration Mode
- Defining BGP Neighbors and Activating BGP Sessions
- Basic BGP Configuration and Verification
- Configuring and Verifying an eBGP Session
- Configuring and Verifying an iBGP Session
- Propagated Advertising Networks in BGP and Verifying That They Are
- Using the Next-Hop-Self Feature
- Understanding and Troubleshooting BGP Neighbor States
- BGP Session Resilience
- Sourcing BGP from Loopback Address
- eBGP Multihop
- Resetting BGP Sessions
- BGP Attributes and the Path-Selection Process
- BGP Path Selection
- BGP Path-Selection Process
- Connection The Path-Selection Decision Process with a Multihomed
- BGP Attributes
- Well-Known Attributes
- Optional Attributes
- Defined BGP Attributes
- The AS-Path Attribute
- The Next-Hop Attribute
- The Origin Attribute
- The Local-Preference Attribute
- The Community Attribute
- The MED Attribute
- The Weight Attribute (Cisco Only)
- Changing the Weight for All Updates from a Neighbor
- Changing the Weight Using Route Maps
- Influencing BGP Path Selection
- Changing the Weight
- Changing Local Preference
- Setting the AS-Path
- Controlling BGP Routing Updates
- Filtering BGP Routing Updates
- BGP Filtering Using Prefix Lists
- BGP Filtering Using AS-Path Access Lists
- BGP Filtering Using Route Maps
- Filtering Order
- Clearing the BGP Session
- BGP Peer Groups
- Peer Group Operation
- Peer Group Configuration
- Peer Group Configuration Example
- Implementing BGP for IPv6 Internet Connectivity
- MP-BGP Support for IPv6
- Exchanging IPv6 Routes over an IPv4 Session
- Exchanging IPv6 Routes over an IPv6 Session
- BGP for IPv6 Configuration and Verification
- Initial State of Routers
- Enable eBGP IPv6 Route Exchange
- Enable iBGP IPv6 Route Exchange
- Comparing IPv4 to Dual (IPv4/IPv6) BGP Transport
- BGP Filtering Mechanisms for IPv6
- IPv6 Prefix List Filtering
- IPv6 Path Selection with BGP Local Preference
- Summary
- References
- Review Questions
- Chapter 8 Routers and Routing Protocol Hardening
- Securing the Management Plane on Cisco Routers
- Securing the Management Plane
- Router Security Policy
- Encrypted Passwords
- Use Strong Passwords
- Encrypting Passwords
- Authentication, Authorization, Accounting
- RADIUS and TACACS+ Overview
- Enabling AAA and Local Authentication
- Backup Enabling AAA RADIUS Authentication with Local User for
- Backup Enabling AAA TACACS+ Authentication with Local User for
- Configuring Authorization and Accounting
- Limitations of TACACS+ and RADIUS
- Use SSH Instead of Telnet
- Securing Access to the Infrastructure Using Router ACLs
- Implement Unicast Reverse Path Forwarding
- uRPF in an Enterprise Network
- uRPF Examples
- Enabling uRPF
- Implement Logging
- Implementing Network Time Protocol
- NTP Modes
- Enabling NTP
- Securing NTP
- NTP Versions
- NTP in IPv6 Environment
- Simple NTP
- Implementing SNMP
- SNMPv3
- Enabling SNMPv3
- Verifying SNMPv3
- Configuration Backups
- The archive Command
- Using SCP
- Enabling SCP on a Router
- Disabling Unused Services
- Conditional Debugging
- Enabling Conditional Debugging
- Routing Protocol Authentication Options
- The Purpose of Routing Protocol Authentication
- Plain-Text Authentication
- Hashing Authentication
- Time-Based Key Chains
- Key Chain Specifics
- Authentication Options with Different Routing Protocols