15
Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii Part I Networking Basics 1 The OSI Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 What Is a Packet? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 OSI Model Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Layer 7: The Application Layer . . . . . . . . . . . . . . . . . . . . . . . 8 Layer 6: The Presentation Layer . . . . . . . . . . . . . . . . . . . . . . 9 Layer 5: The Session Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Layer 4: The Transport Layer . . . . . . . . . . . . . . . . . . . . . . . . . 9 Layer 3: The Network Layer . . . . . . . . . . . . . . . . . . . . . . . . . 12 Layer 2: The Datalink Layer . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Layer 1: The Physical Layer . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Bringing It All Together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 ix

Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

  • Upload
    buithu

  • View
    217

  • Download
    4

Embed Size (px)

Citation preview

Page 1: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

Contents

Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii

Part I

Networking Basics

1 The OSI Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3What Is a Packet? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4OSI Model Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Layer 7: The Application Layer . . . . . . . . . . . . . . . . . . . . . . . 8Layer 6: The Presentation Layer . . . . . . . . . . . . . . . . . . . . . . 9Layer 5: The Session Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Layer 4: The Transport Layer . . . . . . . . . . . . . . . . . . . . . . . . . 9Layer 3: The Network Layer . . . . . . . . . . . . . . . . . . . . . . . . . 12Layer 2: The Datalink Layer . . . . . . . . . . . . . . . . . . . . . . . . . . 12Layer 1: The Physical Layer . . . . . . . . . . . . . . . . . . . . . . . . . . 15Bringing It All Together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

ix

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front MatterFM:ix

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:01 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 2: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

Other Network Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

2 Ethernet and Wireless LANs . . . . . . . . . . . . . . . . . . . . . . 21Ethernet Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Duplex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Attenuation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Chromatic Dispersion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Electromagnetic Interference . . . . . . . . . . . . . . . . . . . . . . . . . 26Ethernet Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Ethernet Framing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Arbitration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Basic Ethernet Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31Ethernet Technologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

WLANs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40How IEEE 802.11b Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41Radio Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41Arbitration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42Fragmentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47Cells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48Bandwidth and Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

3 Frame Relay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51How Frame Relay Works: Core Concepts . . . . . . . . . . . . . . . . . . . . . 52

Virtual Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55LMI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58Framing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62Topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

How Frame Relay Works: Advanced Concepts . . . . . . . . . . . . . . . . 68Quality of Service Enhancements . . . . . . . . . . . . . . . . . . . . . 68Speeds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70Error Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72

x C i s c o : T h e C o m p l e t e R e f e r e n c e

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:01 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 3: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

Physical Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73Multiservice and Channelization . . . . . . . . . . . . . . . . . . . . . 73

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

4 ATM and ISDN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77What Is Asynchronous Transfer Mode? . . . . . . . . . . . . . . . . . . . . . . . 78

How ATM Works: Core Concepts . . . . . . . . . . . . . . . . . . . . 78How ATM Works: Advanced Concepts . . . . . . . . . . . . . . . 89

What Is Integrated Services Digital Network? . . . . . . . . . . . . . . . . . 91How ISDN Works: Core Concepts . . . . . . . . . . . . . . . . . . . . 92How ISDN Works: Advanced Concepts . . . . . . . . . . . . . . . 94

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

5 TCP/IP Fundamentals . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101TCP/IP History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102Individual Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

Serial Line Internet Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . 103Point-to-Point Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103Internet Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104Internet Control Messaging Protocol . . . . . . . . . . . . . . . . . . 106Address Resolution Protocol . . . . . . . . . . . . . . . . . . . . . . . . . 110Inverse ARP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110User Datagram Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111Transmission Control Protocol . . . . . . . . . . . . . . . . . . . . . . . 111Dynamic Host Configuration Protocol . . . . . . . . . . . . . . . . . 115Domain Naming System . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117Trivial File Transfer Protocol . . . . . . . . . . . . . . . . . . . . . . . . . 121File Transfer Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121Telnet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121Hypertext Transfer Protocol . . . . . . . . . . . . . . . . . . . . . . . . . 122Simple Mail Transport Protocol . . . . . . . . . . . . . . . . . . . . . . 122Post Office Protocol Version 3 . . . . . . . . . . . . . . . . . . . . . . . . 123Simple Network Management Protocol . . . . . . . . . . . . . . . . 123

Bringing It All Together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126

C o n t e n t s xi

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:01 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 4: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

6 Advanced IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127IP Addressing Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

Basic Binary Math . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128IP Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132IP Classes and Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

Simple Subnetting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142Ranging Example 1 (Class A) . . . . . . . . . . . . . . . . . . . . . . . . 149Ranging Example 2 (Class A) . . . . . . . . . . . . . . . . . . . . . . . . 152Ranging Example 3 (Class B) . . . . . . . . . . . . . . . . . . . . . . . . . 155Ranging Example 4 (Class B) . . . . . . . . . . . . . . . . . . . . . . . . . 157Ranging Example 5 (Class C) . . . . . . . . . . . . . . . . . . . . . . . . . 159Ranging Example 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160Shortcuts (aka “The Easy Way”) . . . . . . . . . . . . . . . . . . . . . . 163

Complex Class-Based Subnetting and VLSM . . . . . . . . . . . . . . . . . . 167Other TCP/IP Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185

CIDR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186Layer 4 Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186

NAT and Private Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188Multicasting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192

How Multicasting Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194Multicast Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195

7 The IPX/SPX Suite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197The IPX/SPX Suite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198

IPX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198SPX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201DIAG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202SAP and GNS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202RPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204NetBIOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204The NetWare Shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204NCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

IPX Framing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205Bringing It All Together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

xii C i s c o : T h e C o m p l e t e R e f e r e n c e

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:01 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 5: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

Part II

Cisco Technology Overview

8 Cisco Hardware Layout . . . . . . . . . . . . . . . . . . . . . . . . . . 211Hardware Form Factors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212

Pedestal-Mount Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212Rack-Mount Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212

Internal and External Components . . . . . . . . . . . . . . . . . . . . . . . . . . . 213Internal Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213External Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215

Modularity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217Cabling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219

Console Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219AUX Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220RJ-45 Ethernet Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . 220Single Serial Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220Octal Serial Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222

9 Basic Switch Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 223Cisco Switching Fundamentals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224

Cisco Switch Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224Switch Modularity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225Switch Hardware Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226Switch IOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227

Switch Classification Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244

10 Individual Switch Series Reference . . . . . . . . . . . . . . . . . 245The 1548 Series Microswitches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246The 1900 and 2820 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247The 2900 and 2900XL Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249

The 2926 Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249The 2980 Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250The 2948 Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250The 2900XL Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

C o n t e n t s xiii

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:02 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 6: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

The 3000, 3100, and 3200 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252The 3500XL Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252The 3900 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253The 4000 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254The 4840 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255The 5000 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255The 5500 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257The 6000 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258The 6500 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260The 8500 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262Specialized Switching Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262

6000 Series DSL Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262The 6400 Series Concentrator . . . . . . . . . . . . . . . . . . . . . . . . . 263MGX 8200 Gateways . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263The IGX 8400 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263The BPX 8600 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263The MGX 8850 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263The CSS 11000 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264The LightStream LS 1010 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264

11 Basic Router Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 265Cisco Router Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266Router Modularity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267Router Hardware Terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267Router IOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267Router Classification Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312

12 Individual Router Series Reference . . . . . . . . . . . . . . . . . 313The 600 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314The 700 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314The 800 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314The 1000 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316The 1400 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317The 1600 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318The 1700 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319The 2500 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320

xiv C i s c o : T h e C o m p l e t e R e f e r e n c e

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:02 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 7: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

The 2600 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322The 3600 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325The 7100 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328The 7200 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330The 7500 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332The 10000 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335The 12000 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338

13 Access Servers, Cache Engines, and Security Products 339Access Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340

AS Series Universal Access Servers . . . . . . . . . . . . . . . . . . . 341AccessPath Access Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . 3432500 Series Access Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . 346

Cache and Content Engines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346Cache Engine 500 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347Cisco Content Engines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349

Cisco Security Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351Cisco Secure Access Control Server . . . . . . . . . . . . . . . . . . . 351Cisco Secure Policy Manager . . . . . . . . . . . . . . . . . . . . . . . . . 352Cisco Secure Scanner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352Cisco IOS Firewall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353Cisco Secure Intrusion Detection System . . . . . . . . . . . . . . . 354Cisco Secure PIX Firewall . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356

14 IOS Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357What Is the IOS, Anyway? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358

IOS Versions and Version Structure . . . . . . . . . . . . . . . . . . . 358How Version Naming Works . . . . . . . . . . . . . . . . . . . . . . . . 359

Booting a Cisco Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362Basic Cisco Device Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362Working with the IOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369

Command Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369Command Help and Shortcuts . . . . . . . . . . . . . . . . . . . . . . . 371IOS Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376IOS Configuration Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379

The Flash RAM File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380

C o n t e n t s xv

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:02 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 8: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

Syslog Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381Configuration Registers, Boot Options, and Password Recovery . 384Cisco Discovery Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398

15 Standard IOS Commands: Part 1 . . . . . . . . . . . . . . . . . . . 399Common User Mode Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400

The connect Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400The disconnect Command . . . . . . . . . . . . . . . . . . . . . . . . . . . 401The enable Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403The exit Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403The name-connection Command . . . . . . . . . . . . . . . . . . . . . 403The ping Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403The resume Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405The rlogin Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405The show Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405The telnet Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427The terminal Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427The traceroute Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431

Common Enable Mode Commands . . . . . . . . . . . . . . . . . . . . . . . . . . 432The clear Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432The clock Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433The configure Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434The debug Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434The delete Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440The dir Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441The disable Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441The erase Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441The lock Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442The ping Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442The reload Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443The send Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444The setup Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445The squeeze Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445The test Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445The undelete Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446The where Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446The write Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446

xvi C i s c o : T h e C o m p l e t e R e f e r e n c e

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:02 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 9: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

16 Standard IOS Commands: Part 2 . . . . . . . . . . . . . . . . . . . 447Common Global Configuration Mode Commands . . . . . . . . . . . . . 448

The alias Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448The arp Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449The banner Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450The boot Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451The cdp Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453The clock Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454The config-register Command . . . . . . . . . . . . . . . . . . . . . . . . 454The default Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454The enable Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455The end Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456The exit Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456The hostname Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456The interface Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457The ip Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457The line Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459The logging Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459The privilege Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459The prompt Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460The service Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460

Common Interface Configuration Mode Commands . . . . . . . . . . . 464The cdp Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465The description Command . . . . . . . . . . . . . . . . . . . . . . . . . . . 465The full-duplex and half-duplex Commands . . . . . . . . . . . 465The ip Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466The logging Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467The loopback Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467The mac-address Command . . . . . . . . . . . . . . . . . . . . . . . . . 467The mtu command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468The shutdown Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469

17 Set-Based IOS Commands . . . . . . . . . . . . . . . . . . . . . . . . 471Common clear Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472

The clear alias Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473The clear arp Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473The clear banner Command . . . . . . . . . . . . . . . . . . . . . . . . . . 474The clear boot Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474

C o n t e n t s xvii

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:02 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 10: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

The clear config Command . . . . . . . . . . . . . . . . . . . . . . . . . . 474The clear counters Command . . . . . . . . . . . . . . . . . . . . . . . . 475The clear ip Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476The clear log Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476The clear logging Command . . . . . . . . . . . . . . . . . . . . . . . . . 477The clear timezone Command . . . . . . . . . . . . . . . . . . . . . . . . 477

The configure Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477

The copy Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478

The delete Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480

The history Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480

The ping Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480

The quit Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481

The reset Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481

The session Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482

Common set Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483The set alias Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 484The set arp Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 484The set banner Command . . . . . . . . . . . . . . . . . . . . . . . . . . . 485The set boot Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 485The set cdp Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487The set enablepass Command . . . . . . . . . . . . . . . . . . . . . . . . 487The set interface Command . . . . . . . . . . . . . . . . . . . . . . . . . . 487The set ip Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488The set length Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489The set logging Command . . . . . . . . . . . . . . . . . . . . . . . . . . . 489The set logout Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492The set module Command . . . . . . . . . . . . . . . . . . . . . . . . . . . 492The set password Command . . . . . . . . . . . . . . . . . . . . . . . . . 493The set port Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493The set prompt Command . . . . . . . . . . . . . . . . . . . . . . . . . . . 495The set summertime Command . . . . . . . . . . . . . . . . . . . . . . 495The set system Command . . . . . . . . . . . . . . . . . . . . . . . . . . . 495

xviii C i s c o : T h e C o m p l e t e R e f e r e n c e

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:03 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 11: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

The set time Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496The set timezone Command . . . . . . . . . . . . . . . . . . . . . . . . . 496

Common show Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496The show boot Command . . . . . . . . . . . . . . . . . . . . . . . . . . . 498The show config Command . . . . . . . . . . . . . . . . . . . . . . . . . . 498The show file Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504The show log Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505The show mac Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506The show module Command . . . . . . . . . . . . . . . . . . . . . . . . 507The show netstat Command . . . . . . . . . . . . . . . . . . . . . . . . . 508The show port Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 510The show test Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515The show traffic Command . . . . . . . . . . . . . . . . . . . . . . . . . . 518

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 518

Part III

Cisco LAN Switching

18 Basic Switch Configuration . . . . . . . . . . . . . . . . . . . . . . . . 521Configuring the General System Information . . . . . . . . . . . . . . . . . . 522

Standard IOS Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 522CatOS Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527

Configuring Logging and Passwords . . . . . . . . . . . . . . . . . . . . . . . . . 529Standard IOS Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 529CatOS Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533

Configuring Boot Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535Standard IOS Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 535CatOS Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536

Saving the Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538

19 Layer 2 Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539Spanning Tree Protocol (STP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540

How STP Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543Basic STP Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553Fast Etherchannel and Fast Gigachannel . . . . . . . . . . . . . . . 562Troubleshooting STP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563

Virtual LANs (VLANs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566Defining a VLAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 569VLAN Membership . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571

C o n t e n t s xix

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:03 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 12: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

VLAN Tagging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571VLAN Trunking Protocol (VTP) . . . . . . . . . . . . . . . . . . . . . . 573VLAN STP Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . 577VLAN Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578Troubleshooting VLANs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587

20 Layer 3 Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589Layer 3 Switching Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 590How Layer 3 Switching Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 592

Routing Versus Layer 3 Switching . . . . . . . . . . . . . . . . . . . . 592MLS Data Forwarding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593MLS-SE and MLS-RP Interaction . . . . . . . . . . . . . . . . . . . . . 596

Layer 3 Switching Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 600IRB Versus CRB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 600Configuring CRB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604Configuring IRB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606Configuring an Environment with Separate Devices . . . . 610Configuring an Environment with a Trunked Connection 612

Layer 3 Switching Troubleshooting and Optimization . . . . . . . . . . 617Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627

21 Layer 4 Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629Layer 4 Switching Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630

SLB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630MLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630Congestion Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631

How Layer 4 Switching Works: SLB . . . . . . . . . . . . . . . . . . . . . . . . . . 631How Layer 4 Switching Works: Congestion Management . . . . . . . 637Layer 4 Switching Configuration: SLB . . . . . . . . . . . . . . . . . . . . . . . . 649

Basic SLB Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 649Advanced SLB Configuration . . . . . . . . . . . . . . . . . . . . . . . . 652Troubleshooting SLB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655

Layer 4 Switching Configuration: Congestion Management . . . . . 656WFQ Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656CBWFQ Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657CQ Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663PQ Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667

Verifying and Troubleshooting Congestion Management . . . . . . . 670Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 672

xx C i s c o : T h e C o m p l e t e R e f e r e n c e

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:03 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 13: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

Part IV

Cisco Routing

22 Understanding Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . 675How Routing Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 676

How Static Routing Works . . . . . . . . . . . . . . . . . . . . . . . . . . . 676How Dynamic Routing Works . . . . . . . . . . . . . . . . . . . . . . . 689Understanding Administrative Distance . . . . . . . . . . . . . . . 695

Basic Router Configuration: Interface Configuration . . . . . . . . . . . . 698Ethernet Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 698Frame Relay Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 701Configuring an ATM Interface . . . . . . . . . . . . . . . . . . . . . . . 706

Static Routing Configuration, Verification, and Troubleshooting . 708Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 713

23 RIP Versions 1 and 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 715How RIP Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 716

Basic RIP 1 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 716RIP 1 Advanced Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 725Improvements with RIP 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 729

Basic RIP Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 729Advanced RIP Configuration and Optimization . . . . . . . . . . . . . . . 730

Configuring Passive Interfaces . . . . . . . . . . . . . . . . . . . . . . . 730Configuring Unicast Updates . . . . . . . . . . . . . . . . . . . . . . . . 732Adding a Metric Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 733Adjusting RIP’s Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 735Disabling Split Horizon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 736Setting the Maximum Number of Paths . . . . . . . . . . . . . . . 738Configuring Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . 738Disabling Autosummarization . . . . . . . . . . . . . . . . . . . . . . . 740

Troubleshooting RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 743Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 745

24 Interior Gateway Routing Protocol . . . . . . . . . . . . . . . . . 747How IGRP Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 748

Autonomous Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 748Metric and Maximum Hops . . . . . . . . . . . . . . . . . . . . . . . . . . 751Load Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 762Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 764

C o n t e n t s xxi

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:03 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 14: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

IGRP Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 764Basic Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 764Advanced Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 766

Troubleshooting IGRP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 795Problem 1: Discontiguous Networks and VLSM . . . . . . . . 796Problem 2: Timer Misconfigurations . . . . . . . . . . . . . . . . . . 799Problem 3: Variance, Metric Components, and Weights . . 804Problem 4: Large Timers and Large Networks . . . . . . . . . . 805Problem 5: Holddown and Split Horizon . . . . . . . . . . . . . . 806Problem 6: Passive Interfaces and Unicast Updates . . . . . . 807Problem 7: Default Networks . . . . . . . . . . . . . . . . . . . . . . . . 808

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 808

25 Enhanced Interior Gateway Routing Protocol . . . . . . . . 809How EIGRP Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810

Operational Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811Terminology Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815Summarization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878Load Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 880

EIGRP Configuration and Troubleshooting . . . . . . . . . . . . . . . . . . . 884Configuration Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 884Redistributing EIGRP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 889Monitoring and Troubleshooting Commands . . . . . . . . . . 890Case Studies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 895

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 910

26 Open Shortest Path First . . . . . . . . . . . . . . . . . . . . . . . . . . 911OSPF Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 912

OSPF Operational Overview . . . . . . . . . . . . . . . . . . . . . . . . . 912OSPF Terms and Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . 913

How OSPF Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 922OSPF in a Single Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 924OSPF in Multiple Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 976Comparing OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 991Redistribution with OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . 993

xxii C i s c o : T h e C o m p l e t e R e f e r e n c e

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:03 AM

Color profile: Generic CMYK printer profileComposite Default screen

Page 15: Contents · Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv Introduction

Configuring OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 996Enabling Basic OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 996Configuring OSPF Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . 999Configuring Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1004Advanced OSPF Configuration . . . . . . . . . . . . . . . . . . . . . . . 1009

Troubleshooting OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1012Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1018

27 Access Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1019Understanding Packet Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1020Using NAT and PAT with Packet Filtering . . . . . . . . . . . . . . . . . . . . 1025Understanding DMZs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1027ACL Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1036

Standard Access Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1038Extended Access Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1043

Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046

A Command Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1047

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1091

C o n t e n t s xxiii

Complete Reference / Cisco: TCR / Hill / 9280-1 / Front Matter

P:\010Comp\CompRef8\280-1\fm.vpFriday, February 15, 2002 10:31:04 AM

Color profile: Generic CMYK printer profileComposite Default screen