Cisco IOS IP Configuration Guide: Release 12.2
Cisco IOS IP Configuration Guide: Release 12.2
Cisco IOS IP Configuration Guide: Release 12.2
IP
Configuration Guide
Release 12.2
Corporate Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 526-4100
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT
NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE
PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR
APPLICATION OF ANY PRODUCTS.
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION
PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO
LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of
UCBs public domain version of the UNIX operating system. All rights reserved. Copyright 1981, Regents of the University of California.
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED
AS IS WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED,
INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL
DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR
INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
AccessPath, AtmDirector, 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, the Cisco Systems Networking Academy logo, Fast Step, Follow Me Browsing, FormShare,
FrameShare, GigaStack, IGX, Internet Quotient, IP/VC, iQ Breakthrough, iQ Expertise, iQ FastTrack, the iQ Logo, iQ Net Readiness Scorecard, MGX,
the Networkers logo, Packet, PIX, RateMUX, ScriptBuilder, ScriptShare, SlideCast, SMARTnet, TransPath, Unity, Voice LAN, Wavelength Router, and
WebViewer are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, Discover All Thats Possible, and Empowering
the Internet Generation, are service marks of Cisco Systems, Inc.; and Aironet, ASIST, BPX, Catalyst, Cisco, the Cisco Certified Internetwork Expert logo,
Cisco IOS, the Cisco IOS logo, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Enterprise/Solver, EtherChannel, EtherSwitch, FastHub,
FastSwitch, IOS, IP/TV, LightStream, MICA, Network Registrar, Post-Routing, Pre-Routing, Registrar, StrataView Plus, Stratm, SwitchProbe, TeleRouter,
and VCO 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 partnership relationship between Cisco and any other company. (0102R)
Cisco IOS IP Configuration Guide
Copyright 20012006, Cisco Systems, Inc.
All rights reserved.
CONTENTS
About Cisco IOS Software Documentation
Documentation Objectives
Audience
xxix
xxix
xxix
xxxii
xxxiii
xxxiii
xxxv
xxxvi
xxxix
xxxix
Getting Help xl
Example: How to Find Command Options
xli
xliii
xliv
xliv
IPC-1
IPC-1
IPC-2
iii
Contents
IPC-4
IPC-7
IPC-7
IPC-9
iv
IPC-21
Contents
IPC-26
IPC-28
IPC-30
IPC-30
IPC-30
IPC-31
Contents
IPC-65
IPC-65
IPC-67
IPC-67
vi
Contents
IPC-75
IPC-75
IPC-79
IPC-81
IPC-81
IPC-86
vii
Contents
IPC-99
IPC-115
viii
IPC-112
Contents
IPC-118
IPC-120
IPC-133
ix
Contents
IPC-139
Contents
IPC-149
IPC-151
IPC-159
IPC-166
IPC-170
xi
Contents
IPC-199
xii
IPC-197
Contents
IPC-213
IPC-213
IPC-220
IPC-223
IPC-223
IPC-224
xiii
Contents
Enabling OSPF
IPC-225
IPC-225
IPC-228
IPC-230
IPC-230
IPC-231
IPC-231
IPC-232
IPC-232
IPC-232
IPC-233
IPC-233
IPC-233
IPC-235
IPC-236
IPC-237
IPC-238
IPC-238
IPC-239
IPC-240
xiv
IPC-230
Contents
Basic OSPF Configuration Example for Internal Router, ABR, and ASBRs
Complex Internal Router, ABR, and ASBRs Example IPC-246
Complex OSPF Configuration for ABR Examples IPC-249
Route Map Examples IPC-250
Changing OSPF Administrative Distance Example IPC-252
OSPF over On-Demand Routing Example IPC-253
LSA Group Pacing Example IPC-255
Block LSA Flooding Example IPC-255
Ignore MOSPF LSA Packets Example IPC-255
Configuring EIGRP
IPC-246
IPC-257
IPC-257
IPC-266
IPC-272
xv
Contents
IPC-277
IPC-279
IPC-289
IPC-293
xvi
IPC-293
IPC-290
Contents
IPC-295
IPC-296
xvii
Contents
xviii
Contents
IPC-347
IPC-364
IPC-365
IPC-363
IPC-363
IPC-364
xix
Contents
IPC-366
IPC-366
IPC-369
IPC-377
xx
Contents
IPC-393
IP MULTICAST
Configuring IP Multicast Routing
IPC-399
IPC-400
IPC-402
IPC-402
IPC-403
IPC-405
IPC-410
xxi
Contents
Restrictions IPC-412
Changing the IGMP Query Timeout IPC-413
Changing the Maximum Query Response Time IPC-413
Configuring the Router as a Statically Connected Member
Configuring IGMP Leave Latency IPC-414
Configuring the TTL Threshold
IPC-413
IPC-415
IPC-415
IPC-416
IPC-419
xxii
IPC-429
IPC-423
Contents
IPC-430
IPC-438
IPC-438
IPC-439
IPC-440
IPC-440
Load Splitting IP Multicast Traffic Across Equal-Cost Paths Configuration Task List
Enabling Native Load Splitting IPC-442
Enabling Load Splitting Across Tunnels IPC-442
Configuring the Access Router IPC-443
Configuring the Router at the Opposite End of the Tunnel IPC-443
Configuring Both Routers to RPF IPC-444
Verifying the Load Splitting IPC-445
Monitoring and Maintaining IP Multicast Routing Configuration Task List
Clearing Caches, Tables, and Databases IPC-446
Displaying System and Network Statistics IPC-446
Using IP Multicast Heartbeat IPC-447
IPC-441
IPC-445
xxiii
Contents
IPC-459
IPC-459
IPC-460
IPC-460
IPC-460
IPC-461
IPC-461
IPC-462
Benefits IPC-464
IP Multicast Address Management Not Required IPC-464
Denial of Service Attacks from Unwanted Sources Inhibited
Easy to Install and Manage IPC-464
Ideal for Internet Broadcast Applications IPC-465
IPC-464
Restrictions IPC-465
Legacy Applications Within the SSM Range Restrictions IPC-465
IGMP v3lite and URD Require a Cisco IOS Last Hop Router IPC-465
Address Management Restrictions IPC-465
IGMP Snooping and CGMP Limitations IPC-466
URD Intercept URL Limitations IPC-466
State Maintenance Limitations IPC-466
HSIL Limitations IPC-466
SSM Configuration Task List IPC-467
Configuring SSM IPC-467
Monitoring SSM IPC-467
SSM Configuration Examples IPC-468
SSM with IGMPv3 Example IPC-468
SSM with IGMP v3lite and URD Example
SSM Filtering Example IPC-468
Configuring Bidirectional PIM
Bidir-PIM Overview
Cisco IOS IP Configuration Guide
xxiv
IPC-471
IPC-471
IPC-468
IPC-453
Contents
DF Election IPC-473
Bidirectional Group Tree Building
Packet Forwarding IPC-474
IPC-474
IPC-476
IPC-477
IPC-477
IPC-479
Prerequisites
IPC-479
IPC-487
IPC-493
IPC-493
IPC-495
xxv
Contents
IPC-505
xxvi
IPC-511
Contents
IPC-521
IPC-521
IPC-522
IPC-525
IPC-525
IPC-526
IPC-518
IPC-527
IPC-527
IPC-528
IPC-533
IPC-534
IPC-537
xxvii
Contents
IPC-545
xxviii
Documentation Objectives
Cisco IOS software documentation describes the tasks and commands necessary to configure and
maintain Cisco networking devices.
Audience
The Cisco IOS software documentation set is intended primarily for users who configure and maintain
Cisco networking devices (such as routers and switches) but who may not be familiar with the tasks,
the relationship between tasks, or the Cisco IOS software commands necessary to perform particular
tasks. The Cisco IOS software documentation set is also intended for those users experienced with
Cisco IOS software who need to know about new features, new configuration options, and new software
characteristics in the current Cisco IOS software release.
Documentation Organization
The Cisco IOS software documentation set consists of documentation modules and master indexes. In
addition to the main documentation set, there are supporting documents and resources.
Documentation Modules
The Cisco IOS documentation modules consist of configuration guides and corresponding command
reference publications. Chapters in a configuration guide describe protocols, configuration tasks, and
Cisco IOS software functionality and contain comprehensive configuration examples. Chapters in a
command reference publication provide complete Cisco IOS command syntax information. Use each
configuration guide in conjunction with its corresponding command reference publication.
xxix
Note
Figure 1
The abbreviations (for example, FC and FR) next to the book icons are page designators,
which are defined in a key in the index of each document to help you with navigation. The
bullets under each module list the major technology areas discussed in the corresponding
books.
FC
Cisco IOS
Configuration
Fundamentals
Configuration
Guide
Cisco IOS
Configuration
Fundamentals
Command
Reference
FR
IP2R
Module FC/FR:
Cisco IOS User
Interfaces
File Management
System Management
Cisco IOS
Wide-Area
Networking
Command
Reference
WR
Module WC/WR:
ATM
Broadband Access
Frame Relay
SMDS
X.25 and LAPB
Cisco IOS
IP Command
Reference,
Volume 1 of 3:
Addressing
and Services
Cisco IOS
IP Command
Reference,
Volume 2 of 3:
Routing
Protocols
P2C
IP3R
Cisco IOS
IP Command
Reference,
Volume 3 of 3:
Multicast
Cisco IOS
Interface
Configuration
Guide
IR
Cisco IOS
Interface
Command
Reference
Module IC/IR:
LAN Interfaces
Serial Interfaces
Logical Interfaces
P3C
Cisco IOS
AppleTalk and
Novell IPX
Configuration
Guide
P2R
Module IPC/IP1R/IP2R/IP3R:
IP Addressing and Services
IP Routing Protocols
IP Multicast
IC
Cisco IOS
Wide-Area
Networking
Configuration
Guide
IP1R
Cisco IOS
AppleTalk and
Novell IPX
Command
Reference
P3R
Module P2C/P2R:
AppleTalk
Novell IPX
MWC
Cisco IOS
Mobile
Wireless
Configuration
Guide
MWR
Cisco IOS
Mobile
Wireless
Command
Reference
Module MWC/MWR:
General Packet
Radio Service
Cisco IOS
Apollo Domain,
Banyan VINES,
DECnet, ISO
CLNS, and XNS
Configuration
Guide
SC
Cisco IOS
Apollo Domain,
Banyan VINES,
DECnet, ISO
CLNS, and XNS
Command
Reference
Module P3C/P3R:
Apollo Domain
Banyan VINES
DECnet
ISO CLNS
XNS
Cisco IOS
Security
Configuration
Guide
SR
Cisco IOS
Security
Command
Reference
Module SC/SR:
AAA Security Services
Security Server Protocols
Traffic Filtering and Firewalls
IP Security and Encryption
Passwords and Privileges
Neighbor Router Authentication
IP Security Options
Supported AV Pairs
47953
WC
Cisco IOS
IP
Configuration
Guide
xxx
Cisco IOS
Dial
Technologies
Configuration
Guide
TC
BC
Cisco IOS
Terminal
Services
Configuration
Guide
Cisco IOS
Bridging and
IBM Networking
Configuration
Guide
B2R
B1R
DR
Cisco IOS
Dial
Technologies
Command
Reference
TR
Module DC/DR:
Preparing for Dial Access
Modem and Dial Shelf Configuration
and Management
ISDN Configuration
Signalling Configuration
Dial-on-Demand Routing
Configuration
Dial-Backup Configuration
Dial-Related Addressing Services
Virtual Templates, Profiles, and
Networks
PPP Configuration
Callback and Bandwidth Allocation
Configuration
Dial Access Specialized Features
Dial Access Scenarios
VC
Cisco IOS
Voice, Video,
and Fax
Configuration
Guide
VR
Cisco IOS
Voice, Video,
and Fax
Command
Reference
Module VC/VR:
Voice over IP
Call Control Signalling
Voice over
Frame Relay
Voice over ATM
Telephony Applications
Trunk Management
Fax, Video, and
Modem Support
Cisco IOS
Terminal
Services
Command
Reference
Module TC/TR:
ARA
LAT
NASI
Telnet
TN3270
XRemote
X.28 PAD
Protocol Translation
QC
Cisco IOS
Quality of
Service
Solutions
Configuration
Guide
QR
Cisco IOS
Quality of
Service
Solutions
Command
Reference
Module QC/QR:
Packet Classification
Congestion Management
Congestion Avoidance
Policing and Shaping
Signalling
Link Efficiency
Mechanisms
Cisco IOS
Bridging
and IBM
Networking
Command
Reference,
Volume 1 of 2
Cisco IOS
Bridging
and IBM
Networking
Command
Reference,
Volume 2 of 2
Module BC/B1R:
Transparent
Bridging
SRB
Token Ring
Inter-Switch Link
Token Ring Route
Switch Module
RSRB
DLSw+
Serial Tunnel and
Block Serial Tunnel
LLC2 and SDLC
IBM Network
Media Translation
SNA Frame Relay
Access
NCIA Client/Server
Airline Product Set
XC
Module BC/B2R:
DSPU and SNA
Service Point
SNA Switching
Services
Cisco Transaction
Connection
Cisco Mainframe
Channel Connection
CLAW and TCP/IP
Offload
CSNA, CMPC,
and CMPC+
TN3270 Server
Cisco IOS
Switching
Services
Configuration
Guide
XR
Cisco IOS
Switching
Services
Command
Reference
Module XC/XR:
Cisco IOS
Switching Paths
NetFlow Switching
Multiprotocol Label Switching
Multilayer Switching
Multicast Distributed Switching
Virtual LANs
LAN Emulation
47954
DC
xxxi
Master Indexes
Two master indexes provide indexing information for the Cisco IOS software documentation set:
an index for the configuration guides and an index for the command references. Individual books also
contain a book-specific index.
The master indexes provide a quick way for you to find a command when you know the command name
but not which module contains the command. When you use the online master indexes, you can click
the page number for an index entry and go to that page in the online document.
Cisco IOS Command Summary (two volumes)This publication explains the function and syntax
of the Cisco IOS software commands. For more information about defaults and usage guidelines,
refer to the Cisco IOS command reference publications.
Cisco IOS System Error MessagesThis publication lists and describes Cisco IOS system error
messages. Not all system error messages indicate problems with your system. Some are purely
informational, and others may help diagnose problems with communications lines, internal
hardware, or the system software.
Cisco IOS Debug Command ReferenceThis publication contains an alphabetical listing of the
debug commands and their descriptions. Documentation for each command includes a brief
description of its use, command syntax, usage guidelines, and sample output.
Dictionary of Internetworking Terms and AcronymsThis Cisco publication compiles and defines
the terms and acronyms used in the internetworking industry.
New feature documentationThe Cisco IOS software documentation set documents the mainline
release of Cisco IOS software (for example, Cisco IOS Release 12.2). New software features are
introduced in early deployment releases (for example, the Cisco IOS T release train for 12.2,
12.2(x)T). Documentation for these new features can be found in standalone documents called
feature modules. Feature module documentation describes new Cisco IOS software and hardware
networking functionality and is available on Cisco.com and the Documentation CD-ROM.
RFCsRFCs are standards documents maintained by the Internet Engineering Task Force (IETF).
Cisco IOS software documentation references supported RFCs when applicable. The full text of
referenced RFCs may be obtained on the World Wide Web at http://www.rfc-editor.org/.
MIBsMIBs are used for network monitoring. For lists of supported MIBs by platform and
release, and to download MIB files, see the Cisco MIB website on Cisco.com at
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml.
xxxii
The title of the Cisco IOS IP and IP Routing Configuration Guide has been changed to Cisco IOS
IP Configuration Guide.
The Cisco IOS IP and IP Routing Command Reference has been divided into three separate
publications with the following titles:
Cisco IOS IP Command Reference, Volume 1 of 3: Addressing and Services
Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols
Cisco IOS IP Command Reference, Volume 3 of 3: Multicast
The following new chapters were added to the Cisco IOS IP Configuration Guide:
Configuring Server Load Balancing
Configuring Source Specific Multicast
Configuring Bidirectional PIM
Configuring Router-Port Group Management Protocol
The following new chapter was added to the Cisco IOS IP Command Reference, Volume 1 of 3:
Addressing and Services:
Server Load Balancing Commands
Document Conventions
Within Cisco IOS software documentation, the term router is generally used to refer to a variety of Cisco
products (for example, routers, access servers, and switches). Routers, access servers, and other
networking devices that support Cisco IOS software are shown interchangeably within examples. These
products are used only for illustrative purposes; that is, an example that shows one product does not
necessarily indicate that other products are not supported.
The Cisco IOS documentation set uses the following conventions:
Convention
Description
^ or Ctrl
The ^ and Ctrl symbols represent the Control key. For example, the key combination ^D or Ctrl-D
means hold down the Control key while you press the D key. Keys are indicated in capital letters but
are not case sensitive.
string
A string is a nonquoted set of characters shown in italics. For example, when setting an SNMP
community string to public, do not use quotation marks around the string or the string will include the
quotation marks.
xxxiii
Description
boldface
Boldface text indicates commands and keywords that you enter literally as shown.
italics
[x]
A vertical line indicates a choice within an optional or required set of keywords or arguments.
[x | y]
Square brackets enclosing keywords or arguments separated by a vertical line indicate an optional
choice.
{x | y}
Braces enclosing keywords or arguments separated by a vertical line indicate a required choice.
Nested sets of square brackets or braces indicate optional or required choices within optional or
required elements. For example:
Convention
Description
[x {y | z}]
Braces and a vertical line within square brackets indicate a required choice within an optional element.
Examples use the following conventions:
Convention
Description
screen
boldface screen
Examples of text that you must enter are set in Courier bold font.
<
Angle brackets enclose text that is not printed to the screen, such as passwords.
>
!
[
An exclamation point at the beginning of a line indicates a comment line. (Exclamation points are also
displayed by the Cisco IOS software for certain processes.)
]
Caution
Note
Timesaver
Means reader be careful. In this situation, you might do something that could result in
equipment damage or loss of data.
Means reader take note. Notes contain helpful suggestions or references to materials not
contained in this manual.
Means the described action saves time. You can save time by performing the action
described in the paragraph.
xxxiv
Obtaining Documentation
The following sections provide sources for obtaining documentation from Cisco Systems.
Documentation CD-ROM
Cisco documentation and additional literature are available in a CD-ROM package, which ships
with your product. The Documentation CD-ROM is updated monthly and may be more current than
printed documentation. The CD-ROM package is available as a single unit or through an
annual subscription.
Ordering Documentation
Cisco documentation can be ordered in the following ways:
Registered Cisco Direct Customers can order Cisco product documentation from the Networking
Products MarketPlace:
http://www.cisco.com/cgi-bin/order/order_root.pl
Registered Cisco.com users can order the Documentation CD-ROM through the online
Subscription Store:
http://www.cisco.com/go/subscription
Nonregistered Cisco.com users can order documentation through a local account representative by
calling Cisco corporate headquarters (California, USA) at 408 526-7208 or, in North America, by
calling 800 553-NETS(6387).
Documentation Feedback
If you are reading Cisco product documentation on the World Wide Web, you can submit technical
comments electronically. Click Feedback in the toolbar and select Documentation. After you complete
the form, click Submit to send it to Cisco.
You can e-mail your comments to [email protected].
xxxv
To submit your comments by mail, use the response card behind the front cover of your document, or
write to the following address:
Cisco Systems, Inc.
Document Resource Connection
170 West Tasman Drive
San Jose, CA 95134-9883
We appreciate your comments.
Cisco.com
Cisco.com is the foundation of a suite of interactive, networked services that provides immediate, open
access to Cisco information and resources at anytime, from anywhere in the world. This highly
integrated Internet application is a powerful, easy-to-use tool for doing business with Cisco.
Cisco.com provides a broad range of features and services to help customers and partners streamline
business processes and improve productivity. Through Cisco.com, you can find information about Cisco
and our networking solutions, services, and programs. In addition, you can resolve technical issues with
online technical support, download and test software packages, and order Cisco learning materials and
merchandise. Valuable online skill assessment, training, and certification programs are also available.
Customers and partners can self-register on Cisco.com to obtain additional personalized information
and services. Registered users can order products, check on the status of an order, access technical
support, and view benefits specific to their relationships with Cisco.
To access Cisco.com, go to the following website:
http://www.cisco.com
xxxvi
P4You need information or assistance on Cisco product capabilities, product installation, or basic
product configuration.
In each of the above cases, use the Cisco TAC website to quickly find answers to your questions.
To register for Cisco.com, go to the following website:
http://www.cisco.com/register/
If you cannot resolve your technical issue by using the TAC online resources, Cisco.com registered
users can open a case online by using the TAC Case Open tool at the following website:
http://www.cisco.com/tac/caseopen
P1Your production network is down, causing a critical impact to business operations if service
is not restored quickly. No workaround is available.
P2Your production network is severely degraded, affecting significant aspects of your business
operations. No workaround is available.
xxxvii
xxxviii
Getting Help
For an overview of Cisco IOS software configuration, refer to the Cisco IOS Configuration
Fundamentals Configuration Guide.
For information on the conventions used in the Cisco IOS software documentation set, see the chapter
About Cisco IOS Software Documentation located at the beginning of this book.
xxxix
Table 1 describes how to access and exit various common command modes of the Cisco IOS software.
It also shows examples of the prompts displayed for each mode.
Table 1
Command
Mode
Access Method
Prompt
Exit Method
User EXEC
Log in.
Router>
Privileged
EXEC
Router#
Global
configuration
Router(config)#
Interface
configuration
Router(config-if)#
From global
configuration mode,
specify an interface using
an interface command.
>
From privileged EXEC
mode, use the reload
EXEC command. Press
the Break key during the
first 60 seconds while the
system is booting.
ROM monitor
For more information on command modes, refer to the Using the Command-Line Interface chapter in
the Cisco IOS Configuration Fundamentals Configuration Guide.
Getting Help
Entering a question mark (?) at the CLI prompt displays a list of commands available for each command
mode. You can also get a list of keywords and arguments associated with any command by using the
context-sensitive help feature.
To get help specific to a command mode, a command, a keyword, or an argument, use one of the
following commands:
Command
Purpose
help
abbreviated-command-entry?
Provides a list of commands that begin with a particular character string. (No space
between command and question mark.)
abbreviated-command-entry<Tab>
command ?
Lists the keywords or arguments that you must enter next on the command line.
(Space between command and question mark.)
xl
Command
Comment
Router> enable
Password: <password>
Router#
xli
Table 2
Command
Comment
Router(config-if)# ?
Interface configuration commands:
.
.
.
ip
Interface Internet Protocol config commands
keepalive
Enable keepalive
lan-name
LAN Name command
llc2
LLC2 Interface Subcommands
load-interval
Specify interval for load calculation for an
interface
locaddr-priority
Assign a priority group
logging
Configure logging for interface
loopback
Configure internal loopback on an interface
mac-address
Manually set interface MAC address
mls
mls router sub/interface commands
mpoa
MPOA interface configuration commands
mtu
Set the interface Maximum Transmission Unit (MTU)
netbios
Use a defined NETBIOS access list or enable
name-caching
no
Negate a command or set its defaults
nrzi-encoding
Enable use of NRZI encoding
ntp
Configure NTP
.
.
.
Router(config-if)#
Router(config-if)# ip ?
Interface IP configuration subcommands:
access-group
Specify access control for packets
accounting
Enable IP accounting on this interface
address
Set the IP address of an interface
authentication
authentication subcommands
bandwidth-percent
Set EIGRP bandwidth limit
broadcast-address
Set the broadcast address of an interface
cgmp
Enable/disable CGMP
directed-broadcast Enable forwarding of directed broadcasts
dvmrp
DVMRP interface commands
hello-interval
Configures IP-EIGRP hello interval
helper-address
Specify a destination address for UDP broadcasts
hold-time
Configures IP-EIGRP hold time
.
.
.
Router(config-if)# ip
xlii
Table 2
Command
Comment
Router(config-if)# ip address ?
A.B.C.D
IP address
negotiated
IP Address negotiated over PPP
Router(config-if)# ip address
xliii
have variables set to certain default values. In these cases, the default form of the command enables the
command and sets the variables to their default values. The Cisco IOS software command reference
publications describe the effect of the default form of a command if the command functions differently
than the no form.
It might take a minute or two to save the configuration. After the configuration has been saved, the
following output appears:
[OK]
Router#
On most platforms, this task saves the configuration to NVRAM. On the Class A Flash file system
platforms, this task saves the configuration to the location specified by the CONFIG_FILE environment
variable. The CONFIG_FILE variable defaults to NVRAM.
For more information on the search and filter functionality, refer to the Using the Command-Line
Interface chapter in the Cisco IOS Configuration Fundamentals Configuration Guide.
xliv
Memory recommendations
Feature descriptions
Release notes are intended to be release-specific for the most current release, and the information
provided in these documents may not be cumulative in providing information about features that first
appeared in previous releases.
xlv
xlvi
IP Overview
The Internet Protocol (IP) is a packet-based protocol used to exchange data over computer networks. IP
handles addressing, fragmentation, reassembly, and protocol demultiplexing. It is the foundation on
which all other IP protocols (collectively referred to as the IP Protocol suite) are built. A network-layer
protocol, IP contains addressing and control information that allows data packets to be routed.
The Transmission Control Protocol (TCP) is built upon the IP layer. TCP is a connection-oriented
protocol that specifies the format of data and acknowledgments used in the transfer of data. TCP also
specifies the procedures that the networking devices use to ensure that the data arrives correctly. TCP
allows multiple applications on a system to communicate concurrently because it handles all
demultiplexing of the incoming traffic among the application programs.
The Cisco implementation of IP provides most of the major services contained in the various protocol
specifications. Cisco IOS software also provides the TCP and User Datagram Protocol (UDP) services
called Echo and Discard, which are described in RFCs 862 and 863, respectively.
Cisco supports both TCP and UDP at the transport layer, for maximum flexibility in services. Cisco also
supports all standards for IP broadcasts.
This overview chapter provides a high-level description of IP. For configuration information, see the
appropriate chapter in this publication.
The Cisco IOS IP Configuration Guide has the following three parts:
IP Routing Protocols
IP Multicast
For information on other network protocols, refer to the Cisco IOS AppleTalk and Novell IPX
Configuration Guide and Cisco IOS Apollo Domain, Banyan VINES, DECnet, ISO CLNS, and XNS
Configuration Guide.
IPC-1
IP Overview
IP Routing Protocols
Server load balancing allows a network administrator to define a virtual server to represent a group of
real servers. For more information on this feature, see the Configuring Server Load Balancing chapter.
Mobile IP, which allows users to roam and maintain connectivity beyond their home subnet while
consistently maintaining their IP address, is described in the Configuring Mobile IP chapter.
IP Routing Protocols
The Cisco implementation of each IP routing protocol is discussed at the beginning of the individual
protocol chapters in this publication.
With any of the IP routing protocols, you must create the routing process, associate networks with the
routing process, and customize the routing protocol for your particular network. You will need to
perform some combination of the tasks in the respective chapters to configure one or more IP routing
protocols.
Support for variable-length subnet masks (VLSMs). Enhanced Interior Gateway Routing Protocol
(Enhanced IGRP), Intermediate System-to-Intermediate System (IS-IS), static routes, and Open
Shortest Path First (OSPF) support VLSMs.
Security needs
Reliability needs
Organizational policies
The chapters in this publication describe the configuration tasks associated with each supported routing
protocol or service. This publication does not provide in-depth information on how to choose routing
protocols; you must choose routing protocols that best suit your needs.
IPC-2
IP Overview
IP Routing Protocols
Note
Many routing protocol specifications refer to routers as gateways, so the word gateway often appears
as part of routing protocol names. However, a router usually is defined as a Layer 3 internetworking
device, whereas a protocol translation gateway usually is defined as a Layer 7 internetworking
device. The reader should understand that regardless of whether a routing protocol name contains the
word gateway, routing protocol activities occur at Layer 3 of the Open System Interconnection
(OSI) reference model.
Integrated IS-IS
A list of neighbor (or peer) routers with which to exchange routing information
The exterior gateway protocol that is supported by Cisco IOS software is Border Gateway Protocol
(BGP).
Multiprotocol BGP is an enhanced BGP that carries routing information for multiple network-layer
protocols and IP multicast routes. BGP carries two sets of routes, one set for unicast routing and one set
for multicast routing. The routes associated with multicast routing are used by Protocol Independent
Multicast (PIM) to build data distribution trees.
IPC-3
IP Overview
IP Multicast
For example, RIP uses a hop-count metric and IGRP uses a five-element vector of metric information.
If routing information is being exchanged between different networks that use different routing
protocols, you can use many configuration options to filter the exchange of routing information.
The Cisco IOS software can handle simultaneous operation of up to 30 dynamic IP routing processes.
The combination of routing processes on a router consists of the following protocols (with the limits
noted):
IP Multicast
IP multicast routing provides an alternative to unicast and broadcast transmission. It allows a host to send
packets to a subset of all hosts, known as group transmission. IP multicast runs on top of the other IP
routing protocols.
In addition to IP multicast routing itself, other multicast features are available, each discussed in a
separate chapter, as follows:
Source Specific Multicast (SSM) is an extension of IP multicast where datagram traffic is forwarded
to receivers from only those multicast sources to which the receivers have explicitly joined.
Bidirectional PIM is a variant of the PIM suite of routing protocols for IP multicast. In bidirectional
mode, datagram traffic is routed only along a bidirectional shared tree that is rooted at the
rendezvous point (RP) for the multicast group.
Multicast Source Discovery Protocol (MSDP) is a mechanism for the router to discover multicast
sources in other PIM domains.
Pragmatic General Multicast (PGM) is a reliable multicast transport protocol for applications that
require ordered, duplicate-free, multicast data delivery from multiple sources to multiple receivers.
The PGM Host feature is the Cisco implementation of the transport layer of the PGM protocol, and
the PGM Router Assist feature is the Cisco implementation of the network layer of the PGM
protocol.
Unidirectional link routing (UDLR) provides a way to forward multicast packets over a physical
unidirectional interface, such as a satellite link.
The Multicast Routing Monitor (MRM) feature is a management diagnostic tool that provides
network fault detection and isolation in a large multicast routing infrastructure. This feature is
described in the Using IP Multicast Tools chapter.
Router-Port Group Management Protocol (RGMP) is a Layer 2 protocol that enables a router to
communicate to a switch (or a networking device that is functioning as a Layer 2 switch) the
multicast group for which the router would like to receive or forward traffic.
IPC-4
Configuring IP Addressing
This chapter describes how to configure IP addressing. For a complete description of the IP addressing
commands in this chapter, refer to the IP Addressing Commands chapter of the Cisco IOS IP
Command Reference, Volume 1 of 3: Addressing and Services publication. To locate documentation of
other commands that appear in this chapter, use the command reference master index, or search online.
At the end of this chapter, the examples in the IP Addressing Examples section illustrate how you
might establish IP addressing in your network.
IPC-7
Configuring IP Addressing
Assigning IP Addresses to Network Interfaces
Table 3
Class
Address or Range
Status
0.0.0.0
1.0.0.0 to 126.0.0.0
127.0.0.0
Reserved
Available
Reserved
128.0.0.0 to 191.254.0.0
191.255.0.0
Available
Reserved
192.0.0.0
192.0.1.0 to 223.255.254
223.255.255.0
Reserved
Available
Reserved
224.0.0.0 to 239.255.255.255
240.0.0.0 to 255.255.255.254
255.255.255.255
Reserved
Broadcast
Purpose
A mask identifies the bits that denote the network number in an IP address. When you use the mask to
subnet a network, the mask is then referred to as a subnet mask.
Note
We only support network masks that use contiguous bits that are flush left against the network field.
The tasks to enable or disable additional, optional, IP addressing features are contained in the following
sections:
IPC-8
Configuring IP Addressing
Assigning IP Addresses to Network Interfaces
Note
There might not be enough host addresses for a particular network segment. For example, suppose
your subnetting allows up to 254 hosts per logical subnet, but on one physical subnet you must have
300 host addresses. Using secondary IP addresses on the routers or access servers allows you to have
two logical subnets using one physical subnet.
Many older networks were built using Level 2 bridges, and were not subnetted. The judicious use of
secondary addresses can aid in the transition to a subnetted, router-based network. Routers on an
older, bridged segment can easily be made aware that many subnets are on that segment.
Two subnets of a single network might otherwise be separated by another network. You can create
a single network from subnets that are physically separated by another network by using a secondary
address. In these instances, the first network is extended, or layered on top of the second network.
Note that a subnet cannot appear on more than one active interface of the router at a time.
If any router on a network segment uses a secondary address, all other routers on that same segment
must also use a secondary address from the same network or subnet.
To assign multiple IP addresses to network interfaces, use the following command in interface
configuration mode:
Command
Purpose
Note
IP routing protocols sometimes treat secondary addresses differently when sending routing updates.
See the description of IP split horizon in the Configuring IP Enhanced IGRP, Configuring IGRP,
or Configuring RIP chapters for details.
See the Creating a Network from Separated Subnets Example section at the end of this chapter for an
example of creating a network from separated subnets.
IPC-9
Configuring IP Addressing
Assigning IP Addresses to Network Interfaces
You can use the all 0s and all 1s subnet (131.108.255.0), even though it is discouraged. Configuring
interfaces for the all 1s subnet is explicitly allowed. However, if you need the entire subnet space for
your IP address, use the following command in global configuration mode to enable subnet 0:
Command
Purpose
Router(config)# ip subnet-zero
Enables the use of subnet zero for interface addresses and routing
updates.
IP Classless Routing
128.0.0.0/8
128.20.4.1
128.20.0.0
128.20.1.0
ip classless
128.20.3.0
128.20.4.1
S3286
128.20.2.0
Host
If you disable classless routing, and a router receives packets destined for a subnet of a network that has
no network default route, the router discards the packet. Figure 2 shows a router in network 128.20.0.0
connected to subnets 128.20.1.0, 128.20.2.0, and 128.20.3.0. Suppose the host sends a packet to
128.20.4.1. Because there is no network default route, the router discards the packet.
IPC-10
Configuring IP Addressing
Assigning IP Addresses to Network Interfaces
Figure 2
No IP Classless Routing
128.0.0.0/8
128.20.4.1
128.20.0.0
Bit bucket
128.20.1.0
128.20.3.0
128.20.4.1
S3285
128.20.2.0
Host
To prevent the Cisco IOS software from forwarding packets destined for unrecognized subnets to the best
supernet route possible, use the following command in global configuration mode:
Command
Purpose
Router(config)# no ip classless
Serial interfaces using High-Level Data Link Control (HDLC), PPP, Link Access Procedure,
Balanced (LAPB), and Frame Relay encapsulations, as well as Serial Line Internet Protocol (SLIP)
tunnel interfaces, can be unnumbered. Serial interfaces using Frame Relay encapsulation can also
be unnumbered, but the interface must be a point-to-point subinterface. It is not possible to use the
unnumbered interface feature with X.25 or Switched Multimegabit Data Service (SMDS)
encapsulations.
You cannot use the ping EXEC command to determine whether the interface is up, because the
interface has no IP address. The Simple Network Management Protocol (SNMP) can be used to
remotely monitor interface status.
If you are configuring Intermediate System-to-Intermediate System (IS-IS) across a serial line, you
should configure the serial interfaces as unnumbered, which allows you to conform with RFC 1195,
which states that IP addresses are not required on each interface.
IPC-11
Configuring IP Addressing
Configuring Address Resolution Methods
Note
Using an unnumbered serial line between different major networks requires special care. If, at each
end of the link, different major networks are assigned to the interfaces you specified as unnumbered,
any routing protocols running across the serial line should be configured to not advertise subnet
information.
To enable IP processing on an unnumbered serial interface, use the following command in interface
configuration mode:
Command
Purpose
The interface you specify must be the name of another interface in the router that has an IP address, not
another unnumbered interface.
The interface you specify also must be enabled (listed as up in the show interfaces command display).
See the Serial Interfaces Configuration Example section at the end of this chapter for an example of
how to configure serial interfaces.
IPC-12
Configuring IP Addressing
Configuring Address Resolution Methods
The software uses three forms of address resolution: Address Resolution Protocol (ARP), proxy ARP,
and Probe (similar to ARP). The software also uses the Reverse Address Resolution Protocol (RARP).
ARP, proxy ARP, and RARP are defined in RFCs 826, 1027, and 903, respectively. Probe is a protocol
developed by the Hewlett-Packard Company (HP) for use on IEEE-802.3 networks.
ARP is used to associate IP addresses with media or MAC addresses. Taking an IP address as input, ARP
determines the associated media address. Once a media or MAC address is determined, the IP address
or media address association is stored in an ARP cache for rapid retrieval. Then the IP datagram is
encapsulated in a link-layer frame and sent over the network. Encapsulation of IP datagrams and ARP
requests and replies on IEEE 802 networks other than Ethernet is specified by the Subnetwork Access
Protocol (SNAP).
RARP works the same way as ARP, except that the RARP request packet requests an IP address instead
of a local data-link address. Use of RARP requires a RARP server on the same network segment as the
router interface. RARP often is used by diskless nodes that do not know their IP addresses when they
boot. The Cisco IOS software attempts to use RARP if it does not know the IP address of an interface at
startup. Also, Cisco routers can act as RARP servers by responding to RARP requests that they are able
to answer. See the Configure Additional File Transfer Functions chapter in the Cisco IOS
Configuration Fundamentals Configuration Guide to learn how to configure a router as a RARP server.
The tasks required to set address resolution are contained in the following sections:
Purpose
IPC-13
Configuring IP Addressing
Configuring Address Resolution Methods
Use the following command in interface configuration mode to set the length of time an ARP cache entry
will stay in the cache:
Command
Purpose
Sets the length of time an ARP cache entry will stay in the cache.
To display the type of ARP being used on a particular interface and also display the ARP timeout value,
use the show interfaces EXEC command. Use the show arp EXEC command to examine the contents
of the ARP cache. Use the show ip arp EXEC command to show IP entries. To remove all nonstatic
entries from the ARP cache, use the clear arp-cache privileged EXEC command.
Purpose
Purpose
Router(config-if)# ip proxy-arp
IPC-14
Configuring IP Addressing
Configuring Address Resolution Methods
Purpose
Step 1
Step 2
To create larger mobility areas, you must first redistribute the mobile routes into your Interior Gateway
Protocol (IGP). The IGP must support host routes. You can use Enhanced Interior Gateway Routing
Protocol (IGRP), Open Shortest Path First (OSPF), IS-IS, or RIPv2. To redistribute the mobile routes
into your existing IGP configuration, use the following commands in configuration mode:
Command
Purpose
Step 1
Step 2
or
Router(config)# default-metric bandwidth delay
reliability loading mtu
Step 3
Mobile routes will always be preferred over a subnet boundary or summarized route because they are
more specific. It is important to ensure that configured or redistributed static routes do not include any
host routes for the potentially mobile hosts; otherwise, a longest match could come up with two routes
and cause ambiguity. Mobile routes will be seen as external routes to the configured routing protocol,
even within a summarization area; therefore, they will not be properly summarized by default. This is
the case even when these routes are advertised at a summarization boundary, if mobile hosts are not on
their home subnet.
IPC-15
Configuring IP Addressing
Configuring Address Resolution Methods
To keep track of domain names, IP has defined the concept of a name server, whose job is to hold a cache
(or database) of names mapped to IP addresses. To map domain names to IP addresses, you must first
identify the host names, then specify a name server, and enable the Domain Naming System (DNS), the
global naming scheme of the Internet that uniquely identifies network devices. These tasks are described
in the following sections:
Purpose
Purpose
Defines a default domain name that the Cisco IOS software will use
to complete unqualified host names.
See the IP Domains Example section at the end of this chapter for an example of establishing IP
domains.
IPC-16
Configuring IP Addressing
Configuring Address Resolution Methods
Purpose
Router(config)# ip name-server
server-address1
[server-address2...server-address6]
Purpose
See the Dynamic Lookup Example section at the end of this chapter for an example of enabling the
DNS.
Purpose
Router(config)# no ip domain-lookup
nsap
IPC-17
Configuring IP Addressing
Configuring Address Resolution Methods
Purpose
To configure HP Probe Proxy, use the following command in global configuration mode:
Command
Purpose
Enters the host name of an HP host (for which the router is acting as
a proxy) into the host table.
See the HP Hosts on a Network Segment Example section at the end of this chapter for an example of
configuring HP hosts on a network segment.
IPC-18
Configuring IP Addressing
Configuring Address Resolution Methods
Figure 3 illustrates four routers connected to an NBMA network. Within the network are ATM or SMDS
switches necessary for the routers to communicate with each other. Assume that the switches have virtual
circuit (VC) connections represented by hops 1, 2, and 3 of the figure. When Router A attempts to
forward an IP packet from the source host to the destination host, NHRP is triggered. On behalf of the
source host, Router A sends an NHRP request packet encapsulated in an IP packet, which takes three
hops across the network to reach Router D, connected to the destination host. After receiving a positive
NHRP reply, Router D is determined to be the NBMA next hop, and Router A sends subsequent IP
packets for the destination to Router D in one hop.
Figure 3
Router C
Hop 3
NBMA network
Subsequent
IP packets
Hop 2
IP
NHRP
Router A
Router B
S3229
Hop 1
Source
host
With NHRP, once the NBMA next hop is determined, the source either starts sending data packets to the
destination (in a connectionless NBMA network such as SMDS) or establishes a virtual circuit VC
connection to the destination with the desired bandwidth and quality of service (QoS) characteristics (in
a connection-oriented NBMA network such as ATM).
Other address resolution methods can be used while NHRP is deployed. IP hosts that rely upon the
Logical IP Subnet (LIS) model might require ARP servers and services over NBMA networks, and
deployed hosts might not implement NHRP, but might continue to support ARP variations. NHRP is
designed to eliminate the suboptimal routing that results from the LIS model, and can be deployed with
existing ARP services without interfering with them.
NHRP is used to facilitate building a Virtual Private Network (VPN). In this context, a VPN consists of
a virtual Layer 3 network that is built on top of an actual Layer 3 network. The topology you use over
the VPN is largely independent of the underlying network, and the protocols you run over it are
completely independent of it.
Connected to the NBMA network are one or more stations that implement NHRP, and are known as Next
Hop Servers. All routers running Cisco IOS Release 10.3 or later releases can implement NHRP and,
thus, can act as Next Hop Servers.
IPC-19
Configuring IP Addressing
Configuring Address Resolution Methods
Each Next Hop Server serves a set of destination hosts, which might be directly connected to the NBMA
network. Next Hop Servers cooperatively resolve the NBMA next hop addresses within their NBMA
network. Next Hop Servers typically also participate in protocols used to disseminate routing
information across (and beyond the boundaries of) the NBMA network, and might support ARP service.
A Next Hop Server maintains a next hop resolution cache, which is a table of network layer address
to NBMA address mappings. The table is created from information gleaned from NHRP register packets
extracted from NHRP request or reply packets that traverse the Next Hop Server as they are forwarded,
or through other means such as ARP and preconfigured tables.
Protocol Operation
NHRP requests traverse one or more hops within an NBMA subnetwork before reaching the station that
is expected to generate a response. Each station (including the source station) chooses a neighboring
Next Hop Server to forward the request to. The Next Hop Server selection procedure typically involves
performing a routing decision based upon the network layer destination address of the NHRP request.
Ignoring error situations, the NHRP request eventually arrives at a station that generates an NHRP reply.
This responding station either serves the destination, is the destination itself, or is a client that specified
it should receive NHRP requests when it registered with its server. The responding station generates a
reply using the source address from within the NHRP packet to determine where the reply should be sent.
Changing the Time Period NBMA Addresses Are Advertised as Valid (Optional)
IPC-20
Configuring IP Addressing
Configuring Address Resolution Methods
Purpose
See the Logical NBMA Example section and the NHRP over ATM Example section at the end of
this chapter for examples of enabling NHRP.
Purpose
Purpose
To configure multiple networks that the Next Hop Server serves, repeat the ip nhrp nhs command with
the same Next Hop Server address, but different IP network addresses. To configure additional Next Hop
Servers, repeat the ip nhrp nhs command.
IPC-21
Configuring IP Addressing
Configuring Address Resolution Methods
Purpose
Purpose
To apply the IP access list to the interface, use the following command in interface configuration mode:
Command
Purpose
IPC-22
Configuring IP Addressing
Configuring Address Resolution Methods
Purpose
Specifies how many data packets are sent to a destination before NHRP
is attempted.
Restrictions
Cisco IOS releases prior to Release 12.0 implemented NHRP draft version 4. Cisco IOS Release 12.0
and later implements NHRP draft version 11. These versions are not compatible. Therefore, all routers
running NHRP in a network must run the same version of NHRP in order to communicate with each
other. All routers must run Cisco IOS Release 12.0 and later, or all routers must run a release prior to
Release 12.0, but not a combination of the two.
Additional restrictions:
BGP must be configured in the network where these enhancements are running.
Prerequisites
Before you configure the feature whereby NHRP initiation is based on traffic rate, the following
conditions must exist in the router:
If you have CEF switching or dCEF switching and you want NHRP to work (whether with default values
or changed values), the ip cef accounting non-recursive command must be configured.
IPC-23
Configuring IP Addressing
Configuring Address Resolution Methods
Purpose
You can change the sampling time period; that is, you can change the length of time over which the
average trigger rate or teardown rate is calculated. By default, the period is 30 seconds; the range is from
30 to 300 seconds in 30-second increments. This period is for calculations of aggregate traffic rate
internal to Cisco IOS software only, and it represents a worst case time period for taking action. In some
cases, the software will act sooner, depending on the ramp-up and fall-off rate of the traffic.
To change the sampling time period during which threshold rates are averaged, use the following
command in global configuration mode:
Command
Purpose
IPC-24
Configuring IP Addressing
Configuring Address Resolution Methods
If your Cisco hardware has a Virtual Interface Processor, version 2 adapter, you must perform the
following task to change the sampling time. By default, the port adapter sends the traffic statistics to the
Route Processor every 10 seconds. If you are using NHRP in dCEF switching mode, you must change
this update rate to 5 seconds. To do so, use the following command in global configuration mode:
Command
Purpose
Step 1
Command
Purpose
or
access-list access-list-number {deny | permit}
protocol source source-wildcard destination
destination-wildcard [precedence precedence] [tos tos]
[log]
Step 2
Step 3
For an example of setting the load interval, see the section Changing the Rate for Triggering SVCs
Example at the end of this chapter. For an example of applying rates to destinations, see the section
Applying NHRP Rates to Specific Destinations Example at the end of this chapter.
Purpose
IPC-25
Configuring IP Addressing
Configuring Address Resolution Methods
Purpose
Purpose
If an NHRP reply packet being forwarded by a Next Hop Server contains the IP address of that server,
the Next Hop Server generates an error indication of type NHRP Loop Detected and discards the reply.
Purpose
IPC-26
Configuring IP Addressing
Enabling IP Routing
Purpose
Step 1
Step 2
The tunnel key should correspond to the NHRP network identifier specified in the ip nhrp network-id
interface configuration command. See the NHRP on a Multipoint Tunnel Example section at the end
of this chapter for an example of NHRP configured on a multipoint tunnel.
Purpose
Enabling IP Routing
IP routing is automatically enabled in the Cisco IOS software. If you choose to set up the router to bridge
rather than route IP datagrams, you must disable IP routing. To re-enable IP routing if it has been
disabled, use the following command in global configuration mode:
Command
Purpose
Router(config)# ip routing
Enables IP routing.
When IP routing is disabled, the router will act as an IP end host for IP packets destined for or sourced
by it, whether or not bridging is enabled for those IP packets not destined for the device. To re-enable IP
routing, use the ip routing command.
IPC-27
Configuring IP Addressing
Enabling IP Routing
Proxy ARP
When IP routing is disabled, the default gateway feature and the router discovery client are enabled, and
proxy ARP is disabled. When IP routing is enabled, the default gateway feature is disabled and you can
configure proxy ARP and the router discovery servers.
Proxy ARP
The most common method of learning about other routes is by using proxy ARP. Proxy ARP, defined in
RFC 1027, enables an Ethernet host with no knowledge of routing to communicate with hosts on other
networks or subnets. Such a host assumes that all hosts are on the same local Ethernet, and that it can
use ARP to determine their hardware addresses.
Under proxy ARP, if a device receives an ARP request for a host that is not on the same network as the
ARP request sender, the Cisco IOS software evaluates whether it has the best route to that host. If it does,
the device sends an ARP reply packet giving its own Ethernet hardware address. The host that sent the
ARP request then sends its packets to the device, which forwards them to the intended host. The software
treats all networks as if they are local and performs ARP requests for every IP address. This feature is
enabled by default. If it has been disabled, see the section Enabling Proxy ARP earlier in this chapter.
Proxy ARP works as long as other routers support it. Many other routers, especially those loaded with
host-based routing software, do not support it.
Default Gateway
Another method for locating routes is to define a default router (or gateway). The Cisco IOS software
sends all nonlocal packets to this router, which either routes them appropriately or sends an IP Control
Message Protocol (ICMP) redirect message back, telling the router of a better route. The ICMP redirect
message indicates which local router the host should use. The software caches the redirect messages and
routes each packet thereafter as efficiently as possible. The limitations of this method are that there is
no means of detecting when the default router has gone down or is unavailable, and there is no method
of picking another device if one of these events should occur.
To set up a default gateway for a host, use the following command in global configuration mode:
Command
Purpose
To display the address of the default gateway, use the show ip redirects EXEC command.
IPC-28
Configuring IP Addressing
Enabling IP Routing
When a higher-priority router is discovered (the list of routers is polled at 5-minute intervals).
When a TCP connection is about to time out because of excessive retransmissions. In this case, the
server flushes the ARP cache and the ICMP redirect cache, and picks a new default router in an
attempt to find a successful route to the destination.
Purpose
Router(config-if)# ip irdp
Purpose
IPC-29
Configuring IP Addressing
Enabling IP Bridging
Command
Purpose
The Cisco IOS software can proxy-advertise other machines that use IRDP; however, this practice is not
recommended because it is possible to advertise nonexistent machines or machines that are down.
Enabling IP Bridging
To transparently bridge IP on an interface, use the following commands beginning in global
configuration mode:
Command
Purpose
Step 1
Router(config)# no ip routing
Disables IP routing.
Step 2
Step 3
For more information about configuring integrated routing and bridging, refer to the Configuring
Transparent Bridging chapter in the Cisco IOS Bridging and IBM Networking Configuration Guide.
IPC-30
Configuring IP Addressing
Configuring Broadcast Packet Handling
See the Broadcasting Examples section at the end of this chapter for broadcasting configuration
examples.
IPC-31
Configuring IP Addressing
Configuring Broadcast Packet Handling
To enable forwarding of IP directed broadcasts, use the following command in interface configuration
mode:
Command
Purpose
Router(config-if)# ip directed-broadcast
[access-list-number]
Purpose
To specify which protocols will be forwarded, use the following command in global configuration mode:
Command
Purpose
See the Helper Addresses Example section at the end of this chapter for an example of how to
configure helper addresses.
IPC-32
Configuring IP Addressing
Configuring Broadcast Packet Handling
Purpose
Router(config-if)# ip broadcast-address
[ip-address]
If the router does not have nonvolatile memory, and you need to specify the broadcast address to use
before the software is configured, you must change the IP broadcast address by setting jumpers in the
processor configuration register. Setting bit 10 causes the device to use all 0s. Bit 10 interacts with bit
14, which controls the network and subnet portions of the broadcast address. Setting bit 14 causes the
device to include the network and subnet portions of its address in the broadcast address. Table 4 shows
the combined effect of setting bits 10 and 14.
Table 4
Bit 14
Bit 10
Address (<net><host>)
Out
Out
<ones><ones>
Out
In
<zeros><zeros>
In
In
<net><zeros>
In
Out
<net><ones>
Some router platforms allow the configuration register to be set through the software; see the
Rebooting chapter of the Cisco IOS Configuration Fundamentals Configuration Guide for details. For
other router platforms, the configuration register must be changed through hardware; see the appropriate
hardware installation and maintenance manual for your system.
Flooding IP Broadcasts
You can allow IP broadcasts to be flooded throughout your internetwork in a controlled fashion using
the database created by the bridging spanning-tree protocol. Turning on this feature also prevents loops.
In order to support this capability, the routing software must include the transparent bridging, and
bridging must be configured on each interface that is to participate in the flooding. If bridging is not
configured on an interface, it still will be able to receive broadcasts. However, the interface will never
forward broadcasts it receives, and the router will never use that interface to send broadcasts received on
a different interface.
Packets that are forwarded to a single network address using the IP helper address mechanism can be
flooded. Only one copy of the packet is sent on each network segment.
IPC-33
Configuring IP Addressing
Configuring Broadcast Packet Handling
In order to be considered for flooding, packets must meet the following criteria. (Note that these are the
same conditions used to consider packet forwarding using IP helper addresses.)
The packet must be a Trivial File Transfer Protocol (TFTP), DNS, Time, NetBIOS, ND, or BOOTP
packet, or a UDP protocol specified by the ip forward-protocol udp global configuration
command.
A flooded UDP datagram is given the destination address you specified with the ip broadcast-address
command in the interface configuration mode on the output interface. The destination address can be set
to any desired address. Thus, the destination address may change as the datagram propagates through
the network. The source address is never changed. The TTL value is decremented.
After a decision has been made to send the datagram out on an interface (and the destination address
possibly changed), the datagram is handed to the normal IP output routines and is, therefore, subject to
access lists, if they are present on the output interface.
To use the bridging spanning-tree database to flood UDP datagrams, use the following command in
global configuration mode:
Command
Purpose
Router(config)# ip forward-protocol
spanning-tree
If no actual bridging is desired, you can configure a type-code bridging filter that will deny all packet
types from being bridged. Refer to the Configuring Transparent Bridging chapter of the Cisco IOS
Bridging and IBM Networking Configuration Guide for more information about using access lists to
filter bridged traffic. The spanning-tree database is still available to the IP forwarding code to use for the
flooding.
Purpose
IPC-34
Configuring IP Addressing
Configuring Network Address Translation
NAT Applications
NAT has several applications. Use it for the following purposes:
You want to connect to the Internet, but not all your hosts have globally unique IP addresses. NAT
enables private IP internetworks that use nonregistered IP addresses to connect to the Internet. NAT
is configured on the router at the border of a stub domain (referred to as the inside network) and a
public network such as the Internet (referred to as the outside network). NAT translates the internal
local addresses to globally unique IP addresses before sending packets to the outside network.
You must change your internal addresses. Instead of changing them, which can be a considerable
amount of work, you can translate them by using NAT.
You want to do basic load sharing of TCP traffic. You can map a single global IP address to many
local IP addresses by using the TCP load distribution feature.
As a solution to the connectivity problem, NAT is practical only when relatively few hosts in a stub
domain communicate outside of the domain at the same time. When this is the case, only a small subset
of the IP addresses in the domain must be translated into globally unique IP addresses when outside
communication is necessary, and these addresses can be reused when no longer in use.
Benefits
A significant advantage of NAT is that it can be configured without requiring changes to hosts or routers
other than those few routers on which NAT will be configured. As discussed previously, NAT may not
be practical if large numbers of hosts in the stub domain communicate outside of the domain.
Furthermore, some applications use embedded IP addresses in such a way that it is impractical for a NAT
device to translate. These applications may not work transparently or at all through a NAT device. NAT
also hides the identity of hosts, which may be an advantage or a disadvantage.
A router configured with NAT will have at least one interface to the inside and one to the outside. In a
typical environment, NAT is configured at the exit router between a stub domain and backbone. When a
packet is leaving the domain, NAT translates the locally significant source address into a globally unique
address. When a packet is entering the domain, NAT translates the globally unique destination address
into a local address. If more than one exit point exists, each NAT must have the same translation table.
If the software cannot allocate an address because it has run out of addresses, it drops the packet and
sends an ICMP host unreachable packet.
IPC-35
Configuring IP Addressing
Configuring Network Address Translation
A router configured with NAT must not advertise the local networks to the outside. However, routing
information that NAT receives from the outside can be advertised in the stub domain as usual.
NAT Terminology
As mentioned previously, the term inside refers to those networks that are owned by an organization and
that must be translated. Inside this domain, hosts will have addresses in the one address space, while on
the outside, they will appear to have addresses in another address space when NAT is configured. The
first address space is referred to as the local address space and the second is referred to as the global
address space.
Similarly, outside refers to those networks to which the stub network connects, and which are generally
not under the control of the organization. Hosts in outside networks can be subject to translation also,
and can thus have local and global addresses.
To summarize, NAT uses the following definitions:
Inside local addressThe IP address that is assigned to a host on the inside network. The address
is probably not a legitimate IP address assigned by the Network Information Center (NIC) or service
provider.
Inside global addressA legitimate IP address (assigned by the NIC or service provider) that
represents one or more inside local IP addresses to the outside world.
Outside local addressThe IP address of an outside host as it appears to the inside network. Not
necessarily a legitimate address, it was allocated from address space routable on the inside.
Outside global addressThe IP address assigned to a host on the outside network by the owner of
the host. The address was allocated from globally routable address or network space.
IPC-36
Configuring IP Addressing
Configuring Network Address Translation
Static translation establishes a one-to-one mapping between your inside local address and an inside
global address. Static translation is useful when a host on the inside must be accessible by a fixed
address from the outside.
Dynamic translation establishes a mapping between an inside local address and a pool of global
addresses. An access-list or a route-map can be specified for dynamic translations. Route maps
allow you to match any combination of access-list, new-hop IP address, and output interface to
determine which pool to use.
Figure 4 illustrates a router that is translating a source address inside a network to a source address
outside the network.
NAT Inside Source Translation
Inside
1.1.1.2
Outside
5
DA
1.1.1.1
3
SA
2.2.2.2
4
DA
2.2.2.2
S4790
Figure 4
Internet
1.1.1.1
SA
1.1.1.1
1
Inside
interface
Host B
9.6.7.3
Outside
interface
2
NAT table
Inside Local
IP Address
Inside Global
IP Address
1.1.1.2
1.1.1.1
2.2.2.3
2.2.2.2
The following process describes inside source address translation, as shown in Figure 4:
1.
2.
The first packet that the router receives from host 1.1.1.1 causes the router to check its NAT table:
If a static translation entry was configured, the router goes to Step 3.
If no translation entry exists, the router determines that Source-Address (SA) 1.1.1.1 must be
translated dynamically, selects a legal, global address from the dynamic address pool, and
creates a translation entry. This type of entry is called a simple entry.
3.
The router replaces the inside local source address of host 1.1.1.1 with the global address of the
translation entry and forwards the packet.
4.
Host B receives the packet and responds to host 1.1.1.1 by using the inside global IP DestinationAddress (DA) 2.2.2.2.
5.
When the router receives the packet with the inside global IP address, it performs a NAT table
lookup by using the inside global address as a key. It then translates the address to the inside local
address of host 1.1.1.1 and forwards the packet to host 1.1.1.1.
IPC-37
Configuring IP Addressing
Configuring Network Address Translation
Host 1.1.1.1 receives the packet and continues the conversation. The router performs Steps 2 through 5
for each packet.
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
The previous steps are the minimum you must configure. You could also configure multiple inside and
outside interfaces.
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Note
The access list must permit only those addresses that are to be translated. (Remember that there is an
implicit deny all at the end of each access list.) An access list that is too permissive can lead to
unpredictable results.
IPC-38
Configuring IP Addressing
Configuring Network Address Translation
Packets that enter the router through the inside interface and packets sourced from the router are
checked against the access list for possible NAT candidates. The access list is used to specify which
traffic is to be translated.
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
See the Dynamic Inside Source Translation Example section at the end of this chapter for examples of
dynamic inside source translation.
IPC-39
Configuring IP Addressing
Configuring Network Address Translation
Figure 5
Inside
5
DA
1.1.1.1
3
SA
2.2.2.2
Internet
SA
1.1.1.1
1
Host B
9.6.7.3
4
S4791
1.1.1.2
4
DA
2.2.2.2
DA
2.2.2.2
1.1.1.1
2
Host C
6.5.4.7
NAT table
Protocol
Inside Local IP
address:port
TCP
TCP
1.1.1.2:1723
1.1.1.1:1024
6.5.4.7:23
9.6.7.3:23
The router performs the following process in overloading inside global addresses, as shown in Figure 5.
Both host B and host C believe they are communicating with a single host at address 2.2.2.2. They are
actually communicating with different hosts; the port number is the differentiator. In fact, many inside
hosts could share the inside global IP address by using many port numbers.
1.
2.
The first packet that the router receives from host 1.1.1.1 causes the router to check its NAT table:
If no translation entry exists, the router determines that address 1.1.1.1 must be translated, and
from that translation and saves enough information to be able to translate back. This type of
entry is called an extended entry.
3.
The router replaces the inside local source address 1.1.1.1 with the selected global address and
forwards the packet.
4.
Host B receives the packet and responds to host 1.1.1.1 by using the inside global IP address 2.2.2.2.
5.
When the router receives the packet with the inside global IP address, it performs a NAT table
lookup, using the protocol, inside global address and port, and outside address and port as a key;
translates the address to inside local address 1.1.1.1; and forwards the packet to host 1.1.1.1.
Host 1.1.1.1 receives the packet and continues the conversation. The router performs Steps 2 through 5
for each packet.
To configure overloading of inside global addresses, use the following commands in global
configuration mode:
Command
Purpose
Step 1
Step 2
IPC-40
Configuring IP Addressing
Configuring Network Address Translation
Command
Purpose
Step 3
Step 4
Step 5
Step 6
Step 7
Note
The access list must permit only those addresses that are to be translated. (Remember that there is an
implicit deny all at the end of each access list.) An access list that is too permissive can lead to
unpredictable results.
Packets that enter the router through the inside interface and packets sourced from the router are
checked against the access list for possible NAT candidates. The access list is used to specify which
traffic is to be translated.
See the Overloading Inside Global Addresses Example section at the end of this chapter for an
example of overloading inside global addresses.
IPC-41
Configuring IP Addressing
Configuring Network Address Translation
Figure 6
1.1.1.1
Internet
Host C
1.1.1.3
SA=1.1.1.1 DA=x.x.x.x
DNS response from x.x.x.x
SA=1.1.1.1 DA=3.3.3.3
SA=2.2.2.2 DA=1.1.1.3
Inside Global
IP Address
Outside Global
IP Address
Outside Local
IP Address
1.1.1.1
2.2.2.2
1.1.1.3
3.3.3.3
S4792
NAT table
Inside Local
IP Address
The router performs the following process when translating overlapping addresses:
1.
The user at host 1.1.1.1 opens a connection to host C by name, requesting a name-to-address lookup
from a DNS server.
2.
The router intercepts the DNS reply and translates the returned address if there is an overlap (that
is, the resulting legal address resides illegally in the inside network). To translate the return address,
the router creates a simple translation entry mapping the overlapping address 1.1.1.3 to an address
from a separately configured, outside local address pool.
The router examines every DNS reply from everywhere, ensuring that the IP address is not in the
stub network. If it is, the router translates the address.
3.
4.
The router sets up translations mapping inside local and global addresses to each other, and outside
global and local addresses to each other.
5.
The router replaces the SA with the inside global address and replaces the DA with the outside
global address.
6.
7.
The router does a lookup, replaces the DA with the inside local address, and replaces the SA with
the outside local address.
8.
Host 1.1.1.1 receives the packet and the conversation continues, using this translation process.
IPC-42
Configuring IP Addressing
Configuring Network Address Translation
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Note
The access list must permit only those addresses that are to be translated. (Remember that there is an
implicit deny all at the end of each access list.) An access list that is too permissive can lead to
unpredictable results.
See the Translating Overlapping Address Example section at the end of this chapter for an example of
translating an overlapping address.
IPC-43
Configuring IP Addressing
Configuring Network Address Translation
addresses from a rotary pool. Allocation is done on a round-robin basis, and only when a new connection
is opened from the outside to the inside. Non-TCP traffic is passed untranslated (unless other translations
are in effect). Figure 7 illustrates this feature.
Figure 7
Inside
1
DA
1.1.1.127
1.1.1.1
DA
1.1.1.1
3
Real
hosts
1.1.1.2
9.6.7.3
Intranet
5
SA
1.1.1.127
4
SA
1.1.1.1
1.1.1.3
6.5.4.7
Virtual
host
NAT table
TCP
TCP
TCP
1.1.1.1:23
1.1.1.2:23
1.1.1.3:23
1.1.1.127
9.6.7.5:3058
6.5.4.7:4371
9.6.7.3:3062
S4804
Protocol
Inside Local IP
address:port
The router performs the following process when translating rotary addresses:
1.
The user on host B (9.6.7.3) opens a connection to the virtual host at 1.1.1.127.
2.
The router receives the connection request and creates a new translation, allocating the next real host
(1.1.1.1) for the inside local IP address.
3.
The router replaces the destination address with the selected real host address and forwards the
packet.
4.
5.
The router receives the packet, performs a NAT table lookup using the inside local address and port
number, and the outside address and port number as the key. The router then translates the source
address to the address of the virtual host and forwards the packet.
The next connection request will cause the router to allocate 1.1.1.2 for the inside local address.
To configure destination address rotary translation, use the following commands beginning in global
configuration mode. These commands allow you to map one virtual host to many real hosts. Each new
TCP session opened with the virtual host will be translated into a session with a different real host.
IPC-44
Configuring IP Addressing
Configuring Network Address Translation
Command
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Note
The access list must permit only those addresses that are to be translated. (Remember that there is an
implicit deny all at the end of each access list.) An access list that is too permissive can lead to
unpredictable results.
See the ping Command Example section at the end of this chapter for an example of rotary translation.
Purpose
If you have configured overloading, you have more control over translation entry timeout, because each
entry contains more context about the traffic using it. To change timeouts on extended entries, use the
following commands in global configuration mode as needed:
Command
Purpose
IPC-45
Configuring IP Addressing
Configuring Network Address Translation
Command
Purpose
Command
Purpose
To display translation information, use either of the following commands in EXEC mode:
Command
Purpose
IPC-46
Configuring IP Addressing
Monitoring and Maintaining IP Addressing
To specify a port other than the default port, use the following command in global configuration mode:
Command
Purpose
Purpose
Removes one or all entries from the host name and address
cache.
IPC-47
Configuring IP Addressing
Monitoring and Maintaining IP Addressing
To specify the format in which netmasks appear for the current session, use the following command in
EXEC mode:
Command
Purpose
To configure the format in which netmasks appear for an individual line, use the following command in
line configuration mode:
Command
Purpose
Purpose
Displays the masks used for network addresses and the number
of subnets using each mask.
IPC-48
Configuring IP Addressing
IP Addressing Examples
Command
Purpose
See the ping Command Example section at the end of this chapter for an example of pinging.
Purpose
The NHRP cache can contain static entries caused by statically configured addresses and dynamic
entries caused by the Cisco IOS software learning addresses from NHRP packets. To clear static entries,
use the no ip nhrp map command in interface configuration mode. To clear the NHRP cache of dynamic
entries, use the following command in EXEC mode:
Command
Purpose
In a dual hub Dynamic Multipoint VPN (DMVPN) environment, when using the clear ip nhrp command
on the hub, you may see the following error message on the spokes:
%NHRP-3-PAKERROR: Receive Error Indication for our Error Indication, code: protocol
generic error(7), offset: 0, data: 00 01 08 00 00 00 00 00 00 FF 00 44 5F F6 00 34
This is only an informational message generated as a part of the NHRP purge notification processing and
will not cause any other issues.
IP Addressing Examples
The following sections provide IP configuration examples:
IP Domains Example
IPC-49
Configuring IP Addressing
IP Addressing Examples
Broadcasting Examples
Network 192.5.10.0
Subnet 172.16.3.0
Router C
Router B
E1
E2
Subnet 172.16.1.0
Router D
S1016a
Router A
Subnet 172.16.2.0
Router C Configuration
interface ethernet 1
ip address 192.5.10.2 255.255.255.0
ip address 131.108.3.2 255.255.255.0 secondary
IPC-50
Configuring IP Addressing
IP Addressing Examples
IP Domains Example
The following example establishes a domain list with several alternate domain names:
ip domain list csi.com
ip domain list telecomprog.edu
ip domain-list merit.edu
IPC-51
Configuring IP Addressing
IP Addressing Examples
Figure 9
Destination
host
ip nhrp network-id 7
Router E
ip nhrp network-id 7
ip nhrp network-id 2
Router D
ip nhrp network-id 7
Router C
Router B
ip nhrp network-id 2
ip nhrp
network-id 2
Router A
S3230
Source
host
The physical configuration of the five routers in Figure 9 might actually be that shown in Figure 10. The
source host is connected to Router A and the destination host is connected to Router E. The same switch
serves all five routers, making one physical NBMA network.
IPC-52
Configuring IP Addressing
IP Addressing Examples
Figure 10
Source
host
Router A
Router B
Router C
Router E
S3231
Destination
host
Router D
Refer again to Figure 9. Initially, before NHRP has resolved any NBMA addresses, IP packets from the
source host to the destination host travel through all five routers connected to the switch before reaching
the destination. When Router A first forwards the IP packet toward the destination host, Router A also
generates an NHRP request for the IP address of the destination host. The request is forwarded to
Router C, whereupon a reply is generated. Router C replies because it is the egress router between the
two logical NBMA networks.
Similarly, Router C generates an NHRP request of its own, to which Router E replies. In this example,
subsequent IP traffic between the source and the destination still requires two hops to traverse the NBMA
network, because the IP traffic must be forwarded between the two logical NBMA networks. Only one
hop would be required if the NBMA network were not logically divided.
IPC-53
Configuring IP Addressing
IP Addressing Examples
Router B Configuration
interface ATM0/0
ip address 10.2.0.2 255.255.0.0
ip nhrp network-id 1
map-group a
atm nsap-address 22.2222.22.222222.2222.2222.2222.2222.2222.2222.22
atm rate-queue 1 10
atm pvc 2 0 5 qsaal
router ospf 1
network 10.0.0.0 0.255.255.255 area 0
map-list a
ip 10.2.0.3 atm-nsap 33.3333.33.333333.3333.3333.3333.3333.3333.3333.33
Router C Configuration
interface ATM0/0
no ip address
atm rate-queue 1 10
atm pvc 2 0 5 qsaal
interface ATM0/0.1 multipoint
ip address 10.1.0.3 255.255.0.0
ip nhrp network-id 1
map-group a
atm nsap-address 33.3333.33.333333.3333.3333.3333.3333.3333.3333.33
atm rate-queue 1 10
interface ATM0/0.2 multipoint
ip address 10.2.0.3 255.255.0.0
ip nhrp network-id 1
map-group b
atm nsap-address 33.3333.33.333333.3333.3333.3333.3333.3333.3333.33
atm rate-queue 1 10
router ospf 1
network 10.0.0.0 0.255.255.255 area 0
neighbor 10.1.0.1 priority 1
neighbor 10.2.0.2 priority 1
IPC-54
Configuring IP Addressing
IP Addressing Examples
map-list a
ip 10.1.0.1 atm-nsap 11.1111.11.111111.1111.1111.1111.1111.1111.1111.11
map-list b
ip 10.2.0.2 atm-nsap 22.2222.22.222222.2222.2222.2222.2222.2222.2222.22
Router B
Loopback address
140.206.59.130
ATM SVC 111 0 85
Router A
Loopback address
140.206.58.130
BGP
autonomous
system 7170
BGP
autonomous
system 102
Router C
Loopback address
140.206.58.131
BGP
autonomous
system 103
14462
Router A Configuration
ip cef
ip cef accounting non-recursive
!
interface Loopback0
ip address 140.206.58.130 255.255.255.255
no ip directed-broadcast
no ip mroute-cache
!
interface ATM0/1/0
no ip address
no ip directed-broadcast
no ip mroute-cache
atm pvc 5 0 5 qsaal
atm pvc 16 0 16 ilmi
!
interface ATM0/1/0.1 multipoint
ip address 140.206.58.55 255.255.255.192
no ip directed-broadcast
ip nhrp network-id 1
ip ospf network point-to-multipoint
atm pvc 102 0 40 aal5snap inarp 5
atm esi-address 525354555355.01
!
IPC-55
Configuring IP Addressing
IP Addressing Examples
interface Fddi1/0/0
ip address 10.2.1.55 255.255.255.0
no ip directed-broadcast
no ip mroute-cache
no keepalive
!
router ospf 1
passive-interface Fddi1/0/0
network 10.2.1.0 0.0.0.255 area 1
network 140.206.58.0 0.0.0.255 area 1
!
router bgp 7170
no synchronization
network 140.206.0.0
neighbor 10.2.1.36 remote-as 102
neighbor 140.206.59.130 remote-as 7170
neighbor 140.206.59.130 update-source Loopback0
neighbor 140.206.59.130 next-hop-self
Router B Configuration
ip cef
ip cef accounting non-recursive
!
interface Loopback0
ip address 140.206.59.130 255.255.255.255
no ip directed-broadcast
no ip mroute-cache
!
interface ATM0/0
no ip address
no ip directed-broadcast
no ip mroute-cache
atm pvc 5 0 5 qsaal
atm pvc 16 0 16 ilmi
!
interface ATM0/0.1 multipoint
ip address 140.206.58.54 255.255.255.192
no ip directed-broadcast
ip nhrp network-id 1
ip nhrp server-only non-caching
ip route-cache same-interface
ip ospf network point-to-multipoint
atm pvc 102 0 40 aal5snap inarp 5
atm pvc 111 0 85 aal5snap inarp 5
atm esi-address 525354555354.01
!
router ospf 1
network 140.206.58.0 0.0.0.255 area 1
network 140.206.59.0 0.0.0.255 area 0
area 0 range 140.206.59.0 255.255.255.0
!
router bgp 7170
no synchronization
bgp cluster-id 1
network 140.206.0.0
aggregate-address 140.206.0.0 255.255.0.0 summary-only
neighbor 140.206.58.130 remote-as 7170
neighbor 140.206.58.130 route-reflector-client
neighbor 140.206.58.130 update-source Loopback0
neighbor 140.206.58.131 remote-as 7170
neighbor 140.206.58.131 route-reflector-client
neighbor 140.206.58.131 update-source Loopback0
IPC-56
Configuring IP Addressing
IP Addressing Examples
Router C Configuration
ip cef
ip cef accounting non-recursive
!
interface Loopback0
ip address 140.206.58.131 255.255.255.255
no ip directed-broadcast
no ip mroute-cache
!
interface ATM0/0
no ip address
no ip directed-broadcast
no ip mroute-cache
atm pvc 5 0 5 qsaal
atm pvc 16 0 16 ilmi
!
interface ATM0/0.1 multipoint
ip address 140.206.58.56 255.255.255.192
no ip directed-broadcast
ip nhrp network-id 1
ip nhrp trigger-svc 100 50
ip ospf network point-to-multipoint
atm pvc 111 0 85 aal5snap inarp 5
atm esi-address 525354555356.01
!
!
interface Fddi4/0/0
ip address 10.3.1.56 255.255.255.0
no ip directed-broadcast
no ip mroute-cache
no keepalive
!
!
router ospf 1
passive-interface Fddi4/0/0
network 10.3.1.0 0.0.0.255 area 1
network 140.206.58.0 0.0.0.255 area 1
!
router bgp 7170
no synchronization
network 140.206.0.0
neighbor 10.3.1.45 remote-as 103
neighbor 140.206.59.130 remote-as 7170
neighbor 140.206.59.130 update-source Loopback0
neighbor 140.206.59.130 next-hop-self
IPC-57
Configuring IP Addressing
IP Addressing Examples
Router B Configuration
interface tunnel 0
no ip redirects
ip address 11.0.0.2 255.0.0.0
ip nhrp map 11.0.0.3 10.0.0.3
ip nhrp network-id 1
ip nhrp nhs 11.0.0.3
tunnel source ethernet 0
tunnel mode gre multipoint
tunnel key 1
interface ethernet 0
ip address 10.0.0.2 255.0.0.0
Router C Configuration
interface tunnel 0
no ip redirects
ip address 11.0.0.3 255.0.0.0
ip nhrp map 11.0.0.4 10.0.0.4
IPC-58
Configuring IP Addressing
IP Addressing Examples
ip nhrp network-id 1
ip nhrp nhs 11.0.0.4
tunnel source ethernet 0
tunnel mode gre multipoint
tunnel key 1
interface ethernet 0
ip address 10.0.0.3 255.0.0.0
Router D Configuration
interface tunnel 0
no ip redirects
ip address 11.0.0.4 255.0.0.0
ip nhrp map 11.0.0.1 10.0.0.1
ip nhrp network-id 1
ip nhrp nhs 11.0.0.1
tunnel source ethernet 0
tunnel mode gre multipoint
tunnel key 1
interface ethernet 0
ip address 10.0.0.4 255.0.0.0
Broadcasting Examples
The Cisco IOS software supports two types of broadcasting: directed broadcasting and flooding. A
directed broadcast is a packet sent to a specific network or series of networks, and a flooded broadcast
is a packet sent to every network. The following sections describe configurations for both types of
broadcasting.
E1
E0
E2
S0
S1009a
Figure 12
IPC-59
Configuring IP Addressing
IP Addressing Examples
A directed broadcast address includes the network or subnet fields. For example, if the network address
is 128.1.0.0, the address 128.1.255.255 indicates all hosts on network 128.1.0.0, which would be a
directed broadcast. If network 128.1.0.0 has a subnet mask of 255.255.255.0 (the third octet is the subnet
field), the address 128.1.5.255 specifies all hosts on subnet 5 of network 128.1.0.0another directed
broadcast.
IPC-60
Configuring IP Addressing
IP Addressing Examples
Figure 13
IP Helper Addresses
Network 192.168.1.0
E1
E2
Server
192.168.1.19
Server
10.44.23.7
S1017a
Network 10.44.0.0
The following example translates all source addresses using a route map.
ip nat pool provider1-space 171.69.232.1 171.69.232.254 prefix-length 24
ip nat pool provider2-space 131.108.43.1 131.108.43.254 prefix-length 24
IPC-61
Configuring IP Addressing
IP Addressing Examples
10
10
IPC-62
Configuring IP Addressing
IP Addressing Examples
IPC-63
Configuring IP Addressing
IP Addressing Examples
IPC-64
Configuring DHCP
This chapter describes how to configure Dynamic Host Configuration Protocol (DHCP). For a complete
description of the DHCP commands listed in this chapter, refer to the DHCP Commands chapter of
the Cisco IOS IP Command Reference, Volume 1 of 3: Addressing and Services publication. To locate
documentation of other commands that appear in this chapter, use the command reference master index,
or search online.
As explained in RFC 2131, Dynamic Host Configuration Protocol, DHCP provides configuration
parameters to Internet hosts. DHCP consists of two components: a protocol for delivering host-specific
configuration parameters from a DHCP Server to a host and a mechanism for allocating network
addresses to hosts. DHCP is built on a client/server model, where designated DHCP Server hosts allocate
network addresses and deliver configuration parameters to dynamically configured hosts. By default,
Cisco routers running Cisco IOS software include DHCP server and relay agent software.
DHCP supports three mechanisms for IP address allocation:
Dynamic allocationDHCP assigns an IP address to a client for a limited period of time (or until
the client explicitly relinquishes the address).
Manual allocationThe network administrator assigns an IP address to a client and DHCP is used
simply to convey the assigned address to the client.
The format of DHCP messages is based on the format of Bootstrap Protocol (BOOTP) messages, which
ensures support for BOOTP relay agent functionality and interoperability between BOOTP clients and
DHCP Servers. BOOTP relay agents eliminate the need for deploying a DHCP Server on each physical
network segment. BOOTP is explained in RFC 951, Bootstrap Protocol (BOOTP), and RFC 1542,
Clarifications and Extensions for the Bootstrap Protocol.
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the Identifying Supported Platforms
section in the Using Cisco IOS Software chapter in this book.
IPC-65
Configuring DHCP
DHCP Server Overview
Figure 14 shows the basic steps that occur when a DHCP client requests an IP address from a DHCP
Server. The client, Host A, sends a DHCPDISCOVER broadcast message to locate a Cisco IOS DHCP
Server. A DHCP Server offers configuration parameters (such as an IP address, a MAC address, a
domain name, and a lease for the IP address) to the client in a DHCPOFFER unicast message.
Figure 14
DHCPDISCOVER (broadcast)
Host A
DHCPOFFER (unicast)
Cisco IOS
DHCP server
DHCPACK (unicast)
Note
32369
DHCPREQUEST (broadcast)
A DHCP client may receive offers from multiple DHCP Servers and can accept any one of the offers;
however, the client usually accepts the first offer it receives. Additionally, the offer from the DHCP
Server is not a guarantee that the IP address will be allocated to the client; however, the server usually
reserves the address until the client has had a chance to formally request the address.
The client returns a formal request for the offered IP address to the DHCP Server in a DHCPREQUEST
broadcast message. The DHCP Server confirms that the IP address has been allocated to the client by
returning a DHCPACK unicast message to the client.
Note
The formal request for the offered IP address (the DHCPREQUEST message) that is sent by the client
is broadcast so that all other DHCP Servers that received the DHCPDISCOVER broadcast message
from the client can reclaim the IP addresses that they offered to the client.
If the configuration parameters sent to the client in the DHCPOFFER unicast message by the DHCP
Server are invalid (a misconfiguration error exists), the client returns a DHCPDECLINE broadcast
message to the DHCP Server.
The DHCP Server will send to the client a DHCPNAK denial broadcast message, which means the
offered configuration parameters have not been assigned, if an error has occurred during the
negotiation of the parameters or the client has been slow in responding to the DHCPOFFER message
(the DHCP Server assigned the parameters to another client) of the DHCP Server.
DHCP defines a process by which the DHCP Server knows the IP subnet in which the DHCP client
resides, and it can assign an IP address from a pool of valid IP addresses in that subnet.
The DHCP Server identifies which DHCP address pool to use to service a client request as follows:
If the client is not directly connected (the giaddr field of the DHCPDISCOVER broadcast message
is non-zero), the DHCP Server matches the DHCPDISCOVER with a DHCP pool that has the subnet
that contains the IP address in the giaddr field.
If the client is directly connected (the giaddr field is zero), the DHCP Server matches the
DHCPDISCOVER with DHCP pool(s) that contain the subnet(s) configured on the receiving
interface. If the interface has secondary IP addresses, the subnets associated with the secondary IP
addresses are examined for possible allocation only after the subnet associated with the primary IP
address (on the interface) is exhausted.
The Cisco IOS DHCP Server feature offers the following benefits:
IPC-66
Configuring DHCP
DHCP Client Overview
Using automatic IP address assignment at each remote site substantially reduces Internet access
costs. Static IP addresses are considerably more expensive to purchase than are automatically
allocated IP addresses.
Centralized management
Because the DHCP Server maintains configurations for several subnets, an administrator only needs
to update a single, central server when configuration parameters change.
Before you configure the Cisco IOS DHCP Server feature, complete the following tasks:
Identify an external File Transport Protocol (FTP), Trivial File Transfer Protocol (TFTP), or remote
copy protocol (rcp) server that you will use to store the DHCP bindings database.
Identify the IP addresses that you will enable the DHCP Server to assign, and the IP addresses that
you will exclude.
Identify DHCP options for devices where necessary, including the following:
Default boot image name
Default routers
Domain Name System (DNS) servers
NetBIOS name server
Enables customers to centrally control the IP address assigned to a Cisco IOS router
IPC-67
Configuring DHCP
DHCP Configuration Task List
Note
Inherited parameters can be overridden. For example, if a parameter is defined in both the natural
network and a subnetwork, the definition of the subnetwork is used.
Address leases are not inherited. If a lease is not specified for an IP address, by default, the DHCP
Server assigns a one-day lease for the address.
To configure the Cisco IOS DHCP Server feature, perform the tasks described in the following sections.
First configure a database agent or disable conflict logging, then specify IP addresses that the DHCP
Server should not assign (excluded addresses) and should assign (a pool of available IP addresses) to
requesting clients. The tasks in the first three sections are required. The tasks in the remaining sections
are optional.
Enabling the Cisco IOS DHCP Server and Relay Agent Features (Optional)
Enabling the Cisco IOS DHCP Server and Relay Agent Features
By default, the Cisco IOS DHCP server and relay agent features are enabled on your router. To reenable
these features if they are disabled, use the following command in global configuration mode:
Command
Purpose
Enables the Cisco IOS DHCP server and relay features on your router.
Use the no form of this command to disable the Cisco IOS DHCP server and relay
features.
IPC-68
Configuring DHCP
DHCP Configuration Task List
Purpose
Configures the database agent and the interval between database updates
and database transfers.
If you choose not to configure a DHCP database agent, disable the recording of DHCP address conflicts
on the DHCP Server. To disable DHCP address conflict logging, use the following command in global
configuration mode:
Command
Purpose
Excluding IP Addresses
The DHCP Server assumes that all IP addresses in a DHCP address pool subnet are available for
assigning to DHCP clients. You must specify the IP address that the DHCP Server should not assign to
clients. To do so, use the following command in global configuration mode:
Command
Purpose
Specifies the IP addresses that the DHCP Server should not assign to
DHCP clients.
Configuring the DHCP Address Pool Name and Entering DHCP Pool Configuration Mode
To configure the DHCP address pool name and enter DHCP pool configuration mode, use the following
command in global configuration mode:
Command
Purpose
Creates a name for the DHCP Server address pool and places you in DHCP
pool configuration mode (identified by the dhcp-config# prompt).
IPC-69
Configuring DHCP
DHCP Configuration Task List
Purpose
Note
You can not configure manual bindings within the same pool that is configured with the network
command. To configure manual bindings, see the Configuring Manual Bindings section.
Purpose
Purpose
Configuring the NetBIOS Windows Internet Naming Service Servers for the Client
Windows Internet Naming Service (WINS) is a name resolution service that Microsoft DHCP clients use
to correlate host names to IP addresses within a general grouping of networks. To configure the NetBIOS
WINS servers that are available to a Microsoft DHCP client, use the following command in DHCP pool
configuration mode:
IPC-70
Configuring DHCP
DHCP Configuration Task List
Command
Purpose
Router(dhcp-config)# netbios-name-server
address [address2 ... address8]
Purpose
Purpose
Router(dhcp-config)# default-router
address [address2 ... address8]
Specifies the IP address of the default router for a DHCP client. One IP
address is required; however, you can specify up to eight addresses in one
command line.
Purpose
Use the show ip dhcp binding to display the lease expiration time
and date of the IP address of the host.
IPC-71
Configuring DHCP
DHCP Configuration Task List
Manual bindings are IP addresses that have been manually mapped to the MAC addresses of hosts that
are found in the DHCP database. Manual bindings are stored in NVRAM on the DHCP Server. Manual
bindings are just special address pools. There is no limit on the number of manual bindings but you can
only configure one manual binding per host pool.
Automatic bindings are IP addresses that have been automatically mapped to the MAC addresses of hosts
that are found in the DHCP database. Automatic bindings are stored on a remote host called a database
agent. The bindings are saved as text records for easy maintenance.
To configure a manual binding, first create a host pool, then specify the IP address of the client and
hardware address or client identifier. The hardware address is the MAC address. The client identifier,
which is required for Microsoft clients (instead of hardware addresses), is formed by concatenating the
media type and the MAC address of the client. Refer to the Address Resolution Protocol Parameters
section of RFC 1700, Assigned Numbers, for a list of media type codes.
To configure manual bindings, use the following commands beginning in global configuration mode:
Command
Purpose
Step 1
Creates a name for the a DHCP Server address pool and places you
in DHCP pool configuration modeidentified by the
(dhcp-config)# prompt.
Step 2
Step 3
Router(dhcp-config)# hardware-address
hardware-address type
or
Router(dhcp-config)# client-identifier
unique-identifier
IPC-72
Configuring DHCP
DHCP Configuration Task List
Purpose
Purpose
Specifies the number of ping packets the DHCP Server sends to a pool
address before assigning the address to a requesting client. The default is
two packets. Setting the count argument to a value of 0 turns off DHCP
Server ping operation completely.
Purpose
Specifies the amount of time the DHCP Server must wait before
timing out a ping packet. The default is 500 milliseconds.
Purpose
IPC-73
Configuring DHCP
DHCP Configuration Task List
Purpose
Step 1
Creates a name for the a DHCP Server address pool and places you
in DHCP pool configuration modeidentified by the
(dhcp-config)# prompt.
Step 2
Router(dhcp-config)# network
network-number [mask | /prefix-length]
Step 3
To configure the remote router to import DHCP options into the DHCP server database, use the
following commands beginning in global configuration mode:
Command
Purpose
Step 1
Creates a name for the a DHCP Server address pool and places you
in DHCP pool configuration modeidentified by the
(dhcp-config)# prompt.
Step 2
Router(dhcp-config)# network
network-number [mask | /prefix-length]
Step 3
Step 4
Router(dhcp-config)# exit
Step 5
Step 6
IPC-74
Configuring DHCP
Monitoring and Maintaining the DHCP Server
Purpose
Purpose
Purpose
Purpose
IPC-75
Configuring DHCP
Configuration Examples
Command
Purpose
Removes routes from the routing table added by the Cisco IOS DHCP
Server and Relay Agent for the DHCP clients on unnumbered
interfaces.
To enable DHCP Server debugging, use the following command in privileged EXEC mode:
Command
Purpose
To display DHCP Server information, use the following commands in EXEC mode, as needed:
Command
Purpose
Use the show ip dhcp binding to display the lease expiration time
and date of the IP address of the host and the number. You can also
use this command to display the IP addresses that have already
been assigned.
Displays the option parameters that were imported into the DHCP
Server database. Imported option parameters are not part of the router
configuration and are not saved in NVRAM.
Displays the routes added to the routing table by the Cisco IOS DHCP
Server and Relay Agent.
Configuration Examples
This section provides the following configuration examples:
IPC-76
Configuring DHCP
Configuration Examples
Device
IP Address
Device
IP Address
Device
IP Address
Default routers
Default routers
172.16.1.100
Default routers
172.16.2.100
172.16.1.101
DNS Server
172.16.1.102
172.16.2.101
172.16.2.102
NetBIOS name server
172.16.1.103
172.16.2.103
h-node
IPC-77
Configuring DHCP
Configuration Examples
Because attributes are inherited, the previous configuration is equivalent to the following:
ip dhcp pool Mars
host 172.16.2.254 mask 255.255.255.0
hardware-address 02c7.f800.0422 ieee802
client-name Mars
default-router 172.16.2.100 172.16.2.101
domain-name cisco.com
dns-server 172.16.1.102 172.16.2.102
netbios-name-server 172.16.1.103 172.16.2.103
netbios-node-type h-node
Cisco IOS
DHCP client
E2
Cisco IOS
DHCP server
10.1.1.1
ethernet
E1
42327
Figure 15
This configuration allows the DHCP client to aquire an IP address from the DHCP Server through an
Ethernet interface.
IPC-78
Configuring DHCP
Configuration Examples
PC/client
Local DNS
server
10.0.0.2
Central
router
Remote
router
10.0.0.1
FE0/0
72680
FE0/0
Central Router
!do not assign this range to DHCP clients
ip dhcp-excluded address 10.0.0.1 10.0.0.5
!
ip dhcp pool central
! Specifies network number and mask for DHCP clients
network 10.0.0.0 255.255.255.0
! Specifes the domain name for the client
domain-name central
! Specifies DNS server that will respond to DHCP clients when they need to correlate host
! name to ip address
dns-server 10.0.0.2
!Specifies the NETBIOS WINS server
netbios-name-server 10.0.0.2
!
interface FastEthernet0/0
ip address 10.0.0.1 255.255.255.0
duplex auto
speed auto
Remote Router
!
ip dhcp pool client
! Imports DHCP options parameters into DHCP server database
import all
network 20.0.0.0 255.255.255.0
!
interface FastEthernet0/0
ip address dhcp
duplex auto
IPC-79
Configuring DHCP
Configuration Examples
speed auto
IPC-80
Configuring IP Services
This chapter describes how to configure optional IP services. For a complete description of the IP
services commands in this chapter, refer to the IP Services Commands chapter of the Cisco IOS IP
Command Reference, Volume 1 of 3: Addressing and Services. To locate documentation of other
commands that appear in this chapter, use the command reference master index, or search online.
Remember that not all the tasks in these sections are required. The tasks you must perform will depend
on your network and your needs.
At the end of this chapter, the examples in the IP Services Configuration Examples section illustrate
how you might configure your network using IP.
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the Identifying Supported Platforms
section in the Using Cisco IOS Software chapter of this book.
Managing IP Connections
The IP suite offers a number of services that control and manage IP connections. Internet Control
Message Protocol (ICMP) provides many of these services. ICMP messages are sent by routers or access
servers to hosts or other routers when a problem is discovered with the Internet header. For detailed
information on ICMP, see RFC 792.
IPC-81
Configuring IP Services
Managing IP Connections
To manage various aspects of IP connections, perform the optional tasks described in the following
sections:
See the ICMP Services Example section at the end of this chapter for examples of ICMP services.
Purpose
Router(config-if)# ip unreachables
To limit the rate that ICMP destination unreachable messages are generated, use the following command
in global configuration mode:
Command
Purpose
Limits the rate that ICMP destination unreachable messages are generated.
IPC-82
Configuring IP Services
Managing IP Connections
To enable the sending of ICMP redirect messages if this feature was disabled, use the following
command in interface configuration mode:
Command
Purpose
Router(config-if)# ip redirects
Purpose
Router(config-if)# ip mask-reply
MTU = 1500
Packet = 800 bytes
Don't fragment
"Unreachable" sent
Packet dropped
S1014a
MTU = 512
IP Path MTU Discovery is useful when a link in a network goes down, forcing the use of another,
different MTU-sized link (and different routers). As shown in Figure 17, suppose a router is sending IP
packets over a network where the MTU in the first router is set to 1500 bytes, but the second router is
set to 512 bytes. If the Dont fragment bit of the datagram is set, the datagram would be dropped
IPC-83
Configuring IP Services
Managing IP Connections
because the 512-byte router is unable to forward it. All packets larger than 512 bytes are dropped in this
case. The second router returns an ICMP destination unreachable message to the source of the datagram
with its Code field indicating, Fragmentation needed and DF set. To support IP Path MTU Discovery,
it would also include the MTU of the next hop network link in the low-order bits of an unused header
field.
IP Path MTU Discovery is also useful when a connection is being established and the sender has no
information at all about the intervening links. It is always advisable to use the largest MTU that the links
will bear; the larger the MTU, the fewer packets the host must send.
Note
IP Path MTU Discovery is a process initiated by end hosts. If an end host does not support IP Path
MTU Discovery, the receiving device will have no mechanism available to avoid fragmenting
datagrams generated by the end host.
If a router that is configured with a small MTU on an outbound interface receives packets from a host
that is configured with a large MTU (for example, receiving packets from a Token Ring interface and
forwarding them to an outbound Ethernet interface), the router fragments received packets that are larger
than the MTU of the outbound interface. Fragmenting packets slows the performance of the router. To
keep routers in your network from fragmenting received packets, run IP Path MTU Discovery on all
hosts and routers in your network, and always configure the largest possible MTU for each router
interface type.
To enable IP Path MTU Discovery for connections initiated by the router (when the router is acting as a
host), see the section Enabling TCP Path MTU Discovery later in this chapter.
Purpose
IPC-84
Configuring IP Services
Managing IP Connections
IP provides a provision known as source routing that allows the source IP host to specify a route through
the IP network. Source routing is specified as an option in the IP header. If source routing is specified,
the software forwards the packet according to the specified source route. This feature is employed when
you want to force a packet to take a certain route through the network. The default is to perform source
routing.
To enable IP source-route header options if they have been disabled, use the following command in
global configuration mode:
Command
Purpose
Router(config)# ip source-route
Purpose
See the Simplex Ethernet Interfaces Example section at the end of this chapter for an example of
configuring a simplex Ethernet interface.
IPC-85
Configuring IP Services
Managing IP Connections
To configure and maintain the DRP Server Agent, perform the tasks described in the following sections.
The task in the first section is required; the tasks in the remaining sections are optional.
To monitor and maintain the DRP Server Agent, see the section Monitoring and Maintaining the DRP
Server Agent later in this chapter.
For an example of configuring a DRP Server Agent, see the section DRP Server Agent Example at the
end of this chapter.
Purpose
Purpose
Purpose
Step 1
Step 2
Step 3
IPC-86
Configuring IP Services
Filtering IP Packets Using Access Lists
Command
Purpose
Step 4
Step 5
Router(config-keychain-key)# accept-lifetime
start-time {infinite | end-time | duration
seconds}
Step 6
Router(config-keychain-key)# send-lifetime
start-time {infinite | end-time | duration
seconds}
When configuring your key chains and keys, be aware of the following guidelines:
Note
The key chain configured for the DRP Server Agent in Step 1 must match the key chain in Step 2.
The key configured in the primary agent in the remote router must match the key configured in the
DRP Server Agent in order for responses to be processed.
You can configure multiple keys with lifetimes, and the software will rotate through them.
If authentication is enabled and multiple keys on the key chain happen to be active based on the
send-lifetime values, the software uses only the first key it encounters for authentication.
Use the show key chain command to display key chain information.
To configure lifetimes for DRP authentication, you must configure time services for your router. For
information on setting time services, see the Network Time Protocol (NTP) and calendar commands
in the Performing Basic System Management chapter of the Cisco IOS Configuration
Fundamentals Configuration Guide.
This section summarizes how to create IP access lists and how to apply them.
See the IP Services Configuration Examples section at the end of this chapter for examples of
configuring IP access lists.
An access list is a sequential collection of permit and deny conditions that apply to IP addresses. The
Cisco IOS software tests addresses against the conditions in an access list one by one. The first match
determines whether the software accepts or rejects the address. Because the software stops testing
conditions after the first match, the order of the conditions is critical. If no conditions match, the
software rejects the address.
The two main tasks involved in using access lists are as follows:
1.
Create an access list by specifying an access list number or name and access conditions.
IPC-87
Configuring IP Services
Filtering IP Packets Using Access Lists
2.
These and other tasks are described in this section and are labeled as required or optional. Either the first
or second task is required, depending on whether you identify your access list with a number or a name.
Note
Standard IP access lists that use source addresses for matching operations.
Extended IP access lists that use source and destination addresses for matching operations, and
optional protocol type information for finer granularity of control.
Dynamic extended IP access lists that grant access per user to a specific source or destination host
basis through a user authentication process. In essence, you can allow user access through a firewall
dynamically, without compromising security restrictions. Dynamic access lists and lock-and-key
access are described in the Configuring Traffic Filters chapter of the Cisco IOS Security
Configuration Guide.
Reflexive access lists that allow IP packets to be filtered based on session information. Reflexive
access lists contain temporary entries, and are nested within an extended, named IP access list. For
information on reflexive access lists, refer to the Configuring IP Session Filtering (Reflexive
Access Lists) chapter in the Cisco IOS Security Configuration Guide and the Reflexive Access
List Commands chapter in the Cisco IOS Security Command Reference.
Release 11.1 introduced substantial changes to IP access lists. These extensions are backward
compatible; migrating from a release earlier than Release 11.1 to the current release will convert your
access lists automatically. However, the current implementation of access lists is incompatible with
Cisco IOS Release 11.1 or earlier. If you create an access list using the current Cisco IOS release and
then load older Cisco IOS software, the resulting access list will not be interpreted correctly. This
condition could cause you severe security problems. Save your old configuration file before booting
Release 11.1 or earlier images.
IPC-88
Configuring IP Services
Filtering IP Packets Using Access Lists
To create a standard access list, use the following commands in global configuration mode:
Command
Purpose
Step 1
Step 2
or
Router(config)# access-list access-list-number {deny |
permit} any [log]
1.
This example configures the remark before the deny or permit statement. The remark can be configured after the deny or permit statement.
The Cisco IOS software can provide logging messages about packets permitted or denied by a standard
IP access list. That is, any packet that matches the access list will cause an informational logging
message about the packet to be sent to the console. The level of messages logged to the console is
controlled by the logging console global configuration command.
The first packet that triggers the access list causes an immediate logging message, and subsequent
packets are collected over 5-minute intervals before they are displayed or logged. The logging message
includes the access list number, whether the packet was permitted or denied, the source IP address of the
packet, and the number of packets from that source permitted or denied in the prior 5-minute interval.
However, you can use the ip access-list log-update command to set the number of packets that, when
match an access list (and are permitted or denied), cause the system to generate a log message. You might
want to do this to receive log messages more frequently than at 5-minute intervals.
Caution
If you set the number-of-matches argument to 1, a log message is sent right away, rather than caching
it; every packet that matches an access list causes a log message. A setting of 1 is not recommended
because the volume of log messages could overwhelm the system.
Even if you use the ip access-list log-update command, the 5-minute timer remains in effect, so each
cache is emptied at the end of 5 minutes, regardless of the count of messages in each cache. Regardless
of when the log message is sent, the cache is flushed and the count reset to 0 for that message the same
way it is when a threshold is not specified.
Note
The logging facility might drop some logging message packets if there are too many to be handled
or if there is more than one logging message to be handled in 1 second. This behavior prevents the
router from crashing due to too many logging packets. Therefore, the logging facility should not be
used as a billing tool or an accurate source of the number of matches to an access list.
Note
If you enable CEF and then create an access list that uses the log keyword, the packets that match the
access list are not CEF switched. They are fast switched. Logging disables CEF.
For an example of a standard IP access list using logs, see the section Numbered Access List Examples
at the end of this chapter.
IPC-89
Configuring IP Services
Filtering IP Packets Using Access Lists
To create an extended access list, use the following commands in global configuration mode:
Command
Purpose
Step 1
Step 2
or
Router(config)# access-list access-list-number {deny
| permit} protocol any any [log | log-input]
[time-range time-range-name] [fragments]
or
or
or
or
This example configures the remark before the deny or permit statement. The remark can be configured after the deny or permit statement.
Note
The fragments keyword is described in the Specifying IP Extended Access Lists with Fragment
Control section.
After you create an access list, you place any subsequent additions (possibly entered from the terminal)
at the end of the list. In other words, you cannot selectively add or remove access list command lines
from a specific access list.
Note
When creating an access list, remember that, by default, the end of the access list contains an implicit
deny statement for everything if it did not find a match before reaching the end.
IPC-90
Configuring IP Services
Filtering IP Packets Using Access Lists
Note
In a standard access list, if you omit the mask from an associated IP host address access list
specification, 0.0.0.0 is assumed to be the mask.
Note
Autonomous switching is not used when you have extended access lists.
After creating an access list, you must apply it to a line or interface, as shown in the section Applying
Access Lists later in this chapter. See the Implicit Masks in Access Lists Examples section at the end
of this chapter for examples of implicit masks.
Note
Access lists specified by name are not compatible with Cisco IOS Releases prior to 11.2.
Not all access lists that accept a number will accept a name. Access lists for packet filters and route
filters on interfaces can use a name.
A standard access list and an extended access list cannot have the same name.
Numbered access lists are also available, as described in the previous section, Creating Standard
and Extended Access Lists Using Numbers.
Named access lists will not be recognized by any software release prior to Cisco IOS Release 11.2.
To create a standard access list, use the following commands beginning in global configuration mode:
Command
Purpose
Step 1
Step 2
Step 3
and/or
Router(config-std-nacl)# permit {source
[source-wildcard] | any}[log]
Step 4
Router(config-std-nacl)# exit
1.
This example configures the remark before the deny or permit statement. The remark can be configured after the deny or permit statement.
IPC-91
Configuring IP Services
Filtering IP Packets Using Access Lists
To create an extended access list, use the following commands beginning in global configuration mode:
Step 1
Step 2
Step 3
or
or
or
or
or
or
1. This example configures the remark before the deny or permit statement. The remark can be configured after the deny or permit statement.
Note
Autonomous switching is not used when you have extended access lists.
Note
The fragments keyword is described in the Specifying IP Extended Access Lists with Fragment
Control section.
After you initially create an access list, you place any subsequent additions (possibly entered from the
terminal) at the end of the list. In other words, you cannot selectively add access list command lines to
a specific access list. However, you can use no permit and no deny commands to remove entries from
a named access list.
IPC-92
Configuring IP Services
Filtering IP Packets Using Access Lists
Note
When making the standard and extended access list, remember that, by default, the end of the access
list contains an implicit deny statement for everything if it did not find a match before reaching the
end. Further, with standard access lists, if you omit the mask from an associated IP host address
access list specification, 0.0.0.0 is assumed to be the mask.
After creating an access list, you must apply it to a line or interface, as shown in section Applying
Access Lists later in this chapter.
See the Named Access List Example section at the end of this chapter for an example of a named
access list.
IPC-93
Configuring IP Services
Filtering IP Packets Using Access Lists
The behavior of access-list entries regarding the presence or absence of the fragments keyword can be
summarized as follows:
If the Access-List Entry has...
Then..
fragment is permitted.
If the entry is a deny statement, the next access-list
entry is processed.
Note
Note
Be aware that you should not simply add the fragments keyword to every access list entry because the
first fragment of the IP packet is considered a nonfragment and is treated independently of the
subsequent fragments. An initial fragment will not match an access list permit or deny entry that
contains the fragments keyword, the packet is compared to the next access list entry, and so on, until it
is either permitted or denied by an access list entry that does not contain the fragments keyword.
Therefore, you may need two access list entries for every deny entry. The first deny entry of the pair
will not include the fragments keyword, and applies to the initial fragment. The second deny entry of
the pair will include the fragments keyword and applies to the subsequent fragments. In the cases where
there are multiple deny access list entries for the same host but with different Layer 4 ports, a single
deny access-list entry with the fragments keyword for that host is all that needs to be added. Thus all
the fragments of a packet are handled in the same manner by the access list.
IPC-94
Configuring IP Services
Filtering IP Packets Using Access Lists
Note
The fragments keyword cannot solve all cases involving access lists and IP fragments.
Turbo Access Lists
A turbo access list treats fragments and uses the fragments keyword in the same manner as a nonturbo
access list.
Policy Routing
Fragmentation and the fragment control feature affect policy routing if the policy routing is based on the
match ip address command and the access list had entries that match on Layer 4 through 7 information.
It is possible that noninitial fragments pass the access list and are policy routed, even if the first fragment
was not policy routed or the reverse.
By using the fragments keyword in access list entries as described earlier, a better match between the
action taken for initial and noninitial fragments can be made and it is more likely policy routing will
occur as intended.
You are able to block more of the traffic you intended to block, not just the initial fragment of such
packets. The unwanted fragments no longer linger at the receiver until the reassembly timeout is reached
because they are blocked before being sent to the receiver. Blocking a greater portion of unwanted traffic
improves security and reduces the risk from potential hackers.
Reduced Cost
By blocking unwanted noninitial fragments of packets, you are not paying for traffic you intended to
block.
Reduced Storage
By blocking unwanted noninitial fragments of packets from ever reaching the receiver, that destination
does not have to store the fragments until the reassembly timeout period is reached.
Expected Behavior is Achieved
The noninitial fragments will be handled in the same way as the initial fragment, which is what you
would expect. There are fewer unexpected policy routing results and fewer fragment of packets being
routed when they should not be.
For an example of fragment control in an IP extended access list, see the IP Extended Access List with
Fragment Control Example.
IPC-95
Configuring IP Services
Filtering IP Packets Using Access Lists
Note
For ACLs larger than three entries, the CPU load required to match the packet to the predetermined
packet-matching rule is lessened. The CPU load is fixed, regardless of the size of the access list,
allowing for larger ACLs without incurring any CPU overhead penalties. The larger the access list,
the greater the benefit.
The time taken to match the packet is fixed, so that latency of the packets is smaller (substantially
in the case of large access lists) and, more importantly, consistent, allowing better network stability
and more accurate transit times.
Access lists containing specialized processing characteristics such as evaluate and time-range entries
are excluded from Turbo ACL acceleration.
The Turbo ACL builds a set of lookup tables from the ACLs in the configuration; these tables increase
the internal memory usage, and in the case of large and complex ACLs, tables containing 2 MB to 4 MB
of memory are usually required. Routers enabled with the Turbo ACL feature should allow for this
amount of memory usage. The show access-list compiled EXEC command displays the memory
overhead of the Turbo ACL tables for each access list.
To configure the Turbo ACL feature, perform the tasks described in the following sections. The task in
the first section is required; the task in the remaining section is optional:
Purpose
IPC-96
Configuring IP Services
Filtering IP Packets Using Access Lists
OperationalThe access list has been compiled by Turbo ACL, and matching to this access list is
performed through the Turbo ACL tables at high speed.
UnsuitableThe access list is not suitable for compiling, perhaps because it has time-range enabled
entries, evaluate references, or dynamic entries.
BuildingThe access list is being compiled. Depending on the size and complexity of the list, and
the load on the router, the building process may take a few seconds.
Out of memoryAn access list cannot be compiled because the router has exhausted its memory.
The following is sample output from the show access-lists compiled EXEC command:
Router# show access-lists compiled
Compiled ACL statistics:
12 ACLs loaded, 12 compiled tables
ACL
State
Tables Entries Config
1
Operational
1
2
1
2
Operational
1
3
2
3
Operational
1
4
3
4
Operational
1
3
2
5
Operational
1
5
4
9
Operational
1
3
2
20
Operational
1
9
8
21
Operational
1
5
4
101
Operational
1
15
9
102
Operational
1
13
6
120
Operational
1
2
1
199
Operational
1
4
3
First level lookup tables:
Block
Use
Rows
Columns
0
TOS/Protocol
6/16
12/16
1
IP Source (MS)
10/16
12/16
2
IP Source (LS)
27/32
12/16
3
IP Dest (MS)
3/16
12/16
4
IP Dest (LS)
9/16
12/16
5
TCP/UDP Src Port
1/16
12/16
6
TCP/UDP Dest Port
3/16
12/16
7
TCP Flags/Fragment
3/16
12/16
Fragment
0
0
0
0
0
0
0
0
7
6
0
0
Redundant
0
0
0
0
0
0
0
0
2
0
0
0
Memory
1Kb
1Kb
1Kb
1Kb
1Kb
1Kb
1Kb
1Kb
1Kb
1Kb
1Kb
1Kb
Memory used
66048
66048
132096
66048
66048
66048
66048
66048
IPC-97
Configuring IP Services
Filtering IP Packets Using Access Lists
time-range command is described in the Performing Basic System Management chapter of the Cisco
IOS Configuration Fundamentals Configuration Guide. See the Time Range Applied to an IP Access
List Example section at the end of this chapter for a configuration example of IP time ranges.
Possible benefits of using time ranges include the following:
The network administrator has more control over permitting or denying a user access to resources.
These resources could be an application (identified by an IP address/mask pair and a port number),
policy routing, or an on-demand link (identified as interesting traffic to the dialer).
Network administrators can set time-based security policy, including the following:
Perimeter security using the Cisco IOS Firewall feature set or access lists
Data confidentiality with Cisco Encryption Technology or IP Security Protocol (IPSec)
When provider access rates vary by time of day, it is possible to automatically reroute traffic cost
effectively.
Service providers can dynamically change a committed access rate (CAR) configuration to support
the quality of service (QoS) service level agreements (SLAs) that are negotiated for certain times of
day.
Network administrators can control logging messages. Access list entries can log traffic at certain
times of the day, but not constantly. Therefore, administrators can simply deny access without
needing to analyze many logs generated during peak hours.
IPC-98
Configuring IP Services
Filtering IP Packets Using Access Lists
To restrict access to a vty and the addresses in an access list, use the following command in line
configuration mode. Only numbered access lists can be applied to lines. Set identical restrictions on all
the virtual terminal lines, because a user can attempt to connect to any of them.
Command
Purpose
To restrict access to an interface, use the following command in interface configuration mode:
Command
Purpose
For inbound access lists, after receiving a packet, the Cisco IOS software checks the source address of
the packet against the access list. If the access list permits the address, the software continues to process
the packet. If the access list rejects the address, the software discards the packet and returns an ICMP
host unreachable message.
For outbound access lists, after receiving and routing a packet to a controlled interface, the software
checks the source address of the packet against the access list. If the access list permits the address, the
software sends the packet. If the access list rejects the address, the software discards the packet and
returns an ICMP host unreachable message.
When you apply an access list that has not yet been defined to an interface, the software will act as if the
access list has not been applied to the interface and will accept all packets. Remember this behavior if
you use undefined access lists as a means of security in your network.
IPC-99
Configuring IP Services
Configuring the Hot Standby Router Protocol
Note
Token Ring interfaces allow up to three Hot Standby groups each, the group numbers being 0, 1, and
2.
IPC-100
Configuring IP Services
Configuring the Hot Standby Router Protocol
Note
The Cisco 1000 series, Cisco 2500 series, Cisco 3000 series, Cisco 4000 series, and Cisco 4500
routers that use Lance Ethernet hardware do not support multiple Hot Standby groups on a single
Ethernet interface. The Cisco 800 series, Cisco 1000 series, and Cisco 1600 series that use PQUICC
Ethernet hardware do not support multiple Hot Standby groups on a single Ethernet interface. You
can configure a workaround solution by using the standby use-bia interface configuration command,
which uses the burned-in address of the interface as its virtual MAC address, instead of the
preassigned MAC address.
HSRP is supported over Inter-Switch Link (ISL) encapsulation. Refer to the Configuring Routing
Between VLANs with ISL Encapsulation chapter in the Cisco IOS Switching Services Configuration
Guide.
With Cisco IOS Release 12.1(3)T, HSRP can provide support for a Multiprotocol Label Switching
(MPLS) Virtual Private Network (VPN) interface. See the section Enabling HSRP Support for MPLS
VPNs later in this chapter for more information,
To configure HSRP, perform the tasks described in the following sections. The tasks in the first section
are required; the tasks in the remaining sections are optional.
For more information about HSRP and how to configure it on a Cisco router, see the chapter Using
HSRP for Fault-Tolerant IP Routing in the Cisco CCIE Fundamentals: Case Studies publication.
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the Identifying Supported Platforms
section in the Using Cisco IOS Software chapter in this book.
Enabling HSRP
To enable the HSRP on an interface, use the following command in interface configuration mode:
Command
Purpose
IPC-101
Configuring IP Services
Configuring the Hot Standby Router Protocol
Purpose
Configures the time between hello packets and the hold time
before other routers declare the active router to be down.
You need not configure the MAC refresh interval if you have the standby use-bia interface
configuration command configured.
By default, a packet is sent every 10 seconds to refresh the MAC cache on learning bridges or switches.
To change the interval, use the following command in interface configuration mode:
IPC-102
Configuring IP Services
Configuring the Hot Standby Router Protocol
Command
Purpose
For examples of this feature, see the section HSRP MAC Refresh Interval Examples at the end of this
chapter.
The cHsrpGrpEntry table consists of all the group information defined in RFC 2281, Cisco Hot Standby
Router Protocol; the other tables consist of the Cisco extensions to RFC 2281, which are defined in
CISCO-HSRP-EXT-MIB.my.
To enable HSRP MIB trap support, use the following commands in global configuration mode:
Command
Purpose
Step 1
Step 2
See the section HSRP MIB Trap Example later in this chapter for an example of how to configure
HSRP MIB trap support in your network. See the Configuring SNMP chapter in the Cisco IOS
Configuration Fundamentals Configuration Guide for more information on configuring SNMP.
A customer edge (CE) with a default route to the HSRP virtual IP address
One or more hosts with the HSRP virtual IP address configured as the default gateway
IPC-103
Configuring IP Services
Configuring the Hot Standby Router Protocol
Each VPN is associated with one or more VPN routing/forwarding (VRF) instances. A VRF consists of
the following elements:
IP routing table
Set of rules and routing protocol parameters to control the information in the routing tables
VPN routing information is stored in the IP routing table and the CEF table for each VRF. A separate set
of routing and CEF tables is maintained for each VRF. These tables prevent information from being
forwarded outside a VPN and also prevent packets that are outside a VPN from being forwarded to a
router within the VPN.
HSRP currently adds ARP entries and IP hash table entries (aliases) using the default routing table
instance. However, a different routing table instance is used when VRF forwarding is configured on an
interface, causing ARP and ICMP echo requests for the HSRP virtual IP address to fail.
HSRP support for MPLS VPNs ensures that the HSRP virtual IP address is added to the correct IP
routing table and not to the default routing table.
To configure this feature, perform the required tasks described in the following sections:
Defining VPNs
To define VPNs, use the following commands on the PE routers beginning in global configuration mode:
Command
Purpose
Step 1
Step 2
Router(config-vrf)# rd route-distinguisher
Step 3
Step 4
Router(config-vrf)# exit
Step 5
Step 6
Enabling HSRP
To enable the HSRP on an interface, use the following command in interface configuration mode:
Command
Purpose
IPC-104
Configuring IP Services
Configuring the Hot Standby Router Protocol
Address
10.2.0.1
10.2.0.20
Age (min)
-
Hardware Addr
00d0.bbd3.bc22
0000.0c07.ac01
Type
ARPA
ARPA
Interface
Ethernet0/2
Ethernet0/2
Next Hop
10.3.0.4
receive
10.2.0.1
attached
receive
receive
receive
receive
Interface
Ethernet0/3
Ethernet0/2
Ethernet0/2
IPC-105
Configuring IP Services
Configuring the Hot Standby Router Protocol
Figure 18
R3
Net B
e1
Net C
R6
Net D
Net E
e1
R1
R2
e0 Active 1
Standby 2
R4
e0 Active 2
Standby 1
R5
Active 3
Standby 4
Active 4
Standby 3
Net A
e0 Listen 1
R8
Default gateway:
virtual IP 1
Host
Net F
Net G
43140
R7
If the host wants to send a packet to another host on Net D, then it first sends it to its default gateway,
the virtual IP address of HSRP group 1.
The following is the packet received from the host:
dest MAC
source MAC
dest IP
source IP
=
=
=
=
Router R1 receives this packet and determines that router R4 can provide a better path to Net D, so it
prepares to send a redirect message that will redirect the host to the real IP address of router R4 (because
only real IP addresses are in its routing table).
The following is the initial ICMP redirect message sent by router R1:
dest MAC
source MAC
dest IP
source IP
gateway to use
=
=
=
=
=
Host MAC
router R1 MAC
Host IP
router R1 IP
router R4 IP
Before this redirect occurs, the HSRP process of router R1 determines that router R4 is the active HSRP
router for group 3, so it changes the next hop in the redirect message from the real IP address of router
R4 to the virtual IP address of group 3. Furthermore, it determines from the destination MAC address of
the packet that triggered the redirect message that the host used the virtual IP address of group 1 as its
gateway, so it changes the source IP address of the redirect message to the virtual IP address of group 1.
The modified ICMP redirect message showing the two modified fields (*) is as follows:
dest MAC
source MAC
dest IP
source IP*
gateway to use*
=
=
=
=
=
Host MAC
router R1 MAC
Host IP
HSRP group 1 virtual IP
HSRP group 3 virtual IP
This second modification is necessary because hosts compare the source IP address of the ICMP redirect
message with their default gateway. If these addresses do not match, the ICMP Redirect message is
ignored. The routing table of the host now consists of the default gateway, virtual IP address of group 1,
and a route to Net D through the virtual IP address of group 3.
IPC-106
Configuring IP Services
Configuring the Hot Standby Router Protocol
DormantInterface has no HSRP groups, single advertisements sent once when last group is
removed
PassiveInterface has at least one non-active group and no active groups, advertisements sent out
periodically
ActiveInterface has at least one active group, single advertisement sent out when first group
becomes active
You can adjust the advertisement interval and holddown time using the standby redirects timers
command.
IPC-107
Configuring IP Services
Configuring IP Accounting
The IP source address of an ICMP packet must match the gateway address used by the host in the packet
that triggered the ICMP packet, otherwise the host will reject the ICMP redirect packet. An HSRP router
uses the destination MAC address to determine the gateway IP address of the host. If the HSRP router
is using the same MAC address for multiple IP addresses then it is not possible to uniquely determine
the gateway IP address of the host and the redirect message is not sent.
The following is sample output from the debug standby events icmp EXEC command if HSRP could
not uniquely determine the gateway used by the host:
10:43:08: SB: ICMP redirect not sent to 20.0.0.4 for dest 30.0.0.2
10:43:08: SB: could not uniquely determine IP address for mac 00d0.bbd3.bc22
Purpose
Configuring IP Accounting
Cisco IP accounting support provides basic IP accounting functions. By enabling IP accounting, users
can see the number of bytes and packets switched through the Cisco IOS software on a source and
destination IP address basis. Only transit IP traffic is measured and only on an outbound basis; traffic
generated by the software or terminating in the software is not included in the accounting statistics. To
maintain accurate accounting totals, the software maintains two accounting databases: an active and a
checkpointed database.
Cisco IP accounting support also provides information identifying IP traffic that fails IP access lists.
Identifying IP source addresses that violate IP access lists alerts you to possible attempts to breach
security. The data also indicates that you should verify IP access list configurations. To make this feature
available to users, you must enable IP accounting of access list violations using the ip accounting
access-violations interface configuration command. Users can then display the number of bytes and
packets from a single source that attempted to breach security against the access list for the source
destination pair. By default, IP accounting displays the number of packets that have passed access lists
and were routed.
To enable IP accounting, use one of the following commands for each interface in interface configuration
mode:
Command
Purpose
Router(config-if)# ip accounting
Router(config-if)# ip accounting
access-violations
IPC-108
Configuring IP Services
Configuring IP Accounting
To configure other IP accounting functions, use the following commands in global configuration mode,
as needed:
Command
Purpose
Router(config)# ip accounting-threshold
threshold
Router(config)# ip accounting-list
ip-address wildcard
Router(config)# ip accounting-transits
count
To display IP access violations for a specific IP accounting database, use the following command in
EXEC mode:
Command
Purpose
To display IP access violations, include the access-violations keyword in the show ip accounting EXEC
command. If you do not specify the keyword, the command defaults to displaying the number of packets
that have passed access lists and were routed. The access violations output displays the number of the
access list failed by the last packet for the source and destination pair. The number of packets reveals
how aggressive the attack is upon a specific destination.
Use the show ip accounting EXEC command to display the active accounting database, and traffic
coming from a remote site and transiting through a router. To display the checkpointed database, use the
show ip accounting checkpoint EXEC command. The clear ip accounting EXEC command clears the
active database and creates the checkpointed database.
Purpose
Step 1
Step 2
IPC-109
Configuring IP Services
Configuring TCP Performance Parameters
To remove IP accounting based on the MAC address from the interface, use the no ip accounting
mac-address command.
Use the EXEC command show interface mac to display MAC accounting information for interfaces
configured for MAC accounting.
Purpose
Step 1
Step 2
To remove IP accounting based on IP precedence from the interface, use the no ip accounting
precedence command.
Use the EXEC command show interface precedence to display precedence accounting information for
interfaces configured for precedence accounting.
IPC-110
Configuring IP Services
Configuring TCP Performance Parameters
Purpose
Router(config-if)# ip tcp
header-compression [passive]
The ip tcp header-compression interface configuration command only compresses the TCP header; it
has no effect on UDP packets or other protocol headers. The TCP header compression technique is
supported on serial lines using High-Level Data Link Control (HDLC) or PPP encapsulation. You must
enable compression on both ends of a serial connection.
By using the passive keyword, you can optionally specify outgoing packets to be compressed only if
TCP incoming packets on the same interface are compressed. If you specify the command without the
passive keyword, the software will compress all traffic. Without the command, the default is no
compression.
Note
Fast processors can handle several fast interfaces, such as T1 lines, that are running header
compression. However, you should think carefully about the traffic characteristics of your network
before compressing TCP headers. You might want to use the monitoring commands to compare
network utilization before and after enabling TCP header compression.
IPC-111
Configuring IP Services
Configuring TCP Performance Parameters
The CEF and fast-switching aspects of the Express TCP Header Compression feature are related to these
documents:
For information about compressing RTP headers, see the chapter Configuring IP Multicast Routing in
this document.
By default, for Frame Relay encapsulation, there can be 256 TCP header compression connections
(128 calls). The maximum value is fixed, not configurable.
By default, for PPP or HDLC encapsulation, the software allows 32 TCP header compression
connections (16 calls). This default can be increased to a maximum of 256 TCP header compression
connections.
To specify the number of connections, use the following command in interface configuration mode:
Command
Purpose
Router(config-if)# ip tcp
compression-connections number
Purpose
Sets the amount of time the Cisco IOS software will wait to attempt to
establish a TCP connection.The default is 30 seconds.
IPC-112
Configuring IP Services
Configuring TCP Performance Parameters
To enable Path MTU Discovery, use the following command in global configuration mode:
Command
Purpose
Customers using TCP connections to move bulk data between systems on distinct subnets would benefit
most by enabling this feature. Customers using remote source-route bridging (RSRB) with TCP
encapsulation, serial tunnel (STUN), X.25 Remote Switching (also known as XOT or X.25 over TCP),
and some protocol translation configurations might also benefit from enabling this feature.
The ip tcp path-mtu-discoveryglobal configuration command is to enable Path MTU Discovery for
connections initiated by the router when it is acting as a host. For a discussion of how the Cisco IOS
software supports Path MTU Discovery when the device is acting as a router, see the section
Understanding Path MTU Discovery earlier in this chapter.
The age-timer is a time interval for how often TCP should reestimate the path MTU with a larger
maximum segment size (MSS). The default Path MTU Discovery age-timer is 10 minutes; its maximum
is 30 minutes. You can turn off the age timer by setting it to infinite.
Purpose
IPC-113
Configuring IP Services
Configuring TCP Performance Parameters
Purpose
If you want to use TCP header compression over a serial line, TCP time stamp and TCP selective
acknowledgment must be disabled. Both features are disabled by default. To disable TCP selective
acknowledgment once it is enabled, see the previous Enabling TCP Selective Acknowledgment
section.
Purpose
Purpose
IPC-114
Configuring IP Services
Configuring IP over WANs
Purpose
High availability
Unbounded scalability
Application-aware balancing
Unmatched performance
IPC-115
Configuring IP Services
Configuring the MultiNode Load Balancing Forwarding Agent
Configure the Forwarding Agent only if you are installing the MNLD Feature Set for LocalDirector. If
you are installing the MNLD Feature Set for LocalDirector, refer to the MultiNode Load Balancing
Feature Set for LocalDirector User Guide for information about which other hardware and software
components are required.
The MNLB Forwarding Agent is an implementation of the Cisco ContentFlow architecture flow delivery
agent (FDA).
Refer to the MultiNode Load Balancing Feature Set for LocalDirector User Guide for more information
about how the Forwarding Agent is configured and for more information about the product.
Enabling CEF
CEF is advanced Layer 3 IP switching technology. CEF optimizes network performance and scalability
for networks with large and dynamic traffic patterns, such as the Internet, on networks characterized by
intensive Web-based applications, or interactive sessions.
To enable CEF, use the following command in global configuration mode:
Command
Purpose
Enables CEF.
Note
When you enable CEF globally, all interfaces that support CEF are enabled by default. If you want
to turn off CEF on a particular interface, you can do so.
Refer to the Cisco Express Forwarding part of the Cisco IOS Switching Services Configuration Guide
for more information on how to configure CEF.
IPC-116
Configuring IP Services
Configuring the MultiNode Load Balancing Forwarding Agent
Step 1
Command
Purpose
Normally the size of the NetFlow cache will meet your needs. To increase or decrease the number of
entries maintained in the cache, use the following command in global configuration mode:
Command
Purpose
Refer to the Netflow Switching part of the Cisco IOS Switching Services Configuration Guide for
more information on how to configure NetFlow switching.
Purpose
To have the router join a multicast group and enable IGMP, use the following command in interface
configuration mode:
Command
Purpose
IPC-117
Configuring IP Services
Monitoring and Maintaining the IP Network
See the Configuring IP Multicast Routing chapter of this document for more information on how to
configure IP multicast routing.
Purpose
Step 1
Step 2
Step 3
Note
The Forwarding Agent IGMP address and port must match the IGMP address and port configured on
the services manager using the ip igmp join-group interface configuration command.
Monitoring and Maintaining HSRP Support for ICMP Redirect Messages (Optional)
IPC-118
Configuring IP Services
Monitoring and Maintaining the IP Network
To clear caches, tables, and databases, use the following commands in EXEC mode, as needed:
Command
Purpose
Purpose
Purpose
Purpose
IPC-119
Configuring IP Services
IP Services Configuration Examples
Command
Purpose
Displays the address of the default router and the address of hosts
for which an ICMP redirect message has been received.
Purpose
Purpose
IPC-120
Configuring IP Services
IP Services Configuration Examples
IP Accounting Example
E0
E1
E1
Router 1
Router 2
S1064a
Figure 19
Router 1 Configuration
interface ethernet 0
ip address 128.9.1.1
!
interface ethernet 1
ip address 128.9.1.1
transmit-interface ethernet 0
!
!use show interfaces command to find router2-MAC-address-E0
arp 128.9.1.4 router2-MAC-address-E0 arpa
Router 2 Configuration
interface ethernet 0
IPC-121
Configuring IP Services
IP Services Configuration Examples
ip address 128.9.1.2
transmit-interface ethernet 1
!
interface ethernet 1
ip address 128.9.1.2
!
!use show interfaces command to find router1-MAC-address-E1
arp 128.9.1.1 router1-MAC-address-E1 arpa
The following example defines access lists 1 and 2, both of which have logging enabled:
interface ethernet 0
ip address 1.1.1.1 255.0.0.0
ip access-group 1 in
ip access-group 2 out
!
access-list 1 permit 5.6.0.0 0.0.255.255 log
access-list 1 deny 7.9.0.0 0.0.255.255 log
!
access-list 2 permit 1.2.3.4 log
access-list 2 deny 1.2.0.0 0.0.255.255 log
If the interface receives 10 packets from 5.6.7.7 and 14 packets from 1.2.23.21, the first log will look
like the following:
list 1 permit 5.6.7.7 1 packet
list 2 deny 1.2.23.21 1 packet
Five minutes later, the console will receive the following log:
list 1 permit 5.6.7.7 9 packets
list 2 deny 1.2.23.21 13 packets
IPC-122
Configuring IP Services
IP Services Configuration Examples
For this example, the following masks are implied in the first two lines:
access-list 1 permit 0.0.0.0 0.0.0.0
access-list 1 permit 131.108.0.0 0.0.0.0
The last line in the configuration (using the deny keyword) can be left off, because IP access lists
implicitly deny all other access. Leaving off the last line in the configuration is equivalent to finishing
the access list with the following command statement:
access-list 1 deny 0.0.0.0 255.255.255.255
The following access list only allows access for those hosts on the three specified networks. It assumes
that subnetting is not used; the masks apply to the host portions of the network addresses. Any hosts with
a source address that does not match the access list statements will be rejected.
access-list 1 permit 192.5.34.0 0.0.0.255
access-list 1 permit 128.88.0.0 0.0.255.255
access-list 1 permit 36.0.0.0 0.255.255.255
! (Note: all other access implicitly denied)
To specify a large number of individual addresses more easily, you can omit the address mask that is all
0s from the access-list global configuration command. Thus, the following two configuration commands
are identical in effect:
access-list 2 permit 36.48.0.3
access-list 2 permit 36.48.0.3
0.0.0.0
IPC-123
Configuring IP Services
IP Services Configuration Examples
For another example of using an extended access list, suppose you have a network connected to the
Internet, and you want any host on an Ethernet to be able to form TCP connections to any host on the
Internet. However, you do not want IP hosts to be able to form TCP connections to hosts on the Ethernet
except to the mail (SMTP) port of a dedicated mail host.
SMTP uses TCP port 25 on one end of the connection and a random port number on the other end. The
same two port numbers are used throughout the life of the connection. Mail packets coming in from the
Internet will have a destination port of 25. Outbound packets will have the port numbers reversed. The
fact that the secure system behind the router always will be accepting mail connections on port 25 is what
makes possible separate control of incoming and outgoing services. The access list can be configured on
either the outbound or inbound interface.
In the following example, the Ethernet network is a Class B network with the address 128.88.0.0, and
the address of the mail host is 128.88.1.2. The established keyword is used only for the TCP protocol
to indicate an established connection. A match occurs if the TCP datagram has the ACK or RST bits set,
which indicate that the packet belongs to an existing connection.
access-list 102 permit tcp 0.0.0.0 255.255.255.255 128.88.0.0 0.0.255.255 established
access-list 102 permit tcp 0.0.0.0 255.255.255.255 128.88.1.2 0.0.0.0 eq 25
interface ethernet 0
ip access-group 102 in
IPC-124
Configuring IP Services
IP Services Configuration Examples
1
1
1
1
In the following example of a numbered access list, the Winter and Smith workstations are not allowed
to browse the web:
access-list
access-list
access-list
access-list
100
100
100
100
remark Do
deny host
remark Do
deny host
In the following example of a named access list, the Jones subnet is not allowed access:
ip access-list standard prevention
remark Do not allow Jones subnet through
deny 171.69.0.0 0.0.255.255
In the following example of a named access list, the Jones subnet is not allowed to use outbound Telnet:
ip access-list extended telnetting
remark Do not allow Jones subnet to telnet out
IPC-125
Configuring IP Services
IP Services Configuration Examples
IP Accounting Example
The following example enables IP accounting based on the source and destination MAC address and
based on IP precedence for received and transmitted packets:
interface Ethernet0/5
ip accounting mac-address input
ip accounting mac-address output
ip accounting precedence input
ip accounting precedence output
Router A
Router B
E0 10.0.0.2
72343
E0 10.0.0.1
Client 1
Client 2
Client 3
Client 4
The following example shows Router A configured as the active router for group 1 with a priority of 110
and Router B configured as the active router for group 2 with a priority of 110. The default priority level
is 100. Group 1 uses a virtual IP address of 10.0.0.3 and Group 2 uses a virtual IP address of 10.0.0.4.
IPC-126
Configuring IP Services
IP Services Configuration Examples
Router A Configuration
hostname RouterA
!
interface ethernet 0
ip address 10.0.0.1 255.255.255.0
standby 1 ip 10.0.0.3
standby 1 priority 110
standby 1 preempt
standby 2 ip 10.0.0.4
standby 2 preempt
Router B Configuration
hostname RouterB
!
interface ethernet 0
ip address 10.0.0.2 255.255.255.0
standby 1 ip 10.0.0.3
standby 1 preempt
standby 2 ip 10.0.0.4
standby 2 priority 110
standby 2 preempt
IPC-127
Configuring IP Services
IP Services Configuration Examples
P1
P2
E1
E2
E2
E1
PE1
(Active)
PE2
(Standby)
10.2.0.20 E0
(vrf1)
E0 10.2.0.20
(vrf1)
E0
E0
CE
IPC-128
Host
45588
Figure 21
Configuring IP Services
IP Services Configuration Examples
IPC-129
Configuring IP Services
IP Services Configuration Examples
Virtual: 12.12.12.1
172.26.56.33
172.26.56.34
FA2
SM
172.26.56.18
172.26.56.19
FA1
172.26.56.17
22098
172.26.56.20
IPC-130
Configuring IP Services
IP Services Configuration Examples
service tcp-small-servers
!
hostname FA2
!
!
microcode CIP flash slot0:cip26-5
microcode reload
ip subnet-zero
no ip domain-lookup
!
ip cef distributed
ip casa 206.10.20.34 224.0.1.2
forwarding-agent 1637
!
interface Ethernet0/0
ip address 172.26.56.18 255.255.255.0
no ip directed-broadcast
ip route-cache flow
ip igmp join-group 224.0.1.2
no ip mroute-cache
!
interface Ethernet0/1
ip address 172.26.56.37 255.255.255.0
no ip directed-broadcast
!
!
!
router eigrp 777
network 172.26.0.0
!
no ip classless
!
line con 0
exec-timeout 0 0
transport input none
line aux 0
line vty 0 4
exec-timeout 0 0
login
!
end
IPC-131
Configuring IP Services
IP Services Configuration Examples
mtu 0 1500
mtu 1 1500
mtu 2 1500
mtu 3 1500
multiring all
no secure 0
no secure 1
no secure 2
no secure 3
ping-allow 0
ping-allow 1
ping-allow 2
ping-allow 3
ip address 172.26.56.19 255.255.255.248
route 172.26.10.249 255.255.255.255 172.26.56.20 1
route 206.10.20.33 255.255.255.255 172.26.56.17 1
route 206.10.20.34 255.255.255.255 172.26.56.18 1
no rip passive
failover ip address 0.0.0.0
failover
password cisco
telnet 161.0.0.0 255.0.0.0
no snmp-server contact
no snmp-server location
casa service-manager port 1638
casa service-manager multicast-ttl 60
tftp-server 172.26.10.249 /tftpboot/LD
virtual 172.26.56.13:0:0:tcp is
virtual 172.26.56.2:0:0:tcp is
redirection 172.26.56.13:0:0:tcp dispatched casa wildcard-ttl 60 fixed-ttl 60 igmp
224.0.1.2 port 1637
redirection 172.26.56.2:0:0:tcp dispatched casa wildcard-ttl 60 fixed-ttl 60 igmp
224.0.1.2 port 1637
real 172.26.56.34:0:0:tcp is
real 172.26.56.33:0:0:tcp is
real 172.26.56.6:0:0:tcp is
real 172.26.56.10:0:0:tcp is
bind 172.26.56.13:0:0:tcp 172.26.56.33:0:0:tcp
bind 172.26.56.13:0:0:tcp 172.26.56.34:0:0:tcp
bind 172.26.56.2:0:0:tcp 172.26.56.10:0:0:tcp
bind 172.26.56.2:0:0:tcp 172.26.56.6:0:0:tcp
: end
IPC-132
The addition of new physical (real) servers, and the removal or failure of existing servers, can occur
at any time, transparently, without affecting the availability of the virtual server.
The slow start capability of IOS SLB allows a new server to increase its load gradually, preventing
failures caused by assigning the server too many new connections too quickly.
IOS SLB supports fragmented packets and packets with IP options, buffering your servers from
client or network vagaries that are beyond your control.
Administration of server applications is easier. Clients know only about virtual servers; no
administration is required for real server changes.
IPC-133
Security of the real server is provided because its address is never announced to the external network.
Users are familiar only with the virtual IP address. You can filter unwanted flows based on both IP
address and TCP or UDP port numbers. Though it does not eliminate the need for a firewall, IOS SLB
also can help protect against some denial-of-service attacks.
In a branch office, IOS SLB allows balancing of multiple sites and disaster recovery in the event of
full-site failure, and distributes the work of load balancing.
Figure 23 illustrates a logical view of IOS SLB.
Figure 23
Virtual server
Real
server
Real
server
Real
server
29164
Catalyst 4840G
with IOS SLB
Client
Client
Client
Client
Port-Bound Servers
Sticky Connections
Maximum Connections
Automatic Unfail
Slow Start
IPC-134
SynGuard
Alternate IP Addresses
NAT
Note
Assigning a weight of n = 1 to all of the servers in the server farm configures the IOS SLB switch to
use a simple round robin algorithm.
Note
Assigning a weight of n = 1 to all of the servers in the server farm configures the IOS SLB switch to
use a simple least-connection algorithm.
IPC-135
Port-Bound Servers
When you define a virtual server, you must specify the TCP or UDP port handled by that virtual server.
However, if you configure NAT on the server farm, you can also configure port-bound servers.
Port-bound servers allow one virtual server IP address to represent one set of real servers for one service,
such as HTTP, and a different set of real servers for another service, such as Telnet.
Packets destined for a virtual server address for a port that is not specified in the virtual server definition
are not redirected.
IOS SLB supports both port-bound and nonport-bound servers, but port-bound servers are
recommended.
Sticky Connections
When you use sticky connections, new connections from a client IP address or subnet are assigned to the
same real server as were previous connections from that address or subnet.
IOS SLB creates sticky objects to track client assignments. The sticky objects remain in the IOS SLB
database after the last sticky connection is deleted, for a period defined by a configurable sticky timer. If
the timer is configured on a virtual server, new connections from a client are sent to the same real server
that handled the previous client connection, provided one of the following conditions is true:
The amount of time between the end of a previous connection from the client and the start of the
new connection is within the timer duration.
Sticky connections also permit the coupling of services that are handled by more than one virtual server.
This allows connection requests for related services to use the same real server. For example, Web server
(HTTP) typically uses TCP port 80, and HTTP over Secure Socket Layer (HTTPS) uses port 443. If
HTTP virtual servers and HTTPS virtual servers are coupled, connections for ports 80 and 443 from the
same client IP address or subnet are assigned to the same real server.
Maximum Connections
The maximum connections feature allows you to configure a limit on the number of active connections
that a real server can handle.
IPC-136
Automatic Unfail
When a real server fails and is removed from the list of active servers, it is assigned no new connections
for a length of time specified by a configurable retry timer. After that timer expires, the server is again
eligible for new virtual server connections and IOS SLB sends the server the next connection for which
it qualifies. If the connection is successful, the failed server is again placed back on the list of active real
servers. If the connection is unsuccessful, the server remains out of service and the retry timer is reset.
Slow Start
In an environment that uses weighted least connections load balancing, a real server that is placed in
service initially has no connections, and could therefore be assigned so many new connections that it
becomes overloaded. To prevent such an overload, the slow start feature controls the number of new
connections that are directed to a real server that has just been placed in service.
SynGuard
The SynGuard feature limits the rate of TCP SYNs handled by a virtual server to prevent a type of
network problem known as a SYN flood denial-of-service attack. A user might send a large number of
SYNs to a server, which could overwhelm or crash the server, denying service to other users. SynGuard
prevents such an attack from bringing down IOS SLB or a real server. SynGuard monitors the number
of SYNs to a virtual server over a specific time interval and does not allow the number to exceed a
configured SYN threshold. If the threshold is reached, any new SYNs are dropped.
IPC-137
Alternate IP Addresses
IOS SLB enables you to Telnet to the load-balancing device using an alternate IP address. To do so, use
either of the following methods:
This function is similar to that provided by the LocalDirector (LD) Alias command.
Note
A Web cache can start its own connections to real sites if pages are not available in its cache. Those
connections cannot be load balanced back to the same set of caches. IOS SLB addresses this situation
by allowing you to configure client exclude statements so that IOS SLB does not load balance
connections initiated by the Web caches.
NAT
Cisco IOS Network Address Translation (NAT), RFC 1631, allows unregistered private IP addresses
to connect to the Internet by translating them into globally registered IP addresses. Cisco IOS NAT also
increases network privacy by hiding internal IP addresses from external networks.
IOS SLB can operate in one of two redirection modes:
Directed modeThe virtual server can be assigned an IP address that is not known to any of the real
servers. IOS SLB translates packets exchanged between a client and real server, translating the
virtual server IP address to a real server address via NAT.
Dispatched modeThe virtual server address is known to the real servers; you must configure the
virtual server IP address as a loopback address, or secondary IP address, on each real server. IOS SLB
redirects packets to the real servers at the media access control (MAC) layer. Because the virtual
server IP address is not modified in dispatched mode, the real servers must be Layer 2 adjacent to
IOS SLB, or intervening routers might not be able to route to the chosen real server.
The main advantage of dispatched mode is performance. In dispatched mode, the Layer 3 and Layer 4
addresses are not modified, which means IP header checksum adjustment occurs quickly, and checksum
adjustment or recalculation for TCP or UDP is not required. Dispatched mode is also simpler than in
directed mode because packets for applications with IP addresses in the packet need not be examined
and modified.
IPC-138
The main disadvantage of dispatched mode is that the virtual server IP address is not modified, which
means that the real servers must be Layer 2 adjacent with the load balancer or intervening routers may
not be able to route to the chosen real server.
NAT (directed mode) is used to solve these dispatched mode problems.
IOS SLB currently supports only server NAT. By replacing the virtual server IP address with the real
server IP address (and vice versa), servers can be many hops away from the load balancer and intervening
routers can route to them without requiring tunneling. Additionally, loopback and secondary interfaces
need no longer be on the real server.
Note
On the Catalyst 6000 family switches and Cisco 7200 series routers, if an IP address is configured as
a real IP address for a NAT virtual server, you cannot balance connection requests from that address
to a different virtual server (whether NAT or dispatch) on the same load balancer.
The network designer must ensure that outbound packets travel through IOS SLB using one of the
following methods:
Direct wiring (all packets flow through a branch office IOS SLB device)
IOS SLB NAT of client addresses, enabled as an outbound feature on server-side interfaces
A less common form of server NAT is server port translation, which involves replacement of a virtual
server port. Server port translation does not require server IP address translation, but the two translations
can be used together.
Note
To avoid any single point of failure in an IOS SLB network, use multiple Layer 2 switches to provide
connectivity between the IOS SLB devices and the servers.
Restrictions
IOS SLB has the following restrictions:
Operates in a standalone mode and currently does not operate as a MultiNode Load Balancing
(MNLB) Services Manager. The presence of IOS SLB does not preclude the use of the existing
MNLB Forwarding Agent with an external Services Manager in an MNLB environment.
IPC-139
Does not support coordinating server load-balancing statistics among different IOS SLB instances
for backup capability.
Does not support load balancing of flows between clients and real servers that are on the same LAN
VLAN.
Does not support IOS SLB and Cisco Applications and Services Architecture (CASA) configured
with the same virtual IP address, even if they are for different services.
Supports Cisco IOS NAT in directed mode with no hardware data packet acceleration. (Hardware
data packet acceleration is performed by the Policy Feature Card (PFC), and in directed mode the
data packets are handled by the Multilayer Switched Feature Card (MSFC), not the PFC.)
Requires that the Multilayer Switching (MLS) flow mode be set to full. For more information about
how to set the MLS flow, refer to the Configuring IP Multilayer Switching section in the Catalyst
6000 Family MSFC (12.0) & PFC Configuration Guide, Release 5.4.
When IOS SLB is operating in dispatched mode, real servers must be Layer 2-adjacent to the
IOS SLB switch (that is, not beyond an additional router), with hardware data packet acceleration
performed by the PFC. All real servers that can be reached by a single IOS SLB device must be on
the same VLAN. The loopback address must be configured in the real servers.
When IOS SLB is operating in directed mode with server NAT, real servers need not be Layer
2-adjacent to the IOS SLB switch. This allows for more flexible network design, because servers
can be placed several Layer 3 hops away from the IOS SLB switch.
Requires that all real servers that can be reached by a single IOS SLB device must be on the same
VLAN. The loopback address must be configured in the real servers.
Supports NativeIOS only and C6sup-is-mz images.
In dispatched mode, the servers must be Layer 2-adjacent or tag-switched. In directed mode, the
servers can be one or more hops away.
Supports Cisco IOS NAT in directed mode with no hardware data packet acceleration. Provides no
hardware acceleration for the IOS SLB function for either dispatched mode or directed mode.
IPC-140
Purpose
Purpose
IPC-141
Specifying a Bind ID
To configure a bind ID on the server farm for use by DFP, use the following command in SLB server
farm configuration mode:
Command
Purpose
Purpose
Purpose
IPC-142
Purpose
Router(config-slb-real)# inservice
Purpose
Purpose
Purpose
IPC-143
Purpose
Purpose
Router(config-slb-vserver)# no advertise
Purpose
Router(config-slb-vserver)# inservice
IPC-144
Purpose
Step 1
Step 2
Configuring NAT
To configure IOS SLB NAT mode for a specific server farm, use the following commands beginning in
global configuration mode:
Command
Purpose
Step 1
Step 2
Step 3
IPC-145
HSRP uses a priority scheme to determine which HSRP-configured Layer 3 switch is to be the default
active Layer 3 switch. To configure a Layer 3 switch as active, you assign it a priority higher than that
of all other HSRP-configured Layer 3 switches. The default priority is 100, so if you configure just one
Layer 3 switch to have a higher priority, that switch becomes the default active switch.
HSRP works by the exchange of multicast messages that advertise priority among HSRP-configured
Layer 3 switches. When the active switch fails to send a hello message within a configurable period, the
standby switch with the highest priority becomes the active switch. The transition of packet-forwarding
functions between Layer 3 switches is completely transparent to all hosts accessing the network.
HSRP-configured Layer 3 switches exchange the following types of multicast messages:
HelloThe hello message conveys the HSRP priority and state information of the switch. By
default, an HSRP switch sends hello messages every 3 seconds.
CoupWhen a standby Layer 3 switch assumes the function of the active switch, it sends a coup
message.
ResignThe active Layer 3 switch sends a resign message when it is about to shut down or when a
switch that has a higher priority sends a hello message.
At any time, HSRP-configured Layer 3 switches are in one of the following states:
StandbyThe switch is prepared to assume packet-transfer functions if the active router fails.
Configure IOS SLB switches to run HSRP between interfaces on the server side
Configure multiple IOS SLB switches that share a virtual IP address as long as the client ranges are
exclusive and you use policy routing to forward the flows to the correct IOS SLB switch
To configure stateless backup over VLANs between IOS SLB switches, perform the following steps:
Step 1
Configure the server farms. See the Specifying a Server Farm section earlier in this chapter.
Step 2
Configure the real servers. See the Specifying a Real Server section earlier in this chapter.
Step 3
Configure the virtual servers. See the Specifying a Virtual Serversection earlier in this chapter.
Note
When you use the inservice (virtual service) command to configure the virtual server as
in-service you must use the optional standby interface configuration command and
configure an HSRP group name.
Step 4
Configure the IP routing protocol. See the IP Routing Protocols part of the Cisco IOS IP Configuration
Guide.
Step 5
Configure the VLAN between the switches. See the Virtual LANs chapter of the Cisco IOS
Switching Services Configuration Guide.
Step 6
Enable HSRP. See the Enabling HSRP section earlier in this chapter.
IPC-146
Step 7
Customize group attributes. See the Customizing Group Attributes section earlier in this chapter.
Step 8
Verify the IOS SLB HSRP configuration. See the Verifying the IOS SLB Stateless Backup
Configuration section earlier in this chapter.
A sample stateless backup configuration is shown in the IOS SLB Stateless Backup Configuration
Example section.
Enabling HSRP
To enable HSRP on an IOS SLB interface, enable the protocol, then customize it for the interface. Use
the following command in interface configuration mode:
Command
Purpose
Enables HSRP.
Purpose
IPC-147
VS1
VS2
TCP
TCP
10.10.10.12:23
10.10.10.18:23
INSERVICE
INSERVICE
2
2
Step 2
Ping from that device to each of the clients and real servers. If it is not precluded by firewalls or network
configuration, ping from the client side to each of the real servers.
Step 3
From the client side, ping the virtual server. Pings are answered by IOS SLB even if no real servers are
in service, so this ensures that the IOS SLB device is reachable.
Step 4
For the selected protocol, start a client connection to the virtual server.
Step 5
b.
c.
Enter the show ip slb reals detail and show ip slb conns EXEC commands.
d.
Examine the real server connection counts. The real server whose count increased is the one to
which the client connection is assigned.
e.
Enter the show ip slb sticky EXEC command to display the sticky relationships that IOS SLB
stored.
f.
g.
IPC-148
h.
Restart the connection, after waiting no longer than the sticky timeout value.
i.
j.
Examine the real server connection counts again, and verify that the sticky connection is assigned
to the same real server as before.
Step 6
Step 7
Step 8
Use a large client population. If the number of clients is very small, tune the numclients keyword on the
faildetect SLB real server configuration command so that the servers are not displayed as failed.
Step 2
Enter the show ip slb reals detail EXEC command to show the status of the real servers.
Step 3
Servers that failed show a status of failed, testing, or ready_to_test, based on whether IOS SLB is
checking that the server came back up when the command was sent.
When a real server fails, connections that are assigned but not established (no SYN or ACK is
received) are reassigned to another real server on the first inbound SYN after the reassign threshold
is met. However, any connections that were already established are forwarded to the same real server
because, although it may not be accepting new connections, it may be servicing existing ones.
For weighted least connections, a real server that has just been placed in service starts slowly so that
it is not overloaded with new connections. (See the Slow Start section for more information on
this feature.) Therefore, the connection counts displayed for a new real server show connections
going to other real servers (despite the lower count of the new real server). The connection counts
also show dummy connections to the new real server, which IOS SLB uses to artificially inflate
the connection counts for the real server during the slow start period.
IPC-149
Question
Answer
Why can I connect to real servers directly, but not Make sure that the virtual IP address is configured as a loopback in each
to the virtual server?
of the real servers (if you are running in dispatched mode).
Why is IOS SLB not marking my real server as
failed when I disconnect it from the network?
Tune the values for the numclients, numconns, and delay keywords.
If you have a very small client population (for example, in a test
environment), the numclients keyword could be causing the problem.
This parameter prevents IOS SLB from mistaking the failure of a small
number of clients for the failure of a real server.
Why is IOS SLB not marking my connections as If you are using dispatched mode, make sure there are no alternate paths
established even though I am transferring data? that allow outbound flows to bypass IOS SLB. Also, make sure that the
clients and real servers are not on the same IP subnet.
Why does IOS SLB show my real server as
inservice even though I have taken it down or
physically disconnected it?
The current IP flowmask must be full flow. If it is not, correct the problem
using the mls flow ip full global configuration command:
Router# configure terminal
Enter configuration commands, one per line.
End with CNTL/Z.
Router(config)# mls flow ip full
Router(config)#
IPC-150
Purpose
Configuration Examples
This section provides the following IOS SLB configuration examples:
IPC-151
Restricted
web server
10.1.1.20
Restricted
web server
10.1.1.21
10.1.1.x
Virtual server
10.0.0.1
29163
10.4.4.x
Client
Human
Resources
Client
Client
As shown in the following sample code, the example topology has three public Web servers and two
restricted Web servers for privileged clients in subnet 10.4.4.x. The public Web servers are weighted
according to their capacity, with server 10.1.1.2 having the lowest capacity and having a connection limit
imposed on it. The restricted Web servers are configured as members of the same sticky group, so that
HTTP connections and Secure Socket Layer (SSL) connections from the same client use the same real
server.
This configuration is coded as follows:
ip slb serverfarm PUBLIC
predictor leastconns
real 10.1.1.1
weight 16
inservice
real 10.1.1.2
weight 4
maxconns 1000
inservice
real 10.1.1.3
weight 24
inservice
IPC-152
Server 1
10.1.1.1
HTTP=80
Switch A
Server 2
10.2.1.1
HTTP=80
Switch B
Server 3
10.3.1.1
Server 4
10.4.1.1
HTTP=80
HTTP1 = 8080
HTTP2 = 8081
HTTP3 = 8082
Switch C
33459
Clients
Servers 1, 2, and 3 are running single HTTP server applications listening on port 80.
IPC-153
Server 4 has multiple HTTP server applications listening on ports 8080, 8081, and 8082.
Servers 1 and 2 are load balanced using Switch A, which is performing server address translation.
Servers 3 and 4 are load balanced using Switches B and C. These two switches are performing server
address translation. These switches also perform server port translation for HTTP packets to and from
Server 4.
The configuration statements for Switch A are as follows:
ip slb serverfarm FARM1
! Translate server addresses
nat server
! Server 1 port 80
real 10.1.1.1
inservice
! Server 2 port 80
real 10.2.1.1
inservice
!
ip slb vservers HTTP1
! Handle HTTP (port 80) requests
virtual 128.1.0.1 tcp www
serverfarm FARM1
inservice
IPC-154
Device A is the active HSRP Layer 3 switch and handles packets to the real servers with IP addresses
3.0.01 through 3.0.020.
Device B handles packets to real servers with IP addresses 2.0.0.1 through 2.0.0.20.
All hosts accessing the network use the IP address of the virtual router (in this case, 1.0.0.3).
The configuration shown uses the Enhanced Interior Gateway Routing Protocol (Enhanced IGRP),
but HSRP can be used with any other routing protocol supported by the Cisco IOS software, such as
Open Shortest Path First (OSPF).
Note
Some configurations that use HSRP still require a routing protocol for convergence when
a topology change occurs. The standby Layer 3 switch becomes active, but connectivity
does not occur until convergence occurs.
If the connection between Device A and the client accessing virtual IP 1.0.0.3 fails, fast-converging
routing protocols (such as Enhanced IGRP and OSPF) can respond within seconds, ensuring that
Device B is prepared to transfer packets that would have gone through Device A.
IPC-155
Figure 26
Client
Virtual IP = 1.0.0.3
Fast Ethernet 1
3.0.0.1
WWW server
Device A active
Fast Ethernet 20
3.0.0.20
WWW server
IPC-156
ISL between
devices
Gigabit Ethernet 42
1.0.0.2
Device B standby
Virtual IP = 1.0.0.3
Fast Ethernet 1
2.0.0.1
WWW server
Fast Ethernet 20
2.0.0.20
WWW server
33604
Gigabit Ethernet 41
1.0.0.1
standby 1 timers 5 15
standby 1 name Web-Group
interface FastEthernet 41
ip address 2.0.0.1 255.0.0.0
router eigrp 1
network 1.0.0.0
network 2.0.0.0
The standby ip interface configuration command enables HSRP and establishes 1.0.0.3 as the IP address
of the virtual router. The configurations of both Layer 3 switches include this command so that both
switches share the same virtual IP address. The number 1 establishes Hot Standby group 1. (If you do
not specify a group number, the default is group 0.) The configuration for at least one of the Layer 3
switches in the Hot Standby group must specify the IP address of the virtual router; specifying the IP
address of the virtual router is optional for other routers in the same Hot Standby group.
The standby preempt interface configuration command allows the Layer 3 switch to become the active
switch when its priority is higher than all other HSRP-configured switches in this Hot Standby group.
The configurations of both switches include this command so that each can be the standby Layer 3 switch
for the other switch. The number 1 indicates that this command applies to Hot Standby group 1. If you
do not use the standby preempt command in the configuration for a Layer 3 switch, that switch cannot
become the active Layer 3 switch.
The standby priority interface configuration command sets the HSRP priority of the Layer 3 switch to
110, which is higher than the default priority of 100. Only the configuration of Device A includes this
command, which makes Device A the default active Layer 3 switch. The number 1 indicates that this
command applies to Hot Standby group 1.
The standby authentication interface configuration command establishes an authentication string
whose value is an unencrypted eight-character string that is incorporated in each HSRP multicast
message. This command is optional. If you choose to use it, each HSRP-configured Layer 3 switch in
the group should use the same string so that each switch can authenticate the source of the HSRP
messages that it receives. The number 1 indicates that this command applies to Hot Standby group 1.
The standby timers interface configuration command sets the interval (in seconds) between hello
messages (called the hello time) to 5 seconds, and sets the interval (in seconds) that a Layer 3 switch
waits before it declares the active Layer 3 switch to be down (called the hold time) to 8 seconds. (The
defaults are 3 and 10 seconds, respectively.) To modify the default values, you must configure each Layer
3 switch to use the same hello time and hold time. The number 1 indicates that this command applies to
Hot Standby group 1.
The standby name interface configuration command associates the IOS SLB interface with an HSRP
group name (in this case, Web-Group), previously specified on an inservice (virtual server) command.
The number 1 indicates that this command applies to Hot Standby group 1.
100
100
100
100
100
100
ip 172.20.100.10
priority 110
preempt
timers 5 15
name Web_group1
authentication Secret
IPC-157
IPC-158
Configuring Mobile IP
This chapter describes how to configure Mobile IP. For a complete description of the Mobile IP
commands in this chapter, refer to the Mobile IP Commands chapter of the Cisco IOS IP Command
Reference, Volume 1 of 3: Addressing and Services. To locate documentation of other commands that
appear in this chapter, use the command reference master index or search online.
Mobile IP Overview
If an IP node, for example, a personal digital assistant (PDA), moves from one link to another, the
network prefix of its IP address no longer equals the network prefix assigned to its current link. As a
result, packets are not delivered to the current location of the PDA.
Mobile IP enables an IP node to retain the same IP address and maintain existing communications while
traveling from one link to another.
Mobile IP is an IETF standards based solution for mobility at the network layer, which is Layer 3. Mobile
IP supports the following RFCs:
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the Identifying Supported Platforms
section in the Using Cisco IOS Software chapter in this book.
IPC-159
Configuring Mobile IP
Mobile IP Overview
IP routing decisions are based on the network prefix of the IP address to be scalable for the Internet. All
nodes on the same link share a common network prefix. If a node moves to another link, the network
prefix does not equal the network prefix on the new link. Consequently, IP routing would fail to route
the packets to the node after movement to the new link.
An alternative to network-prefix routing is host-specific routing. Host-specific routing is not a problem
in small networks. However, considering there are billions of hosts on the Internet, this solution is not
feasible for Internet connections. Routers would need enough memory to store tens of millions of routing
table entries and would spend most of their computing resources updating routing tables.
DHCP (Dynamic Host Configuration Protocol) is commonly used in corporate environments and allows
a server to dynamically assign IP addresses and deliver configuration parameters to nodes. The DHCP
Server verifies the identity of the node, leases it the IP address from a pool of addresses for a
predetermined period of time, and reclaims the address for reassignment when the lease expires. The
node can terminate existing communication sessions, move to a new point-of-attachment to the network,
reconnect to the network, and receive a new IP address from DHCP. This arrangement conserves IP
addresses and reduces Internet access costs. However, if users are mobile and need continuous
communications and accessibility without any interruptions in their sessions, DHCP is not an adequate
solution. DHCP wont allow applications to maintain connections across subnet/network boundaries.
Mobile IP is scalable for the Internet because it is based on IPany media that supports IP can support
Mobile IP. Mobile IP does not drop the network prefix of the IP address of the node, which is critical to
the proper routing of packets throughout the Internet. Also, certain network services, such as software
licenses and access privileges, are based on IP addresses. Changing these IP addresses could
compromise the network services. Certain applications, such as remote login, remote printing, and file
transfers are examples of applications where it is undesirable to interrupt communications while a
mobile node moves from one link to another. Thus, Mobile IP provides the solution for continuous
connectivity that is scalable for the Internet.
Mobile IP Components
Mobile IP is comprised of the following three components, as shown in Figure 27:
IPC-160
Configuring Mobile IP
How Mobile IP Works
Figure 27
Mobile node
visiting foreign
network
Foreign
network
Internet
Foreign
agent
Home
agent
Home
network
53030
Foreign
network
Mobile node
at home
Foreign
agent
An MN is a node, for example, a PDA, a laptop computer, or a data-ready cellular phone, that can change
its point of attachment from one network or subnet to another. This node can maintain ongoing
communications while using only its home IP address.
An HA is a router on the home network of the MN that maintains an association between the home IP
address of the MN and its care-of address, which is the current location of the MN on a foreign or visited
network. The HA redirects packets by tunneling them to the MN while it is away from home.
An FA is a router on a foreign network that assists the MN in informing its HA of its current care-of
address. The FA detunnels and delivers packets to the MN that were tunneled by the HA. The FA also
acts as the default router for packets generated by the MN while it is connected to the foreign network.
It is recommended that HA and FA functionality be designed with interfaces with line protocol states
that are normally up.
Agent Discovery
Registration
Routing
Agent Discovery
During the agent discovery phase, HAs and FAs advertise their presence on their attached links by
periodically multicasting or broadcasting messages called agent advertisements. MNs listen to these
advertisements and determine if they are connected to their home link or a foreign link. Rather than
waiting for agent advertisements, an MN can also send an agent solicitation. This solicitation forces any
agents on the link to immediately send an agent advertisement.
IPC-161
Configuring Mobile IP
How Mobile IP Works
If an MN determines that it is connected to a foreign link, it acquires a care-of address. Two types of
care-of addresses exist:
FA care-of address
An FA care-of address is a temporary, loaned IP address that the MN acquires from the FA agent
advertisement. This type of care-of address is the exit point of the tunnel from the HA to the FA. A
collocated care-of address is an address temporarily assigned to an MN interface. This address is
assigned by DHCP or by manual configuration.
Registration
After receiving a care-of address, the MN registers this address with its HA through an exchange of
messages. The HA creates a mobility binding table that maps the home IP address of the MN to the
current care-of address of the MN. An entry in this table is called a mobility binding. The main purpose
of registration is to create, modify, or delete the mobility binding of an MN at its HA.
During registration, the MN also asks for service from the FA.
The HA advertises reachability to the home IP address of the MN, thereby attracting packets that are
destined for that address. When a device on the Internet, called a corresponding node (CN), sends a
packet to the MN, the packet is routed to the home network of the MN. The HA intercepts the packet and
tunnels it to the registered care-of address of the MN. At the care-of address, the FA extracts the packet
from the tunnel and delivers it to the MN.
If the MN is sending registration requests through a FA, the FA keeps track of all visiting MNs by
keeping a visitor list. The FA relays the registration request directly to the HA without the need for
tunneling. The FA serves as the router for all packets sent by the visiting MN.
When the MN powers down or determines that it is reconnected to its home link, it deregisters by sending
a deregistration request to the HA. The HA then reclaims the MN.
Routing
Because the major function of a Layer 3 protocol is routing, the major features of Mobile IP deal with
how to route packets to users who are mobile.
Mobile IP is a tunneling-based solution that takes advantage of the Cisco-created generic routing
encapsulation (GRE) tunneling technology and simpler IP-in-IP tunneling protocol. The traffic destined
for the MN is forwarded in a triangular manner. When the CN (a device on the Internet) sends a packet
to the MN, the HA redirects the packet by tunneling to the care-of address (current location) of the MN
on the foreign network. The FA receives the packet from the HA and forwards it locally to the MN.
However, packets sent by the MN are routed directly to the CN.
See Figure 28 for a diagram of typical packet forwarding in Mobile IP.
IPC-162
Configuring Mobile IP
How Mobile IP Works
Figure 28
Mobile node
visiting foreign
network
Mobile node
at home
Internet
Foreign
agent
Home
agent
Home
network
53031
Foreign
network
Correspondent
node
Mobile IP Security
Mobile IP provides the following guidelines on security between its components:
Also, communication between an active HA and a standby HA, as implemented when using the HA
redundancy feature, must be authenticated. For more information on this feature, see the Home Agent
Redundancy section later in this chapter.
MN-HA
In particular, the Mobile IP registration process is vulnerable to security attacks, because it informs the
HA where to tunnel packets to a traveling MN. An illegitimate node could send a bogus registration
request to an HA and cause all packets to be tunneled to the illegitimate node instead of the MN. This
type of attack, called a denial-of-service attack, prevents the MN from receiving and sending any
packets. To prevent denial-of-service attacks, Mobile IP requires that all registration messages between
an MN and an HA be authenticated.
Cisco IOS software supports the Mobile-Home Authentication Extension (MHAE). All registration
messages between an MN and an HA include a mandatory authentication extension.
Message Digest 5 (MD5) is an algorithm that takes the registration message and a key to compute the
smaller chunk of data, called a message digest, plus a secret key. The MN and HA both have a copy of
the key, called a symmetric key, and authenticate each other by comparing the results of the computation.
The time stamp is an identifier in the message that ensures the origination of the registration request and
the time it was sent, thereby preventing replay attacks. A replay attack occurs when an individual records
an authentic message that was previously transmitted and replays it at a later time. The time stamp is
also protected by MD5.
IPC-163
Configuring Mobile IP
How Mobile IP Works
This authentication process begins when a MN sends the registration request. The MN adds the time
stamp, computes the message digest, and appends the MHAE to the registration request. The HA
receives the request, checks that the time stamp is valid, computes the message digest using the same
key, and compares the message digest results. If the results match, the request is successfully
authenticated. For the registration reply, the HA adds the time stamp, computes the message digest, and
appends the MHAE to the registration reply. The MN authenticates the registration reply upon arrival
from the HA.
MN-FA
Mobile IP does not require that communication between an MN and an FA be authenticated. Cisco IOS
software supports the optional Mobile-Foreign Authentication Extension (MFAE). MFAE protects the
communication between the MN and FA by keeping a shared key between them.
FA-HA
Mobile IP does not require that communication between an FA and an HA be authenticated. Cisco IOS
software supports the optional Foreign-Home Authentication Extension (FHAE). FHAE protects the
communication between the FA and HA by keeping a shared key between them.
HA-HA
Communication between an active HA and a standby HA in an HA redundancy topology must be
authenticated. The authentication process works in the same manner as described in the previous
MN-HA section. However, HA-HA authentication is an added Cisco-proprietary authentication
extension needed to secure communication between peer HAs for HA redundancy. (Active HAs and
standby HAs are peers to each other.)
Use the ip mobile secure home-agent global configuration command to configure the security
associations between all peer HAs within a standby group for each of the other HAs within the standby
group. The configuration is necessary because any HA within the standby group can become active HA
or standby HA at any time. See the Mobile IP HA Redundancy Configuration Task List section later
in this chapter for more information on HA-HA authentication.
NVRAM of an HA
Authentication, authorization, and accounting (AAA) server that can be accessed using either
TACACS+ or RADIUS
Because the NVRAM of an HA is typically limited, you should store the SAs on the HA only if your
organization has a small number of MNs. If your organization has a large number of MNs, you should
store the SAs on a AAA server.
IPC-164
Configuring Mobile IP
How Mobile IP Works
Caching SAs on HA
When an MN is registering with an HA, keys are needed for the MN-HA authorization process, which
requires AAA authorization for Mobile IP. If SAs are stored on a AAA server, the HA must retrieve the
appropriate SA from the server. The SA is downloaded to the HA, and the HA caches the SA and reuses
it when necessary rather than retrieving it from the AAA server again.
HSRP Groups
Before configuring HA redundancy, you must understand the concept of HSRP groups.
An HSRP group is composed of two or more routers that share an IP address and a MAC (Layer 2)
address and act as a single virtual router. For example, your Mobile IP topology can include one active
HA and one or more standby HAs that the rest of the topology view as a single virtual HA.
You must define certain HSRP group attributes on the interfaces of the HAs so that Mobile IP can
implement the redundancy. You can use the groups to provide redundancy for MNs with a home link on
either the interface of the group (a physical network) or on virtual networks. Virtual networks are logical
circuits that are programmed and share a common physical infrastructure.
An MN that has an HA interface (HA IP address) that is not on the same subnet as the MN
An MN that requires the HA interface to be on the same subnet as the MN, that is, the HA and the
MN must be on the same home network
For MNs on physical networks, an active HA accepts registration requests from the MN and sends
binding updates to the standby HA. This process keeps the mobility binding table on the active and
standby HAs synchronized. See (a) in Figure 29 for an example of this process.
IPC-165
Configuring Mobile IP
Prerequisites
For MNs on virtual networks, the active and standby HAs are peerseither HA can handle registration
requests from the MN and update the mobility binding table on the peer HA.
When a standby HA comes up, it must request all mobility binding information from the active HA. The
active HA responds by downloading the mobility binding table to the standby HA. The standby HA
acknowledges that it has received the requested binding information. See (b) in Figure 29 for an example
of an active HA downloading the mobility bindings to a standby HA. A main concern in this stage of the
process is which HA IP interface the standby HA should use to retrieve the appropriate mobility binding
table and on which interface of the standby HA the binding request should be sent.
Figure 29
Active
home
agent
Active
home
agent
Binding
info
reply
Binding update
acknowledgment
Standby
home
agent
(a) Updating binding information
after registration
Binding
info request
Binding info
reply acknowledgment
Standby
home
agent
(b) Downloading mobility
Binding tables
39271
Binding
update
Prerequisites
To configure home agent functionality on your router, you need to determine IP addresses or subnets for
which you want to allow roaming service. If you intend to support roaming on virtual networks, you need
to identify the subnets for which you will allow this service and place these virtual networks
appropriately on the home agent. It is possible to enable home agent functionality for a physical or
virtual subnet. In the case of virtual subnets, you must define the virtual networks on the router using
the ip mobile virtual-network global configuration command. Mobile IP home agent and foreign agent
services can be configured on the same router or on separate routers to enable Mobile IP service to users.
IPC-166
Configuring Mobile IP
Mobile IP Configuration Task List
Because Mobile IP requires support on the host device, each mobile node must be appropriately
configured for the desired Mobile IP service with client software. Please refer to the manual entries in
your mobile aware IP stack vendor documentation for details.
Purpose
Step 1
Step 2
Router(config-router)# exit
Step 3
Step 4
Step 5
Step 6
IPC-167
Configuring Mobile IP
Mobile IP Configuration Task List
Command
Purpose
Step 7
Step 8
Step 9
Step 10
1.
By default, security associations are expected to be configured locally; however, the security association configuration can be offloaded to an
AAA server.
Purpose
Step 1
Step 2
Router(config-router)# exit
Step 3
Step 4
Step 5
Step 6
IPC-168
Configuring Mobile IP
Mobile IP Configuration Task List
Command
Purpose
Step 1
Step 2
Purpose
Step 1
Step 2
Purpose
Step 1
Step 2
Verifying Setup
To make sure Mobile IP is set up correctly, use the following commands in EXEC mode as needed:
IPC-169
Configuring Mobile IP
Mobile IP HA Redundancy Configuration Task List
Command
Purpose
Purpose
Clears counters.
Purpose
Step 1
Step 2
Step 3
IPC-170
Configuring Mobile IP
Mobile IP HA Redundancy Configuration Task List
Depending on your network configuration, perform one of the optional tasks described in the following
sections:
Enabling HA Redundancy for a Virtual Network Using One Physical Network (Optional)
Enabling HA Redundancy for a Virtual Network Using Multiple Physical Networks (Optional)
Enabling HA Redundancy for Multiple Virtual Networks Using One Physical Network (Optional)
Enabling HA Redundancy for Multiple Virtual Networks Using Multiple Physical Networks
(Optional)
Enabling Mobile IP
To enable Mobile IP on the router, use the following command in global configuration mode:
Command
Purpose
Enabling HSRP
To enable HSRP on an interface, use the following command in interface configuration mode:
Command
Purpose
Enables HSRP.
Purpose
or
Router(config-if)# standby [group-number] [priority priority]
preempt [delay [minimum | sync] delay]
IPC-171
Configuring Mobile IP
Mobile IP HA Redundancy Configuration Task List
Purpose
Step 1
Enables HSRP.
Step 2
Step 3
Step 4
Purpose
Step 1
Enables HSRP.
Step 2
Step 3
or
Router(config)# ip mobile home-agent
Step 4
IPC-172
Configuring Mobile IP
Mobile IP HA Redundancy Configuration Task List
Command
Purpose
Step 5
Step 6
Purpose
Step 1
Enables HSRP.
Step 2
Step 3
Step 4
or
or
Step 5
Step 6
Step 7
Step 8
IPC-173
Configuring Mobile IP
Mobile IP HA Redundancy Configuration Task List
Purpose
Step 1
Step 2
Step 3
or
or
Step 4
Step 5
Step 6
Purpose
Step 1
Step 2
Step 3
IPC-174
Configuring Mobile IP
Mobile IP HA Redundancy Configuration Task List
Command
Purpose
or
or
Step 5
Step 6
Step 7
Step 8
Step 4
Verifying HA Redundancy
To verify that the Mobile IP Home Agent Redundancy feature is configured correctly on the router,
perform the following steps:
Step 1
Step 2
Step 3
Enter the show ip mobile binding [home-agent address | summary] EXEC command.
Step 4
Step 5
Step 6
IPC-175
Configuring Mobile IP
Mobile IP Configuration Examples
Purpose
IPC-176
Configuring Mobile IP
Mobile IP Configuration Examples
!
! The next ten lines specify security associations for mobile hosts
! on virtual network 10.0.0.0
!
ip mobile secure host 10.0.0.1 spi 100 key hex 12345678123456781234567812345678
ip mobile secure host 10.0.0.2 spi 200 key hex 87654321876543218765432187654321
ip mobile secure host 10.0.0.3 spi 300 key hex 31323334353637383930313233343536
ip mobile secure host 10.0.0.4 spi 100 key hex 45678332353637383930313233343536
ip mobile secure host 10.0.0.5 spi 200 key hex 33343536313233343536373839303132
ip mobile secure host 10.0.0.6 spi 300 key hex 73839303313233343536313233343536
ip mobile secure host 10.0.0.7 spi 100 key hex 83930313233343536313233343536373
ip mobile secure host 10.0.0.8 spi 200 key hex 43536373839313233330313233343536
ip mobile secure host 10.0.0.9 spi 300 key hex 23334353631323334353637383930313
ip mobile secure host 10.0.0.10 spi 100 key hex 63738393132333435330313233343536
!
! The next five lines specify security associations for mobile hosts
! on Ethernet1
!
ip mobile secure host 11.0.0.1 spi 100 key hex 73839303313233343536313233343536
ip mobile secure host 11.0.0.2 spi 200 key hex 83930313233343536313233343536373
ip mobile secure host 11.0.0.3 spi 300 key hex 43536373839313233330313233343536
ip mobile secure host 11.0.0.4 spi 100 key hex 23334353631323334353637383930313
ip mobile secure host 11.0.0.5 spi 200 key hex 63738393132333435330313233343536
!
! Deny access for this host
access-list 1 deny
11.0.0.5
!
! Deny access to anyone on network 13.0.0.0 trying to register
access-list 2 deny
13.0.0.0
In the example above, the user is the mobile nodes IP address. The syntax for the security association
is spi#num = "string", where string is the rest of the ip mobile secure {host | visitor | home-agent |
foreign-agent} key hex string command.
The following example shows how the home agent is configured to use the AAA server:
IPC-177
Configuring Mobile IP
Mobile IP Configuration Examples
aaa new-model
aaa authorization ipmobile radius
!
ip mobile home-agent
ip mobile virtual-network 20.0.0.0 255.0.0.0
ip mobile host 20.0.0.1 20.0.0.3 virtual-network 20.0.0.0 255.0.0.0 aaa load-sa
!
radius-server host 1.2.3.4
radius-server key cisco
Physical
Connections Home Agent Address
Configuration
Physical network
Single
Virtual network
Single
IPC-178
Configuring Mobile IP
Mobile IP Configuration Examples
Table 7
Physical
Connections Home Agent Address
Virtual network
Multiple
Configuration
ip mobile home-agent standby
hsrp-group-name1 virtual-network
ip mobile home-agent standby
hsrp-group-name2 virtual-network
Repeat this command for each HSRP
group associated with the physical
connection.
Multiple virtual
networks
Single
Multiple virtual
networks
Multiple
Physical network
Single
Virtual network
Single
Multiple
IPC-179
Configuring Mobile IP
Mobile IP Configuration Examples
Table 7
Physical
Connections Home Agent Address
Multiple virtual
networks
Single
Configuration
ip mobile home-agent standby
hsrp-group-name virtual-network
Multiple
IPC-180
Configuring Mobile IP
Mobile IP Configuration Examples
Figure 30
Active
HA1
1.0.0.1
Router
HSRP
group
address
Standby
HA2
Physical
home
network
39274
1.0.0.2
Internet
HA1 is favored to provide home agent service for mobile nodes on physical network e0 because the
priority is set to 110, which is above the default of 100. HA1 will preempt any active home agent when
it comes up. During preemption, it does not become the active home agent until it retrieves the mobility
binding table from the current active home agent or until 100 seconds expire for home agent
synchronization.
Note
If the standby preempt command is used, the preempt synchronization delay must be set or mobility
bindings cannot be retrieved before the home agent preempts to become active.
The standby HSRP group name is SanJoseHA and the HSRP group address is 1.0.0.10. The standby HA
uses this HSRP group address to retrieve mobility bindings for mobile nodes on the physical network.
Mobile IP is configured to use the SanJoseHA standby group to provide home agent redundancy.
Mobile nodes are configured with HA address 1.0.0.10. When registrations come in, only the active
home agent processes them. The active home agent sends a mobility binding update to the standby home
agent, which also sets up a tunnel with the same source and destination endpoints. Updates and table
retrievals are authenticated using the security associations configured on the home agent for its peer
home agent. When packets destined for mobile nodes are received, either of the home agents tunnel
them. If HA1 goes down, HA2 becomes active through HSRP and will process packets sent to home
agent address 1.0.0.10.
HA1 Configuration
interface ethernet0
ip address 1.0.0.1 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHA
standby preempt delay sync 100
standby priority 110
ip mobile home-agent standby SanJoseHA
ip mobile secure home-agent 1.0.0.2 spi 100 key hex 00112233445566778899001122334455
IPC-181
Configuring Mobile IP
Mobile IP Configuration Examples
HA2 Configuration
interface ethernet0
ip address 1.0.0.2 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHA
ip mobile home-agent standby SanJoseHA
ip mobile secure home-agent 1.0.0.1 spi 100 key hex 00112233445566778899001122334455
The mobile node and home agent are on the same subnet.
HA2 Configuration
interface ethernet0
ip address 1.0.0.2 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHA
! specifies global HA address=HSRP group address to be used by all mobile nodes
ip mobile home-agent address 1.0.0.10
ip mobile virtual-network 20.0.0.0 255.0.0.0
! used to map to the HSRP group SanJoseHA
ip mobile home-agent standby SanJoseHA virtual-network
ip mobile secure home-agent 1.0.0.1 spi 100 key hex 00112233445566778899001122334455
IPC-182
Configuring Mobile IP
Mobile IP Configuration Examples
HA2 Configuration
interface ethernet0
ip address 1.0.0.2 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHA
! loopback to receive registration from MN on virtual-network
interface loopback0
ip address 20.0.0.1 255.255.255.255
ip mobile home-agent
! address used by Standby HA for redundancy (update and download)
ip mobile virtual-network 20.0.0.0 255.0.0.0 address 20.0.0.1
ip mobile home-agent standby SanJoseHA virtual-network
ip mobile secure home-agent 1.0.0.1 spi 100 key hex 00112233445566778899001122334455
The mobile node and home agent are on the same subnet.
IPC-183
Configuring Mobile IP
Mobile IP Configuration Examples
Mobile nodes are configured with a home agent address 10.0.0.10. When registrations come in, either
home agent processes them (depending on routing protocols) and updates the peer home agent. The
home agent that receives the registration finds the first HSRP group that is mapped to 10.0.0.10 with a
peer in the group and sends the update out that interface. If there is a network problem (for example, the
home agent network adapter fails or cable disconnects), HSRP notices the absence of the peer. The home
agent does not use that HSRP group and finds another HSRP group to use.
Note
All routers must have identical loopback interface addresses, which will be used as the global HA
address. However, do not use this address as the router ID for routing protocols.
When the peer home agent receives the registration update, both home agents tunnel the packets to the
mobile nodes.
HA1 Configuration
interface ethernet0
ip address 1.0.0.1 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHANet1
interface ethernet1
ip add 2.0.0.1 255.0.0.0
standby ip 2.0.0.10
standby name SanJoseHANet2
interface loopback0
ip address 10.0.0.10 255.255.255.255
!Specifies global HA address=loopback address to be used by all mobile nodes
ip mobile home-agent address 10.0.0.10
ip mobile virtual-network 20.0.0.0 255.0.0.0
! Used to map to the HSRP group SanJoseHANet1
ip mobile home-agent standby SanJoseHANet1 virtual-network
! Used to map to the HSRP group SanJoseHANet2
ip mobile home-agent standby SanJoseHANet2 virtual-network
ip mobile secure home-agent 1.0.0.2 spi 100 key hex 00112233445566778899001122334455
ip mobile secure home-agent 2.0.0.2 spi 100 key hex 00112233445566778899001122334455
HA2 Configuration
interface ethernet0
ip address 1.0.0.2 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHANet1
interface ethernet1
ip address 2.0.0.2 255.0.0.0
standby ip 2.0.0.10
standby name SanJoseHANet2
interface loopback0
ip address 10.0.0.10 255.255.255.255
!Specifies global HA address=loopback address to be used by all mobile nodes
ip mobile home-agent address 10.0.0.10
ip mobile virtual-network 20.0.0.0 255.0.0.0
! Used to map to the HSRP group SanJoseHANet1
ip mobile home-agent standby SanJoseHANet1 virtual-network
! Used to map to the HSRP group SanJoseHANet2
ip mobile home-agent standby SanJoseHANet2 virtual-network
IPC-184
Configuring Mobile IP
Mobile IP Configuration Examples
HA2 Configuration
interface ethernet0
ip address 1.0.0.2 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHA
interface ethernet1
ip address 2.0.0.2 255.0.0.0
standby ip 2.0.0.10
standby name SanJoseHANet2
! loopback to receive registration from MN on virtual-network
interface loopback0
ip address 20.0.0.1 255.255.255.255
ip mobile home-agent
! address used by Standby HA for redundancy (update and download)
ip mobile virtual-network 20.0.0.0 255.0.0.0 address 20.0.0.1
ip mobile home-agent standby SanJoseHANet1 virtual-network
ip mobile home-agent standby SanJoseHANet2 virtual-network
ip mobile secure home-agent 1.0.0.1 spi 100 key hex 00112233445566778899001122334455
ip mobile secure home-agent 2.0.0.1 spi 100 key hex 00112233445566778899001122334455
IPC-185
Configuring Mobile IP
Mobile IP Configuration Examples
HA Redundancy for Multiple Virtual Networks Using One Physical Network Example
This section presents two configuration examples:
The mobile node and home agent are on the same subnet.
Figure 31 shows an example network topology for the first scenario. Figure 32 shows an example
network topology for the second scenario.
Figure 31
Active
HA1
1.0.0.1
Virtual
networks
Router
HSRP
group
address
1.0.0.2
Standby
HA2
Internet
Foreign
agent
IPC-186
39273
Physical
home
network
Configuring Mobile IP
Mobile IP Configuration Examples
Figure 32
Active
HA1
1.0.0.1
Virtual
networks
Router
HSRP
group
address
Loopback
interface
1.0.0.2
Standby
HA2
Internet
Foreign
agent
44138
Physical
home
network
HA2 Configuration
interface ethernet0
ip address 1.0.0.2 255.0.0.0
IPC-187
Configuring Mobile IP
Mobile IP Configuration Examples
standby ip 1.0.0.10
standby name SanJoseHA
! specifies global HA address=HSRP group address to be used by all mobile nodes
ip mobile home-agent address 1.0.0.10
ip mobile virtual-network 20.0.0.0 255.0.0.0
ip mobile virtual-network 30.0.0.0 255.0.0.0
! used to map to the HSRP group SanJoseHA
ip mobile home-agent standby SanJoseHA virtual-network
ip mobile secure home-agent 1.0.0.1 spi 100 key hex 00112233445566778899001122334455
HA2 Configuration
interface e0
ip address 1.0.0.2 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHA
! loopback to receive registration from MN on each virtual-network
interface loopback0
ip address 20.0.0.1 255.255.255.255
ip address 30.0.0.1 255.255.255.255 secondary
ip mobile home-agent
! address used by Standby HA for redundancy (update and download) for
! each virtual-network
ip mobile virtual-network 20.0.0.0 255.0.0.0 address 20.0.0.1
ip mobile virtual-network 30.0.0.0 255.0.0.0 address 30.0.0.1
! used to map to the HSRP group SanJoseHA
ip mobile home-agent standby SanJoseHA virtual-network
ip mobile secure home-agent 1.0.0.1 spi 100 key hex 00112233445566778899001122334455
IPC-188
Configuring Mobile IP
Mobile IP Configuration Examples
HA Redundancy for Multiple Virtual Networks Using Multiple Physical Networks Example
This section presents two configuration examples:
The mobile node and home agent are on the same subnet.
Active
HA1
Virtual
networks
HSRP
group
address 2
Standby
HA2
Internet
Home
network 1
Loopback
interface
42304
Router
HSRP
group
address 1
Home
network 2
Foreign
agent
IPC-189
Configuring Mobile IP
Mobile IP Configuration Examples
Note
All routers must have identical loopback interface addresses, which will be used as the global HA
address. However, do not use this address as the router ID for routing protocols.
When the peer home agent receives the registration update, both home agents tunnel the packets to the
mobile nodes.
HA1 Configuration
interface ethernet0
ip address 1.0.0.1 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHANet1
interface ethernet1
ip address 2.0.0.1 255.0.0.0
standby ip 2.0.0.10
standby name SanJoseHANet2
interface loopback0
ip address 10.0.0.10 255.255.255.255
!Specifies global HA address=loopback address to be used by all mobile nodes
ip mobile home-agent address 10.0.0.10
ip mobile virtual-network 20.0.0.0 255.0.0.0
ip mobile virtual-network 30.0.0.0 255.0.0.0
ip mobile virtual-network 40.0.0.0 255.0.0.0
! Used to map to the HSRP group SanJoseHANet1
ip mobile home-agent standby SanJoseHANet1 virtual-network
! Used to map to the HSRP group SanJoseHANet2
ip mobile home-agent standby SanJoseHANet2 virtual-network
ip mobile secure home-agent 1.0.0.2 spi 100 key hex 00112233445566778899001122334455
ip mobile secure home-agent 2.0.0.2 spi 100 key hex 00112233445566778899001122334455
HA2 Configuration
interface ethernet0
ip address 1.0.0.2 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHANet1
interface ethernet1
ip address 2.0.0.2 255.0.0.0
standby ip 2.0.0.10
standby name SanJoseHANet2
interface loopback0
ip address 10.0.0.10 255.255.255.255
!Specifies global HA address=loopback address to be used by all mobile nodes
ip mobile home-agent address 10.0.0.10
ip mobile virtual-network 20.0.0.0 255.0.0.0
ip mobile virtual-network 30.0.0.0 255.0.0.0
ip mobile virtual-network 40.0.0.0 255.0.0.0
! Used to map to the HSRP group SanJoseHANet1
ip mobile home-agent standby SanJoseHANet1 virtual-network
! Used to map to the HSRP group SanJoseHANet2
ip mobile home-agent standby SanJoseHANet2 virtual-network
ip mobile secure home-agent 1.0.0.1 spi 100 key hex 00112233445566778899001122334455
ip mobile secure home-agent 2.0.0.1 spi 100 key hex 00112233445566778899001122334455
IPC-190
Configuring Mobile IP
Mobile IP Configuration Examples
HA2 Configuration
interface ethernet0
ip address 1.0.0.2 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHA
interface ethernet1
ip address 2.0.0.2 255.0.0.0
standby ip 2.0.0.10
standby name SanJoseHANet2
! loopback to receive registration from MN on each virtual-network
interface loopback0
ip address 20.0.0.1 255.255.255.255
ip address 30.0.0.1 255.255.255.255 secondary
ip address 40.0.0.1 255.255.255.255 secondary
ip mobile home-agent
! address used by Standby HA for redundancy (update and download) for
! each virtual-network
ip mobile virtual-network 20.0.0.0 255.0.0.0 address 20.0.0.1
IPC-191
Configuring Mobile IP
Mobile IP Configuration Examples
IPC-192
IP Routing Protocols
135835
Figure 34
These stub networks might consist only of end systems and the stub router, and thus do not require the
stub router to learn any dynamic IP routing information.
IPC-195
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the Identifying Supported Platforms
section in the Using Cisco IOS Software chapter in this book.
Redistributing ODR Information into the Dynamic Routing Protocol of the Hub (Optional)
Enabling ODR
ODR allows you to easily install IP stub networks where the hubs dynamically maintain routes to the
stub networks. This installation is accomplished without requiring the configuration of an IP routing
protocol on the stubs.
On stub routers that support the ODR feature, the stub router advertises IP prefixes corresponding to the
IP networks configured on all directly connected interfaces. If the interface has multiple logical IP
networks configured, only the primary IP network is advertised through ODR. Because ODR advertises
IP prefixes and not simply IP network numbers, ODR is able to carry variable-length subnet mask
(VSLM) information.
To enable ODR, use the following command in global configuration mode:
Command
Purpose
Once ODR is enabled on a hub router, the hub router begins installing stub network routes in the IP
forwarding table. The hub router also can be configured to redistribute these routes into any configured
dynamic IP routing protocols.
On the stub router, no IP routing protocol must be configured. In fact, from the standpoint of ODR, a
router is automatically considered to be a stub when no IP routing protocols have been configured.
ODR uses the Cisco Discovery Protocol (CDP) to carry minimal routing information between the hub
and stub routers. The stub routers send IP prefixes to the hub router. The hub router provides default
route information to the stub routers, thereby eliminating the need to configure a default route on each
stub router.
Using the no cdp run global configuration command disables the propagation of ODR stub routing
information entirely. Using the no cdp enable interface configuration command disables the
propagation of ODR information on a particular interface.
IPC-196
Purpose
For example, the following configuration causes the hub router to only accept advertisements for IP
prefixes about (or subnets of) the Class C network 1982.168.1.0:
Router(config)#
Router(config)#
Router(config)#
Router(config)#
Router(config)#
Redistributing ODR Information into the Dynamic Routing Protocol of the Hub
This task may be performed by using the redistribute router configuration command. The exact syntax
depends upon the routing protocol into which ODR is being redistributed.
See the Redistribute Routing Information section in the Configuring IP Routing
Protocol-Independent Features chapter.
IPC-197
Command
Purpose
Step 1
Step 2
Enables ODR.
Step 3
Other CDP features are described in the Cisco IOS Configuration Fundamentals Configuration Guide,
in the Monitoring the Router and Network chapter.
IPC-198
The default route is learned via another routing protocol or static route and then redistributed into
RIP.
RIP sends updates to the interfaces in the specified networks. If the network of an interface network is
not specified, it will not be advertised in any RIP update.
The Cisco implementation of RIP Version 2 supports plain text and Message Digest 5 (MD5)
authentication, route summarization, classless interdomain routing (CIDR), and variable-length subnet
masks (VLSMs).
For protocol-independent features, which also apply to RIP, see the chapter Configuring IP Routing
Protocol-Independent Features in this book.
IPC-199
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the Identifying Supported Platforms
section in the Using Cisco IOS Software chapter in this book.
For information about the following topics, see the Configuring IP Routing Protocol-Independent
Features chapter:
VLSM
Enabling RIP
To enable RIP, use the following commands beginning in global configuration mode:
Command
Purpose
Step 1
Step 2
IPC-200
Purpose
To control the set of interfaces with which you want to exchange routing updates, you can disable the
sending of routing updates on specified interfaces by configuring the passive-interface router
configuration command. See the discussion on filtering in the Filter Routing Information section in
the Configuring IP Routing Protocol-Independent Features chapter.
Purpose
Adjusting Timers
Routing protocols use several timers that determine such variables as the frequency of routing updates,
the length of time before a route becomes invalid, and other parameters. You can adjust these timers to
tune routing protocol performance to better suit your internetwork needs. You can make the following
timer adjustments:
The rate (time in seconds between updates) at which routing updates are sent
The interval of time (in seconds) after which a route is declared invalid
The interval (in seconds) during which routing information regarding better paths is suppressed
The amount of time (in seconds) that must pass before a route is removed from the routing table
It also is possible to tune the IP routing support in the software to enable faster convergence of the
various IP routing algorithms, and, hence, quicker fallback to redundant routers. The total effect is to
minimize disruptions to end users of the network in situations where quick recovery is essential.
In addition, an address family can have explicitly specified timers that apply to that address-family (or
VRF) only. The timers basic command must be specified for an address family or the system defaults
for the timers basic command are used regardless of what is configured for RIP routing. The VRF does
not inherit the timer values from the base RIP configuration. The VRF will always use the system default
timers unless explicitly changed using the timers basic command.
IPC-201
To adjust the timers, use the following command in router configuration mode:
Command
Purpose
See the Address Family Timers Example section at the end of this chapter for examples of adjusting
timers for an address family (VRF).
Purpose
Router(config-router)# version {1 | 2}
The preceding task controls the default behavior of RIP. You can override that behavior by configuring
a particular interface to behave differently. To control which RIP version an interface sends, use the
following commands in interface configuration mode, as needed:
:
Command
Purpose
Similarly, to control how packets received from an interface are processed, use the following commands
in interface configuration mode, as needed:
Command
Purpose
IPC-202
Note
Do not use plain text authentication in RIP packets for security purposes, because the unencrypted
authentication key is sent in every RIP Version 2 packet. Use plain text authentication when security
is not an issue, for example, to ensure that misconfigured hosts do not participate in routing.
To configure RIP authentication, use the following commands in interface configuration mode:
Command
Purpose
Step 1
Step 2
See the Key Management Examples section of the Configuring IP Routing Protocol-Independent
Features chapter for key management information and examples.
Any associated child routes that are included in a summarized route are skipped as RIP looks
through the routing database, reducing the processing time required.
Note
Automatically, by summarizing subprefixes to the classful network boundary when crossing classful
network boundaries (automatic summary).
You need not configure anything for automatic summary to be enabled. To disable automatic
summary, use the Router (config-router)# no auto-summary router configuration command.
IPC-203
As specifically configured, advertising a summarized local IP address pool on the specified interface
(on a network access server) so that the address pool can be provided to dialup clients.
Automatic summary addressing always summarizes to the classful address boundary, while the ip
summary-address router configuration command summarizes addresses on a specified interface. If
automatic summary addressing is enabled, automatic summarization is the default behavior for
interfaces on the router not associated with dial-in clients (the backbone), with or without the ip
summary-address rip interface command present.
For example, if a local IP address pool of 10.1.1.1 to 10.1.1.254 is configured on the network access
server, you could configure the ip summary-address rip 10.1.1.0 255.255.255.0 command on the
network access server port that provides addresses to dialup clients to cause the router to advertise
10.1.1.0/24 routes to dialup clients. Because a summary route is advertised, advertisement of the /32 host
routes (installed when the dialup client connects) is suppressed so that the router does not advertise these
routes to the network access server interface.
Automatic summary will override the configured summary address feature on a given interface except
when both of the following conditions are true:
Note
The configured interface summary address and the IP address of the configured interface share the
same major network (the classful, nonsubnetted portion of the IP address).
If split horizon is enabled, neither an automatic summary address nor the interface summary address
is advertised.
In the following example configuration, the major network is 10.0.0.0. The 10 in the address defines a
Class A address space, allowing space for 0.x.x.x unique hosts where x defines unique bit positions in
the addresses for these hosts. The summary of the major net defines the prefix as implied by the class
(A, B, or C) of the address, without any network mask. The summary address 10.2.0.0 overrides the
automatic summary address of 10.0.0.0, 10.2.0.0 is advertised out interface E1, and 10.0.0.0 is not
advertised.
interface Ethernet1
ip address 10.1.1.1 255.255.255.0
ip summary-address rip 10.2.0.0 255.255.0.0
no ip split-horizon
router rip
network 10.0.0.0
When RIP determines that a summary address is required in the RIP database, a summary entry is created
in the RIP routing database. As long as there are child routes for a summary address, the address remains
in the routing database. When the last child route is removed, the summary entry also is removed from
the database. This method of handling database entries reduces the number of entries in the database
because each child route is not listed in an entry, and the aggregate entry itself is removed when there
are no longer any valid child routes for it.
RIP Version 2 route summarization requires that the lowest metric of the best route of an aggregated
entry, or the lowest metric of all current child routes, be advertised. The best metric for aggregated
summarized routes is calculated at route initialization or when there are metric modifications of specific
routes at advertisement time, and not at the time the aggregated routes are advertised.
IPC-204
Each route summarization on an interface must have a unique major net, even if the subnet mask is
unique. For example, the following is not permitted:
interface Ethernet1
.
.
.
ip summary-address rip 10.1.0.0 255.255.0.0
ip summary-address rip 10.2.0.0 255.255.0.0 (or different mask)
Note
The ip summary-address eigrp router configuration command uses other options that are not
applicable to RIP. Do not confuse Enhanced IGRP (EIGRP) summary address with the new RIP
command, ip summary-address rip.
Purpose
Step 1
Step 2
See the Route Summarization Examples section at the end of this chapter for examples of using split
horizon.
IPC-205
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing: rip
Default version control: send version 2, receive version 2
Interface
Send Recv Triggered RIP Key-chain
Ethernet2
2
2
Ethernet3
2
2
Ethernet4
2
2
Ethernet5
2
2
Automatic network summarization is not in effect
Address Summarization:
10.11.0.0/16 for Ethernet2
You can check summary address entries in the RIP database. These entries will appear in the database
only if relevant child routes are being summarized. When the last child route for a summary address
becomes invalid, the summary address is also removed from the routing table. The following example
shows a summary address entry for route 10.11.0.0/16, with three child routes active:
router# show ip rip database
10.0.0.0/8
auto-summary
10.11.11.0/24
directly connected,
10.1.0.0/8
auto-summary
10.11.0.0/16
int-summary
^^^^^^^^^^^^^^^^^^^^^^^^^^^
10.11.10.0/24
directly connected,
10.11.11.0/24
directly connected,
10.11.12.0/24
directly connected,
Ethernet2
Ethernet3
Ethernet4
Ethernet5
Purpose
Router(config-router)# no auto-summary
IPC-206
Purpose
Router(config-router)# no validate-update-source
Purposes
Router(config-if)# ip split-horizon
Router(config-if)# no ip split-horizon
Split horizon for Frame Relay and SMDS encapsulation is disabled by default. Split horizon is not
disabled by default for interfaces using any of the X.25 encapsulations. For all other encapsulations, split
horizon is enabled by default.
See the Split Horizon Examples section at the end of this chapter for examples of using split horizon.
Note
In general, changing the state of the default is not recommended unless you are certain that your
application requires making a change in order to advertise routes properly. Remember that if split
horizon is disabled on a serial interface (and that interface is attached to a packet-switched network),
you must disable split horizon for all routers in any relevant multicast groups on that network.
IPC-207
Purpose
Periodic broadcasting by RIP generally prevents WAN circuits from being closed.
Even on fixed, point-to-point links, the overhead of periodic RIP transmissions could seriously
interrupt normal data transfer because of the quantity of information that passes through the line
every 30 seconds.
To overcome these limitations, triggered extensions to RIP cause RIP to send information on the WAN
only when there has been an update to the routing database. Periodic update packets are suppressed over
the interface on which this feature is enabled. RIP routing traffic is reduced on point-to-point, serial
interfaces. Therefore, you can save money on an on-demand circuit for which you are charged for usage.
Triggered extensions to RIP partially support RFC 2091, Triggered Extensions to RIP to Support
Demand Circuits.
To enable triggered extensions to RIP, use the following commands in global configuration mode:
Command
Purpose
Step 1
Step 2
IPC-208
To display the contents of the RIP private database, use the following command in EXEC mode:
Command
Purpose
Note
If split horizon is enabled, neither automatic summary nor interface summary addresses (those
configured with the ip summary-address rip router configuration command) are advertised.
Router(config)# router rip
Router(config-router)# network 10.0.0.0
Router(config-router)# exit
Router(config)# interface ethernet1
Router(config-if)# ip address 10.1.1.1 255.255.255.0
Router(config-if)# ip summary-address rip 10.2.0.0 255.255.0.0
Router(config-if)# no ip split-horizon
Router(config-if)# exit
IPC-209
Example 1
The following configuration shows a simple example of disabling split horizon on a serial link. In this
example, the serial link is connected to an X.25 network.
interface serial 0
encapsulation x25
no ip split-horizon
Example 2
In the next example, Figure 35 illustrates a typical situation in which the no ip split-horizon interface
configuration command would be useful. This figure depicts two IP subnets that are both accessible via
a serial interface on Router C (connected to Frame Relay network). In this example, the serial interface
on Router C accommodates one of the subnets via the assignment of a secondary IP address.
The Ethernet interfaces for Router A, Router B, and Router C (connected to IP networks 12.13.50.0,
10.20.40.0, and 20.155.120.0, respectively, all have split horizon enabled by default, while the serial
interfaces connected to networks 128.125.1.0 and 131.108.1.0 all have split horizon disabled with the
no ip split-horizon command. Figure 35 shows the topology and interfaces.
IPC-210
E2
S0
Router B S2
Router C
Network address:
12.13.50.0
Interface address:
12.13.50.1
Interface address:
128.125.1.1
Secondary
interface address:
131.108.1.1
E1
S1
Router A
Interface address:
128.125.1.2
Network address:
20.155.120.0
Interface address:
20.155.120.1
Network
address:
128.125.1.0
Interface address:
131.108.1.2
Network
address:
131.108.1.0
Frame Relay
network
S1069a
Figure 35
In this example, split horizon is disabled on all serial interfaces. However, split horizon must be disabled
on Router C in order for network 128.125.0.0 to be advertised into network 131.108.0.0, and vice versa.
These subnets overlap at Router C, interface S0. If split horizon were enabled on serial interface S0, it
would not advertise a route back into the Frame Relay network for either of these networks.
Configuration for Router A
interface ethernet 1
ip address 12.13.50.1
!
interface serial 1
ip address 128.125.1.2
encapsulation frame-relay
no ip split-horizon
IPC-211
IPC-212
Configuring IGRP
This chapter describes how to configure the Interior Gateway Routing Protocol (IGRP). For a complete
description of the IGRP commands in this chapter, refer to the IGRP Commands chapter of the
Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols. To locate documentation of other
commands that appear in this chapter, use the command reference master index, or search online.
IGRP is a dynamic distance-vector routing protocol designed by Cisco in the mid-1980s for routing in
an autonomous system that contains large, arbitrarily complex networks with diverse bandwidth and
delay characteristics.
For protocol-independent features, see the chapter Configuring IP Routing Protocol-Independent
Features in this book.
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the Identifying Supported Platforms
section in the Using Cisco IOS Software chapter in this book.
IPC-213
Configuring IGRP
IGRP Configuration Task List
Figure 36
Autonomous system 1
Interior
Subnet B
System
Router
Router
S1019a
Subnet A
Router
Exterior
IGRP Updates
By default, a router running IGRP sends an update broadcast every 90 seconds. It declares a route
inaccessible if it does not receive an update from the first router in the route within three update periods
(270 seconds). After seven update periods (630 seconds), the Cisco IOS software removes the route from
the routing table.
IGRP uses flash update and poison reverse updates to speed up the convergence of the routing algorithm.
Flash update is the sending of an update sooner than the standard periodic update interval of notifying
other routers of a metric change. Poison reverse updates are intended to defeat larger routing loops
caused by increases in routing metrics. The poison reverse updates are sent to remove a route and place
it in holddown, which keeps new routing information from being used for a certain period of time.
IPC-214
Configuring IGRP
IGRP Configuration Task List
Also see the examples in the IGRP Configuration Examples section at the end of this chapter.
Purpose
Step 1
Step 2
IGRP sends updates to the interfaces in the specified networks. If the network of an interface is not
specified, the interface will not be advertised in any IGRP update.
It is not necessary to have a registered autonomous system number to use IGRP. If you do not have a
registered number, you are free to create your own. We recommend that if you do have a registered
number, you use it to identify the IGRP process.
Purpose
Purpose
IPC-215
Configuring IGRP
IGRP Configuration Task List
To control the set of interfaces with which you want to exchange routing updates, you can disable the
sending of routing updates on specified interfaces by configuring the passive-interface router
configuration command. See the discussion on filtering in the Filter Routing Information section in
the Configuring IP Routing Protocol-Independent Features chapter.
The local best metric must be greater than the metric learned from the next router; that is, the next
hop router must be closer (have a smaller metric value) to the destination than the local best metric.
The alternative path metric must be within the specified variance of the local best metric. The
multiplier times the local best metric for the destination must be greater than or equal to the metric
through the next router.
If these conditions are met, the route is deemed feasible and can be added to the routing table.
By default, the amount of variance is set to one (equal-cost load balancing). To define how much worse
an alternate path can be before that path is disallowed, use the following command in router
configuration mode:
Command
Purpose
Note
By using the variance feature, the Cisco IOS software can balance traffic across all feasible paths and
can immediately converge to a new path if one of the paths should fail.
See the IGRP Feasible Successor Relationship Example section at the end of this chapter.
IPC-216
Configuring IGRP
IGRP Configuration Task List
To control how traffic is distributed among multiple routes of unequal cost, use the following command
in router configuration mode:
Command
Purpose
Purpose
By default, the IGRP composite metric is a 24-bit quantity that is a sum of the segment delays and the
lowest segment bandwidth (scaled and inverted) for a given route. For a network of homogeneous media,
this metric reduces to a hop count. For a network of mixed media (Ethernet, FDDI, and serial lines
running from 9600 bits per second to T1 rates), the route with the lowest metric reflects the most
desirable path to a destination.
Adjusting Timers
Routing protocols use several timers that determine such variables as the frequency of routing updates,
the length of time before a route becomes invalid, and other parameters. You can adjust these timers to
tune routing protocol performance to better suit your internetwork needs. You can make the following
timer adjustments:
The rate (time in seconds between updates) at which routing updates are sent
The interval of time (in seconds) after which a route is declared invalid
The interval (in seconds) during which routing information regarding better paths is suppressed
The amount of time (in seconds) that must pass before a route is removed from the routing table
It also is possible to tune the IP routing support in the software to enable faster convergence of the
various IP routing algorithms, and, hence, quicker fallback to redundant routers. The total effect is to
minimize disruptions to end users of the network in situations where quick recovery is essential.
IPC-217
Configuring IGRP
IGRP Configuration Task List
To adjust the timers, use the following command in router configuration mode:
Command
Purpose
Disabling Holddown
When the Cisco IOS software learns that a network is at a greater distance than was previously known,
or it learns the network is down, the route to that network is placed in holddown. During the holddown
period, the route is advertised, but incoming advertisements about that network from any router other
than the one that originally advertised the new metric of the network will be ignored. This mechanism
is often used to help avoid routing loops in the network, but has the effect of increasing the topology
convergence time.
To disable holddowns with IGRP, use the following command in router configuration mode. All devices
in an IGRP autonomous system must be consistent in their use of holddowns.
Command
Purpose
Purpose
Purpose
Router(config-router)# no validate-update-source
IPC-218
Configuring IGRP
IGRP Configuration Examples
Purpose
Router(config-if)# ip split-horizon
Router(config-if)# no ip split-horizon
Split horizon for Frame Relay and SMDS encapsulation is disabled by default. Split horizon is not
disabled by default for interfaces using any of the X.25 encapsulations. For all other encapsulations, split
horizon is enabled by default.
See the Split Horizon Examples section at the end of this chapter for examples of using split horizon.
Note
In general, changing the state of the default is not recommended unless you are certain that your
application requires making a change in order to advertise routes properly. Remember that if split
horizon is disabled on a serial interface (and that interface is attached to a packet-switched network),
you must disable split horizon for all routers in any relevant multicast groups on that network.
IPC-219
Configuring IGRP
IGRP Configuration Examples
Route to Network A
Metric = p = 10776
Route to Network A
Metric = m = 10876
Router C1
Route to Network A
Metric = n = 12776
Router C2
56620
Figure 37
Assume that Router C1 already has a route to Network A with metric m and has just received an
update about Network A from Router C2. The best metric at Router C2 is p. The metric that Router
C1 would use through Router C2 is n.
If both of the following two conditions are met, the route to Network A through Router C2 will be
included in the routing table of Router C1:
If m is greater than p.
If the multiplier (value specified by the variance router configuration command) times m is
A maximum of four paths can be in the routing table for a single destination. If there are more than four
feasible paths, the four best feasible paths are used.
In the next example, Figure 38 illustrates a typical situation in which the no ip split-horizon interface
configuration command would be useful. This figure depicts two IP subnets that are both accessible via
a serial interface on Router C (connected to Frame Relay network). In this example, the serial interface
on Router C accommodates one of the subnets via the assignment of a secondary IP address.
The Ethernet interfaces for Router A, Router B, and Router C (connected to IP networks 12.13.50.0,
10.20.40.0, and 20.155.120.0, respectively) all have split horizon enabled by default, while the serial
interfaces connected to networks 128.125.1.0 and 131.108.1.0 all have split horizon disabled by default.
The partial interface configuration specifications for each router that follow Figure 38 illustrate that the
ip split-horizon interface configuration command is not explicitly configured under normal conditions
for any of the interfaces.
IPC-220
Configuring IGRP
IGRP Configuration Examples
E2
S0
Network address:
12.13.50.0
Interface address:
12.13.50.1
Router B S2
Router C
Interface address:
128.125.1.1
Secondary
interface address:
131.108.1.1
E1
S1
Router A
Interface address:
128.125.1.2
Network address:
20.155.120.0
Interface address:
20.155.120.1
Network
address:
128.125.1.0
Interface address:
131.108.1.2
Network
address:
131.108.1.0
Frame Relay
network
S1069a
Figure 38
In this example, split horizon must be disabled in order for network 128.125.0.0 to be advertised into
network 131.108.0.0, and vice versa. These subnets overlap at Router C, serial interface 0. If split
horizon were enabled on serial interface 0, it would not advertise a route back into the Frame Relay
network for either of these networks.
The configurations for routers A, B, and C follow.
Router Configuration A
interface ethernet 1
ip address 12.13.50.1
!
interface serial 1
ip address 128.125.1.2
encapsulation frame-relay
Router Configuration B
interface ethernet 2
ip address 20.155.120.1
!
interface serial 2
ip address 131.108.1.2
encapsulation frame-relay
Router Configuration C
interface ethernet 0
ip address 10.20.40.1
!
interface serial 0
ip address 128.124.1.1
ip address 131.108.1.1 secondary
encapsulation frame-relay
IPC-221
Configuring IGRP
IGRP Configuration Examples
IPC-222
Configuring OSPF
This chapter describes how to configure Open Shortest Path First (OSPF). For a complete description of
the OSPF commands in this chapter, refer to the OSPF Commands chapter of the Cisco IOS IP
Command Reference, Volume 2 of 3: Routing Protocols publication. To locate documentation of other
commands that appear in this chapter, use the command reference master index, or search online.
OSPF is an Interior Gateway Protocol (IGP) developed by the OSPF working group of the Internet
Engineering Task Force (IETF). Designed expressly for IP networks, OSPF supports IP subnetting and
tagging of externally derived routing information. OSPF also allows packet authentication and uses IP
multicast when sending and receiving packets.
We support RFC 1253, Open Shortest Path First (OSPF) MIB, August 1991. The OSPF MIB defines an
IP routing protocol that provides management information related to OSPF and is supported by Cisco
routers.
For protocol-independent features that include OSPF, see the chapter Configuring IP Routing
Protocol-Independent Features in this book.
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the Identifying Supported Platforms
section in the Using Cisco IOS Software chapter in this book.
Route redistributionRoutes learned via any IP routing protocol can be redistributed into any other
IP routing protocol. At the intradomain level, OSPF can import routes learned via Interior Gateway
Routing Protocol (IGRP), Routing Information Protocol (RIP), and Intermediate
System-to-Intermediate System (IS-IS). OSPF routes can also be exported into IGRP, RIP, and
IS-IS. At the interdomain level, OSPF can import routes learned via Exterior Gateway Protocol
(EGP) and Border Gateway Protocol (BGP). OSPF routes can be exported into BGP and EGP.
AuthenticationPlain text and Message Digest 5 (MD5) authentication among neighboring routers
within an area is supported.
IPC-223
Configuring OSPF
OSPF Configuration Task List
In addition, you can specify route redistribution; see the task Redistribute Routing Information in the
chapter Configuring IP Routing Protocol-Independent Features for information on how to configure
route redistribution.
IPC-224
Configuring OSPF
Enabling OSPF
Enabling OSPF
As with other routing protocols, enabling OSPF requires that you create an OSPF routing process,
specify the range of IP addresses to be associated with the routing process, and assign area IDs to be
associated with that range of IP addresses. To do so, use the following commands beginning in global
configuration mode:
Command
Purpose
Step 1
Step 2
Purpose
Specifies the length of time between the hello packets that the
Cisco IOS software sends on an OSPF interface.
Sets the number of seconds that a device must wait before it declares
a neighbor OSPF router down because it has not received a hello
packet.
IPC-225
Configuring OSPF
Configuring OSPF over Different Physical Networks
Command
Purpose
Enables OSPF MD5 authentication. The values for the key-id and
key arguments must match values specified for other neighbors on a
network segment.
IPC-226
Configuring OSPF
Configuring OSPF over Different Physical Networks
To configure your OSPF network type, use the following command in interface configuration mode:
Command
Purpose
See the OSPF Point-to-Multipoint Example section at the end of this chapter for an example of an
OSPF point-to-multipoint network.
Purpose
Step 1
Step 2
Router(config-if)# exit
Step 3
Step 4
Repeat Step 4 for each neighbor if you want to specify a cost. Otherwise, neighbors will assume the cost
of the interface, based on the ip ospf cost interface configuration command.
IPC-227
Configuring OSPF
Configuring OSPF Area Parameters
These parameters need only be configured in those devices that are themselves eligible to become the
designated router or backup designated router (in other words, routers with a nonzero router priority
value).
To configure routers that interconnect to nonbroadcast networks, use the following command in router
configuration mode:
Command
Purpose
On point-to-multipoint, nonbroadcast networks, you now use the neighbor router configuration
command to identify neighbors. Assigning a cost to a neighbor is optional.
Prior to Cisco IOS Release 12.0, some customers were using point-to-multipoint on nonbroadcast media
(such as classic IP over ATM), so their routers could not dynamically discover their neighbors. This
feature allows the neighbor router configuration command to be used on point-to-multipoint interfaces.
On any point-to-multipoint interface (broadcast or not), the Cisco IOS software assumed the cost to each
neighbor was equal. The cost was configured with the ip ospf cost interface configuration command. In
reality, the bandwidth to each neighbor is different, so the cost should differ. With this feature, you can
configure a separate cost to each neighbor. This feature applies to point-to-multipoint interfaces only.
To treat the interface as point-to-multipoint when the media does not support broadcast, use the
following commands beginning in interface configuration mode:
Command
Purpose
Step 1
Step 2
Router(config-if)# exit
Step 3
Step 4
Repeat Step 4 for each neighbor if you want to specify a cost. Otherwise, neighbors will assume the cost
of the interface, based on the ip ospf cost interface configuration command.
IPC-228
Configuring OSPF
Configuring OSPF NSSA
Stub areas are areas into which information on external routes is not sent. Instead, there is a default
external route generated by the ABR, into the stub area for destinations outside the autonomous system.
To take advantage of the OSPF stub area support, default routing must be used in the stub area. To further
reduce the number of LSAs sent into a stub area, you can configure the no-summary keyword of the
area stub router configuration command on the ABR to prevent it from sending summary link
advertisement (LSAs type 3) into the stub area.
To specify an area parameter for your network, use the following commands in router configuration
mode as needed:
Command
Purpose
Assigns a specific cost to the default summary route used for the
stub area.
Purpose
IPC-229
Configuring OSPF
Configuring Route Summarization Between OSPF Areas
To control summarization and filtering of type 7 LSAs into type 5 LSAs, use the following command in
router configuration mode on the ABR:
Command
Purpose
Implementation Considerations
Evaluate the following considerations before you implement this feature:
You can set a type 7 default route that can be used to reach external destinations. When configured,
the router generates a type 7 default into the NSSA or the NSSA ABR.
Every router within the same area must agree that the area is NSSA; otherwise, the routers will not
be able to communicate.
Purpose
IPC-230
Configuring OSPF
Creating Virtual Links
To have the software advertise one summary route for all redistributed routes covered by a network
address and mask, use the following command in router configuration mode:
Command
Purpose
Purpose
To display information about virtual links, use the show ip ospf virtual-links EXEC command. To
display the router ID of an OSPF router, use the show ip ospf EXEC command.
Purpose
IPC-231
Configuring OSPF
Configuring Lookup of DNS Names
Purpose
Purpose
Step 1
Step 2
Purpose
IPC-232
Configuring OSPF
Changing the OSPF Administrative Distances
Purpose
For an example of changing administrative distance, see the section Changing OSPF Administrative
Distance Example at the end of this chapter.
Purpose
Router(config-router)# passive-interface
interface-type interface-number
Purpose
IPC-233
Configuring OSPF
Configuring OSPF over On-Demand Circuits
Purpose
Step 1
Step 2
Step 3
If the router is part of a point-to-point topology, then only one end of the demand circuit must be
configured with this command. However, all routers must have this feature loaded.
If the router is part of a point-to-multipoint topology, only the multipoint end must be configured with
this command.
For an example of OSPF over an on-demand circuit, see the section OSPF over On-Demand Routing
Example at the end of this chapter.
IPC-234
Configuring OSPF
Logging Neighbors Going Up or Down
Implementation Considerations
Evaluate the following considerations before implementing this feature:
Because LSAs that include topology changes are flooded over an on-demand circuit, we recommend
that you put demand circuits within OSPF stub areas or within NSSAs to isolate the demand circuits
from as many topology changes as possible.
To take advantage of the on-demand circuit functionality within a stub area or NSSA, every router
in the area must have this feature loaded. If this feature is deployed within a regular area, all other
regular areas must also support this feature before the demand circuit functionality can take effect
because type 5 external LSAs are flooded throughout all areas.
Hub-and-spoke network topologies that have a point-to-multipoint (p2mp) OSPF interface type on
a hub might not revert back to non-demand circuit mode when needed. You must simultaneously
reconfigure OSPF on all interfaces on the p2mp segment when reverting them from demand circuit
mode to non-demand circuit mode.
Do not implement this feature on a broadcast-based network topology because the overhead
protocols (such as hello and LSA packets) cannot be successfully suppressed, which means the link
will remain up.
Configuring the router for an OSPF on-demand circuit with an asynchronous interface is not a
supported configuration. The supported configuration is to use dialer interfaces on both ends of the
circuit. For more information, refer to the following TAC URL:
http://www.cisco.com/warp/public/104/dcprob.html#reason5
Purpose
Router(config-router)# log-adjacency-changes
[detail]
Configure this command if you want to know about OSPF neighbors going up or down without turning
on the debug ip ospf adjacency EXEC command. The log-adjacency-changes router configuration
command provides a higher level view of the peer relationship with less output. Configure
log-adjacency-changes detail if you want to see messages for each state change.
IPC-235
Configuring OSPF
Changing the LSA Group Pacing
OSPF LSA group pacing is enabled by default. For typical customers, the default group pacing interval
for refreshing, checksumming, and aging is appropriate and you need not configure this feature.
30 minutes
30 minutes
30 minutes
10341
All LSAs refreshed, 120 external LSAs on Ethernet need three packets
IPC-236
Configuring OSPF
Blocking OSPF LSA Flooding
Figure 40
20 LSAs, 1 packet
37 LSAs, 1 packet
15 LSAs, 1 packet
10471
The group pacing interval is inversely proportional to the number of LSAs the router is refreshing,
checksumming, and aging. For example, if you have approximately 10,000 LSAs, decreasing the pacing
interval would benefit you. If you have a very small database (40 to 100 LSAs), increasing the pacing
interval to 10 to 20 minutes might benefit you slightly.
The default value of pacing between LSA groups is 240 seconds (4 minutes). The range is from 10
seconds to 1800 seconds (30 minutes). To change the LSA group pacing interval, use the following
command in router configuration mode:
Command
Purpose
For an example, see the section LSA Group Pacing Example at the end of this chapter.
On broadcast, nonbroadcast, and point-to-point networks, you can block flooding over specified
OSPF interfaces.
On broadcast, nonbroadcast, and point-to-point networks, to prevent flooding of OSPF LSAs, use the
following command in interface configuration mode:
IPC-237
Configuring OSPF
Reducing LSA Flooding
Command
Purpose
On point-to-multipoint networks, to prevent flooding of OSPF LSAs, use the following command in
router configuration mode:
Command
Purpose
For an example of blocking LSA flooding, see the section Block LSA Flooding Example at the end of
this chapter.
Purpose
Purpose
For an example of suppressing MOSPF LSA packets, see the section Ignore MOSPF LSA Packets
Example at the end of this chapter.
IPC-238
Configuring OSPF
Displaying OSPF Update Packet Pacing
During flooding, several neighbors sent updates to a single router at the same time.
OSPF update packets are now automatically paced so they are not sent less than 33 milliseconds apart.
Pacing is also added between resends to increase efficiency and minimize lost retransmissions. Also, you
can display the LSAs waiting to be sent out an interface. The benefit of the pacing is that OSPF update
and retransmission packets are sent more efficiently.
There are no configuration tasks for this feature; it occurs automatically.
To observe OSPF packet pacing by displaying a list of LSAs waiting to be flooded over a specified
interface, use the following command in EXEC mode:
Command
Purpose
IPC-239
Configuring OSPF
Monitoring and Maintaining OSPF
Purpose
Displays the internal OSPF routing table entries to the ABR and
ASBR.
IPC-240
Configuring OSPF
OSPF Configuration Examples
Command
Purpose
Purpose
IPC-241
Configuring OSPF
OSPF Configuration Examples
Figure 41
203
102
301
401
Platty
10.0.0.4
Jelly
402
Mollie Configuration
hostname mollie
!
interface serial 1
ip address 10.0.0.2 255.0.0.0
ip ospf network point-to-multipoint
encapsulation frame-relay
frame-relay map ip 10.0.0.1 201 broadcast
frame-relay map ip 10.0.0.3 202 broadcast
frame-relay map ip 10.0.0.4 203 broadcast
!
router ospf 1
network 10.0.0.0 0.0.0.255 area 0
Neon Configuration
hostname neon
!
interface serial 0
ip address 10.0.0.1 255.0.0.0
ip ospf network point-to-multipoint
encapsulation frame-relay
frame-relay map ip 10.0.0.2 101 broadcast
frame-relay map ip 10.0.0.4 102 broadcast
!
router ospf 1
network 10.0.0.0 0.0.0.255 area 0
Platty Configuration
hostname platty
!
interface serial 3
ip address 10.0.0.4 255.0.0.0
ip ospf network point-to-multipoint
encapsulation frame-relay
clock rate 1000000
frame-relay map ip 10.0.0.1 401 broadcast
frame-relay map ip 10.0.0.2 402 broadcast
!
router ospf 1
network 10.0.0.0 0.0.0.255 area 0
IPC-242
202
56621
Neon
10.0.0.1
201
Configuring OSPF
OSPF Configuration Examples
Jelly Configuration
hostname jelly
!
interface serial 2
ip address 10.0.0.3 255.0.0.0
ip ospf network point-to-multipoint
encapsulation frame-relay
clock rate 2000000
frame-relay map ip 10.0.0.2 301 broadcast
!
router ospf 1
network 10.0.0.0 0.0.0.255 area 0
Pri
1
1
1
State
FULL/
FULL/
FULL/
Dead Time
00:01:50
00:01:47
00:01:45
Address
10.0.1.5
10.0.1.4
10.0.1.3
Interface
Serial0
Serial0
Serial0
IPC-243
Configuring OSPF
OSPF Configuration Examples
The following example is the configuration for the router on the other side:
interface Serial9/2
ip address 10.0.1.3 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint non-broadcast
no ip mroute-cache
no keepalive
no fair-queue
frame-relay local-dlci 301
frame-relay map ip 10.0.1.1 300
no shut
!
router ospf 1
network 10.0.1.0 0.0.0.255 area 0
Pri
1
1
1
State
FULL/
FULL/
FULL/
Dead Time
00:01:52
00:01:52
00:01:52
Address
10.0.1.5
10.0.1.4
10.0.1.3
Interface
Serial0
Serial0
Serial0
IPC-244
Configuring OSPF
OSPF Configuration Examples
In the following example, a 30-bit subnet mask is used, leaving two bits of address space reserved for
serial line host addresses. There is sufficient host address space for two host endpoints on a
point-to-point serial link.
interface ethernet 0
ip address 131.107.1.1 255.255.255.0
! 8 bits of host address space reserved for ethernets
interface serial 0
ip address 131.107.254.1 255.255.255.252
! 2 bits of address space reserved for serial lines
! Router is configured for OSPF and assigned AS 107
router ospf 107
! Specifies network directly connected to the router
network 131.107.0.0 0.0.255.255 area 0.0.0.0
The second example illustrates a configuration for an internal router, ABR, and ASBRs within a
single, arbitrarily assigned, OSPF autonomous system.
The third example illustrates a more complex configuration and the application of various tools
available for controlling OSPF-based routing environments.
IPC-245
Configuring OSPF
OSPF Configuration Examples
Basic OSPF Configuration Example for Internal Router, ABR, and ASBRs
The following example illustrates the assignment of four area IDs to four IP address ranges. In the
example, OSPF routing process 109 is initialized, and four OSPF areas are defined: 10.9.50.0, 2, 3, and
0. Areas 10.9.50.0, 2, and 3 mask specific address ranges, and area 0 enables OSPF for all other
networks.
router ospf 109
network 131.108.20.0 0.0.0.255 area 10.9.50.0
network 131.108.0.0 0.0.255.255 area 2
network 131.109.10.0 0.0.0.255 area 3
network 0.0.0.0 255.255.255.255 area 0
!
! Interface Ethernet0 is in area 10.9.50.0:
interface ethernet 0
ip address 131.108.20.5 255.255.255.0
!
! Interface Ethernet1 is in area 2:
interface ethernet 1
ip address 131.108.1.5 255.255.255.0
!
! Interface Ethernet2 is in area 2:
interface ethernet 2
ip address 131.108.2.5 255.255.255.0
!
! Interface Ethernet3 is in area 3:
interface ethernet 3
ip address 131.109.10.5 255.255.255.0
!
! Interface Ethernet4 is in area 0:
interface ethernet 4
ip address 131.109.1.1 255.255.255.0
!
! Interface Ethernet5 is in area 0:
interface ethernet 5
ip address 10.1.0.1 255.255.0.0
Each network area router configuration command is evaluated sequentially, so the order of these
commands in the configuration is important. The Cisco IOS software sequentially evaluates the
address/wildcard-mask pair for each interface. See the OSPF Commands chapter of the Cisco IOS
IP Command Reference, Volume 2 of 3: Routing Protocols publication for more information.
Consider the first network area command. Area ID 10.9.50.0 is configured for the interface on which
subnet 131.108.20.0 is located. Assume that a match is determined for Ethernet interface 0. Ethernet
interface 0 is attached to area 10.9.50.0 only.
The second network area command is evaluated next. For area 2, the same process is then applied to all
interfaces (except Ethernet interface 0). Assume that a match is determined for interface Ethernet 1.
OSPF is then enabled for that interface and Ethernet interface 1 is attached to area 2.
This process of attaching interfaces to OSPF areas continues for all network area commands. Note that
the last network area command in this example is a special case. With this command, all available
interfaces (not explicitly attached to another area) are attached to area 0.
IPC-246
Configuring OSPF
OSPF Configuration Examples
Figure 42
Router A
Router B
E1
E2 Interface address:
192.168.1.2
Interface address:
192.168.1.1
Network: 192.168.1.0
Interface address:
E3 192.168.1.3
Router C
S0 Interface address:
192.168.2.3
Network: 192.168.2.0
Area 0
S1
Interface address:
192.168.2.4
Router D
E4
Interface address:
10.0.0.4
Network: 10.0.0.0
E5
Router E
Interface address:
10.0.0.5
Interface address:
172.16.1.5
S2
Remote address:
172.16.1.6
in autonomous
system 60000
S1030a
Network: 172.16.1.0
Router C is an OSPF ABR. Note that for Router C, Area 1 is assigned to E3 and area 0 is assigned
to S0.
Router D is an internal router in area 0 (backbone area). In this case, both network router
configuration commands specify the same area (area 0, or the backbone area).
Router E is an OSPF ASBR. Note that BGP routes are redistributed into OSPF and that these routes
are advertised by OSPF.
IPC-247
Configuring OSPF
OSPF Configuration Examples
Note
It is not necessary to include definitions of all areas in an OSPF autonomous system in the
configuration of all routers in the autonomous system. You must only define the directly connected
areas. In the example that follows, routes in area 0 are learned by the routers in area 1 (Router A and
Router B) when the ABR (Router C) injects summary LSAs into area 1.
The OSPF domain in BGP autonomous system 109 is connected to the outside world via the BGP link
to the external peer at IP address 11.0.0.6. Example configurations follow.
Following is the sample configuration for the general network map shown in Figure 42.
Router A ConfigurationInternal Router
interface ethernet 1
ip address 131.108.1.1 255.255.255.0
router ospf 1
network 131.108.0.0 0.0.255.255 area 1
Router C ConfigurationABR
interface ethernet 3
ip address 131.108.1.3 255.255.255.0
interface serial 0
ip address 131.108.2.3 255.255.255.0
router ospf 999
network 131.108.1.0 0.0.0.255 area 1
network 131.108.2.0 0.0.0.255 area 0
Router E ConfigurationASBR
interface ethernet 5
ip address 10.0.0.5 255.0.0.0
interface serial 2
ip address 11.0.0.5 255.0.0.0
router ospf 65001
network 10.0.0.0 0.255.255.255 area 0
redistribute bgp 109 metric 1 metric-type 1
IPC-248
Configuring OSPF
OSPF Configuration Examples
Route redistribution
The specific tasks outlined in this configuration are detailed briefly in the following descriptions.
Figure 43 illustrates the network address ranges and area assignments for the interfaces.
Figure 43
Router A
E3
E0
E1
E2
S1031a
Create a stub area with area ID 36.0.0.0. (Note that the authentication and stub options of the area
router configuration command are specified with separate area command entries, but can be merged
into a single area command.)
Redistribute IGRP and RIP into OSPF with various options set (including metric-type, metric, tag,
and subnet).
IPC-249
Configuring OSPF
OSPF Configuration Examples
interface ethernet 0
ip address 192.42.110.201 255.255.255.0
ip ospf authentication-key abcdefgh
ip ospf cost 10
!
interface ethernet 1
ip address 131.119.251.201 255.255.255.0
ip ospf authentication-key ijklmnop
ip ospf cost 20
ip ospf retransmit-interval 10
ip ospf transmit-delay 2
ip ospf priority 4
!
interface ethernet 2
ip address 131.119.254.201 255.255.255.0
ip ospf authentication-key abcdefgh
ip ospf cost 10
!
interface ethernet 3
ip address 36.56.0.201 255.255.0.0
ip ospf authentication-key ijklmnop
ip ospf cost 20
ip ospf dead-interval 80
IPC-250
Configuring OSPF
OSPF Configuration Examples
The following example redistributes RIP routes with a hop count equal to 1 into OSPF. These routes will
be redistributed into OSPF as external LSAs with a metric of 5, a metric type of type 1, and a tag equal
to 1.
router ospf 109
redistribute rip route-map rip-to-ospf
!
route-map rip-to-ospf permit
match metric 1
set metric 5
set metric-type type1
set tag 1
The following example redistributes OSPF learned routes with tag 7 as a RIP metric of 15:
router rip
redistribute ospf 109 route-map 5
!
route-map 5 permit
match tag 7
set metric 15
The following example redistributes OSPF intra-area and interarea routes with next hop routers on serial
interface 0 into BGP with an INTER_AS metric of 5:
router bgp 109
redistribute ospf 109 route-map 10
!
route-map 10 permit
match route-type internal
match interface serial 0
set metric 5
The following example redistributes two types of routes into the integrated IS-IS routing table
(supporting both IP and CLNS). The first type is OSPF external IP routes with tag 5; these routes are
inserted into Level 2 IS-IS LSPs with a metric of 5. The second type is ISO-IGRP derived CLNS prefix
routes that match CLNS access list 2000; these routes will be redistributed into IS-IS as Level 2 LSPs
with a metric of 30.
router isis
redistribute ospf 109 route-map 2
redistribute iso-igrp nsfnet route-map 3
!
route-map 2 permit
match route-type external
match tag 5
set metric 5
set level level-2
!
route-map 3 permit
match address 2000
set metric 30
With the following configuration, OSPF external routes with tags 1, 2, 3, and 5 are redistributed into RIP
with metrics of 1, 1, 5, and 5, respectively. The OSPF routes with a tag of 4 are not redistributed.
router rip
redistribute ospf 109 route-map 1
!
route-map 1 permit
match tag 1 2
set metric 1
!
IPC-251
Configuring OSPF
OSPF Configuration Examples
route-map 1 permit
match tag 3
set metric 5
!
route-map 1 deny
match tag 4
!
route map 1 permit
match tag 5
set metric 5
In the following configuration, a RIP learned route for network 160.89.0.0 and an ISO-IGRP learned
route with prefix 49.0001.0002 will be redistributed into an IS-IS Level 2 LSP with a metric of 5:
router isis
redistribute rip route-map 1
redistribute iso-igrp remote route-map 1
!
route-map 1 permit
match ip address 1
match clns address 2
set metric 5
set level level-2
!
access-list 1 permit 160.89.0.0 0.0.255.255
clns filter-set 2 permit 49.0001.0002...
The following configuration example illustrates how a route map is referenced by the
default-information router configuration command. This type of reference is called conditional default
origination. OSPF will originate the default route (network 0.0.0.0) with a type 2 metric of 5 if
140.222.0.0 is in the routing table.
Note
Only routes external to the OSPF process can be used for tracking, such as non-OSPF routes or OSPF
routes from a separate OSPF process.
route-map ospf-default permit
match ip address 1
set metric 5
set metric-type type-2
!
access-list 1 permit 140.222.0.0 0.0.255.255
!
router ospf 109
default-information originate route-map ospf-default
IPC-252
Configuring OSPF
OSPF Configuration Examples
Figure 44
Router C
OSPF 2
Router B
OSPF 1
14830
Network
10.0.0.0
Router A Configuration
router ospf 1
redistribute ospf 2 subnet
distance ospf external 200
!
router ospf 2
redistribute ospf 1 subnet
distance ospf external 200
Router B Configuration
router ospf 1
redistribute ospf 2 subnet
distance ospf external 200
!
router ospf 2
redistribute ospf 1 subnet
distance ospf external 200
IPC-253
Configuring OSPF
OSPF Configuration Examples
Token
Ring
0
BRI 0
Router A
BRI 0
Ethernet 0
Router B
Router A Configuration
username RouterB password 7 060C1A2F47
isdn switch-type basic-5ess
ip routing
!
interface TokenRing0
ip address 140.10.20.7 255.255.255.0
no shut
!
interface BRI0
no cdp enable
description connected PBX 1485
ip address 140.10.10.7 255.255.255.0
encapsulation ppp
ip ospf demand-circuit
dialer map ip 140.10.10.6 name RouterB broadcast 61484
dialer-group 1
ppp authentication chap
no shut
!
router ospf 100
network 140.10.10.0 0.0.0.255 area 0
network 140.10.20.0 0.0.0.255 area 0
!
dialer-list 1 protocol ip permit
Router B Configuration
username RouterA password 7 04511E0804
isdn switch-type basic-5ess
ip routing
!
interface Ethernet0
ip address 140.10.60.6 255.255.255.0
no shut
!
interface BRI0
no cdp enable
description connected PBX 1484
ip address 140.10.10.6 255.255.255.0
encapsulation ppp
dialer map ip 140.10.10.7 name RouterA broadcast 61485
dialer-group 1
ppp authentication chap
no shut
!
router ospf 100
network 140.10.10.0 0.0.0.255 area 0
network 140.10.60.0 0.0.0.255 area 0
!
dialer-list 1 protocol ip permit
IPC-254
14873
Figure 45
Configuring OSPF
OSPF Configuration Examples
The following example prevents flooding of OSPF LSAs to point-to-multipoint networks to the neighbor
at IP address 1.2.3.4:
router ospf 109
neighbor 1.2.3.4 database-filter all out
IPC-255
Configuring OSPF
OSPF Configuration Examples
IPC-256
Configuring EIGRP
This chapter describes how to configure Enhanced Interior Gateway Routing Protocol (EIGRP). For a
complete description of the EIGRP commands listed in this chapter, refer to the EIGRP Commands
chapter of the Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols publication. To
locate documentation of other commands that appear in this chapter, use the command reference master
index, or search online.
Refer to the Cisco IOS AppleTalk and Novell IPX Configuration Guide for information on AppleTalk
EIGRP or Internetwork Packet Exchange (IPX) EIGRP.
For protocol-independent features that work with EIGRP, see the chapter Configuring IP Routing
Protocol-Independent Features in this document.
EIGRP is an enhanced version of the IGRP developed by Cisco. EIGRP uses the same distance vector
algorithm and distance information as IGRP. However, the convergence properties and the operating
efficiency of EIGRP have improved substantially over IGRP.
The convergence technology is based on research conducted at SRI International and employs an
algorithm referred to as the Diffusing Update Algorithm (DUAL). This algorithm guarantees loop-free
operation at every instant throughout a route computation and allows all devices involved in a topology
change to synchronize at the same time. Routers that are not affected by topology changes are not
involved in recomputations. The convergence time with DUAL rivals that of any other existing routing
protocol.
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the Identifying Supported Platforms
section in the Using Cisco IOS Software chapter in this book.
Automatic redistributionIGRP routes can be automatically redistributed into EIGRP, and EIGRP
routes can be automatically redistributed into IGRP. If desired, you can turn off redistribution. You
can also completely turn off EIGRP and IGRP on the router or on individual interfaces.
Increased network widthWith IP Routing Information Protocol (RIP), the largest possible width
of your network is 15 hops. When EIGRP is enabled, the largest possible width is increased to 100
hops, and the metric is large enough to support thousands of hops.
IPC-257
Configuring EIGRP
The Cisco EIGRP Implementation
Note
Redistribution between EIGRP and IGRP differs from normal redistribution in that the metrics of
IGRP routes are compared with the metrics of external EIGRP routes. The rules of normal
administrative distances are not followed, and routes with the lowest metric are selected.
EIGRP offers the following features:
Fast convergenceThe DUAL algorithm allows routing information to converge as quickly as any
currently available routing protocol.
Partial updatesEIGRP sends incremental updates when the state of a destination changes, instead
of sending the entire contents of the routing table. This feature minimizes the bandwidth required
for EIGRP packets.
Less CPU usage than IGRPThis occurs because full update packets need not be processed each
time they are received.
Neighbor discovery mechanismThis is a simple hello mechanism used to learn about neighboring
routers. It is protocol-independent.
Protocol-dependent modules
Neighbor discovery of neighbor recovery is the process that routers use to dynamically learn of other
routers on their directly attached networks. Routers must also discover when their neighbors become
unreachable or inoperative. Neighbor discovery of neighbor recovery is achieved with low overhead by
periodically sending small hello packets. As long as hello packets are received, the Cisco IOS software
can determine that a neighbor is alive and functioning. Once this status is determined, the neighboring
routers can exchange routing information.
The reliable transport protocol is responsible for guaranteed, ordered delivery of EIGRP packets to all
neighbors. It supports intermixed transmission of multicast and unicast packets. Some EIGRP packets
must be sent reliably and others need not be. For efficiency, reliability is provided only when necessary.
For example, on a multiaccess network that has multicast capabilities (such as Ethernet) it is not
necessary to send hello packets reliably to all neighbors individually. Therefore, EIGRP sends a single
multicast hello with an indication in the packet informing the receivers that the packet need not be
acknowledged. Other types of packets (such as updates) require acknowledgment, which is indicated in
the packet. The reliable transport has a provision to send multicast packets quickly when
unacknowledged packets are pending. This provision helps to ensure that convergence time remains low
in the presence of varying speed links.
The DUAL finite state machine embodies the decision process for all route computations. It tracks all
routes advertised by all neighbors. DUAL uses the distance information (known as a metric) to select
efficient, loop-free paths. DUAL selects routes to be inserted into a routing table based on feasible
successors. A successor is a neighboring router used for packet forwarding that has a least-cost path to
a destination that is guaranteed not to be part of a routing loop. When there are no feasible successors
but there are neighbors advertising the destination, a recomputation must occur. This is the process
whereby a new successor is determined. The amount of time required to recompute the route affects the
IPC-258
Configuring EIGRP
EIGRP Configuration Task List
See the section EIGRP Configuration Examples at the end of this chapter for configuration examples.
Enabling EIGRP
To create an EIGRP routing process, use the following commands beginning in global configuration
mode:
Command
Purpose
Step 1
Step 2
EIGRP sends updates to the interfaces in the specified networks. If you do not specify the network of an
interface, the interface will not be advertised in any EIGRP update.
IPC-259
Configuring EIGRP
EIGRP Configuration Task List
Purpose
Purpose
Note
Adjusting EIGRP metric weights can dramatically affect network performance. Because of the
complexity of this task, we recommend that you do not change the default values without guidance
from an experienced network designer.
IPC-260
Configuring EIGRP
EIGRP Configuration Task List
To adjust the EIGRP metric weights, use the following command in router configuration mode:
Command
Purpose
By default, the EIGRP composite metric is a 32-bit quantity that is a sum of the segment delays and the
lowest segment bandwidth (scaled and inverted) for a given route. For a network of homogeneous media,
this metric reduces to a hop count. For a network of mixed media (FDDI, Ethernet, and serial lines
running from 9600 bits per second to T1 rates), the route with the lowest metric reflects the most
desirable path to a destination.
Mismatched K Values
Mismatched K values (EIGRP metrics) can prevent neighbor relationships from being established and
can negatively impact network convergence. The following example explains this behavior between 2
EIGRP peers (ROUTER-A and ROUTER-B).
The following error message is displayed in the console of ROUTER-B because the K values are
mismatched:
*Apr 26 13:48:41.811: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.1.1.1 (Ethernet0/0) is
down: K-value mismatch
There are two scenarios where this error message can be displayed:
The two routers are connected on the same link and configured to establish a neighbor relationship.
However, each router is configured with different K values.
The following configuration is applied to ROUTER-A. The K values are changed with the metric
weights command. A value of 2 is entered for the k1 argument to adjust the bandwidth calculation.
The value of 1 is entered for the k3 argument to adjust the delay calculation.
hostname ROUTER-A!
interface serial 0
ip address 10.1.1.1 255.255.255.0
exit
router eigrp 100
network 10.1.1.0 0.0.0.255
metric weights 0 2 0 1 0 0
The following configuration is applied to ROUTER-B. However, the metric weights command is
not applied and the default K values are used. The default K values are 1, 0, 1, 0, and 0.
hostname ROUTER-B!
interface serial 0
ip address 10.1.1.2 255.255.255.0!
exit
router eigrp 100
network 10.1.1.0 0.0.0.255
The bandwidth calculation is set to 2 on ROUTER-A and set to 1 (by default) on ROUTER-B. This
configuration prevents these peers from forming a neighbor relationship.
IPC-261
Configuring EIGRP
EIGRP Configuration Task List
The K-value mismatch error message can also be displayed if one of the two peers has transmitted
a goodbye message, and the receiving router does not support this message. In this case, the
receiving router will interpret this message as a K-value mismatch.
A Cisco router that runs a software release that does not support the goodbye message can
misinterpret the message as a K-value mismatch and display the following message:
*Apr 26 13:48:41.811: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor
(Ethernet0/0) is down: K-value mismatch
Note
10.1.1.1
The receipt of a goodbye message by a nonsupporting peer does not disrupt normal network
operation. The nonsupporting peer will terminate session when the hold timer expires. The sending
and receiving routers will reconverge normally after the sender reloads.
Purpose
IPC-262
Configuring EIGRP
EIGRP Configuration Task List
Command
Purpose
Router(config-router)# no auto-summary
Route summarization works in conjunction with the ip summary-address eigrp interface configuration
command, in which additional summarization can be performed. If automatic summarization is in effect,
there usually is no need to configure network level summaries using the ip summary-address eigrp
command.
Purpose
See the Route Summarization Example at the end of this chapter for an example of summarizing
aggregate addresses.
IPC-263
Configuring EIGRP
EIGRP Configuration Task List
Figure 46
10.1.1.0/24
0.0.0.0/0
Router-A
Router-C
Router-B
25
. . . .
103615
Router-B#show ip route
Router-C#show ip route
. . . .
The configuration of the default summary route on Router-B sends a 0.0.0.0/0 summary route to
Router-C and blocks all other routes, including the 10.1.1.0/24 route, from being advertised to Router-C.
However, this also generates a local discard route on Router-B, a route for 0.0.0.0/0 to the null 0
interface with an administrative distance of 5. When this route is created, it overrides the EIGRP learned
default route. Router-B will no longer be able to reach destinations that it would normally reach through
the 0.0.0.0.0/0 route.
This problem is resolved by applying a floating summary route to the interface on Router-B that connects
to Router-C. The floating summary route is applied by applying an administrative distance to the default
summary route on the interface of Router-B with the following statement:
Router(config-if)# ip summary-address eigrp 100 0.0.0.0 0.0.0.0 250
The administrative distance of 250, applied in the above statement, is now assigned to the discard route
generated on Router-B. The 0.0.0.0/0, from Router-A, is learned through EIGRP and installed in the
local routing table. Routing to Router-C is restored.
If Router-A loses the connection to Router-B, Router-B will continue to advertise a default route to
Router-C, which allows traffic to continue to reach destinations attached to Router-B. However, traffic
destined to networks to Router-A or behind Router-A will be dropped when it reaches Router-B.
Figure 47 shows a network with two connections from the core, Router-A and Router-D. Both routers
have floating summary routes configured on the interfaces connected to Router-C. If the connection
between Router-E and Router-C fails, the network will continue to operate normally. All traffic will flow
from Router-C through Router-B to the hosts attached to Router-A and Router-D.
IPC-264
Configuring EIGRP
EIGRP Configuration Task List
Figure 47
10.1.1.0/24
0.0.0.0/0
0.0.0.0/0
Router-A
Router-C
Router-B
0.0.0.0/0
Router-E
103614
Router-D
0.0.0.0/0
interface Serial 0/1
ip summary-address eigrp 100 0.0.0.0.0.0.0.0 250
Router-B#show ip route
. . . .
0.0.0.0.0.0.0.0
However, if the link between Router-D and Router-E fails, the network may blackhole traffic because
Router-E will continue to advertise the default route(0.0.0.0/0) to Router-C, as long as at least one link,
(other than the link to Router-C) to Router-E is still active. In this scenario, Router-C still forwards
traffic to Router-E, but Router-E drops the traffic creating the black hole. To avoid this problem, you
should configure the summary address with an administrative distance on only single-homed remote
routers or areas where there is only one exit point between to segments of the network. If two or more
exit points exist (from one segment of the network to another), configuring the floating default route can
cause a black hole to be formed.
Purpose
Step 1
Step 2
IPC-265
Configuring EIGRP
EIGRP Configuration Task List
Command
Purpose
Step 3
Step 4
Router(config-if)# exit
Router(config)#
Step 5
Step 6
Step 7
Step 8
Router(config-keychain-key)# accept-lifetime
start-time {infinite | end-time | duration
seconds}
Step 9
Router(config-keychain-key)# send-lifetime
start-time {infinite | end-time | duration
seconds}
Each key has its own key identifier (specified with the key number key chain configuration command),
which is stored locally. The combination of the key identifier and the interface associated with the
message uniquely identifies the authentication algorithm and MD5 authentication key in use.
You can configure multiple keys with lifetimes. Only one authentication packet is sent, regardless of
how many valid keys exist. The software examines the key numbers in order from lowest to highest, and
uses the first valid key it encounters. Note that the router needs to know the time. Refer to the Network
Time Protocol (NTP) and calendar commands in the Performing Basic System Management chapter
of the Cisco IOS Configuration Fundamentals Configuration Guide.
For an example of route authentication, see the section Route Authentication Example at the end of
this chapter.
Adjusting the Interval Between Hello Packets and the Hold Time
For more protocol-independent features that work with EIGRP, see the chapter Configuring IP Routing
Protocol-Independent Features in this document.
Adjusting the Interval Between Hello Packets and the Hold Time
You can adjust the interval between hello packets and the hold time.
Routing devices periodically send hello packets to each other to dynamically learn of other routers on
their directly attached networks. This information is used to discover neighbors and to learn when
neighbors become unreachable or inoperative.
IPC-266
Configuring EIGRP
EIGRP Configuration Task List
By default, hello packets are sent every 5 seconds. The exception is on low-speed, nonbroadcast
multiaccess (NBMA) media, where the default hello interval is 60 seconds. Low speed is considered to
be a rate of T1 or slower, as specified with the bandwidth interface configuration command. The default
hello interval remains 5 seconds for high-speed NBMA networks. Note that for the purposes of EIGRP,
Frame Relay and Switched Multimegabit Data Service (SMDS) networks may or may not be considered
to be NBMA. These networks are considered NBMA if the interface has not been configured to use
physical multicasting; otherwise they are not considered NBMA.
You can configure the hold time on a specified interface for a particular EIGRP routing process
designated by the autonomous system number. The hold time is advertised in hello packets and indicates
to neighbors the length of time they should consider the sender valid. The default hold time is three times
the hello interval, or 15 seconds. For slow-speed NBMA networks, the default hold time is 180 seconds.
To change the interval between hello packets, use the following command in interface configuration
mode:
Command
Purpose
On very congested and large networks, the default hold time might not be sufficient time for all routers
to receive hello packets from their neighbors. In this case, you may want to increase the hold time.
To change the hold time, use the following command in interface configuration mode:
Command
Purpose
Note
Do not adjust the hold time without advising your technical support personnel.
Purpose
IPC-267
Configuring EIGRP
EIGRP Configuration Task List
Internet
Remote
router
(spoke)
46094
Distribution
router
(hub)
10.1.1.0/24
Corporate
network
The stub routing feature by itself does not prevent routes from being advertised to the remote router. In
the example in Figure 48, the remote router can access the corporate network and the Internet through
the distribution router only. Having a full route table on the remote router, in this example, would serve
no functional purpose because the path to the corporate network and the Internet would always be
through the distribution router. The larger route table would only reduce the amount of memory required
by the remote router. Bandwidth and memory can be conserved by summarizing and filtering routes in
the distribution router. The remote router need not receive routes that have been learned from other
networks because the remote router must send all nonlocal traffic, regardless of destination, to the
distribution router. If a true stub network is desired, the distribution router should be configured to send
IPC-268
Configuring EIGRP
EIGRP Configuration Task List
only a default route to the remote router. The EIGRP Stub Routing feature does not automatically enable
summarization on the distribution router. In most cases, the network administrator will need to configure
summarization on the distribution routers.
Note
When configuring the distribution router to send only a default route to the remote router, you must
use the ip classless command on the remote router. By default, the ip classless command is enabled
in all Cisco IOS images that support the EIGRP Stub Routing feature.
Without the stub feature, even after the routes that are sent from the distribution router to the remote
router have been filtered or summarized, a problem might occur. If a route is lost somewhere in the
corporate network, EIGRP could send a query to the distribution router, which in turn will send a query
to the remote router even if routes are being summarized. If there is a problem communicating over the
WAN link between the distribution router and the remote router, an EIGRP stuck in active (SIA)
condition could occur and cause instability elsewhere in the network. The EIGRP Stub Routing feature
allows a network administrator to prevent queries from being sent to the remote router.
Corporate
network
Remote
router
(spoke)
Distribution
router 2
(hub)
10.1.1.0/24
Distribution
router 1
(hub)
46096
Figure 49
Figure 49 shows a simple dual-homed remote with one remote router and two distribution routers. Both
distribution routers maintain routes to the corporate network and stub network 10.1.1.0/24.
IPC-269
Configuring EIGRP
EIGRP Configuration Task List
Dual-homed routing can introduce instability into an EIGRP network. In Figure 50, distribution router
1 is directly connected to network 10.3.1.0/24. If summarization or filtering is applied on distribution
router 1, the router will advertise network 10.3.1.0/24 to all of its directly connected EIGRP neighbors
(distribution router 2 and the remote router).
Figure 50
Remote
router
(spoke)
Distribution
router 2
(hub)
46095
Distribution
router 1
(hub)
10.1.1.0/24
Corporate
network
10.2.1.0/24
10.3.1.0/24
Figure 50 shows a simple dual-homed remote router where distribution router 1 is connected to both
network 10.3.1.0/24 and network 10.2.1.0/24.
If the 10.2.1.0/24 link between distribution router 1 and distribution router 2 has failed, the lowest cost
path to network 10.3.1.0/24 from distribution router 2 is through the remote router (see Figure 51). This
route is not desirable because the traffic that was previously traveling across the corporate network
10.2.1.0/24 would now be sent across a much lower bandwidth connection. The over utilization of the
lower bandwidth WAN connection can cause a number of problems that might affect the entire corporate
network. The use of the lower bandwidth route that passes through the remote router might cause WAN
EIGRP distribution routers to be dropped. Serial lines on distribution and remote routers could also be
dropped, and EIGRP SIA errors on the distribution and core routers could occur.
IPC-270
Configuring EIGRP
EIGRP Configuration Task List
Figure 51
Remote
router
(spoke)
Distribution
router 2
(hub)
46093
Distribution
router 1
(hub)
10.1.1.0/24
Corporate
network
10.2.1.0/24
It is not desirable for traffic from distribution router 2 to travel through any remote router in order to
reach network 10.3.1.0/24. If the links are sized to handle the load, it would be acceptable to use one of
the backup routes. However, most networks of this type have remote routers located at remote offices
with relatively slow links. This problem can be prevented if proper summarization is configured on the
distribution router and remote router.
It is typically undesirable for traffic from a distribution router to use a remote router as a transit path. A
typical connection from a distribution router to a remote router would have much less bandwidth than a
connection at the network core. Attempting to use a remote router with a limited bandwidth connection
as a transit path would generally produce excessive congestion to the remote router. The EIGRP Stub
Routing feature can prevent this problem by preventing the remote router from advertising core routes
back to distribution routers. Routes learned by the remote router from distribution router 1 will not be
advertised to distribution router 2. Since the remote router will not advertise core routes to distribution
router 2, the distribution router will not use the remote router as a transit for traffic destined for the
network core.
The EIGRP Stub Routing feature can help to provide greater network stability. In the event of network
instability, this feature prevents EIGRP queries from being sent over limited bandwidth links to
nontransit routers. Instead, distribution routers to which the stub router is connected answer the query
on behalf of the stub router. This feature greatly reduces the chance of further network instability due to
congested or problematic WAN links. The EIGRP Stub Routing feature also simplifies the configuration
and maintenance of hub-and-spoke networks. When stub routing is enabled in dual-homed remote
configurations, it is no longer necessary to configure filtering on remote routers to prevent those remote
routers from appearing as transit paths to the hub routers.
Caution
EIGRP Stub Routing should only be used on stub routers. A stub router is defined as a router
connected to the network core or distribution layer through which core transit traffic should not flow.
A stub router should not have any EIGRP neighbors other than distribution routers. Ignoring this
restriction will cause undesirable behavior.
Note
Multi-access interfaces, such as ATM, Ethernet, Frame Relay, ISDN PRI, and X.25, are supported by
the EIGRP Stub Routing feature only when all routers on that interface, except the hub, are
configured as stub routers.
IPC-271
Configuring EIGRP
Monitoring and Maintaining EIGRP
Purpose
Step 1
Step 2
Step 3
Address
10.1.1.2
Interface
Hold Uptime
SRTT
(sec)
(ms)
Se3/1
11 00:00:59
RTO
Seq Type
Cnt Num
4500
Purpose
IPC-272
Configuring EIGRP
EIGRP Configuration Examples
To display various routing statistics, use the following commands in EXEC mode, as needed:
Command
Purpose
To enable EIGRP Stub Routing packet debugging, use the following command in privileged EXEC
mode:
Command
Purpose
Note
You should not use the ip summary-address eigrp summarization command to generate
the default route (0.0.0.0) from an interface. This causes the creation of an EIGRP summary
default route to the null 0 interface with an administrative distance of 5. The low
administrative distance of this default route can cause this route to displace default routes
learned from other neighbors from the routing table. If the default route learned from the
neighbors is displaced by the summary default route, or if the summary route is the only
default route present, all traffic destined for the default route will not leave the router,
IPC-273
Configuring EIGRP
EIGRP Configuration Examples
instead, this traffic will be sent to the null 0 interface where it is dropped.
The recommended way to send only the default route out a given interface is to use a
distribute-list command. You can configure this command to filter all outbound route
advertisements sent out the interface with the exception of the default (0.0.0.0).
IPC-274
Configuring EIGRP
EIGRP Configuration Examples
E1
Router A
E1
S5836
Router B
Router A Configuration
interface ethernet 1
ip authentication mode eigrp 1 md5
ip authentication key-chain eigrp 1 holly
key chain holly
key 1
key-string 0987654321
accept-lifetime 04:00:00 Dec 4 1996 infinite
send-lifetime 04:00:00 Dec 4 1996 04:48:00 Dec 4 1996
exit
key 2
key-string 1234567890
accept-lifetime 04:00:00 Dec 4 1996 infinite
send-lifetime 04:45:00 Dec 4 1996 infinite
Router B Configuration
interface ethernet 1
ip authentication mode eigrp 1 md5
ip authentication key-chain eigrp 1 mikel
key chain mikel
key 1
key-string 0987654321
accept-lifetime 04:00:00 Dec 4 1996 infinite
send-lifetime 04:00:00 Dec 4 1996 infinite
exit
key 2
key-string 1234567890
accept-lifetime 04:00:00 Dec 4 1996 infinite
send-lifetime 04:45:00 Dec 4 1996 infinite
Router A will accept and attempt to verify the MD5 digest of any EIGRP packet with a key equal to 1.
It will also accept a packet with a key equal to 2. All other MD5 packets will be dropped. Router A will
send all EIGRP packets with key 2.
Router B will accept key 1 or key 2, and will send key 1. In this scenario, MD5 will authenticate.
IPC-275
Configuring EIGRP
EIGRP Configuration Examples
receive-only
connected
static
summary
This section provides configuration examples for all forms of the eigrp stub command. The eigrp stub
command can be modified with several options, and these options can be used in any combination except
for the receive-only keyword. The receive-only keyword will restrict the router from sharing any of its
routes with any other router in that EIGRP autonomous system, and the receive-only keyword will not
permit any other option to be specified because it prevents any type of route from being sent. The three
other optional keywords (connected, static, and summary) can be used in any combination but cannot
be used with the receive-only keyword. If any of these three keywords is used individually with the
eigrp stub command, connected and summary routes will not be sent automatically.
The connected keyword will permit the EIGRP Stub Routing feature to send connected routes. If the
connected routes are not covered by a network statement, it may be necessary to redistribute connected
routes with the redistribute connected command under the EIGRP process. This option is enabled by
default.
The static keyword will permit the EIGRP Stub Routing feature to send static routes. Without this
option, EIGRP will not send any static routes, including internal static routes that normally would be
automatically redistributed. It will still be necessary to redistribute static routes with the redistribute
static command.
The summary keyword will permit the EIGRP Stub Routing feature to send summary routes. Summary
routes can be created manually with the summary address command or automatically at a major
network border router with the auto-summary command enabled. This option is enabled by default.
In the following example, the eigrp stub command is used to configure the router as a stub that
advertises connected and summary routes:
router eigrp 1
network 10.0.0.0
eigrp stub
In the following example, the eigrp stub connected static command is used to configure the router as
a stub that advertises connected and static routes (sending summary routes will not be permitted):
router eigrp 1
network 10.0.0.0
eigrp stub connected static
In the following example, the eigrp stub receive-only command is used to configure the router as a stub,
and connected, summary, or static routes will not be sent:
router eigrp 1
network 10.0.0.0 eigrp
stub receive-only
IPC-276
In addition, you can filter routing information and specify route redistribution. For more information
about these features, see the Filter Routing Information and Redistribute Routing Information
sections, respectively, in the Configuring IP Routing Protocol-Independent Features chapter of this
document.
Note
IPC-277
Small IS-IS networks are built as a single area that includes all the routers in the network. As the network
grows larger, it is usually reorganized into a backbone area made up of the connected set of all Level 2
routers from all areas, which is in turn connected to local areas. Within a local area, routers know how
to reach all system IDs. Between areas, routers know how to reach the backbone, and the backbone
routers know how to reach other areas.
Routers establish Level 1 adjacencies to perform routing within a local area (intra-area routing). Routers
establish Level 2 adjacencies to perform routing between Level 1 areas (interarea routing).
Some networks use legacy equipment that supports only Level 1 routing. These devices are typically
organized into many small areas that cannot be aggregated due to performance limitations. Cisco routers
are used to interconnect each area to the Level 2 backbone.
A single Cisco router can participate in routing in up to 29 areas, and can perform Level 2 routing in the
backbone. In general, each routing process corresponds to an area. By default, the first instance of the
routing process configured performs both Level 1 and Level 2 routing. You can configure additional
router instances, which are automatically treated as Level 1 areas. You must configure the parameters
for each instance of the IS-IS routing process individually.
For IS-IS multiarea routing, you can configure only one process to perform Level 2 routing, although
you can define up to 29 Level 1 areas for each Cisco router. If Level 2 routing is configured on any
process, all additional processes are automatically configured as Level 1. You can configure this process
to perform Level 1 routing at the same time. If Level 2 routing is not desired for a router instance, remove
the Level 2 capability using the is-type router configuration command. Use the is-type router
configuration command also to configure a different router instance as a Level 2 router.
Network entity titles (NETs) define the area addresses for the IS-IS area and the system ID of the router.
Refer to the Configuring ISO CLNS chapter in the Cisco IOS Apollo Domain, Banyan VINES, ISO
CLNS, and XNS Configuration Guide for a more detailed discussion of NETs.
To enable IS-IS and specify the area for each instance of the IS-IS routing process, use the following
commands in global configuration mode:
Step 1
Command
Purpose
Enables IS-IS routing for the specified routing process, and places
the router in router configuration mode.
Use the area tag arguments to identify the area to which this IS-IS
router instance is assigned. A value for tag is required if you are
configuring multiple IS-IS areas.
The first IS-IS instance configured is Level 1-2 by default. Later
instances are automatically Level 1. You can change the level of
routing to be performed by a particular routing process using the
is-type router configuration command.
Step 2
Configures NETs for the routing process. Specify a NET for each
routing process if you are configuring multiarea IS-IS. You can
specify a name for a NET and for an address.
Note
See the IS-IS Configuration Examples section at the end of this chapter for examples of configuring
IS-IS as an IP routing protocol.
IPC-278
Purpose
Step 1
Step 2
Step 3
See the IS-IS Configuration Examples section at the end of this chapter for examples of configuring
IS-IS as an IP routing protocol.
IPC-279
Purpose
Purpose
{seconds |
The hello interval can be configured independently for Level 1 and Level 2, except on serial
point-to-point interfaces. (Because only a single type of hello packet is sent on serial links, it is
independent of Level 1 or Level 2.) Specify an optional level for X.25, Switched Multimegabit Data
Service (SMDS), and Frame Relay multiaccess networks. X25, SMDS, ATM, and Frame Relay networks
should be configured with point-to-point subinterfaces.
Purpose
This feature does not apply to serial point-to-point interfaces. It applies to WAN connections if the WAN
is viewed as a multiaccess meshed network.
IPC-280
Purpose
The value you specify should be an integer greater than the expected round-trip delay between any two
routers on the attached network. The setting of this parameter should be conservative, or needless
retransmission will result. The value should be larger for serial lines.
Purpose
Purpose
IPC-281
Purpose
Purpose
Purpose
Purpose
IPC-282
IPC-283
Customizing IS-IS Throttling of LSP Generation, SPF Calculation, and PRC (Optional)
Purpose
See also the discussion of redistribution of routes in the Configuring IP Routing Protocol-Independent
Features chapter of this document.
Purpose
IPC-284
Purpose
Purpose
Router(config-router)# summary-address
address mask {level-1 | level-1-2 | level-2}
A router configured as an LSP flooding server, for example, on an NBMA network, in combination
with the mesh-group feature.
A router that is aggregating virtual circuits (VCs) used only for network management. In this case,
the network management stations must be on a network directly connected to the router with the
set-overload-bit router configuration command configured.
IPC-285
Unless you specify the on-startup keyword, this command sets the overload bit immediately and it
remains set until the no set-overload-bit command is specified. If you specify the on-startup keyword,
you must indicate whether it is set for a specified number of seconds or until BGP has converged. If BGP
does not signal IS-IS that it has converged, IS-IS will turn off the overload bit after 10 minutes.
In addition to setting the overload bit, you might also want to suppress certain types of IP prefix
advertisements from LSPs. For example, allowing IP prefix propagation between Level1 and Level 2
effectively makes a node a transit node for IP traffic, which may be undesirable. The suppress keyword
used with the interlevel or external keyword (or both) accomplishes that suppression while the overload
bit is set.
To set the overload bit, use the following command in router configuration mode:
Command
Purpose
Router(config-router)# set-overload-bit
[on-startup {seconds | wait-for-bgp}]
[suppress {[interlevel] [external]}]
Purpose
IPC-286
To change the LSP refresh interval or lifetime, use the appropriate command in router configuration
mode:
Command
Purpose
Sets the maximum time that link-state packets (LSPs) can remain in
a routers database without being refreshed.
How Throttling of IS-IS LSP Generation, SPF Calculation, and PRC Works
IS-IS throttling of LSP generation, SPF calculations, and PRC occurs by default. You can customize the
throttling of these events with the lsp-gen-interval, spf-interval, and prc-interval commands,
respectively.
The arguments in each command behave similarly. For each command:
The first argument indicates the maximum number of seconds between LSP generations or
calculations.
The second argument indicates the initial wait time (in milliseconds) before running the first LSP
generation or calculation.
The third argument indicates the minimum amount of time to wait (in milliseconds) between the first
and second LSP generation or calculation. (In addition to this wait time, there might be some other
system overhead between LSP generations or calculations.)
Each subsequent wait interval is twice as long as the previous one until the wait interval reaches the
maximum wait time specified, upon which the wait interval remains constant. After the network calms
down and there are no triggers for 2 times the maximum interval, fast behavior is restored (the initial
wait time).
IPC-287
Other commands are available to control the delay between successive LSPs, the retransmission of the
same LSA, and the retransmission of LSPs on a point-to-point interface.
Perform this task to customize throttling of LSP generation, SPF calculation, PRC, or any combination
of the three, beginning in router configuration mode:
Command
Purpose
Purpose
For example, the following command causes information about individual areas to be separated by
14 dashes (-) in the display:
isis display delimiter - 14
The output for a configuration with two Level 1 areas and one Level 2 area configured is as follows:
dtp-5# show clns neighbors
-------------Area L2BB:
System Id
Interface
SNPA
0000.0000.0009 Tu529
172.21.39.9
--------------
IPC-288
State
Up
Holdtime
25
Type Protocol
L1L2 IS-IS
Area A3253-01:
System Id
0000.0000.0053
0000.0000.0003
-------------Area A3253-02:
System Id
0000.0000.0002
0000.0000.0053
Interface
Et1
Et1
SNPA
0060.3e58.ccdb
0000.0c03.6944
State
Up
Up
Holdtime
22
20
Type Protocol
L1
IS-IS
L1
IS-IS
Interface
Et2
Et2
SNPA
0000.0c03.6bc5
0060.3e58.ccde
State
Up
Up
Holdtime
27
24
Type Protocol
L1
IS-IS
L1
IS-IS
Monitoring IS-IS
To monitor the IS-IS tables and databases, use the following commands in EXEC mode, as needed:
Command
Purpose
Displays how often and why the router has run a full SPF calculation.
Router B Configuration
router isis
net 49.0001.0000.0000.000b.00
interface ethernet 0
ip router isis
interface ethernet 1
ip router isis
IPC-289
interface serial 0
ip router isis
Router C Configuration
router isis
net 49.0001.0000.0000.000c.00
interface ethernet 1
ip router isis
interface ethernet 2
ip router isis
Figure 53
IS-IS Routing
E0
E0
S0
Router A
Router B
Router C
E2
32050
E1
IPC-290
router isis BB
net 49.2222.0000.0000.0005.00
!
router isis A3253-01
net 49.0553.0001.0000.0000.0005.00
is-type level-1
!
router isis A3253-02
net 49.0553.0002.0000.0000.0005.00
is-type level-1
Figure 54
Multiarea IS-IS Configuration with Three Level 1 Areas and One Level 2 Area
Interface
Tunnel529
Level 1
Level 1
Area A3253-01
Area A3253-02
Interface
Ethernet 1
Interface
Ethernet 2
26802
Level 1-2
Area BB
IPC-291
IPC-292
Configuring BGP
This chapter describes how to configure Border Gateway Protocol (BGP). For a complete description of
the BGP commands in this chapter, refer to the BGP Commands chapter of the Cisco IOS IP Command
Reference, Volume 2 of 3: Routing Protocols. To locate documentation of other commands that appear
in this chapter, use the command reference master index, or search online. For multiprotocol BGP
configuration information and examples, refer to the Configuring Multiprotocol BGP Extensions for IP
Multicast chapter of the Cisco IOS IP Configuration Guide. For multiprotocol BGP command
descriptions, refer to the Multiprotocol BGP Extensions for IP Multicast Commands chapter of the
Cisco IOS IP Command Reference.
BGP, as defined in RFCs 1163 and 1267, is an Exterior Gateway Protocol (EGP). It allows you to set up
an interdomain routing system that automatically guarantees the loop-free exchange of routing
information between autonomous systems.
For protocol-independent features, see the chapter Configuring IP Routing Protocol-Independent
Features in this book.
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the Identifying Supported Platforms
section in the Using Cisco IOS Software chapter in this book.
IPC-293
Configuring BGP
The Cisco BGP Implementation
BGP Version 4 supports classless interdomain routing (CIDR), which lets you reduce the size of your
routing tables by creating aggregate routes, resulting in supernets. CIDR eliminates the concept of
network classes within BGP and supports the advertising of IP prefixes. CIDR routes can be carried by
Open Shortest Path First (OSPF), Enhanced IGRP (EIGRP), and Intermediate System-to-Intermediate
System (ISIS)-IP, and Routing Information Protocol (RIP).
See the BGP Route Map Examples section at the end of this chapter for examples of how to use route
maps to redistribute BGP Version 4 routes.
The router has received synchronization via an IGP (unless IGP synchronization has been disabled).
BGP bases its decision process on the attribute values. When faced with multiple routes to the same
destination, BGP chooses the best route for routing traffic toward the destination. The following process
summarizes how BGP chooses the best route.
1.
2.
If the path is internal, synchronization is enabled, and the route is not in the IGP, do not consider the
route.
3.
Prefer the path with the largest weight (weight is a Cisco proprietary parameter).
4.
If the routes have the same weight, prefer the route with the largest local preference.
5.
If the routes have the same local preference, prefer the route that was originated by the local router.
For example, a route might be originated by the local router using the network bgp router
configuration command, or through redistribution from an IGP.
6.
If the local preference is the same, or if no route was originated by the local router, prefer the route
with the shortest autonomous system path.
7.
If the autonomous system path length is the same, prefer the route with the lowest origin code (IGP
< EGP < INCOMPLETE).
8.
If the origin codes are the same, prefer the route with the lowest MED metric attribute.
This comparison is only made if the neighboring autonomous system is the same for all routes
considered, unless the bgp always-compare-med router configuration command is enabled.
Note
9.
The most recent Internet Engineering Task Force (IETF) decision regarding BGP MED
assigns a value of infinity to the missing MED, making the route lacking the MED
variable the least preferred. The default behavior of BGP routers running Cisco IOS
software is to treat routes without the MED attribute as having a MED of 0, making the
route lacking the MED variable the most preferred. To configure the router to conform
to the IETF standard, use the bgp bestpath med missing-as-worst router configuration
command.
Prefer the external BGP (eBGP) path over the iBGP path.
All confederation paths are considered internal paths.
IPC-294
Configuring BGP
Basic BGP Configuration Task List
10. Prefer the route that can be reached through the closest IGP neighbor (the lowest IGP metric).
The router will prefer the shortest internal path within the autonomous system to reach the
destination (the shortest path to the BGP next hop).
11. If the following conditions are all true, insert the route for this path into the IP routing table:
Both the best route and this route are external.
Both the best route and this route are from the same neighboring autonomous system.
The maximum-paths router configuration command is enabled.
Note
eBGP load sharing can occur at this point, which means that multiple paths can be
installed in the forwarding table.
12. If multipath is not enabled, prefer the route with the lowest IP address value for the BGP router ID.
The router ID is usually the highest IP address on the router or the loopback (virtual) address, but
might be implementation-specific.
IPC-295
Configuring BGP
Advanced BGP Configuration Task List
Configuring the Router to Use the MED to Choose a Path from Subautonomous System Paths
(Optional)
Configuring the Router to Use the MED to Choose a Path in a Confederation (Optional)
For information on configuring features that apply to multiple IP routing protocols (such as
redistributing routing information), see the chapter Configuring IP Routing Protocol-Independent
Features.
IPC-296
Configuring BGP
Configuring Basic BGP Features
Purpose
Step 1
Step 2
Note
For exterior protocols, a reference to an IP network from the network router configuration command
controls only which networks are advertised. This behavior is in contrast to IGP, such as IGRP, which
also use the network command to determine where to send updates.
Note
The network command is used to inject IGP routes into the BGP table. The network-mask portion of
the command allows supernetting and subnetting. The resources of the router, such as configured
NVRAM or RAM, determine the upper limit of the number of network commands you can use.
Alternatively, you could use the redistribute router configuration command to achieve the same
result.
Purpose
See the BGP Neighbor Configuration Examples section at the end of this chapter for an example of
configuring BGP neighbors.
IPC-297
Configuring BGP
Configuring Basic BGP Features
Type of Reset
Advantages
Disadvantages
Hard reset
No memory overhead.
Dynamic inbound
soft reset
Requires preconfiguration.
Stores all received (inbound) routing
policy updates without modification;
is memory-intensive.
Recommended only when absolutely
necessary, such as when both BGP
routers do not support the automatic
route refresh capability.
Once you have defined two routers to be BGP neighbors, they will form a BGP connection and exchange
routing information. If you subsequently change a BGP filter, weight, distance, version, or timer, or
make a similar configuration change, you must reset BGP connections for the configuration change to
take effect.
IPC-298
Configuring BGP
Configuring Basic BGP Features
A soft reset updates the routing table for inbound and outbound routing updates. Cisco IOS software
Release 12.1 and later releases support soft reset without any prior configuration. This soft reset allows
the dynamic exchange of route refresh requests and routing information between BGP routers, and the
subsequent re-advertisement of the respective outbound routing table. There are two types of soft reset:
When soft reset is used to generate inbound updates from a neighbor, it is called dynamic inbound
soft reset.
When soft reset is used to send a new set of updates to a neighbor, it is called outbound soft reset.
To use soft reset without preconfiguration, both BGP peers must support the soft route refresh capability,
which is advertised in the OPEN message sent when the peers establish a TCP session. Routers running
Cisco IOS software releases prior to Release 12.1 do not support the route refresh capability and must
clear the BGP session using the neighbor soft-reconfiguration router configuration command,
described in Configuring BGP Soft Reset Using Stored Routing Policy Information. Clearing the BGP
session in this way will have a negative impact upon network operations and should only be used as a
last resort.
Does not require additional memory for storing routing update information
To determine whether a router supports the route refresh capability, use the show ip bgp neighbors
command in EXEC mode:
Command
Purpose
If all the BGP routers support the route refresh capability, you can use the dynamic soft reset method for
resetting the inbound routing table. To perform a dynamic soft reset of the inbound routing table, use the
following command in EXEC mode:
Command
Purpose
See the BGP Soft Reset Examples section at the end of this chapter for examples of both types of BGP
soft resets.
IPC-299
Configuring BGP
Configuring Basic BGP Features
Purpose
Step 1
Command
Purpose
Step 2
See the BGP Path Filtering by Neighbor Examples section at the end of this chapter for an example of
BGP path filtering by neighbor.
IPC-300
Configuring BGP
Configuring Basic BGP Features
Enter the show ip bgp EXEC command to display entries in the BGP routing table. The following output
shows that the peer supports the route refresh capability:
Router# show ip bgp
BGP table version is 5, local router ID is 10.0.33.34
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
*>
*
*>
*
*>
*>
Step 2
Network
1.0.0.0
2.0.0.0
10.0.0.0
192.168.0.0/16
Next Hop
0.0.0.0
10.0.33.35
0.0.0.0
10.0.33.35
0.0.0.0
10.0.33.35
Enter the show ip bgp neighbors EXEC command to display information about the BGP and TCP
connections to neighbors:
Router# show ip bgp neighbors 171.69.232.178
BGP neighbor is 172.16.232.178, remote AS 35, external link
BGP version 4, remote router ID 192.168.3.3
BGP state = Established, up for 1w1d
Last read 00:00:53, hold time is 180, keepalive interval is 60 seconds
Neighbor capabilities:
Route refresh: advertised and received
Address family IPv4 Unicast: advertised and received
Address family IPv4 Multicast: advertised and received
Received 12519 messages, 0 notifications, 0 in queue
Sent 12523 messages, 0 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 30 seconds
For address family: IPv4 Unicast
BGP table version 5, neighbor version 5
Index 1, Offset 0, Mask 0x2
Community attribute sent to this neighbor
Inbound path policy configured
Outbound path policy configured
Route map for incoming advertisements is uni-in
Route map for outgoing advertisements is uni-out
3 accepted prefixes consume 108 bytes
Prefix advertised 6, suppressed 0, withdrawn 0
For address family: IPv4 Multicast
BGP table version 5, neighbor version 5
Index 1, Offset 0, Mask 0x2
Inbound path policy configured
Outbound path policy configured
Route map for incoming advertisements is mul-in
Route map for outgoing advertisements is mul-out
3 accepted prefixes consume 108 bytes
Prefix advertised 6, suppressed 0, withdrawn 0
Connections established 2; dropped 1
Last reset 1w1d, due to Peer closed the session
IPC-301
Configuring BGP
Configuring Basic BGP Features
273358651
190480283
snduna:
rcvnxt:
273596614
190718186
sndnxt:
rcvwnd:
mis-ordered: 0 (0 bytes)
Next
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
273596614
15491
sndwnd:
delrcvwnd:
15434
893
Purpose
Router(config-router)# no synchronization
See the BGP Path Filtering by Neighbor Examples section at the end of this chapter for an example of
BGP synchronization.
In general, you will not want to redistribute most BGP routes into your IGP. A common design is to
redistribute one or two routes and to make them exterior routes in IGRP, or have your BGP speaker
generate a default route for your autonomous system. When redistributing from BGP into IGP, only the
routes learned using eBGP get redistributed.
IPC-302
Configuring BGP
Configuring Basic BGP Features
In most circumstances, you also will not want to redistribute your IGP into BGP. List the networks in
your autonomous system with network router configuration commands and your networks will be
advertised. Networks that are listed this way are referred to as local networks and have a BGP origin
attribute of IGP. They must appear in the main IP routing table and can have any source; for example,
they can be directly connected or learned via an IGP. The BGP routing process periodically scans the
main IP routing table to detect the presence or absence of local networks, updating the BGP routing table
as appropriate.
If you do perform redistribution into BGP, you must be very careful about the routes that can be in your
IGP, especially if the routes were redistributed from BGP into the IGP elsewhere. Redistributing routes
from BGP into the IGP elsewhere creates a situation where BGP is potentially injecting information into
the IGP and then sending such information back into BGP, and vice versa. Incorrectly redistributing
routes into BGP can result in the loss of critical information, such as the autonomous system path, that
is required for BGP to function properly.
Networks that are redistributed into BGP from the EGP protocol will be given the BGP origin attribute
EGP. Other networks that are redistributed into BGP will have the BGP origin attribute of
incomplete. The origin attribute in the Cisco implementation is only used in the path selection process.
Purpose
IPC-303
Configuring BGP
Configuring Basic BGP Features
Use autonomous system path filters, as with the ip as-path access-list global configuration
command and the neighbor filter-list router configuration command
Use access or prefix lists, as with the neighbor distribute-list router configuration command.
Filtering using prefix lists is described in the Configuring BGP Filtering Using Prefix Lists section.
If you want to restrict the routing information that the Cisco IOS software learns or advertises, you can
filter BGP routing updates to and from particular neighbors. You can either define an access list or a
prefix list and apply it to the updates.
Note
Distribute-list filters are applied to network numbers and not autonomous system paths.
To filter BGP routing updates, use the following command in router configuration mode:
Command
Purpose
Note
Although the neighbor prefix-list router configuration command can be used as an alternative to the
neighbor distribute-list command, do not use attempt to apply both the neighbor prefix-list and
neighbor distribute-list command filtering to the same neighbor in any given direction. These two
commands are mutually exclusive, and only one command (neighbor prefix-list or neighbor
distribute-list) can be applied for each inbound or outbound direction.
Support for incremental updates. Filtering using extended access lists does not support incremental
updates.
IPC-304
Configuring BGP
Configuring Basic BGP Features
More user-friendly command-line interface (CLI). The command-line interface for using access lists
to filter BGP updates is difficult to understand and use because it uses the packet filtering format.
Greater flexibility
Before using a prefix list in a command, you must set up a prefix list, and you may want to assign
sequence numbers to the entries in the prefix list.
An implicit deny is assumed if a given prefix does not match any entries of a prefix list.
When multiple entries of a prefix list match a given prefix, the longest, most specific match is
chosen.
The router begins the search at the top of the prefix list, with the sequence number 1. Once a match
or deny occurs, the router need not go through the rest of the prefix list. For efficiency, you may want
to put the most common matches or denies near the top of the list, using the seq argument in the
ip prefix-list global configuration command. The show commands always include the sequence
numbers in their output.
Sequence numbers are generated automatically unless you disable this automatic generation. If you
disable the automatic generation of sequence numbers, you must specify the sequence number for each
entry using the sequence-value argument of the ip prefix-list global configuration command.
Regardless of whether the default sequence numbers are used in configuring a prefix list, a sequence
number need not be specified when removing a configuration entry.
show commands include the sequence numbers in their output.
Purpose
Creates a prefix list with the name specified for the list-name
argument.
Note
To create a prefix list you must enter at least one permit or deny clause.
To remove a prefix list and all of its entries, use the following command in router configuration mode:
Command
Purpose
IPC-305
Configuring BGP
Configuring Basic BGP Features
Purpose
The optional ge and le keywords can be used to specify the range of the prefix length to be matched for
prefixes that are more specific than the network/length argument. An exact match is assumed when
neither ge nor le is specified. The range is assumed to be from ge-value to 32 if only the ge attribute is
specified, and from len to le-value if only the le attribute is specified.
A specified ge-value or le-value must satisfy the following condition:
len < ge-value <= le-value <= 32
For example, to deny all prefixes matching /24 in 128.0.0.0/8, use the following command:
ip prefix-list abc deny
Note
128.0.0.0/8 ge 24 le 24
You can specify sequence values for prefix list entries in any increments you want (the automatically
generated numbers are incremented in units of 5). If you specify the sequence values in increments
of 1, you cannot insert additional entries into the prefix list. If you choose very large increments, you
could run out of sequence values.
Purpose
Router(config-router)# no ip prefix-list
sequence-number
To re-enable automatic generation of the sequence numbers of prefix list entries, use the ip prefix-list
sequence number command in router configuration mode:
IPC-306
Configuring BGP
Configuring Basic BGP Features
Command
Purpose
Router(config-router)# ip prefix-list
sequence-number
If you disable automatic generation of sequence numbers in a prefix list, you must specify the sequence
number for each entry using the sequence-value argument of the ip prefix-list global configuration
command.
Regardless of whether the default sequence numbers are used in configuring a prefix list, a sequence
number need not be specified when deconfiguring an entry. show commands include the sequence
numbers in their output.
Purpose
You can delete entries from a prefix list individually. To delete an entry in a prefix list, use the following
command in router configuration mode:
Command
Purpose
Note
The sequence number of an entry need not be specified when you delete the entry.
Purpose
IPC-307
Configuring BGP
Configuring Basic BGP Features
Displays all entries of a prefix list that are more specific than
the given network and length.
Purpose
Purpose
Step 1
Step 2
Step 3
See the BGP Path Filtering by Neighbor Examples section at the end of this chapter for an example of
BGP path filtering by neighbor.
Provide a specific address to be used instead of the next hop address (manually configuring each
address).
Use a route map to specify that the address of the remote peer for matching inbound routes, or the
local router for matching outbound routes (automatic method).
IPC-308
Configuring BGP
Configuring Basic BGP Features
Purpose
Configuring this command causes the current router to advertise its peering address as the next hop for
the specified neighbor. Therefore, other BGP neighbors will forward to it packets for that address. This
configuration is useful in a nonmeshed environment because you know that a path exists from the present
router to that address. In a fully meshed environment, this configuration is not useful because it will
result in unnecessary extra hops and because there might be a direct access through the fully meshed
cloud with fewer hops.
Purpose
Caution
Incorrectly setting BGP attributes for a route reflector can cause inconsistent routing, routing loops,
or a loss of connectivity. Setting BGP attributes for a route reflector should be attempted only by an
experienced network operator.
IPC-309
Configuring BGP
Configuring Basic BGP Features
The configuration of this feature in conjunction with the iBGP Multipath Load Sharing feature allows
you to use an outbound route map to include BGP route reflectors in the forwarding path.
The BGP Next Hop Propagation feature allows you to perform the following tasks:
Bring the route reflector into the forwarding path, which can be used with the iBGP Multipath Load
Sharing feature to configure load balancing.
Configure interprovider Multiprotocol Label Switching (MPLS) Virtual Private Networks (VPNs)
by not modifying the next hop attribute when advertising routes to an eBGP peer.
Turn off the next hop calculation for an eBGP peer. This feature is useful for configuring the
end-to-end connection of a label-switched path.
To configure an eBGP multihop peer to propagate the next hop unchanged, use the following command
in router configuration mode:
Command
Purpose
Caution
Purpose
Purpose
Sets an MED.
Alternatively, you can set the MED using the route-map router configuration command. See the BGP
Route Map Examples section at the end of this chapter for examples of using BGP route maps.
IPC-310
Configuring BGP
Configuring Advanced BGP Features
Purpose
See the BGP Route Map Examples section at the end of this chapter for BGP route map examples.
Purpose
IPC-311
Configuring BGP
Configuring Advanced BGP Features
To create an aggregate address in the routing table, use the following commands in router configuration
mode:
Command
Purpose
Router(config-router)# aggregate-address
address-mask summary-only
See the BGP Aggregate Route Examples section at the end of this chapter for examples of using BGP
aggregate routes.
Purpose
Router(config-router)# no auto-summary
IP address (see the Configuring BGP Route Filtering by Neighbor section earlier in this chapter).
The value of the autonomous system path attribute (see the Configuring BGP Path Filtering by
Neighbor section earlier in this chapter).
The communities attribute is a way to group destinations into communities and apply routing decisions
based on the communities. This method simplifies the configuration of a BGP speaker that controls
distribution of routing information.
A community is a group of destinations that share some common attribute. Each destination can belong
to multiple communities. Autonomous system administrators can define to which communities a
destination belongs. By default, all destinations belong to the general Internet community. The
community is carried as the communities attribute.
IPC-312
Configuring BGP
Configuring Advanced BGP Features
The communities attribute is an optional, transitive, global attribute in the numerical range from
1 to 4,294,967,200. Along with Internet community, there are a few predefined, well-known
communities, as follows:
internetAdvertise this route to the Internet community. All routers belong to it.
local-asDo not advertise this route to peers outside the local autonomous system. This route will
not be advertised to other autonomous systems or sub-autonomous systems when confederations are
configured.
Based on the community, you can control which routing information to accept, prefer, or distribute to
other neighbors. A BGP speaker can set, append, or modify the community of a route when you learn,
advertise, or redistribute routes. When routes are aggregated, the resulting aggregate has a communities
attribute that contains all communities from all the initial routes.
You can use community lists to create groups of communities to use in a match clause of a route map.
Just like an access list, a series of community lists can be created. Statements are checked until a match
is found. As soon as one statement is satisfied, the test is concluded.
To create a community list, use the following command in global configuration mode:
Command
Purpose
Router(config)# ip community-list
community-list-number {permit | deny}
community-number
To set the communities attribute and match clauses based on communities, see the match
community-list and set community route map configuration commands in the Redistribute Routing
Information section in the Configuring IP Routing Protocol-Independent Features chapter.
By default, no communities attribute is sent to a neighbor. To specify that the communities attribute to
be sent to the neighbor at an IP address, use the following command in router configuration mode:
Command
Purpose
To remove communities from the community attribute of an inbound or outbound update using a route
map to filter and determine the communities to be deleted, use the following command in router
configuration mode:
Command
Purpose
IPC-313
Configuring BGP
Configuring Advanced BGP Features
Purpose
Note
The conditional BGP announcements are sent in addition to the normal announcements that a BGP
router sends to its peers.
Note
Autonomous system path list information cannot be used for conditional advertisement because the
IP routing table does not contain autonomous system path information.
IPC-314
Configuring BGP
Configuring Advanced BGP Features
Configure the route-maps that will be used in conjunction with the advertise-map and the
non-exist-map. This step may include the configuration of access-lists or prefix-lists. (Required)
Configure the advertise-map and the non-exist-map with the neighbor advertise-map
non-exist-map router configuration command. (Required)
Verify that the BGP Condition Advertisement feature has been configured with the show ip bgp
neighbor command. (Optional)
Purpose
Step 1
Step 2
Step 3
See the BGP Conditional Advertisement Configuration Examples section at the end of this chapter for
an example configuration of BGP conditional advertisement.
IPC-315
Configuring BGP
Configuring Advanced BGP Features
The tracked prefix does not exist, and the conditional advertisement does not occur.
Verify the existence (or not) of the tracked prefix in the BGP table with the show ip bgp EXEC
command.
Verify the advertisement (or not) of the other prefix using the show ip bgp neighbor
advertised-routes EXEC command.
The user needs to ensure that all of the characteristics specified in the route maps match the routes in the
BGP table.
Purpose
IPC-316
Configuring BGP
Configuring Advanced BGP Features
In order to treat the neighbors from other autonomous systems within the confederation as special eBGP
peers, use the following command in router configuration mode:
Command
Purpose
See the BGP Community with Route Maps Examples section at the end of this chapter for an example
configuration of several peers in a confederation.
For an alternative way to reduce the iBGP mesh, see the next section, Configuring a Route Reflector.
Fully meshed
autonomous
system
Router C
Routes
Router A
External
BGP
speaker
Routes
advertised
Routes not
advertised
Router A
Routes
S4217
Router B
With route reflectors, all iBGP speakers need not be fully meshed because there is a method to pass
learned routes to neighbors. In this model, an iBGP peer is configured to be a route reflector responsible
for passing iBGP learned routes to a set of iBGP neighbors. In Figure 56, Router B is configured as a
route reflector. When the route reflector receives routes advertised from Router A, it advertises them to
Router C, and vice versa. This scheme eliminates the need for the iBGP session between Routers A
and C.
IPC-317
Configuring BGP
Configuring Advanced BGP Features
Figure 56
Routes
Router A
Router C
External
BGP
speaker
Routes
Reflected
routes
S4219
Router A
Router B
Route
reflector
The internal peers of the route reflector are divided into two groups: client peers and all the other routers
in the autonomous system (nonclient peers). A route reflector reflects routes between these two groups.
The route reflector and its client peers form a cluster. The nonclient peers must be fully meshed with
each other, but the client peers need not be fully meshed. The clients in the cluster do not communicate
with iBGP speakers outside their cluster.
Figure 57
Partially meshed
autonomous system
Nonclient
Router G
Route reflector
Router A
Routes
advertised
Nonclient
Router F
Router A
External
BGP
speaker
Nonclient
Cluster
S4218
Router E
Router B
Client
IPC-318
Router C
Client
Router D
Client
Configuring BGP
Configuring Advanced BGP Features
Figure 57 illustrates a more complex route reflector scheme. Router A is the route reflector in a cluster
with routers B, C, and D. Routers E, F, and G are fully meshed, nonclient routers.
When the route reflector receives an advertised route, depending on the neighbor, it takes the following
actions:
A route from an external BGP speaker is advertised to all clients and nonclient peers.
A route from a client is advertised to all clients and nonclient peers. Hence, the clients need not be
fully meshed.
To configure a route reflector and its clients, use the following command in router configuration mode:
Command
Purpose
Along with route reflector-aware BGP speakers, it is possible to have BGP speakers that do not
understand the concept of route reflectors. They can be members of either client or nonclient groups
allowing a easy and gradual migration from the old BGP model to the route reflector model. Initially,
you could create a single cluster with a route reflector and a few clients. All the other iBGP speakers
could be nonclient peers to the route reflector and then more clusters could be created gradually.
An autonomous system can have multiple route reflectors. A route reflector treats other route reflectors
just like other iBGP speakers. A route reflector can be configured to have other route reflectors in a client
group or nonclient group. In a simple configuration, the backbone could be divided into many clusters.
Each route reflector would be configured with other route reflectors as nonclient peers (thus, all the route
reflectors will be fully meshed). The clients are configured to maintain iBGP sessions with only the route
reflector in their cluster.
Usually a cluster of clients will have a single route reflector. In that case, the cluster is identified by the
router ID of the route reflector. To increase redundancy and avoid a single point of failure, a cluster might
have more than one route reflector. In this case, all route reflectors in the cluster must be configured with
the 4-byte cluster ID so that a route reflector can recognize updates from route reflectors in the same
cluster. All the route reflectors serving a cluster should be fully meshed and all of them should have
identical sets of client and nonclient peers.
If the cluster has more than one route reflector, configure the cluster ID by using the following command
in router configuration mode:
Command
Purpose
Use the show ip bgp EXEC command to display the originator ID and the cluster-list attributes.
By default, the clients of a route reflector are not required to be fully meshed and the routes from a client
are reflected to other clients. However, if the clients are fully meshed, the route reflector need not reflect
routes to clients.
IPC-319
Configuring BGP
Configuring Advanced BGP Features
To disable client-to-client route reflection, use the no bgp client-to-client reflection command in router
configuration mode:
Command
Purpose
As the iBGP learned routes are reflected, routing information may loop. The route reflector model has
the following mechanisms to avoid routing loops:
Cluster-list is an optional, nontransitive BGP attribute. It is a sequence of cluster IDs that the route
has passed. When a route reflector reflects a route from its clients to nonclient peers, and vice versa,
it appends the local cluster ID to the cluster-list. If the cluster-list is empty, a new cluster-list is
created. Using this attribute, a route reflector can identify if routing information is looped back to
the same cluster due to misconfiguration. If the local cluster ID is found in the cluster-list, the
advertisement is ignored.
Use set clauses in outbound route maps to modify attributes, possibly creating routing loops. To
avoid this behavior, set clauses of outbound route maps are ignored for routes reflected to iBGP
peers.
2.
3.
You can disable a BGP peer or peer group without removing all the configuration information using the
neighbor shutdown router configuration command.
Purpose
IPC-320
Configuring BGP
Configuring Advanced BGP Features
Purpose
IPC-321
Configuring BGP
Configuring Advanced BGP Features
Command
Purpose
Caution
If a peer group is not configured with a remote-as attribute, the members can be configured with the
neighbor remote-as router configuration command. This command allows you to create peer groups
containing eBGP neighbors.
You can customize inbound policies for peer group members (using, for example, a distribute list, route
map, or filter list) because one identical copy of an update is sent to every member of a group. Therefore,
neighbor options related to outgoing updates cannot be customized for peer group members.
External BGP peers normally must reside on a directly connected network. Sometimes it is useful to
relax this restriction in order to test BGP; do so by specifying the neighbor ebgp-multihop router
configuration command.
Note
To avoid the accidental creation of loops through oscillating routes, the multihop session will not be
established if the only route to the address of the multihop peer is the default route (0.0.0.0).
Members of a peer group can pass routes from one member of the peer group to another. For example,
if router B is peering with routers A and C, router B can pass routes from router A to router C.
For iBGP, you might want to allow your BGP connections to stay up regardless of which interface is used
to reach a neighbor. To enable this configuration, you first configure a loopback interface and assign it
an IP address. Next, configure the BGP update source to be the loopback interface. Finally, configure
your neighbor to use the address on the loopback interface. Now the iBGP session will be up as long as
there is a route, regardless of any interface.
You can set the minimum interval of time between BGP routing updates.
IPC-322
Configuring BGP
Configuring Advanced BGP Features
Caution
If the authentication string is configured incorrectly, the BGP peering session will not be established.
We recommend that you enter the authentication string carefully and verify that the peering session
is established after authentication is configured.
Old Behavior
In previous versions of Cisco IOS software, configuring MD5 authentication for a BGP peering session
was generally considered to be difficult because the initial configuration and any subsequent MD5
configuration changes required the BGP neighbor to be reset.
New Behavior
This behavior has been changed in current versions of Cisco IOS software. CSCdx23494 introduced a
change to MD5 authentication for BGP peering sessions. The BGP peering session does not need to be
reset to maintain or establish the peering session for initial configuration or after the MD5 configuration
has been changed. However, the configuration must be completed on both the local and remote BGP peer
before the BGP hold timer expires. If the hold down timer expires before the MD5 configuration has been
completed on both BGP peers, the BGP session will time out.
When the password has been configured, the MD5 key is applied to the TCP session immediately. If one
peer is configured before the other, the TCP segments will be discarded on both the local and remote
peers due to an authentication failure. The peer that is configured with the password will print an error
message in the console similar to the following:
00:03:07: %TCP-6-BADAUTH: No MD5 digest from 10.0.0.2(179) to 10.0.0.1(11000)
The time period in which the password must changed is typically the life time of a stale BGP session.
When the password or MD5 key is configured, incoming tcp segments will only be accepted if the key
is known. If the key is unknown on both the remote and local peer, the TCP segments will be dropped,
and the BGP session will time out when the holddown timer expires.
If the BGP session has been preconfigured with a hold time of 0 seconds, no keepalive messages will be
sent. The BGP session will stay up until one of the peers, on either side, tries to transmit a message (For
example, a prefix update).
Note
Configuring a new timer value for the holddown timer will only take effect after the session has been
reset. So, it is not possible to change the configuration of the holddown timer to avoid resetting the BGP
session.
IPC-323
Configuring BGP
Configuring Advanced BGP Features
See the BGP Peer Group Examples at the end of this chapter for an example of enabling MD5
authentication.
Purpose
See the BGP Peer Group Examples section at the end of this chapter for examples of iBGP and eBGP
peer groups.
Purpose
To enable a previously existing neighbor or neighbor peer group that had been disabled using the
neighbor shutdown router configuration command, use the following command in router configuration
mode:
Command
Purpose
IPC-324
Configuring BGP
Configuring Advanced BGP Features
Purpose
Purpose
Purpose
Changing the administrative distance of BGP routes is considered dangerous and generally is not
recommended. The external distance should be lower than any other dynamic routing protocol, and the
internal and local distances should be higher than any other dynamic routing protocol.
IPC-325
Configuring BGP
Configuring Advanced BGP Features
To adjust BGP timers for all neighbors, use the following command in router configuration mode:
Command
Purpose
To adjust BTP keepalive and hold-time timers for a specific neighbor, use the following command in
router configuration mode:
Command
Purpose
Sets the keepalive and hold-time timers (in seconds) for the
specified peer or peer group.
Note
The timers configured for a specific neighbor or peer group override the timers configured for all
BGP neighbors using the timers bgp router configuration command.
To clear the timers for a BGP neighbor or peer group, use the no form of the neighbor timers command.
Purpose
You can use route maps to change the default local preference of specific paths. See the BGP Route
Map Examples section at the end of this chapter for examples when used with BGP route maps.
Purpose
IPC-326
Configuring BGP
Configuring Advanced BGP Features
Purpose
Purpose
Configuring the Router to Use the MED to Choose a Path from Subautonomous
System Paths
To configure the router to consider the MED value in choosing a path, use the following command in
router configuration mode:
Command
Purpose
The comparison between MEDs is only made if there are no external autonomous systems in the path
(an external autonomous system is an autonomous system that is not within the confederation). If there
is an external autonomous system in the path, then the external MED is passed transparently through the
confederation, and the comparison is not made.
The following example compares route A with these paths:
path=
path=
path=
path=
65000
65001
65002
65003
65004, med=2
65004, med=3
65004, med=4
1, med=1
IPC-327
Configuring BGP
Configuring Advanced BGP Features
In this case, path 1 would be chosen if the bgp bestpath med confed router configuration command is
enabled. The fourth path has a lower MED, but it is not involved in the MED comparison because there
is an external autonomous system is in this path.
Purpose
Note
If the bgp always-compare-med router configuration command is enabled, all paths are fully
comparable, including those from other autonomous systems in the confederation, even if the bgp
deterministic med command is also enabled.
Note
No penalty is applied to a BGP peer reset when route dampening is enabled. Although the reset
withdraws the route, no penalty is applied in this instance, even if route flap dampening is enabled.
Minimizing Flapping
The route dampening feature minimizes the flapping problem as follows. Suppose again that the route
to network A flaps. The router in autonomous system 2 (where route dampening is enabled) assigns
network A a penalty of 1000 and moves it to history state. The router in autonomous system 2 continues
IPC-328
Configuring BGP
Configuring Advanced BGP Features
to advertise the status of the route to neighbors. The penalties are cumulative. When the route flaps so
often that the penalty exceeds a configurable suppress limit, the router stops advertising the route to
network A, regardless of how many times it flaps. Thus, the route is dampened.
The penalty placed on network A is decayed until the reuse limit is reached, upon which the route is once
again advertised. At half of the reuse limit, the dampening information for the route to network A is
removed.
History stateAfter a route flaps once, it is assigned a penalty and put into history state, meaning
the router does not have the best path, based on historical information.
PenaltyEach time a route flaps, the router configured for route dampening in another autonomous
system assigns the route a penalty of 1000. Penalties are cumulative. The penalty for the route is
stored in the BGP routing table until the penalty exceeds the suppress limit. At that point, the route
state changes from history to damp.
Damp stateIn this state, the route has flapped so often that the router will not advertise this route
to BGP neighbors.
Suppress limitA route is suppressed when its penalty exceeds this limit. The default value is 2000.
Half-lifeOnce the route has been assigned a penalty, the penalty is decreased by half after the
half-life period (which is 15 minutes by default). The process of reducing the penalty happens every
5 seconds.
Reuse limitAs the penalty for a flapping route decreases and falls below this reuse limit, the route
is unsuppressed. That is, the route is added back to the BGP table and once again used for
forwarding. The default reuse limit is 750. The process of unsuppressing routes occurs at 10-second
increments. Every 10 seconds, the router finds out which routes are now unsuppressed and
advertises them to the world.
Maximum suppress limitThis value is the maximum amount of time a route can be suppressed.
The default value is four times the half-life.
The routes external to an autonomous system learned via iBGP are not dampened. This policy prevent
the iBGP peers from having a higher penalty for routes external to the autonomous system.
Purpose
IPC-329
Configuring BGP
Configuring Advanced BGP Features
To change the default values of various dampening factors, use the following command in address family
or router configuration mode:
Command
Purpose
Purpose
Displays BGP flap statistics for all paths that match the
regular expression.
Displays BGP flap statistics for all paths that pass the filter.
To clear BGP flap statistics (thus making it less likely that the route will be dampened), use the following
commands in EXEC mode as needed:
Command
Purpose
Clears BGP flap statistics for all paths that match the regular
expression.
Clears BGP flap statistics for all paths that pass the filter.
Note
The flap statistics for a route are also cleared when a BGP peer is reset. Although the reset withdraws
the route, there is no penalty applied in this instance, even if route flap dampening is enabled.
IPC-330
Configuring BGP
Monitoring and Maintaining BGP
Once a route is dampened, you can display BGP route dampening information, including the time
remaining before the dampened routes will be unsuppressed. To display the information, use the
following command in EXEC mode:
Command
Purpose
You can clear BGP route dampening information and unsuppress any suppressed routes by using the
following command in EXEC mode:
Command
Purpose
Purpose
IPC-331
Configuring BGP
BGP Configuration Examples
To display various routing statistics, use the following commands in EXEC mode, as needed:
Command
Purpose
Purpose
IPC-332
Configuring BGP
BGP Configuration Examples
In the following example, the route map named freddy marks all paths originating from autonomous
system 690 with an MED metric attribute of 127. The second permit clause is required so that routes not
matching autonomous system path list 1 will still be sent to neighbor 1.1.1.1.
router bgp 100
neighbor 1.1.1.1 route-map freddy out
!
ip as-path access-list 1 permit ^690_
ip as-path access-list 2 permit .*
!
route-map freddy permit 10
match as-path 1
set metric 127
!
route-map freddy permit 20
match as-path 2
The following example shows how you can use route maps to modify redistributed information from the
IP forwarding table:
router bgp 100
redistribute igrp 109 route-map igrp2bgp
!
route-map igrp2bgp
match ip address 1
IPC-333
Configuring BGP
BGP Configuration Examples
set
set
set
set
set
local-preference 25
metric 127
weight 30000
next-hop 192.92.68.24
origin igp
!
access-list 1 permit 131.108.0.0 0.0.255.255
access-list 1 permit 160.89.0.0 0.0.255.255
access-list 1 permit 198.112.0.0 0.0.127.255
It is proper behavior to not accept any autonomous system path not matching the match clause of the
route map. This behavior means that you will not set the metric and the Cisco IOS software will not
accept the route. However, you can configure the software to accept autonomous system paths not
matched in the match clause of the route-map router configuration command by using multiple maps
of the same name, some without accompanying set commands.
route-map fnord permit 10
match as-path 1
set local-preference 5
!
route-map fnord permit 20
match as-path 2
The following example shows how you can use route maps in a reverse operation to set the route tag (as
defined by the BGP/OSPF interaction document, RFC 1403) when exporting routes from BGP into the
main IP routing table:
router bgp 100
table-map set_ospf_tag
!
route-map set_ospf_tag
match as-path 1
set automatic-tag
!
ip as-path access-list 1 permit .*
The following example shows how the route map named set-as-path is applied to outbound updates to
the neighbor 200.69.232.70. The route map will prepend the autonomous system path 100 100 to
routes that pass access list 1. The second part of the route map is to permit the advertisement of other
routes.
router bgp 100
network 171.60.0.0
network 172.60.0.0
neighbor 200.69.232.70 remote-as 200
neighbor 200.69.232.70 route-map set-as-path out
!
route-map set-as-path 10 permit
match address 1
set as-path prepend 100 100
!
route-map set-as-path 20 permit
match address 2
!
access-list 1 permit 171.60.0.0 0.0.255.255
access-list 1 permit 172.60.0.0 0.0.255.255
!
access-list 2 permit 0.0.0.0 255.255.255.255
IPC-334
Configuring BGP
BGP Configuration Examples
Inbound route maps could perform prefix-based matching and set various parameters of the update.
Inbound prefix matching is available in addition to autonomous system path and community list
matching. The following example shows how the set local-preference route-map configuration
command sets the local preference of the inbound prefix 140.10.0.0/16 to 120:
!
router bgp 100
network 131.108.0.0
neighbor 131.108.1.1 remote-as
neighbor 131.108.1.1 route-map
!
route-map set-local-pref permit
match ip address 2
set local preference 120
!
route-map set-local-pref permit
!
access-list 2 permit 140.10.0.0
access-list 2 deny any
200
set-local-pref in
10
20
0.0.255.255
The following examples show how to ensure that traffic from one router on a shared LAN will always
be passed through a second router, rather than being sent directly to a third router on the same LAN.
Routers A, B, and C connect to the same LAN. Router A peers with router B, and router B peers with
router C. Router B sends traffic over the routes of router A to router C, but wants to make sure that all
traffic from router C to router A goes through router B, rather than directly from router C to router A
over the shared LAN. This configuration can be useful for traffic accounting purposes or to satisfy the
peering agreement between router C and router B. You can achieve this configuration by using the set
ip next-hop route-map configuration command as shown in the following two examples.
Example one applies an inbound route map on the BGP session of router C with router B.
Router A Configuration
router bgp 100
neighbor 1.1.1.2 remote-as 200
Router B Configuration
router bgp 200
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.3 remote-as 300
Router C Configuration
router bgp 300
neighbor 1.1.1.2 remote-as 200
neighbor 1.1.1.2 route-map set-peer-address in
route-map set-peer-address permit 10
set ip next-hop peer-address
The following example applies an outbound route map on the BGP session of router B with router C:
Router A Configuration
router bgp 100
neighbor 1.1.1.2 remote-as 200
Router B Configuration
router bgp 200
neighbor 1.1.1.1 remote-as 100
IPC-335
Configuring BGP
BGP Configuration Examples
Router C Configuration
router bgp 300
neighbor 1.1.1.2 remote-as 200
In Figure 58, Router A is being configured. The iBGP neighbor is not directly linked to Router A.
External neighbors (in autonomous system 167 and autonomous system 99) must be linked directly to
Router A.
IPC-336
Configuring BGP
BGP Configuration Examples
Figure 58
Router
Router
Router
Router
Internal BGP
Router
AS 109
131.108.0.0
192.31.7.0
131.108.234.2
Router
131.108.200.1
AS 167
150.136.64.19
AS 99
S1270a
Router A
The following example shows how a prefix list permits a route that matches the prefix 35.0.0.0/8:
ip prefix-list abc permit 35.0.0.0/8
The following example shows how to configure the BGP process so that it only accept prefixes with a
prefix length of /8 to /24:
router bgp
version 2
network 101.20.20.0
distribute-list prefix max24 in
!
ip prefix-list max24 seq 5 permit 0.0.0.0/0 ge 8 le 24
IPC-337
Configuring BGP
BGP Configuration Examples
The following example configuration shows how to conditionally originate a default route (0.0.0.0/0) in
RIP when a prefix 10.1.1.0/24 exists in the routing table:
ip prefix-list cond permit 10.1.1.0/24
!
route-map default-condition permit 10
match ip address prefix-list cond
!
router rip
default-information originate route-map default-condition
The following example shows how to configure BGP to accept routing updates from 192.1.1.1 only,
besides filtering on the prefix length:
router bgp
distribute-list prefix max24 gateway allowlist in
!
ip prefix-list allowlist seq 5 permit 192.1.1.1/32
!
The following example shows how to direct the BGP process to filter incoming updates to the prefix
using name1, and match the gateway (next hop) of the prefix being updated to the prefix list name2, on
the Ethernet interface 0:
router bgp 103
distribute-list prefix name1 gateway name2 in ethernet 0.
The following example shows how to configure BGP to deny routes with a prefix length greater than in
25 in 192/8:
ip prefix-list abc deny 192.0.0.0/8 ge 25
The following example shows how to configure BGP to permit routes with a prefix length greater than
8 and less than 24 in all address space:
ip prefix-list abc permit 0.0.0.0/0 ge 8 le 24
The following example shows how to configure BGP to deny routes with a prefix length greater than 25
in all address space:
ip prefix-list abc deny 0.0.0.0/0 ge 25
The following example shows how to configure BGP to deny all routes in 10/8, because any route in the
Class A network 10.0.0.0/8 is denied if its mask is less than or equal to 32 bits:
ip prefix-list abc deny 10.0.0.0/8 le 32
The following example shows how to configure BGP to deny routes with a mask greater than 25 in
204.70.1/24:
ip prefix-list abc deny 204.70.1.0/24 ge 25
The following example shows how to configure BGP to permit all routes:
ip prefix-list abc permit 0.0.0.0/0 le 32
IPC-338
Configuring BGP
BGP Configuration Examples
prefix-list
prefix-list
prefix-list
prefix-list
abc
abc
abc
abc
deny 0.0.0.0/0 le 7
deny 0.0.0.0/0 ge 25
permit 35.0.0.0/8
permit 204.70.0.0/15
The following example shows how to delete an entry from the prefix list so that 204.70.0.0 is not
permitted, and add a new entry that permits 198.0.0.0/8:
no ip prefix-list abc permit 204.70.0.0/15
ip prefix-list abc permit 198.0.0.0/8
prefix-list
prefix-list
prefix-list
prefix-list
abc
abc
abc
abc
deny 0.0.0.0/0 le 7
deny 0.0.0.0/0 ge 25
permit 35.0.0.0/8
permit 198.0.0.0/8
The following example clears the session with the neighbor 131.108.1.1.
clear ip bgp 131.108.1.1 soft in
IPC-339
Configuring BGP
BGP Configuration Examples
IGRP
Router
Router A
Router B
Router
Router
IBGP connections
Physical connectivity
EGBP connections
Network 198.92.68.0
S2566
Router
IPC-340
Configuring BGP
BGP Configuration Examples
The following configuration shows how to create an aggregate entry in the BGP routing table when at
least one specific route falls into the specified range. The aggregate route will be advertised as coming
from your autonomous system and has the atomic aggregate attribute set to show that information might
be missing. (By default, atomic aggregate is set unless you use the as-set keyword in the
aggregate-address router configuration command.)
router bgp 100
aggregate-address 193.0.0.0 255.0.0.0
The following example shows how to create an aggregate entry using the same rules as in the previous
example, but the path advertised for this route will be an AS_SET consisting of all elements contained
in all paths that are being summarized:
router bgp 100
aggregate-address 193.0.0.0 255.0.0.0 as-set
The following example shows how to create the aggregate route for 193.0.0.0 and also suppress
advertisements of more specific routes to all neighbors:
router bgp 100
aggregate-address 193.0.0.0 255.0.0.0 summary-only
IPC-341
Configuring BGP
BGP Configuration Examples
The second example shows how the route map named set-community is applied to the outbound updates
to neighbor 171.69.232.90. All the routes that originate from autonomous system 70 have the community
values 200 200 added to their already existing values. All other routes are advertised as normal.
route-map bgp 200
neighbor 171.69.232.90 remote-as 100
neighbor 171.69.232.90 send-community
neighbor 171.69.232.90 route-map set-community out
!
route-map set-community 10 permit
match as-path 1
set community 200 200 additive
!
route-map set-community 20 permit
!
ip as-path access-list 1 permit 70$
ip as-path access-list 2 permit .*
The third example shows how community-based matching is used to selectively set MED and local
preference for routes from neighbor 171.69.232.55. All the routes that match community list 1 get the
MED set to 8000, including any routes that have the communities 100 200 300 or 900 901. These routes
could have other community values also.
All the routes that pass community list 2 get the local preference set to 500. This includes the routes that
have community values 88 or 90. If they belong to any other community, they will not be matched by
community list 2.
All the routes that match community list 3 get the local preference set to 50. Community list 3 will match
all the routes because all the routes are members of the Internet community. Thus, all the remaining
routes from neighbor 171.69.232.55 get a local preference 50.
router bgp 200
neighbor 171.69.232.55 remote-as 100
neighbor 171.69.232.55 route-map filter-on-community in
!
route-map filter-on-community 10 permit
match community 1
set metric 8000
!
route-map filter-on-community 20 permit
match community 2 exact-match
set local-preference 500
!
route-map filter-on-community 30 permit
match community 3
set local-preference 50
!
ip community-list 1 permit 100 200 300
ip community-list 1 permit 900 901
!
ip community-list 2 permit 88
ip community-list 2 permit 90
!
ip community-list 3 permit internet
The next two examples show how BGP community attributes are used with BGP confederation
configurations to filter routes.
IPC-342
Configuring BGP
BGP Configuration Examples
The next example shows how the route map named set-community is applied to the outbound updates to
neighbor 171.69.232.50 and the local-as community attribute is used to filter the routes. The routes that
pass access list 1 have the special community attribute value local-as. The remaining routes are
advertised normally. This special community value automatically prevents the advertisement of those
routes by the BGP speakers outside autonomous system 200.
router bgp 65000
network 1.0.0.0 route-map set-community
bgp confederation identifier 200
bgp confederation peers 65001
neighbor 171.69.232.50 remote-as 100
neighbor 171.69.233.2 remote-as 65001
!
route-map set-community permit 10
match ip address 1
set community local-as
!
The following example shows how to use the local-as community attribute to filter the routes.
Confederation 100 contains three autonomous systems: 100, 200, and 300. For network 1.0.0.0, the route
map named set-local-as specifies that the advertised routes have the community attribute local-as. These
routes are not advertised to any eBGP peer outside the local autonomous system. For network 2.0.0.0,
the route map named set-no-export specifies that the routes advertised have the community attribute
no-export.
A route between router 6500 and router 65001 does not cross the boundary between autonomous systems
within the confederation. A route between subautonomous systems for which router 65000 is the
controlling router does not cross the boundary between the confederation and an external autonomous
system, and also does not cross the boundary between subautonomous systems within the local
autonomous system. A route to from router 65000 to router 65001 would not be acceptable for network
1.0.0.0 because it crosses the boundary between subautonomous systems within the confederation.
router bgp 65001
bgp confederation identifier 200
bgp confederation peer 65000
network 2.0.0.0 route-map set-community
neighbor 171.69.233.1 remote-as 65000
route-map set-community permit 10
set community no-export
IPC-343
Configuring BGP
BGP Configuration Examples
To conditionally advertise a set of routes, use the following commands in router configuration mode:
ip prefix-list BLUE permit 172.16.0.0
ip prefix-list RED permit 192.168.7.0
!
route-map map1-name permit 10
match ip address prefix-list BLUE
!
route-map map2-name permit 10
match ip address prefix-list RED
!
router bgp 100
neighbor 10.89.2.33 remote-as 2051
neighbor 10.89.2.33 advertise-map map1-name non-exist-map map2-name
!
In a BGP speaker in autonomous system 6002, the peers from autonomous systems 6001 and 6003 are
configured as special eBGP peers. 170.70.70.1 is a normal iBGP peer and 199.99.99.2 is a normal eBGP
peer from autonomous system 700.
router bgp 6002
bgp confederation identifier 60000
bgp confederation peers 6001 6003
neighbor 170.70.70.1 remote-as 6002
neighbor 171.69.232.57 remote-as 6001
neighbor 171.69.232.56 remote-as 6003
neighbor 199.99.99.2 remote-as 700
In a BGP speaker in autonomous system 6003, the peers from autonomous systems 6001 and 6002 are
configured as special eBGP peers. 200.200.200.200 is a normal eBGP peer from autonomous system
701.
router bgp 6003
bgp confederation identifier 60000
bgp confederation peers 6001 6002
neighbor 171.69.232.57 remote-as 6001
neighbor 171.69.232.55 remote-as 6002
neighbor 200.200.200.200 remote-as 701
IPC-344
Configuring BGP
BGP Configuration Examples
The following is a part of the configuration from the BGP speaker 200.200.200.205 from autonomous
system 701 in the same example. Neighbor 171.69.232.56 is configured as a normal eBGP speaker from
autonomous system 60000. The internal division of the autonomous system into multiple autonomous
systems is not known to the peers external to the confederation.
router bgp 701
neighbor 171.69.232.56 remote-as 60000
neighbor 200.200.200.205 remote-as 701
For examples of how the BGP set-community route-map configuration command can be used with a
confederation configuration, see the last two examples in the sectionBGP Community with Route Maps
Examples in this chapter.
IPC-345
Configuring BGP
BGP Configuration Examples
IPC-346
A network can support congruent unicast and multicast topologies that have different policies
(BGP filtering configurations).
A network can carry routing information for multiple network layer protocol address families (for
example, IP Version 4 or VPN Version 4) as specified in RFC 1700, Assigned Numbers.
A network that is backward compatiblerouters that support the multiprotocol extensions can
interoperate with routers that do not support the extensions.
All of the routing policy capabilities of BGP can be applied to multiprotocol BGP.
You should be familiar with BGP and IP multicast routing before you attempt to configure multiprotocol
BGP. For IP multicast configuration information and examples, refer to the IP Multicast part of this
document and Cisco IOS IP Command Reference, Volume 3 of 3: Multicast.
Multiprotocol BGP is an enhanced BGP that carries routing information for multiple network layer
protocols and IP multicast routes. BGP carries two sets of routes, one set for unicast routing and one set
for multicast routing. The routes associated with multicast routing are used by the Protocol Independent
Multicast (PIM) feature to build data distribution trees.
Multiprotocol BGP is useful when you want a link dedicated to multicast traffic, perhaps to limit which
resources are used for which traffic. Perhaps you want all multicast traffic exchanged at one network
access point (NAP). Multiprotocol BGP allows you to have a unicast routing topology different from a
multicast routing topology. Thus, you have more control over your network and resources.
IPC-347
In BGP, the only way to perform interdomain multicast routing was to use the BGP infrastructure that
was in place for unicast routing. If those routers were not multicast-capable, or there were differing
policies where you wanted multicast traffic to flow, multicast routing could not be supported without
multiprotocol BGP.
Note
It is possible to configure BGP peers that exchange both unicast and multicast network layer
reachability information (NLRI), but you cannot connect multiprotocol BGP clouds with a BGP
cloud. That is, you cannot redistribute multiprotocol BGP routes into BGP.
Figure 60 illustrates a simple example of unicast and multicast topologies that are incongruent, and
therefore are not possible without multiprotocol BGP.
Autonomous systems 100, 200, and 300 are each connected to two NAPs that are FDDI rings. One is
used for unicast peering (and therefore the exchanging of unicast traffic). The Multicast Friendly
Interconnect (MFI) ring is used for multicast peering (and therefore the exchanging of multicast traffic).
Each router is unicast- and multicast-capable.
Figure 60
FDDI
FDDI
Unicast
MFI
AS 200
AS 300
ISP A
ISP B
ISP C
12238
AS 100
Figure 61 is a topology of unicast-only routers and multicast-only routers. The two routers on the left
are unicast-only routers (that is, they do not support or are not configured to perform multicast routing).
The two routers on the right are multicast-only routers. Routers A and B support both unicast and
multicast routing. The unicast-only and multicast-only routers are connected to a single NAP.
In Figure 61, only unicast traffic can travel from Router A to the unicast routers to Router B and back.
Multicast traffic could not flow on that path, so another routing table is required. Multicast traffic uses
the path from Router A to the multicast routers to Router B and back.
Figure 61 illustrates a multiprotocol BGP environment with a separate unicast route and multicast route
from Router A to Router B. Multiprotocol BGP allows these routes to be noncongruent. Both of the
autonomous systems must be configured for internal multiprotocol BGP (IMBGP) in the figure.
A multicast routing protocol, such as PIM, uses the multicast BGP database to perform Reverse Path
Forwarding (RPF) lookups for multicast-capable sources. Thus, packets can be sent and accepted on the
multicast topology but not on the unicast topology.
IPC-348
Figure 61
AS 200
Unicast
router
IMBGP
Multicast
router
NAP
Unicast
router
IMBGP
Multicast
router
AS 100
Unicast route
Router A
11754
Multicast route
IPC-349
The following example shows the resulting address family configuration after the same router is
upgraded to Cisco IOS Release 12.1:
router bgp 5
no synchronization
network 172.16.214.0 mask 255.255.255.0
neighbor 172.16.214.34 remote-as 5
neighbor 172.16.214.38 remote-as 2
neighbor 172.16.214.42 remote-as 5
neighbor 172.16.214.59 remote-as 5
no auto-summary
Note
Although supported in Cisco IOS Release 12.1, the following sections do not explain how to
configure the BGP-4 extensions for Virtual Private Network (VPN) address family prefixes.
Configuring VPN address family prefixes will be explained in a later release of the Cisco IOS IP
Configuration Guide and the Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols.
Purpose
Step 1
Step 2
IPC-350
Command
Purpose
Step 3
Step 4
Note
By default, neighbors that are defined using the neighbor remote-as command in router
configuration mode exchange only unicast address prefixes. To exchange other address prefix types,
such as multicast and VPNv4, neighbors must also be activated using the neighbor activate
command in address family configuration mode, as shown.
See the Multiprotocol BGP Peer Examples section for multiprotocol BGP peer configuration
examples.
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Note
By default, neighbors that are defined using the neighbor remote-as command in router
configuration mode exchange only unicast address prefixes. To exchange other address prefix types,
such as multicast and VPNv4, neighbors must also be activated using the neighbor activate
command in address family configuration mode, as shown.
IPC-351
Note
Peer groups that are defined in router configuration mode using the neighbor peer-group command
exchange only unicast address prefixes by default. To exchange other address prefix types, such as
multicast, peer groups must be defined in address family configuration mode using the neighbor
activate command, as shown.
Members of a peer group automatically inherit the address prefix configuration of the peer group.
Refer to the section Configure BGP Peer Groups of the Configuring BGP chapter in the Cisco IOS
IP Command Reference, Volume 2 of 3: Routing Protocols for information and instructions on assigning
options to the peer group and making a BGP or multiprotocol BGP neighbor a member of the peer group.
See the Multiprotocol BGP Peer Group Examples section for an example of configuring multiprotocol
BGP peer groups.
Purpose
Step 1
Step 2
Step 3
Note
Networks that are defined in router configuration mode using the network command are injected into
the unicast database by default. To inject a network into another database, such as the multicast
database, the network must be defined in address family configuration mode using the network
command, as shown.
To redistribute Distance Vector Multicast Routing Protocol (DVMRP) routes into multiprotocol BGP,
see the Redistributing DVMRP Routes into Multiprotocol BGP section. See the Multiprotocol BGP
Network Advertisement Examples section for multiprotocol BGP network advertisement configuration
examples.
IPC-352
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Note
By default, neighbors that are defined using the neighbor remote-as command in router
configuration mode exchange only unicast address prefixes. To exchange other address prefix types,
such as multicast and VPNv4, neighbors must also be activated using the neighbor activate
command in address family configuration mode, as shown.
Note
Route maps that are applied in router configuration mode using the neighbor route-map command
are applied to unicast address prefixes by default. Route maps for other address families, such as
multicast, must be applied in address family configuration mode using the neighbor route-map
command, as shown. The route maps are applied either as the inbound or outbound routing policy for
neighbors under each address family. Configuring separate route maps under each address family
simplifies managing complicated or different policies for each address family.
See the Multiprotocol BGP Route Map Examples section for multiprotocol BGP route map
configuration examples.
IPC-353
To inject prefixes from a routing protocol into multiprotocol BGP, use the following commands
beginning in global configuration mode:
Command
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
Note
Route maps that are applied in router configuration mode using the redistribute route-map
command are applied to unicast address prefixes by default. Route maps for other address families,
such as multicast, must be applied in address family configuration mode using the redistribute
route-map command, as shown.
See the Multiprotocol BGP Route Redistribute Examples section for multiprotocol BGP route
redistribution configuration examples.
IPC-354
subject it to route map conditions. If you supply a route map, you can specify various match criteria
options for the multiprotocol BGP routes. If the route passes the route map, then the route is redistributed
into DVMRP.
If there are multicast sources in other routing domains that are known via multiprotocol BGP and there
are receivers in a DVMRP cloud, they will want to receive packets from those sources. Therefore, you
need to redistribute the multiprotocol BGP prefix routes into DVMRP. This will be the scenario when
distributing multiprotocol BGP prefixes into the MBONE.
To redistribute multiprotocol BGP routes into DVMRP, use the following command in interface
configuration mode:
Command
Purpose
Purpose
To redistribute DVMRP prefixes into multiprotocol BGP, use the following command in router
configuration mode:
Command
Purpose
See the Multiprotocol BGP Route Redistribute Examples section for an example of redistributing
DVMRP routers into a multiprotocol BGP routing domain.
IPC-355
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
Note
By default, neighbors that are defined using the neighbor remote-as command in router
configuration mode exchange only unicast address prefixes. To exchange other address prefix types,
such as multicast and VPNv4, neighbors must also be activated using the neighbor activate
command in address family configuration mode, as shown.
Note
Route reflectors and clients (neighbors or internal BGP peer groups) that are defined in router
configuration mode using the neighbor route-reflector-client command reflect unicast address
prefixes to and from those clients by default. To reflect prefixes for other address families, such as
multicast, define the reflectors and clients in address family configuration mode using the neighbor
route-reflector-client command, as shown.
See the Multiprotocol BGP Route Reflector Examples section for multiprotocol BGP route reflector
configuration examples.
IPC-356
To configure an aggregate address for multiprotocol BGP, use the following commands beginning in
global configuration mode:
Command
Purpose
Step 1
Step 2
Step 3
Note
Aggregate addresses that are defined in router configuration mode using the aggregate-address
as-set command are injected into the unicast database by default. To enter an aggregate address in
another database, such as the multicast database, the aggregate address must be defined in address
family configuration mode using the aggregate-address as-set command, as shown.
See the Aggregate Multiprotocol BGP Address Examples section for aggregate multiprotocol BGP
address configuration examples.
Enter the show ip bgp ipv4 multicast EXEC command to display information related to the multicast
database:
Router# show ip bgp ipv4 multicast
MBGP table version is 6, local router ID is 192.168.200.66
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
*> 10.0.20.16/28
0.0.0.0
0
0 32768 i
*> 10.0.35.16/28
0.0.0.0
0
0 32768 i
*> 10.0.36.0/28
0.0.0.0
0
0 32768 i
*> 10.0.48.16/28
0.0.0.0
0
0 32768 i
*> 10.2.0.0/16
0.0.0.0
0
0 32768 i
*> 10.2.1.0/24
0.0.0.0
0
0 32768 i
*> 10.2.2.0/24
0.0.0.0
0
0 32768 i
*> 10.2.3.0/24
0.0.0.0
0
0 32768 i
*> 10.2.7.0/24
0.0.0.0
0
0 32768 i
*> 10.2.8.0/24
0.0.0.0
0
0 32768 i
*> 10.2.10.0/24
0.0.0.0
0
0 32768 i
*> 10.2.11.0/24
0.0.0.0
0
0 32768 i
*> 10.2.12.0/24
0.0.0.0
0
0 32768 i
*> 10.2.13.0/24
0.0.0.0
0
0 32768 i
Note
For a description of each output display field, refer to the show ip bgp ipv4 multicast
command in the Cisco IOS IP Command Reference, Volume 3 of 3: Multicast.
IPC-357
Step 2
Enter the show ip bgp ipv4 multicast summary EXEC command to display a summary of multicast
database information:
Router# show ip bgp ipv4 multicast summary
BGP router identifier 10.0.33.34, local AS number 34
BGP table version is 5, main routing table version 1
4 network entries and 6 paths using 604 bytes of memory
5 BGP path attribute entries using 260 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
2 BGP community entries using 48 bytes of memory
2 BGP route-map cache entries using 32 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP activity 8/28 prefixes, 12/0 paths, scan interval 15 secs
Neighbor
10.0.33.35
Step 3
V
4
AS MsgRcvd MsgSent
35
624
624
TblVer
5
Enter the debug ip mbgp dampening EXEC command to log the route flap dampening activity:
Router# debug ip mbgp dampening
BGP: charge penalty for 173.19.0.0/16 path 49 with halflife-time 15 reuse/suppress
750/2000
BGP: flapped 1 times since 00:00:00. New penalty is 1000
BGP: charge penalty for 173.19.0.0/16 path 19 49 with halflife-time 15 reuse/suppress
750/2000
BGP: flapped 1 times since 00:00:00. New penalty is 1000
Step 4
Enter the debug ip mbgp updates EXEC command to log the multiprotocol BGP-related information
passed in BGP Update messages:
Router# debug ip mbgp updates
BGP: NEXT_HOP part 1 net 200.10.202.0/24, neigh 171.69.233.49, next 171.69.233.34
BGP: 171.69.233.49 send UPDATE 200.10.202.0/24, next 171.69.233.34, metric 0, path 33 34
19 49 109 65000 297 1239 1800 3597
BGP: NEXT_HOP part 1 net 200.10.228.0/22, neigh 171.69.233.49, next 171.69.233.34
BGP: 171.69.233.49 rcv UPDATE about 222.2.2.0/24, next hop 171.69.233.49, path 49 109
metric 0
BGP: 171.69.233.49 rcv UPDATE about 131.103.0.0/16, next hop 171.69.233.49, path 49 109
metric 0
BGP: 171.69.233.49 rcv UPDATE about 206.205.242.0/24, next hop 171.69.233.49, path 49 109
metric 0
Step 5
Enter the show ip mpacket quality EXEC command to display the quality of Real-Time Transport
Protocol (RTP) data based on packets captured in the IP multicast cache header buffer:
Router# show ip mpacket 224.2.163.188 quality
Calculating RTP data quality for 224.2.163.188
Session: UO Presents KKNU New Country
Source: 128.223.83.27 (sand.uoregon.edu), Port: 23824
Packets received: 83, lost: 5, loss percentage: 5.6%
Packets misordered: 7, average loss gap: 0
IPC-358
Note
The neighbor activate command is not required in this configuration because peer groups
are activated automatically as peer group configuration parameters are applied.
IPC-359
IPC-360
IPC-361
IPC-362
See the section IP Routing Protocol-Independent Configuration Examples at the end of this chapter
for configuration examples.
IPC-363
Note
Consider your decision to use VLSMs carefully. You can easily make mistakes in address assignments
and you will generally find it more difficult to monitor your network using VLSMs.
Note
The best way to implement VLSMs is to keep your existing numbering plan in place and gradually
migrate some networks to VLSMs to recover address space. See the Variable-Length Subnet Mask
Example section at the end of this chapter for an example of using VLSMs.
Purpose
See the Overriding Static Routes with Dynamic Protocols Example section at the end of this chapter
for an example of configuring static routes.
The software remembers static routes until you remove them (using the no form of the ip route global
configuration command). However, you can override static routes with dynamic routing information
through prudent assignment of administrative distance values. Each dynamic routing protocol has a
default administrative distance, as listed in Table 9. If you would like a static route to be overridden by
information from a dynamic routing protocol, simply ensure that the administrative distance of the static
route is higher than that of the dynamic protocol.
Table 9
Route Source
Default Distance
Connected interface
Static route
IPC-364
Table 9
Route Source
Default Distance
20
Internal EIGRP
90
IGRP
100
OSPF
110
IS-IS
115
RIP
120
170
Interior BGP
200
Unknown
255
Static routes that point to an interface will be advertised via RIP, IGRP, and other dynamic routing
protocols, regardless of whether redistribute static router configuration commands were specified for
those routing protocols. These static routes are advertised because static routes that point to an interface
are considered in the routing table to be connected and hence lose their static nature. However, if you
define a static route to an interface that is not one of the networks defined in a network command, no
dynamic routing protocols will advertise the route unless a redistribute static command is specified for
these protocols.
When an interface goes down, all static routes through that interface are removed from the IP routing
table. Also, when the software can no longer find a valid next hop for the address specified as the address
of the forwarding router in a static route, the static route is removed from the IP routing table.
IPC-365
To define a static route to a network as the static default route, use the following command in global
configuration mode:
Command
Purpose
Purpose
IPC-366
protocols, the number of paths is controlled by the maximum-paths router configuration command. The
static route source can always install six paths. If more paths are available, the extra paths are discarded.
If some installed paths are removed from the routing table, pending routes are added automatically.
When the traffic-share min command is used with the across-interfaces keyword, an attempt is made
to use as many different interfaces as possible to forward traffic to the same destination. When the
maximum path limit has been reached and a new path is installed, the router compares the installed paths.
For example, if path X references the same interface as path Y and the new path uses a different interface,
path X is removed and the new path is installed.
To configure traffic that is distributed among multiple routes of unequal cost for equal cost paths across
multiple interfaces, use the following command in router configuration mode:
Command
Purpose
Purpose
One or more match commands and one or more set commands typically follow a route-map global
configuration command. If there are no match commands, then everything matches. If there are no set
commands, nothing is done (other than the match). Therefore, you need at least one match or set
command.
To define conditions for redistributing routes from one routing protocol into another, use at least one of
the following commands in route-map configuration mode, as needed:
Command
Purpose
IPC-367
Command
Purpose
One or more match commands and one or more set commands should follow a route-map router
configuration command. To define conditions for redistributing routes from one routing protocol into
another, use at least one of the following commands in route-map configuration mode as needed:
Command
Purpose
IPC-368
Command
Purpose
See the BGP Route Map Examples section in the Configuring BGP chapter for examples of BGP
route maps. See the BGP Community with Route Maps Examples section in the Configuring BGP
chapter for examples of BGP communities and route maps.
To distribute routes from one routing domain into another and to control route redistribution, use the
following commands in router configuration mode:
Command
Purpose
Step 1
Step 2
Step 3
Step 4
The metrics of one routing protocol do not necessarily translate into the metrics of another. For example,
the RIP metric is a hop count and the IGRP metric is a combination of five quantities. In such situations,
an artificial metric is assigned to the redistributed route. Because of this unavoidable tampering with
dynamic information, carelessly exchanging routing information between different routing protocols can
create routing loops, which can seriously degrade network operation.
RIP can automatically redistribute static routes. It assigns static routes a metric of 1 (directly
connected).
IPC-369
IGRP can automatically redistribute static routes and information from other IGRP-routed
autonomous systems. IGRP assigns static routes a metric that identifies them as directly connected.
IGRP does not change the metrics of routes derived from IGRP updates from other autonomous
systems.
Note that any protocol can redistribute other routing protocols if a default metric is in effect.
Note
When routes are redistributed between OSPF processes, no OSPF metrics are preserved.
Purpose
Router(config-router)# passive-interface
interface-type interface-number
See the Passive Interface Examples section at the end of this chapter for examples of configuring
passive interfaces.
IPC-370
Configure a routing protocol such as OSPF on the backbone interfaces and redistribute connected
interfaces.
Configure the routing protocol on all interfaces and manually set most of them as passive.
Network managers may not always be able to summarize type 5 link-state advertisements (LSAs) at the
router level where redistribution occurs, as in the first possibility. Thus, a large number of type 5 LSAs
can be flooded over the domain.
In the second possibility, large type 1 LSAs might be flooded into the area. The Area Border Router
(ABR) creates type 3 LSAs, one for each type 1 LSA, and floods them to the backbone. It is possible,
however, to have unique summarization at the ABR level, which will inject only one summary route into
the backbone, thereby reducing processing overhead.
The prior solution to this problem was to configure the routing protocol on all interfaces and manually
set the passive-interface router configuration command on the interfaces where adjacency was not
desired. But in some networks, this solution meant coding 200 or more passive interface statements.
With the Default Passive Interface feature, this problem is solved by allowing all interfaces to be set as
passive by default using a single passive-interface default command, then configuring individual
interfaces where adjacencies are desired using the no passive-interface command.
Thus, the Default Passive Interface feature simplifies the configuration of distribution routers and allows
the network manager to obtain routing information from the interfaces in large ISP and enterprise
networks.
To set all interfaces as passive by default and then activate only those interfaces that need to have
adjacencies set, use the following commands beginning in global configuration mode:
Command
Purpose
Step 1
Step 2
Step 3
Router(config-router)# no passive-interface
interface-type
Step 4
See the section Default Passive Interface Example at the end of this chapter for an example of a default
passive interface.
To verify that interfaces on your network have been set to passive, you could enter a network monitoring
command such as the show ip ospf interface EXEC command, or you could verify the interfaces you
enabled as active using a command such as the show ip interface EXEC command.
IPC-371
Purpose
Router(config-router)# distribute-list
{access-list-number | access-list-name} out
[interface-name | routing-process | as-number]
Purpose
Router(config-router)# distribute-list
{access-list-number | access-list-name} in
[interface-type interface-number]
Purpose
There are no general guidelines for assigning administrative distances because each network has its own
requirements. You must determine a reasonable matrix of administrative distances for the network as a
whole. Table 9 shows the default administrative distance for various routing information sources.
IPC-372
For example, consider a router using IGRP and RIP. Suppose you trust the IGRP-derived routing
information more than the RIP-derived routing information. In this example, because the default IGRP
administrative distance is lower than the default RIP administrative distance, the router uses the
IGRP-derived information and ignores the RIP-derived information. However, if you lose the source of
the IGRP-derived information (because of a power shutdown in another building, for example), the
router uses the RIP-derived information until the IGRP-derived information reappears.
For an example of filtering on sources of routing information, see the section Administrative Distance
Examples later in this chapter.
Note
You also can use administrative distance to rate the routing information from routers running the same
routing protocol. This application is generally discouraged if you are unfamiliar with this particular use
of administrative distance, because it can result in inconsistent routing information, including
forwarding loops.
Note
The weight of a route can no longer be set with the distance command. To set the weight
for a route, use a route-map.
Purpose
To define the route map to be used for policy routing, use the following command in global configuration
mode:
Command
Purpose
IPC-373
To define the criteria by which packets are examined to learn if they will be policy-routed, use either one
or both of the following commands in route-map configuration mode. No match clause in the route map
indicates all packets.
Command
Purpose
To set the precedence and specify where the packets that pass the match criteria are output, use the
following commands in route-map configuration mode:
Command
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
Note
The set ip next-hop and set ip default next-hop are similar commands but have a different order of
operations. Configuring the set ip next-hop command causes the system to use policy routing first and
then use the routing table. Configuring the set ip default next-hop causes the system to use the routing
table first and then policy route the specified next hop.
The precedence setting in the IP header determines whether, during times of high traffic, the packets will
be treated with more or less precedence than other packets. By default, the Cisco IOS software leaves
this value untouched; the header remains with the precedence value it had.
The precedence bits in the IP header can be set in the router when policy routing is enabled. When the
packets containing those headers arrive at another router, the packets are ordered for transmission
according to the precedence set, if the queueing feature is enabled. The router does not honor the
precedence bits if queueing is not enabled; the packets are sent in FIFO order.
You can change the precedence setting, using either a number or name. The names came from RFC 791,
but are evolving. You can enable other features that use the values in the set ip precedence route-map
configuration command to determine precedence. Table 10 lists the possible numbers and their
corresponding name, from least important to most important.
IPC-374
Table 10
IP Precedence Values
Number
Name
routine
priority
immediate
flash
flash-override
critical
internet
network
The set commands can be used with each other. They are evaluated in the order shown in the previous
task table. A usable next hop implies an interface. Once the local router finds a next hop and a usable
interface, it routes the packet.
Purpose
Causes the router to confirm that the next hop, specified in the route
map configuration, are active and available.
If this command is not used, and the next hop is not available,
the traffic will remain forever unrouted.
It can cause some performance degradation due to CDP database lookup overhead per packet.
IPC-375
The directly connected next hop must be a Cisco device with CDP enabled.
It is not supported for use in conjunction with dCEF, due to the dependency of the CDP neighbor
database.
If you want to selectively verify availability of only some next hops, you can configure different
route-map entries (under the same route map name) with different criteria (using access list matching or
packet size matching), and use the set ip next-hop verify-availability configuration command
selectively.
Purpose
If you want policy routing to be fast switched, see the following section Enabling Fast-Switched Policy
Routing.
See the Policy Routing Example section at the end of this chapter for an example of policy routing.
Note
For new policy-based routing (PBR) features in 12.4, see the following modules:
- PBR Support for Multiple Tracking Options
- PBR Recursive Next Hop
The set interface command is supported only over point-to-point links, unless a route cache entry
exists using the same interface specified in the set interface command in the route map. Also, at the
process level, the routing table is consulted to determine if the interface is on a reasonable path to
the destination. During fast switching, the software does not make this check. Instead, if the packet
matches, the software blindly forwards the packet to the specified interface.
Policy routing must be configured before you configure fast-switched policy routing. Fast switching of
policy routing is disabled by default. To have policy routing be fast switched, use the following command
in interface configuration mode:
IPC-376
Command
Purpose
Purpose
Use the show ip local policy EXEC command to display the route map used for local policy routing, if
one exists.
Purpose
Step 1
Step 2
Step 3
IPC-377
Command
Purpose
Step 4
Step 5
Use the show key chain EXEC command to display key chain information. For examples of key
management, see the Key Management Examples section at the end of this chapter.
Purpose
Purpose
Displays supernets.
IPC-378
Command
Purpose
IPC-379
Figure 62
Router A
172.18.3.4
Router C
Router D
10.0.0.0
1269a
Router B
The following example assigns the router with the address 192.168.7.18 an administrative distance of
100 and all other routers on subnet 192.168.7.0 an administrative distance of 200:
distance 100 192.168.7.18 0.0.0.0
distance 200 192.168.7.0 0.0.0.255
However, if you reverse the order of these two commands, all routers on subnet 192.168.7.0 are assigned
an administrative distance of 200, including the router at address 192.168.7.18:
distance 200 192.168.7.0 0.0.0.255
distance 100 192.168.7.18 0.0.0.0
IPC-380
Assigning administrative distances is a problem unique to each network and is done in response to the
greatest perceived threats to the connected network. Even when general guidelines exist, the network
manager must ultimately determine a reasonable matrix of administrative distances for the network as a
whole.
In the following example, the distance value for IP routes learned is 90. Preference is given to these IP
routes rather than routes with the default administrative distance value of 110.
router isis
distance 90 ip
To transfer a route to 192.168.7.0 into autonomous system 71 (without passing any other information
about autonomous system 1), use the command in the following example:
router igrp 71
redistribute igrp 1
distribute-list 3 out igrp 1
access-list 3 permit 192.168.7.0
IPC-381
In this example, the router global configuration command starts an IGRP routing process. The network
router configuration command specifies that network 172.16.0.0 (the regional network) is to receive
IGRP routing information. The redistribute router configuration command specifies that RIP-derived
routing information be advertised in the routing updates. The default-metric router configuration
command assigns an IGRP metric to all RIP-derived routes. The distribute-list router configuration
command instructs the Cisco IOS software to use access list 10 (not defined in this example) to limit the
number of entries in each outgoing update. The access list prevents unauthorized advertising of
university routes to the regional network.
To transfer a route from 192.168.7.0 into autonomous system 71 (without passing any other information
about autonomous system 1), use the command in the following example:
router eigrp 71
redistribute eigrp 1 route-map 1-to-71
route-map 1-to-71 permit
match ip address 3
set metric 10000 100 1 255 1500
access-list 3 permit 192.168.7.0
The following example is an alternative way to transfer a route to 192.168.7.0 into autonomous system
71. Unlike the previous configuration, this one does not allow you to arbitrarily set the metric.
router eigrp 71
redistribute eigrp 1
distribute-list 3 out eigrp 1
access-list 3 permit 192.168.7.0
IPC-382
In this example, the router global configuration command starts an EIGRP routing process. The
network router configuration command specifies that network 172.16.0.0 (the regional network) is to
send and receive EIGRP routing information. The redistribute router configuration command specifies
that RIP-derived routing information be advertised in the routing updates. The default-metric router
configuration command assigns an EIGRP metric to all RIP-derived routes. The distribute-list router
configuration command instructs the Cisco IOS software to use access list 10 (not defined in this
example) to limit the entries in each outgoing update. The access list prevents unauthorized advertising
of university routes to the regional network.
IPC-383
The first examples are simple configurations illustrating basic OSPF commands.
The second example illustrates a configuration for an internal router, ABR, and ASBRs within a
single, arbitrarily assigned, OSPF autonomous system.
The third example illustrates a more complex configuration and the application of various tools
available for controlling OSPF-based routing environments.
The following example illustrates the assignment of four area IDs to four IP address ranges. In the
example, OSPF routing process 1 is initialized, and four OSPF areas are defined: 10.9.50.0, 2, 3, and 0.
Areas 10.9.50.0, 2, and 3 mask specific address ranges, whereas area 0 enables OSPF for all other
networks.
router ospf 1
network 172.16.20.0 0.0.0.255 area 10.9.50.0
network 172.16.0.0 0.0.255.255 area 2
network 172.17.10.0 0.0.0.255 area 3
network 0.0.0.0 255.255.255.255 area 0
!
! Ethernet interface 0 is in area 10.9.50.0:
interface ethernet 0
ip address 172.16.20.5 255.255.255.0
!
! Ethernet interface 1 is in area 2:
interface ethernet 1
ip address 172.16.1.5 255.255.255.0
!
! Ethernet interface 2 is in area 2:
interface ethernet 2
ip address 172.17.2.5 255.255.255.0
IPC-384
!
! Ethernet interface 3 is in area 3:
interface ethernet 3
ip address 172.18.10.5 255.255.255.0
!
! Ethernet interface 4 is in area 0:
interface ethernet 4
ip address 172.19.1.1 255.255.255.0
!
! Ethernet interface 5 is in area 0:
interface ethernet 5
ip address 10.1.0.1 255.255.0.0
Each network router configuration command is evaluated sequentially, so the specific order of these
commands in the configuration is important. The Cisco IOS software sequentially evaluates the
address/wildcard-mask pair for each interface. See the IP Routing Protocols Commands chapter of the
Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols publication for more information.
Consider the first network command. Area ID 10.9.50.0 is configured for the interface on which subnet
172.18.20.0 is located. Assume that a match is determined for Ethernet interface 0. Ethernet interface 0
is attached to Area 10.9.50.0 only.
The second network command is evaluated next. For Area 2, the same process is then applied to all
interfaces (except Ethernet interface 0). Assume that a match is determined for Ethernet interface 1.
OSPF is then enabled for that interface and Ethernet 1 is attached to Area 2.
This process of attaching interfaces to OSPF areas continues for all network commands. Note that the
last network command in this example is a special case. With this command, all available interfaces (not
explicitly attached to another area) are attached to Area 0.
IPC-385
Figure 63
Router A
Router B
E1
E2 Interface address:
192.168.1.2
Interface address:
192.168.1.1
Network: 192.168.1.0
Interface address:
E3 192.168.1.3
Router C
S0 Interface address:
192.168.2.3
Network: 192.168.2.0
Area 0
S1
Interface address:
192.168.2.4
Router D
E4
Interface address:
10.0.0.4
Network: 10.0.0.0
E5
Router E
Interface address:
10.0.0.5
Interface address:
172.16.1.5
S2
Remote address:
172.16.1.6
in autonomous
system 60000
S1030a
Network: 172.16.1.0
Router C is an OSPF ABR. Note that for Router C, area 1 is assigned to E3 and Area 0 is assigned
to S0.
Router D is an internal router in area 0 (backbone area). In this case, both network router
configuration commands specify the same area (area 0, or the backbone area).
Router E is an OSPF ASBR. Note that BGP routes are redistributed into OSPF and that these routes
are advertised by OSPF.
IPC-386
Note
It is not necessary to include definitions of all areas in an OSPF autonomous system in the configuration
of all routers in the autonomous system. You must define only the directly connected areas. In the
example that follows, routes in Area 0 are learned by the routers in area 1 (Router A and Router B) when
the ABR (Router C) injects summary LSAs into area 1.
Autonomous system 60000 is connected to the outside world via the BGP link to the external peer at IP
address 172.16.1.6.
Following is the example configuration for the general network map shown in Figure 63.
Router A ConfigurationInternal Router
interface ethernet 1
ip address 192.168.1.1 255.255.255.0
router ospf 1
network 192.168.1.0 0.0.0.255 area 1
Router C ConfigurationABR
interface ethernet 3
ip address 192.168.1.3 255.255.255.0
interface serial 0
ip address 192.168.2.3 255.255.255.0
router ospf 1
network 192.168.1.0 0.0.0.255 area 1
network 192.168.2.0 0.0.0.255 area 0
Router E ConfigurationASBR
interface ethernet 5
ip address 10.0.0.5 255.0.0.0
interface serial 2
ip address 172.16.1.5 255.255.0.0
router ospf 1
network 10.0.0.0 0.255.255.255 area 0
redistribute bgp 50000 metric 1 metric-type 1
IPC-387
Route redistribution
The specific tasks outlined in this configuration are detailed briefly in the following descriptions.
Figure 64 illustrates the network address ranges and area assignments for the interfaces.
Figure 64
Router A
E3
E0
E1
S1031a
E2
Create a stub area with area ID 10.0.0.0. (Note that the authentication and stub options of the area
router configuration command are specified with separate area command entries, but they can be
merged into a single area command.)
Redistribute IGRP and RIP into OSPF with various options set (including metric-type, metric, tag,
and subnet).
IPC-388
interface ethernet 0
ip address 192.168.110.201 255.255.255.0
ip ospf authentication-key abcdefgh
ip ospf cost 10
!
interface ethernet 1
ip address 172.19.251.201 255.255.255.0
ip ospf authentication-key ijklmnop
ip ospf cost 20
ip ospf retransmit-interval 10
ip ospf transmit-delay 2
ip ospf priority 4
!
interface ethernet 2
ip address 172.19.254.201 255.255.255.0
ip ospf authentication-key abcdefgh
ip ospf cost 10
!
interface ethernet 3
ip address 10.0.0.201 255.255.0.0
ip ospf authentication-key ijklmnop
ip ospf cost 20
ip ospf dead-interval 80
IPC-389
The following example redistributes RIP routes with a hop count equal to 1 into OSPF. These routes will
be redistributed into OSPF as external LSAs with a metric of 5, metric a type of type 1, and a tag equal
to 1.
router ospf 1
redistribute rip route-map rip-to-ospf
!
route-map rip-to-ospf permit
match metric 1
set metric 5
set metric-type type1
set tag 1
The following example redistributes OSPF learned routes with tag 7 as a RIP metric of 15:
router rip
redistribute ospf 1 route-map 5
!
route-map 5 permit
match tag 7
set metric 15
The following example redistributes OSPF intra-area and interarea routes with next hop routers on serial
interface 0 into BGP with an INTER_AS metric of 5:
router bgp 50000
redistribute ospf 1 route-map 10
!
route-map 10 permit
match route-type internal
match interface serial 0
set metric 5
The following example redistributes two types of routes into the integrated IS-IS routing table
(supporting both IP and CLNS). The first type is OSPF external IP routes with tag 5; these routes are
inserted into Level 2 IS-IS link-state packets (LSPs) with a metric of 5. The second type is ISO-IGRP
derived CLNS prefix routes that match CLNS access list 2000; these routes will be redistributed into
IS-IS as Level 2 LSPs with a metric of 30.
router isis
redistribute ospf 1 route-map 2
IPC-390
With the following configuration, OSPF external routes with tags 1, 2, 3, and 5 are redistributed into RIP
with metrics of 1, 1, 5, and 5, respectively. The OSPF routes with a tag of 4 are not redistributed.
router rip
redistribute ospf 1 route-map 1
!
route-map 1 permit
match tag 1 2
set metric 1
!
route-map 1 permit
match tag 3
set metric 5
!
route-map 1 deny
match tag 4
!
route map 1 permit
match tag 5
set metric 5
Given the following configuration, a RIP learned route for network 172.18.0.0 and an ISO-IGRP learned
route with prefix 49.0001.0002 will be redistributed into an IS-IS Level 2 LSP with a metric of 5:
router isis
redistribute rip route-map 1
redistribute iso-igrp remote route-map 1
!
route-map 1 permit
match ip address 1
match clns address 2
set metric 5
set level level-2
!
access-list 1 permit 172.18.0.0 0.0.255.255
clns filter-set 2 permit 49.0001.0002...
The following configuration example illustrates how a route map is referenced by the
default-information router configuration command. This type of reference is called conditional default
origination. OSPF will originate the default route (network 0.0.0.0) with a type 2 metric of 5 if
172.20.0.0 is in the routing table.
route-map ospf-default permit
match ip address 1
set metric 5
set metric-type type-2
!
access-list 1 172.20.0.0 0.0.255.255
!
router ospf 1
default-information originate route-map ospf-default
IPC-391
See more route map examples in the BGP Route Map Examples and BGP Community with Route
Maps Examples sections of the 12.4 BGP documentation.
Figure 65
E1
S1067a
IGRP router
No routing updates
sent to this interface
In the following example, as in the first example, IGRP updates are sent out all interfaces in the
192.168/16 network except for Ethernet interface 1. However, in this configuration a neighbor statement
is configured explicitly for the 192.168.0.2 neighbor. This neighbor statement will override the
passive-interface configuration, and all interfaces in the 192.168/16 network, including Ethernet
interface 1, will send routing advertisements to the 192.168.0.2 neighbor.
router igrp 1
network 192.168.0.0
passive-interface ethernet 1
neighbor 192.18.0.2
The passive-interface command disables the transmission and receipt of EIGRP hello packets on an
interface. Unlike IGRP or RIP, EIGRP sends hello packets in order to form and sustain neighbor
adjacencies. Without a neighbor adjacency, EIGRP cannot exchange routes with a neighbor. Therefore,
the passive-interface command prevents the exchange of routes on the interface. Although EIGRP does
not send or receive routing updates on an interface configured with the passive-interface command, it
still includes the address of the interface in routing updates sent out of other nonpassive interfaces.
Note
For more information about configuring passive interfaces in EIGRP, see the How Does the Passive
Interface Feature Work in EIGRP? document on cisco.com.
In OSPF, hello packets are not sent on an interface that is specified as passive. Hence, the router will not
be able to discover any neighbors, and none of the OSPF neighbors will be able to see the router on that
network. In effect, this interface will appear as a stub network to the OSPF domain. This configuration
is useful if you want to import routes associated with a connected network into the OSPF domain without
any OSPF activity on that interface.
IPC-392
The passive-interface router configuration command is typically used when the wildcard specification
on the network router configuration command configures more interfaces than is desirable. The
following configuration causes OSPF to run on all subnets of 172.18.0.0:
interface ethernet 0
ip address 172.18.1.1 255.255.255.0
interface ethernet 1
ip address 172.18.2.1 255.255.255.0
interface ethernet 2
ip address 172.18.3.1 255.255.255.0
!
router ospf 1
network 172.18.0.0 0.0.255.255 area 0
If you do not want OSPF to run on 172.18.3.0, enter the following commands:
router ospf 1
network 172.18.0.0 0.0.255.255 area 0
passive-interface ethernet 2
IPC-393
interface async 1
ip policy route-map equal-access
!
route-map equal-access permit 10
match ip address 1
set ip default next-hop 172.16.6.6
route-map equal-access permit 20
match ip address 2
set ip default next-hop 192.168.7.7
route-map equal-access permit 30
set default interface null0
IPC-394
interface Fddi0
ip address 10.1.1.1 255.255.255.0
no keepalive
!
interface Fddi1
ip address 172.16.1.1 255.255.255.0
ip rip send version 1
ip rip receive version 1
no keepalive
!
router rip
version 2
network 172.19.0.0
network 10.0.0.0
network 172.16.0.0
IPC-395
IPC-396
IP Multicast
IPC-399
IGMP is used between hosts on a LAN and the routers on that LAN to track the multicast groups of
which hosts are members.
Protocol Independent Multicast (PIM) is used between routers so that they can track which multicast
packets to forward to each other and to their directly connected LANs.
Distance Vector Multicast Routing Protocol (DVMRP) is used on the MBONE (the multicast
backbone of the Internet). The Cisco IOS software supports PIM-to-DVMRP interaction.
Cisco Group Management Protocol (CGMP) is used on routers connected to Catalyst switches to
perform tasks similar to those performed by IGMP.
Figure 66 shows where these protocols operate within the IP multicast environment. The protocols are
further described in the sections following the figure.
Figure 66
Internet
MBONE
Catalyst 5000
switch
DVMRP
Host
CGMP
Host
IGMP
43274
PIM
IGMP
To start implementing IP multicast routing in your campus network, you must first define who receives
the multicast. IGMP provides a means to automatically control and limit the flow of multicast traffic
throughout your network with the use of special multicast queriers and hosts.
A querier is a network device, such as a router, that sends query messages to discover which network
devices are members of a given multicast group.
A host is a receiver, including routers, that sends report messages (in response to query messages)
to inform the querier of a host membership.
A set of queriers and hosts that receive multicast data streams from the same source is called a multicast
group. Queries and hosts use IGMP messages to join and leave multicast groups.
IP multicast traffic uses group addresses, which are Class D IP addresses. The high-order four bits of a
Class D address are 1110. Therefore, host group addresses can be in the range 224.0.0.0 to
239.255.255.255.
IPC-400
Multicast addresses in the range 224.0.0.0 to 224.0.0.255 are reserved for use by routing protocols and
other network control traffic. The address 224.0.0.0 is guaranteed not to be assigned to any group.
IGMP packets are transmitted using IP multicast group addresses as follows:
IGMP general queries are destined to the address 224.0.0.1 (all systems on a subnet).
IGMP group-specific queries are destined to the group IP address for which the router is querying.
IGMP group membership reports are destined to the group IP address for which the router is
reporting.
IGMP Version 2 (IGMPv2) Leave messages are destined to the address 224.0.0.2 (all routers on a
subnet).
Note that in some old host IP stacks, Leave messages might be destined to the group IP address
IGMP Versions
IGMP messages are used primarily by multicast hosts to signal their interest in joining a specific
multicast group and to begin receiving group traffic.
The original IGMP Version 1 Host Membership model defined in RFC 1112 is extended to significantly
reduce leave latency and provide control over source multicast traffic by use of Internet Group
Management Protocol, Version 2.
IGMP Version 1
Provides for the basic Query-Response mechanism that allows the multicast router to determine
which multicast groups are active and other processes that enable hosts to join and leave a multicast
group. RFC 1112 defines Host Extensions for IP Multicasting.
IGMP Version 2
Extends IGMP allowing such features as the IGMP leave process, group-specific queries, and an
explicit maximum query response time. IGMP Version 2 also adds the capability for routers to elect
the IGMP querier without dependence on the multicast protocol to perform this task. RFC 2236
defines Internet Group Management Protocol, Version 2.
IGMP Version 3
Provides for source filtering which enables a multicast receiver host to signal to a router which
groups it wants to receive multicast traffic from, and from which sources this traffic is expected.
PIM
The PIM protocol maintains the current IP multicast service mode of receiver-initiated membership. It
is not dependent on a specific unicast routing protocol.
PIM is defined in RFC 2362, Protocol-Independent Multicast-Sparse Mode (PIM-SM): Protocol
Specification. PIM is defined in the following Internet Engineering Task Force (IETF) Internet drafts:
IPC-401
PIM can operate in dense mode or sparse mode. It is possible for the router to handle both sparse groups
and dense groups at the same time.
In dense mode, a router assumes that all other routers want to forward multicast packets for a group. If
a router receives a multicast packet and has no directly connected members or PIM neighbors present, a
prune message is sent back to the source. Subsequent multicast packets are not flooded to this router on
this pruned branch. PIM builds source-based multicast distribution trees.
In sparse mode, a router assumes that other routers do not want to forward multicast packets for a group,
unless there is an explicit request for the traffic. When hosts join a multicast group, the directly
connected routers send PIM join messages toward the rendezvous point (RP). The RP keeps track of
multicast groups. Hosts that send multicast packets are registered with the RP by the first hop router of
that host. The RP then sends join messages toward the source. At this point, packets are forwarded on a
shared distribution tree. If the multicast traffic from a specific source is sufficient, the first hop router of
the host may send join messages toward the source to build a source-based distribution tree.
CGMP
CGMP is a protocol used on routers connected to Catalyst switches to perform tasks similar to those
performed by IGMP. CGMP is necessary for those Catalyst switches that cannot distinguish between IP
multicast data packets and IGMP report messages, both of which are addressed to the same group
address at the MAC level.
Enabling the Functional Address for IP Multicast over Token Ring LANs (Optional)
IPC-402
Load Splitting IP Multicast Traffic Across Equal-Cost Paths Configuration Task List (Optional)
See the IP Multicast Configuration Examples later in this chapter for examples of multicast routing
configurations.
To see information on IP multicast multilayer switching, refer to the Cisco IOS Switching Services
Configuration Guide and Cisco IOS Switching Services Command Reference.
Purpose
Router(config)# ip multicast-routing
IPC-403
Command
Purpose
See the PIM Dense Mode Example section later in this chapter for an example of how to configure a
PIM interface in dense mode.
Purpose
See the PIM Sparse Mode Example section later in this chapter for an example of how to configure a
PIM interface in sparse mode.
There are PIM neighbors and the group has not been pruned.
When an interface is treated in sparse mode, it is populated in the outgoing interface list of a multicast
routing table when either of the following conditions is true:
An explicit join message has been received by a PIM neighbor on the interface.
To enable PIM to operate in the same mode as the group, use the following command in interface
configuration mode:
IPC-404
Command
Purpose
Purpose
Step 1
Step 2
Note
The origination interval for the state refresh control message must be the same for all PIM routers on
the same LAN. Specifically, the same origination interval must be configured on each router interface
that is directly connected to the LAN.
See the PIM Dense Mode State Refresh Example section later in this chapter for an example of how
to configure the PIM Dense Mode State Refresh feature.
IPC-405
Purpose
Configuring Auto-RP
Auto-RP is a feature that automates the distribution of group-to-RP mappings in a PIM network. This
feature has the following benefits:
The use of multiple RPs within a network to serve different group ranges is easy.
It allows load splitting among different RPs and arrangement of RPs according to the location of
group participants.
Multiple RPs can be used to serve different group ranges or serve as backups of each other. To make
Auto-RP work, a router must be designated as an RP-mapping agent, which receives the
RP-announcement messages from the RPs and arbitrates conflicts. The RP-mapping agent then sends the
consistent group-to-RP mappings to all other routers. Thus, all routers automatically discover which RP
to use for the groups they support.
Note
If you configure PIM in sparse mode or sparse-dense mode and do not configure Auto-RP, you must
statically configure an RP as described in the section Assigning an RP to Multicast Groups later in
this chapter.
Note
If router interfaces are configured in sparse mode, Auto-RP can still be used if all routers are
configured with a static RP address for the Auto-RP groups.
IPC-406
Choosing a Default RP
Sparse mode environments need a default RP; sparse-dense mode environments do not. If you have
sparse-dense mode configured everywhere, you need not choose a default RP.
Adding Auto-RP to a sparse mode cloud requires a default RP. In an existing PIM sparse mode region,
at least one RP is defined across the network that has good connectivity and availability. That is, the ip
pim rp-address command is already configured on all routers in this network.
Use that RP for the global groups (for example, 224.x.x.x and other global groups). There is no need to
reconfigure the group address range that RP serves. RPs discovered dynamically through Auto-RP take
precedence over statically configured RPs. Assume it is desirable to use a second RP for the local groups.
Purpose
To change the group ranges this RP optimally will serve in the future, change the announcement setting
on the RP. If the change is valid, all other routers automatically will adopt the new group-to-RP mapping.
The following example advertises the IP address of Ethernet interface 0 as the RP for the
administratively scoped groups:
ip pim send-rp-announce ethernet0 scope 16 group-list 1
access-list 1 permit 239.0.0.0 0.255.255.255
IPC-407
Find a router whose connectivity is not likely to be interrupted and assign it the role of RP-mapping
agent. All routers within time-to-live (TTL) number of hops from the source router receive the Auto-RP
discovery messages. To assign the role of RP mapping agent in that router, use the following command
in global configuration mode:
Command
Purpose
Purpose
Purpose
IPC-408
Modifying the IGMP Host-Query Message and Query Timeout Intervals (Optional)
For information about configuring IGMP unidirectional link routing (UDLR), see the chapter
Configuring Unidirectional Link Routing in this document.
Purpose
Purpose
IPC-409
Purpose
Sending PIM register and PIM join and prune messages toward the RP to inform it about host group
membership.
By default, the DR sends host-query messages every 60 seconds in order to keep the IGMP overhead on
hosts and networks very low.
To modify this interval, use the following command in interface configuration mode:
Command
Purpose
IPC-410
IGMPv2 query messages are broken into two categories: general queries (identical to IGMPv1
queries) and group-specific queries.
2.
IGMPv1 membership reports and IGMPv2 membership reports have different IGMP type codes.
Unlike IGMPv1, in which the DR and the IGMP querier are typically the same router; in IGMPv2, the
two functions are decoupled. The DR and the IGMP querier are selected based on different criteria and
may be different routers on the same subnet. The DR is the router with the highest IP address on the
subnet, whereas the IGMP querier is the router with the lowest IP address.
IP addresses in general query messages are used to elect the IGMP querier and this is the election
process:
When IGMPv2 routers start, they each multicast a general query message to the all-systems group
address of 224.0.0.1 with their interface address in the source IP address field of the message.
When an IGMPv2 router receives a general query message, the router compares the source IP
address in the message with its own interface address. The router with the lowest IP address on the
subnet is elected the IGMP querier.
All routers (excluding the querier) start the query timer controlled by the ip igmp query timeout
command that is reset whenever a general query message is received from the IGMP querier. If the
query timer expires, it is assumed that the IGMP querier has gone down, and the election process is
performed again to elect a new IGMP querier.
By default, the timer is 2 times the query interval controlled by the ip igmp query-interval command.
To change the query timeout and to specify the period of time before a new election is performed, use
the following command in interface configuration mode:
Command
Purpose
INCLUDE modeIn this mode, the receiver announces membership to a host group and provides a
list of IP addresses (the INCLUDE list) from which it wants to receive traffic.
EXCLUDE modeIn this mode, the receiver announces membership to a host group and provides
a list of IP addresses (the EXCLUDE list) from which it does not want to receive traffic. In other
words, the host wants to receive traffic only from sources whose IP addresses are not listed in the
EXCLUDE list. To receive traffic from all sources, like in the case of the Internet Standard Multicast
(ISM) service model, a host expresses EXCLUDE mode membership with an empty EXCLUDE list.
IPC-411
IGMPv3 is the industry-designated standard protocol for hosts to signal channel subscriptions in Source
Specific Multicast (SSM). For SSM to rely on IGMPv3, IGMPv3 must be available in last hop routers
and host operating system network stacks, and be used by the applications running on those hosts.
In SSM deployment cases where IGMPv3 cannot be used because it is not supported by the receiver host
or the receiver applications, two Cisco-developed transition solutions enable the immediate deployment
of SSM services: URL Rendezvous Directory (URD) and IGMP Version 3 lite (IGMP v3lite). For more
information on URD and IGMP v3lite, see the Configuring Source Specific Multicast chapter in this
document.
Restrictions
Traffic Filtering with Multicast Groups That Are Not Configured in SSM Mode
IGMPv3 membership reports are not utilized by Cisco IOS software to filter or restrict traffic for
multicast groups that are not configured in SSM mode. Effectively, Cisco IOS software interprets all
IGMPv3 membership reports for groups configured in dense, sparse, or bidirectional mode to be group
membership reports and forwards traffic from all active sources onto the network.
Each time a host on a new port of the CGMP switch joins a multicast group, that port is added to the
list of ports to which the traffic of this group is sent.
If all hosts on a particular port leave the multicast group, but there are still hosts on other ports (in
the same virtual LAN) joined to the group, then nothing happens. In other words, the port continues
to receive traffic from that multicast group.
Only when the last host in a virtual LAN (VLAN) has left the multicast group does forwarding of
the traffic of this group into the VLAN revert to no ports on the switch forwarding.
This join behavior only applies to multicast groups that actually operate in IGMPv3 mode. If legacy
hosts only supporting IGMPv2 are present in the network, then groups will revert to IGMPv2 and fast
leave will work for these groups.
If fast leave is needed with CGMP-enabled switches, we recommend that you not enable IGMPv3 but
configure IGMPv2 on that interface.
IPC-412
If IGMPv3 is needed to support SSM, then you have two configuration alternatives as follows:
Configure only the interface for IGMPv2 and use IGMP v3lite and URD.
Enable IGMPv3 and accept the higher leave latencies through the CGMP switch.
Purpose
Purpose
Router(config-if)# ip igmp
query-max-response-time seconds
Use the ip igmp join-group interface configuration command. With this method, the router accepts
the multicast packets in addition to forwarding them. Accepting the multicast packets prevents the
router from fast switching.
Use the ip igmp static-group interface configuration command. With this method, the router does
not accept the packets itself, but only forwards them. Hence, this method allows fast switching. The
outgoing interface appears in the IGMP cache, but the router itself is not a member, as evidenced by
lack of an L (local) flag in the multicast route entry.
To configure the router itself to be a statically connected member of a group (and allow fast switching),
use the following command in interface configuration mode:
IPC-413
Command
Purpose
Purpose
Router(config-if)# ip igmp
last-member-query-interval interval
To change the values of the LMQC, use the following commands in interface configuration mode:
Command
Purpose
Router(config-if)# ip igmp
last-member-query-count lmqc
IPC-414
Purpose
If fast switching is disabled on an incoming interface for a multicast routing table entry, the packet
is sent at process level for all interfaces in the outgoing interface list.
If fast switching is disabled on an outgoing interface for a multicast routing table entry, the packet
is process-level switched for that interface, but may be fast switched for other interfaces in the
outgoing interface list.
Disable fast switching if you want to log debug messages, because when fast switching is enabled, debug
messages are not logged.
To disable fast switching of IP multicast, use the following command in interface configuration mode:
Command
Purpose
Router(config-if)# no ip mroute-cache
IPC-415
properties (for example, contact information, session lifetime, and the media) being used in the session
(for example, audio, video, and whiteboard) with their specific attributes like TTL scope, group address,
and User Datagram Protocol (UDP) port number.
Many multimedia applications rely on SDP for session descriptions. However, they may use different
methods to disseminate these session descriptions. For example, IP/TV relies on the Web to disseminate
session descriptions to participants. In this example, participants must know of a Web server that
provides the session information.
MBONE applications (for example, vic, vat, and wb) and other applications rely on multicast session
information sent throughout the network. In these cases, a protocol called Session Announcement
Protocol (SAP) is used to transport the SDP session announcements. SAP Version 2 uses the well-known
session directory multicast group 224.2.127.254 to disseminate SDP session descriptions for global
scope sessions and group 239.255.255.255 for administrative scope sessions.
Note
The Session Directory (SDR) application is commonly used to send and receive SDP/SAP session
announcements.
To enable the Cisco IOS software to listen to Session Directory announcements, use the following
command on a multicast-enabled interface in interface configuration mode:
Command
Purpose
Purpose
Limits how long a SAP cache entry stays active in the cache.
IPC-416
If you configure this feature, IP multicast transmissions over Token Ring interfaces are more efficient
than they formerly were. This feature reduces the load on other machines that do not participate in IP
multicast because they do not process these packets.
The following restrictions apply to the Token Ring functional address:
Neighboring devices on the Token Ring on which this feature is used should also use the same
functional address for IP multicast traffic.
Because there are a limited number of Token Ring functional addresses, other protocols could be
assigned to the Token Ring functional address 0xc000.0004.0000. Therefore, not every frame sent
to the functional address is necessarily an IP multicast frame.
To enable the mapping of IP multicast addresses to the Token Ring functional address
0xc000.0004.0000, use the following command in interface configuration mode:
Command
Purpose
For an example of configuring the functional address, see the section Functional Address for IP
Multicast over Token Ring LAN Example later in this chapter.
A single, active RP exists per multicast group, with multiple backup RPs. This single RP compares
to multiple active RPs for the same group in PIM Version 1.
Sparse mode and dense mode are properties of a group, as opposed to an interface. We strongly
recommend sparse-dense mode, as opposed to either sparse mode or dense mode only.
PIM join and prune messages have more flexible encodings for multiple address families.
A more flexible hello packet format replaces the query packet to encode current and future
capability options.
Register messages to an RP indicate whether they were sent by a border router or a designated router.
PIM packets are no longer inside IGMP packets; they are standalone packets.
PIM Version 1, together with the Auto-RP feature, can perform the same tasks as the PIM Version 2
BSR. However, Auto-RP is a standalone protocol, separate from PIM Version 1, and is Cisco proprietary.
PIM Version 2 is a standards track protocol in the IETF. We recommend that you use PIM Version 2.
Note
IPC-417
The Cisco PIM Version 2 implementation allows interoperability and transition between Version 1 and
Version 2, although there might be some minor problems. You can upgrade to PIM Version 2
incrementally. PIM Versions 1 and 2 can be configured on different routers within one network.
Internally, all routers on a shared media network must run the same PIM version. Therefore, if a PIM
Version 2 router detects a PIM Version 1 router, the Version 2 router downgrades itself to Version 1 until
all Version 1 routers have been shut down or upgraded.
PIM uses the BSR to discover and announce RP-set information for each group prefix to all the routers
in a PIM domain. This is the same function accomplished by Auto-RP, but the BSR is part of the PIM
Version 2 specification.
To avoid a single point of failure, you can configure several candidate BSRs in a PIM domain. A BSR is
elected among the candidate BSRs automatically; they use bootstrap messages to discover which BSR
has the highest priority. This router then announces to all PIM routers in the PIM domain that it is the
BSR.
Routers that are configured as candidate RPs then unicast to the BSR the group range for which they are
responsible. The BSR includes this information in its bootstrap messages and disseminates it to all PIM
routers in the domain. Based on this information, all routers will be able to map multicast groups to
specific RPs. As long as a router is receiving the bootstrap message, it has a current RP map.
Prerequisites
When PIM Version 2 routers interoperate with PIM Version 1 routers, Auto-RP should have already
been deployed.
Because bootstrap messages are sent hop by hop, a PIM Version1 router will prevent these messages
from reaching all routers in your network. Therefore, if your network has a PIM Version 1 router in
it, and only Cisco routers, it is best to use Auto-RP rather than the bootstrap mechanism.
Note
If your network is all Cisco routers, you may use either Auto-RP or the bootstrap mechanism (BSR).
If you have routers other than Cisco in your network, you need to use the bootstrap mechanism.
To configure PIM Version 2, perform the tasks described in the following sections. The tasks in the first
section are required; the tasks in the remaining sections are optional.
IPC-418
Purpose
Purpose
Step 1
Router(config)# ip multicast-routing
Step 2
Configures an interface.
Step 3
Repeat Steps 2 and 3 for each interface on which you want to run PIM.
IPC-419
To prevent BSR messages from being sent or received through an interface, use the following command
in interface configuration mode:
Command
Purpose
To prevent Auto-RP messages from being sent or received through an interface, use the following
commands beginning in global configuration mode. The access list denies packets destined for the
224.0.1.39 and 224.0.1.40 multicast groups. These two groups are specifically assigned to carry
Auto-RP information.
Command
Purpose
Step 1
Router(config)# access-list
access-list-number {deny | permit} source
[source-wildcard]
Step 2
Note
The Cisco IOS implementation of PIM BSR uses the value 0 as the default priority for candidate RPs
and BSRs. This implementation predates the draft-ietf-pim-sm-bsr IETF draft, the first IETF draft to
specify 192 as the default priority value. The Cisco IOS implementation, thus, deviates from the IETF
draft. To comply with the default priority value specified in the draft, you must explicitly set the priority
value to 192.
To configure a router to be a candidate BSR, use the following command in global configuration mode:
Command
Purpose
IPC-420
Note
The Cisco IOS implementation of PIM BSR uses the value 0 as the default priority for candidate RPs
and BSRs. This implementation predates the draft-ietf-pim-sm-bsr IETF draft, the first IETF draft to
specify 192 as the default priority value. The Cisco IOS implementation, thus, deviates from the IETF
draft. To comply with the default priority value specified in the draft, you must explicitly set the priority
value to 192.
Consider the following scenarios when deciding which routers should be RPs:
In a network of Cisco routers where only Auto-RP is used, any router can be configured as an RP.
In a network of routers that includes only Cisco PIM Version 2 routers and routers from other
vendors, any router can be used as an RP.
In a network of Cisco PIM Version 1 routers, Cisco PIM Version 2 routers, and routers from other
vendors, only Cisco PIM Version 2 routers should be configured as RPs.
To configure a router to be a candidate RP, use the following command in global configuration mode:
Command
Purpose
For examples of configuring PIM Version 2, see the section PIM Version 2 Examples later in this
chapter.
Note
The Cisco IOS implementation of PIM BSR selects an RP from a set of candidate RPs using a method
that is incompatible with the specification in RFC 2362. Refer to CSCdy56806 using the Cisco Bug
Toolkit for more information. See the RFC 2362 Interoperable Candidate RP Example section on
page 450 for a configuration workaround.
Note
IPC-421
Dense Mode
Dense mode groups in a mixed Version 1/Version 2 region need no special configuration; they will
interoperate automatically.
Sparse Mode
Sparse mode groups in a mixed Version 1/Version 2 region are possible because the Auto-RP feature in
Version 1 interoperates with the RP feature of Version 2. Although all PIM Version 2 routers also can
use Version 1, we recommend that the RPs be upgraded to Version 2 (or at least upgraded to PIM Version
1 in the Cisco IOS Release 11.3 software).
To ease the transition to PIM Version 2, we also recommend the following configuration:
If Auto-RP was not already configured in the PIM Version 1 regions, configure Auto-RP. See the section
Configuring Auto-RP earlier in this chapter.
Purpose
IPC-422
Source
Router A
Router B
Source tree
(shortest
path tree)
Shared tree
from RP
RP
Receiver
43275
Router C
If the data rate warrants, leaf routers on the shared tree may initiate a switch to the data distribution tree
rooted at the source. This type of distribution tree is called a shortest-path tree or source tree. By default,
the Cisco IOS software switches to a source tree upon receiving the first data packet from a source.
The following process describes the move from shared tree to source tree in more detail:
1.
Receiver joins a group; leaf Router C sends a join message toward RP.
2.
3.
Source sends data; Router A encapsulates data in a register message and sends it to RP.
4.
RP forwards data down the shared tree to Router C and sends a join message toward Source. At this
point, data may arrive twice at Router C, once encapsulated and once natively.
5.
When data arrives natively (through multicast) at RP, RP sends a register-stop message to Router A.
6.
By default, reception of the first data packet prompts Router C to send a join message toward Source.
7.
When Router C receives data on (S, G), it sends a prune message for Source up the shared tree.
8.
RP deletes the link to Router C from the outgoing interface of (S, G). RP triggers a prune message
toward Source.
Join and prune messages are sent for sources and RPs. They are sent hop-by-hop and are processed by
each PIM router along the path to the source or RP. Register and register-stop messages are not sent
hop-by-hop. They are sent by the designated router that is directly connected to a source and are received
by the RP for the group.
Multiple sources sending to groups used the shared tree.
The network manager can configure the router to stay on the shared tree, as described in the following
section, Delaying the Use of PIM Shortest-Path Tree.
IPC-423
If a router receives a datagram on an interface it uses to send unicast packets to the source, the packet
has arrived on the RPF interface.
If the packet arrives on the RPF interface, a router forwards the packet out the interfaces present in
the outgoing interface list of a multicast routing table entry.
If the packet does not arrive on the RPF interface, the packet is silently discarded to prevent loops.
PIM uses both source trees and RP-rooted shared trees to forward datagrams; the RPF check is
performed differently for each, as follows:
If a PIM router has source-tree state (that is, an (S,G) entry is present in the multicast routing table),
the router performs the RPF check against the IP address of the source of the multicast packet.
If a PIM router has shared-tree state (and no explicit source-tree state), it performs the RPF check
on the RP address of the RP (which is known when members join the group).
PIM sparse mode uses the RPF lookup function to determine where it needs to send join and prune
messages. (S, G) join message (which are source-tree states) are sent toward the source. (*, G) join
messages (which are shared-tree states) are sent toward the RP.
DVMRP and PIM dense mode use only source trees and use RPF as described previously.
Purpose
IPC-424
Purpose
Purpose
Controls which RPs the local router will accept join messages from.
Purpose
IPC-425
IPC-426
Purpose
Dataless register messages are sent at a rate of 1 message per second. Continuous high rates of register
messages may occur if a DR is registering bursty sources (sources with high data rates) and if the RP is
not running PIM Version 2.
By default, this command is not configured and register messages are sent without limiting their rate.
Enabling this command will limit the load on the DR and RP at the expense of dropping those register
messages that exceed the set limit. Receivers may experience data packet loss within the first second in
which packets are sent from bursty sources.
Purpose
Purpose
IPC-427
For traffic from DVMRP neighbors, proxy registering is always active and cannot be influenced by the
ip pim dense-mode proxy-register interface configuration command. For dense mode or DVMRP
regions, proxy registering allows for limited interoperability between a dense mode region and a sparse
mode domain. This limitation is referred to as receiver must also be sender. The receiver must also
be sender limit exists because there is no mechanism in dense mode protocols to convey the existence
of receiver-only hosts to a border router, and the flooding (and pruning) of all multicast traffic originated
in the dense mode domain inhibits the purpose of a sparse mode domain. The behavior of participating
hosts in the dense mode region is as follows:
A host in the dense mode region is only guaranteed to receive traffic from sources in the sparse mode
domain through the proxy registering border router if at least one host is in the dense mode region
that is a sender for the multicast group. This host is typically the receiving host itself.
A sender in the dense mode region will trigger proxy registering in the border router, which in turn
will cause the border router to join the multicast group and forward traffic from sources in the sparse
mode domain toward the dense mode region.
If no sender is in the dense mode region for a multicast group, then no traffic will be forwarded into
the dense mode region.
Purpose
Consider the following two factors before enabling PIM NBMA mode:
If the number of neighbors grows, the outgoing interface list gets large, which costs memory and
replication time.
If the network (Frame Relay, SMDS, or ATM) supports multicast natively, you should use it so that
replication is performed at optimal points in the network.
IPC-428
MR 1
UR 1
UR 2
MR 2
Destination
43278
Source
Link
Tunnel
In Figure 68, Source delivers multicast packets to Destination by using MR 1 and MR 2. MR 2 accepts
the multicast packet only if it believes it can reach Source over the tunnel. If this situation is true, when
Destination sends unicast packets to Source, MR 2 sends them over the tunnel. Sending the packet over
the tunnel could be slower than natively sending the it through UR 2, UR 1, and MR 1.
Prior to multicast static routes, the configuration in Figure 69 was used to overcome the problem of both
unicasts and multicasts using the tunnel. In this figure, MR 1 and MR 2 are used as multicast routers
only. When Destination sends unicast packets to Source, it uses the (UR 3, UR 2, UR 1) path. When
Destination sends multicast packets, the UR routers do not understand or forward them. However, the
MR routers forward the packets.
Separate Paths for Unicast and Multicast Packets
UR 1
Source
MR 1
Link
Tunnel
UR 2
UR 3
MR 2
Destination
43279
Figure 69
To make the configuration in Figure 69 work, MR 1 and MR 2 must run another routing protocol
(typically a different instantiation of the same protocol running in the UR routers), so that paths from
sources are learned dynamically.
IPC-429
A multicast static route allows you to use the configuration in Figure 68 by configuring a static multicast
source. The Cisco IOS software uses the configuration information instead of the unicast routing table.
Therefore, multicast packets can use the tunnel without having unicast packets use the tunnel. Static
mroutes are local to the router they are configured on and not advertised or redistributed in any way to
any other router.
To configure a multicast static route, use the following command in global configuration mode:
Command
Purpose
Purpose
IPC-430
Figure 70
IP
8 bytes 12 bytes
UDP
RTP
Header
Payload
20 to 160 bytes
IP/UDP/RTP header
20 to 160 bytes
S5925
Payload
The RTP header compression feature compresses the IP/UDP/RTP header in an RTP data packet from
40 bytes to approximately 2 to 5 bytes, as shown in Figure 70. It is a hop-by-hop compression scheme
similar to RFC 1144 for TCP/IP header compression. Using RTP header compression can benefit both
telephony voice and MBONE applications running over slow links.
RTP header compression is supported on serial lines using Frame Relay, High-Level Data Link Control
(HDLC), or PPP encapsulation. It is also supported over ISDN interfaces.
Enabling compression on both ends of a low-bandwidth serial link can greatly reduce the network
overhead if substantial amounts of RTP traffic are on that slow link. This compression is beneficial
especially when the RTP payload size is small (for example, compressed audio payloads of 20 to 50
bytes). Although the MBONE-style RTP traffic has higher payload sizes, compact encodings such as
code excited linear prediction (CELP) compression can also help considerably.
Before you can enable RTP header compression, you must have configured a serial line that uses either
Frame Relay, HDLC, or PPP encapsulation, or an ISDN interface. To configure RTP header
compression, perform the tasks described in the following sections. Either one of the first two tasks is
required.
You can compress the IP/UDP/RTP headers of RTP traffic to reduce the size of your packets, making
audio or video communication more efficient. You must enable compression on both ends of a serial
connection.
RTP header compression occurs in either the fast-switched or CEF-switched path, depending on whether
certain prerequisites are met. Otherwise, it occurs in the process-switched path. For more information
about where RTP header compression occurs, see the section Enabling Express RTP Header
Compression later in this document.
IPC-431
Purpose
If you include the passive keyword, the software compresses outgoing RTP packets only if incoming
RTP packets on the same interface are compressed. If you use the command without the passive
keyword, the software compresses all RTP traffic.
See the RTP Header Compression Examples section later in this chapter for an example of how to
enable RTP header compression on a serial interface.
Purpose
See the RTP Header Compression Examples section later in this chapter for an example of how to
enable RTP header compression with Frame Relay encapsulation.
To disable RTP and TCP header compression with Frame Relay encapsulation, use the following
command in interface configuration mode:
Command
Purpose
IPC-432
By default, for PPP or HDLC encapsulation, the software allows 32 RTP header compression
connections (16 calls). This default can be increased to a maximum of 1000 RTP header compression
connections on an interface.
To change the number of compression connections supported, use the following command in interface
configuration mode:
Command
Purpose
Router(config-if)# ip rtp
compression-connections number
See the RTP Header Compression Examples section later in this chapter for an example of how to
change the number of header compression connections.
It speeds up transmission of TCP and RTP packets. The faster speed provides a greater benefit on
slower links than faster links.
One restriction affects Multilink PPP (MLP) interfaces that have link fragment and interleave (LFI). In
this case, if RTP header compression is configured, RTP packets originating on or destined to the router
will be process switched. Transit traffic will be fast switched.
The CEF and fast-switching aspects of this feature are related to these documents:
IPC-433
In order for the Express RTP Header Compression feature to work, the following conditions must exist:
The Express RTP Header Compression feature supports the following RFCs:
IPC-434
Figure 71
Source
Router A
Router C
Router B
Multiaccess
WAN
Router D
Router E
Receiver
Receiver
43280
Leaf
With the advent of IP multicast, where high-rate multicast traffic can occur, that approach does not scale.
Furthermore, in the preceding example, routers B and C would get data traffic they do not need. To
handle this problem, PIM can be configured in NBMA mode using the ip pim nbma-mode interface
configuration command. PIM in NBMA mode works only for sparse mode groups. Configuring PIM in
NBMA mode would allow only routers D and E to get the traffic without distributing to routers B and C.
However, two copies are still delivered over the link from Router A to the multiaccess WAN.
If the underlying network supported multicast capability, the routers could handle this situation more
efficiently. If the multiaccess WAN were an ATM network, IP multicast could use multipoint VCs.
To configure IP multicast using multipoint VCs, routers A, B, C, D, and E in Figure 71 must run PIM
sparse mode. If the Receiver directly connected to Router D joins a group and A is the PIM RP, the
following sequence of events occur:
1.
2.
When Router A receives the PIM join, it sets up a multipoint VC for the multicast group.
3.
Later, when the Receiver directly connected to Router E joins the same group, E will send a PIM
join message to Router A.
4.
Router A will see there is a multipoint VC already associated with the group, and will add Router E
to the existing multipoint VC.
5.
When the Source sends a data packet, Router A can send a single packet over its link that gets to
both Router D and Router E. The replication occurs in the ATM switches at the topological diverging
point from Router A to Router D and Router E.
If a host sends an IGMP report over an ATM interface to a router, the router adds the host to the
multipoint VC for the group.
This feature can also be used over ATM subinterfaces.
IPC-435
You must have ATM configured for multipoint signalling. Refer to the Configuring ATM chapter in
the Cisco IOS Wide-Area Networking Configuration Guide for more information on how to configure
ATM for point-to-multipoint signalling.
You also must have IP multicast routing and PIM sparse mode configured. This feature does not work
with PIM dense mode.
To configure IP multicast over ATM point-to-multipoint VCs, perform the tasks described in the
following sections. The task in the first section is required; the task in the remaining section is optional.
Purpose
Step 1
Step 2
The atm multipoint-signaling interface configuration command is required so that static map
multipoint VCs can be opened. The router uses existing static map entries that include the broadcast
keyword to establish multipoint calls. You must have the map list to act like a static ARP table.
Use the show ip pim vc EXEC command to display ATM VC status information for multipoint VCs
opened by PIM.
See the IP Multicast over ATM Point-to-Multipoint VC Example section later in this chapter for an
example of how to enable IP multicast over ATM point-to-multipoint VCs.
Purpose
IPC-436
Idling Policy
An idling policy uses the ip pim vc-count number interface configuration command to limit the number
of VCs created by PIM. When the router stays at or below this number value, no idling policy is in effect.
When the next VC to be opened will exceed the number value, an idling policy is exercised. An idled
VC does not mean that the multicast traffic is not forwarded; the traffic is switched to VC 0. The VC 0
is the broadcast VC that is open to all neighbors listed in the map list. The name VC 0 is unique to
PIM and the mrouting table.
The only VCs eligible for idling are those with a current 1-second activity rate less than or equal to
the value configured by the ip pim minimum-vc-rate interface configuration command on the ATM
interface. Activity level is measured in packets per second (pps).
The VC with the least amount of activity below the configured ip pim minimum-vc-rate pps rate
is idled.
If the ip pim minimum-vc-rate command is not configured, all VCs are eligible for idling.
If other VCs are at the same activity level, the VC with the highest fanout (number of leaf routers
on the multipoint VC) is idled.
The activity level is rounded to three orders of magnitude (less than 10 pps, 10 to 100 pps, and 100
to 1000 pps). Therefore, a VC that has 40 pps activity and another that has 60 pps activity are
considered to have the same rate, and the fanout count determines which one is idled. If the first VC
has a fanout of 5 and the second has a fanout of 3, the first one is idled.
Idling a VC means releasing the multipoint VC that is dedicated for the multicast group. The traffic
of the group continues to be sent; it is moved to the static map VC. Packets will flow over a shared
multipoint VC that delivers packets to all PIM neighbors.
If all VCs have a 1-minute rate greater than the pps value, the new group (that exceeded the ip pim
vc-count number) will use the shared multipoint VC.
Purpose
Sets the minimum activity rate required to keep VCs from being
idled.
IPC-437
Step 1
Command
Purpose
Step 2
Configures an interface.
Step 3
See the section Administratively Scoped Boundary Example later in this chapter for an example of
configuring a boundary.
IPC-438
To configure an intermediate IP multicast helper, the first hop router and the last hop router must be
configured. To configure the first hop router, use the following commands beginning in global
configuration mode:
Command
Purpose
Step 1
Specifies an interface.
Step 2
Step 3
Router(config-if)# ip directed-broadcast
Step 4
After configuring the first hop router, use the following commands on the last hop router beginning in
global configuration mode:
Command
Purpose
Step 1
Specifies an interface.
Step 2
Router(config-if)# ip directed-broadcast
Step 3
Step 4
Step 5
Note
On the last hop router, the ip multicast helper-map interface configuration command automatically
introduces ip igmp join-group group-address on that interface. This command must stay on that
interface for the intermediate IP multicast helper feature to work. If you remove the ip igmp
join-group command, the feature will fail.
Interpacket delay
Packet length
IPC-439
To allocate a circular buffer to store IP multicast packet headers that the router receives, use the
following command in global configuration mode:
Command
Purpose
Note
Enabling CGMP
CGMP is a protocol used on routers connected to Catalyst switches to perform tasks similar to those
performed by IGMP. CGMP is necessary because the Catalyst switch cannot distinguish between IP
multicast data packets and IGMP report messages, which are both at the MAC level and are addressed
to the same group address.
Enabling CGMP triggers a CGMP join message. CGMP should be enabled only on 802 or ATM media,
or LAN emulation (LANE) over ATM. CGMP should be enabled only on routers connected to Catalyst
switches.
To enable CGMP for IP multicast on a LAN, use the following command in interface configuration
mode:
Command
Purpose
Enables CGMP.
When the proxy keyword is specified, the CGMP proxy function is enabled. That is, any router that is
not CGMP-capable will be advertised by the proxy router. The proxy router advertises the existence of
other non-CGMP-capable routers by sending a CGMP join message with the MAC address of the
non-CGMP-capable router and group address of 0000.0000.0000.
IPC-440
Stub IP multicast routing allows stub sites to be configured quickly and easily for basic multicast
connectivity, without the flooding of multicast packets and subsequent group pruning that occurs in
dense mode, and without excessive administrative burden at the central site.
Before configuring stub IP multicast routing, you must have IP multicast routing configured on both the
stub router and the central router. You must also have PIM dense mode configured on both the incoming
and outgoing interfaces of the stub router.
Two steps are required to enable stub IP multicast routing. One task is performed on the stub router, and
the other is performed on a central router one hop away from the stub router. By definition, a stub region
is marked by a leaf router. That is, the stub router (leaf router) is the last stop before any hosts receiving
multicast packets or the first stop for anyone sending multicast packets.
The first step is to configure the stub router to forward all IGMP host reports and leave messages
received on the interface to an IP address. The reports are re-sent out the next hop interface toward the
IP address, with the source address of that interface. This action enables a sort of dense mode join
message, allowing stub sites not participating in PIM to indicate membership in multicast groups.
To configure the stub router to forward IGMP host reports and leave messages, use the following
command in interface configuration mode. Specify the IP address of an interface on the central router.
When the central router receives IGMP host report and leave messages, it appropriately adds or removes
the interface from its outgoing list for that group.
Command
Purpose
On the stub router, forwards all IGMP host reports and leave
messages to the specified IP address on a central router.
The second step is to configure an access list on the central router to filter all PIM control messages from
the stub router. Thus, the central router does not by default add the stub router to its outgoing interface
list for any multicast groups. This task has the side benefit of preventing a misconfigured PIM neighbor
from participating in PIM.
To filter PIM control messages, use the following command in interface configuration mode:
Command
Purpose
For an example of stub IP multicast routing, see the section Stub IP Multicast Example later in this
chapter.
IPC-441
Purpose
When the ip multicast multipath global configuration command is configured and multiple equal-cost
paths exist, the path in which multicast traffic will travel is selected based on the source IP address.
Multicast traffic from different sources will be load split across the different equal-cost paths. Load
splitting will not occur across equal-cost paths for multicast traffic from the same source sent to different
multicast groups.
Note
The ip multicast multipath global configuration command load splits the traffic and does not load
balance the traffic. Traffic from a source will use only one path, even if the traffic far outweighs
traffic from other sources.
The ip multicast multipath command does not support configurations in which the same PIM neighbor
IP address is reachable through multiple equal-cost paths. This situation typically occurs if unnumbered
interfaces are used. We recommend using different IP addresses for all interfaces when configuring the
ip multicast multipath command.
Two multicast
equal-cost links
E0
Source
IPC-442
S0
S1
Router B
43281
Router A
Multicast
member
If a tunnel is configured between Router A and Router B, and multicast traffic is made to reverse path
forward over the tunnel, then the multicast packets are sent encapsulated into the tunnel as unicast
packets between Router A and Router B. The underlying unicast mechanism will then perform load
splitting across the equal-cost links.
To configure load splitting across tunnels, perform the tasks described in the following sections. The
tasks in the first three sections are required; the task in the remaining section is optional.
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
IPC-443
Purpose
After configuring a static multicast route, use the following commands on the router at the opposite end
of the tunnel from the stub router in global configuration mode:
Command
Purpose
Step 1
Router(config)# ip mroute
source-address mask tunnel number
Step 2
Router(config)# ip mroute
source-address mask tunnel number
IPC-444
With process switching, load splitting occurs on a per-packet basis by round robin on the equal-cost
links. To verify that load splitting is working, look at the interface statistics using the show
interfaces accounting EXEC command, and verify that the packet count is about equal for the
underlying interfaces that provide the equal-cost paths.
With fast switching, load splitting occurs on a per-flow basis. A flow is a set of traffic with the same
source and destination. Once the cache is populated for the (S, G) pair, that flow is pinned to the
physical interface assigned on the cache (the outgoing interface used by the first packet of the flow).
If the cached interface goes down, the cache entry for the (S, G) pair is torn down and the flow is
automatically switched to a different physical interface.
In the case of fast switching, you can verify that load splitting is occurring by viewing the multicast
fast-switched cache by using the show ip mcache EXEC command. The flows should be split among the
underlying interfaces, as shown in the following example:
Router# show ip mcache
IP Multicast Fast-Switching Cache
(100.1.1.6/32, 224.1.1.1), Ethernet0,
Tunnel0
MAC Header: 0F000800
(100.1.1.6/32, 224.1.1.2), Ethernet0,
Tunnel0
MAC Header: 0F000800
(100.1.1.5/32, 224.1.1.3), Ethernet0,
Tunnel0
MAC Header: 0F000800
(100.1.1.5/32, 224.1.1.4), Ethernet0,
Tunnel0
MAC Header: 0F000800
Last used:
(Serial1)
Last used:
(Serial1)
Last used:
(Serial0)
Last used:
(Serial0)
00:00:00
00:00:00
00:00:00
00:00:00
For an example of load splitting IP multicast traffic across equal-cost paths, see the section Load
Splitting IP Multicast Traffic Across Equal-Cost Paths Example later in this chapter.
Note
For information about Multicast Routing Monitor (MRM) and commands that monitor IP multicast
information, see the chapter Using IP Multicast Tools.
IPC-445
Purpose
Deletes the SAP cache or a SAP cache entry. The session name
is enclosed in quotation marks ( ) that the user must enter.
Purpose
IPC-446
Command
Purpose
Displays how the router is doing RPF (that is, from the
unicast routing table, DVMRP routing table, or static
mroutes). Also displays the unicast routing metric.
When IP multicast heartbeat is enabled, the router monitors IP multicast packets destined for a particular
multicast group at a particular interval. If the number of packets observed is less than a configured
minimum amount, the router sends an Simple Network Management Protocol (SNMP) trap to a specified
network management station to indicate a loss of heartbeat exception.
To configure IP multicast heartbeat, use the following commands in global configuration mode:
Command
Purpose
Step 1
Router(config)# ip multicast-routing
Step 2
Step 3
Step 4
See the IP Multicast Heartbeat Example section later in this chapter for an example of how to
configure IP multicast heartbeat.
For more information on the information contained in IP multicast SNMP notifications, refer to the
Cisco IOS Configuration Fundamentals Command Reference.
IPC-447
IPC-448
The following example shows a PIM router that is processing and forwarding PIM Dense Mode State
Refresh control messages and not originating messages on Fast Ethernet interface 1/1:
ip multicast-routing
interface FastEthernet1/1
ip address 172.16.7.3 255.255.255.0
ip pim dense-mode
IPC-449
ip pim sparse-dense-mode
!
router ospf 1
network 172.21.24.8 0.0.0.7 area 1
network 172.21.24.16 0.0.0.7 area 1
!
ip pim bsr-candidate Ethernet2 30 10
ip pim rp-candidate Ethernet2 group-list 5
access-list 5 permit 239.255.2.0 0.0.0.255
Select the candidate RP with the highest priority (lowest configured priority value).
Step 2
If there is a tie in the priority level, select the candidate RP with the highest hash function value.
Step 3
If there is a tie in the hash function value, select the candidate RP with the highest IP address.
Cisco routers always select the candidate RP based on the longest match on the announced group address
prefix before selecting an RP based on priority, hash function, or IP address.
IPC-450
Inconsistent candidate RP selection between Cisco and non-Cisco RFC 2362-compliant routers in the
same domain if multiple candidate RPs with partially overlapping group address ranges are configured
can occur. Inconsistent candidate RP selection can lead to disconnectivity between sources and receivers
in the PIM domain. A source may register with one candidate RP and a receiver may connect to a
different candidate RP even though it is in the same group.
The following example shows a configuration that can cause inconsistent RP selection between a Cisco
and a non-Cisco router in a single PIM domain with PIM Version 2 BSR:
access-list 10 permit 224.0.0.0 7.255.255.255
ip pim rp-candidate ethernet1 group-list 10 priority 20
access-list 20 permit 224.0.0.0 15.255.255.255
ip pim rp-candidate ethernet2 group-list 20 priority 10
In this example, a candidate RP on Ethernet interface 1 announces a longer group prefix of 224.0.0.0/5
with a lower priority of 20. The candidate RP on Ethernet interface 2 announces a shorter group prefix
of 224.0.0.0/4 with a higher priority of 10. For all groups that match both ranges a Cisco router will
always select the candidate RP on Ethernet interface 1 because it has the longer announced group prefix.
A non-Cisco fully RFC 2362-compliant router will always select the candidate RP on Ethernet
interface 2 because it is configured with a higher priority.
To avoid this interoperability issue, do not configure different candidate RPs to announce partially
overlapping group address prefixes. Configure any group prefixes that you want to announce from more
than one candidate RP with the same group prefix length.
The following example shows how to configure the previous example so that there is no incompatibility
between a Cisco router and a non-Cisco router in a single PIM domain with PIM Version 2 BSR:
access-list 10 permit 224.0.0.0 7.255.255.255
ip pim rp-candidate ethernet1 group-list 10 priority 20
access-list 20 permit 224.0.0.0 7.255.255.255
access-list 20 permit 232.0.0.0 7.255.255.255
ip pim rp-candidate ethernet2 group-list 20 priority 10
In this configuration the candidate RP on Ethernet interface 2 announces group address 224.0.0.0/5 and
232.0.0.0/5 which equal 224.0.0.0/4, but gives the interface the same group prefix length (5) as the
candidate RP on Ethernet 1. As a result, both a Cisco router and an RFC 2362-compliant router will
select the RP Ethernet interface 2.
The following Frame Relay encapsulation example shows how to enable RTP header compression on the
specified map.
interface serial 0
ip address 1.0.0.2 255.0.0.0
encapsulation frame-relay
IPC-451
no keepalive
clockrate 64000
frame-relay map ip 1.0.0.1 17 broadcast rtp header-compression connections 64
frame-relay ip rtp header-compression
frame-relay ip rtp compression-connections 32
IPC-452
no ip route-cache
shutdown
clockrate 2015232
!
ip default-gateway 9.1.72.1
ip classless
ip route 0.0.0.0 0.0.0.0 9.1.72.1
!
router igrp 1
network 15.0.0.0
!
line con 0
exec-timeout 0 0
transport input none
line aux 0
line vty 0 4
password lab
login
!
no scheduler max-task-time
end
IPC-453
!
interface Serial4/0
ip address 15.3.0.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 15.3.0.2 100 broadcast compress connections 16
frame-relay ip rtp header-compression
frame-relay ip tcp header-compression
frame-relay ip rtp compression-connections 32
no ip mroute-cache
ip route-cache
bandwidth 2000
no keepalive
no shutdown
!
interface Serial4/1
no ip address
no ip directed-broadcast
no ip route-cache
no ip mroute-cache
shutdown
no fair-queue
!
router igrp 1
network 15.0.0.0
!
!
ip default-gateway 9.1.72.1
ip classless
!
map-class frame-relay frag
frame-relay cir 64000
frame-relay bc 1000
frame-relay be 0
frame-relay mincir 64000
frame-relay adaptive-shaping becn
frame-relay fair-queue
frame-relay fragment 70
!
dialer-list 1 protocol ip permit
dialer-list 1 protocol ipx permit
!
line con 0
exec-timeout 0 0
transport input none
line aux 0
line vty 0 4
password lab
login
!
!
ntp clock-period 17179866
end
IPC-454
178.21.34.0
Client
UDP
port 4000
Broadcast
traffic
Router C
Router A
Ethernet 2
Ethernet 0
First hop
router
Ethernet 1
Broadcast-only
LAN or internet
Router B
Last hop
router
178.21.34.15
Broadcast
traffic
Broadcast-only
LAN or internet
Client
43282
Figure 73
The configuration on the first hop router converts a broadcast stream arriving at incoming Ethernet
interface 0 destined for UDP port 4000 to a multicast stream. The access list denies other traffic from
being forwarded into the multicast cloud. The traffic is sent to group address 224.5.5.5. Because fast
switching does not perform such a conversion, the ip forward-protocol global configuration command
causes the proper process level to perform the conversion.
The second configuration on the last hop router converts the multicast stream at Ethernet interface 2 back
to broadcast. Again, all multicast traffic emerging from the multicast cloud should not be converted to
broadcast, only the traffic destined for UDP port 4000.
IPC-455
Stub region
Router A
Router B
10.0.0.1
Host
10.0.0.2
Central router denies
PIM messages
from Router A
43283
Host
IPC-456
Router B Configuration
ip multicast-routing
ip pim dense-mode : or ip pim sparse-mode
ip pim neighbor-filter 1
access-list 1 deny 10.0.0.1
Router A
E0
Source
Router B
S0
S6/4
S1
S6/5
E0/5
43284
Figure 75
Multicast
member
Router A Configuration
interface tunnel 0
ip unnumbered Ethernet0
ip pim dense-mode : or sparse-mode or sparse-dense-mode
tunnel source 100.1.1.1
tunnel destination 100.1.5.3
!
interface ethernet 0
ip address 100.1.1.1 255.255.255.0
ip pim dense-mode : or sparse-mode or sparse-dense-mode
!
interface Serial0
ip address 100.1.2.1 255.255.255.0
bandwidth 125
clock rate 125000
!
interface Serial1
ip address 100.1.3.1 255.255.255.0
bandwidth 125
Router B Configuration
interface tunnel 0
ip unnumbered ethernet 0/5
ip pim dense-mode : or sparse-mode or sparse-dense-mode
tunnel source 100.1.5.3
tunnel destination 100.1.1.1
!
interface ethernet 0/5
ip address 100.1.5.3 255.255.255.0
ip pim dense-mode : or sparse-mode or sparse-dense-mode
!
interface serial 6/4
ip address 100.1.2.3 255.255.255.0
bandwidth 125
!
interface Serial6/5
IPC-457
IPC-458
PIM-SSM is the routing protocol that supports the implementation of SSM and is derived from PIM
sparse mode (PIM-SM). IGMP is the Internet Engineering Task Force (IETF) standards track protocol
used for hosts to signal multicast group membership to routers. Version 3 of this protocol supports source
filtering, which is required for SSM. To run SSM with IGMPv3, SSM must be supported in the
Cisco IOS router, the host where the application is running, and the application itself. IGMP v3lite and
URD are two Cisco-developed transition solutions that enable the immediate development and
deployment of SSM services, without the need to wait for the availability of full IGMPv3 support in host
operating systems and SSM receiver applications. IGMP v3lite is a solution for application developers
that allows immediate development of SSM receiver applications switching to IGMPv3 as soon as it
becomes available. URD is a solution for content providers and content aggregators that enables them to
IPC-459
deploy receiver applications that are not yet SSM enabled (through support for IGMPv3). IGMPv3,
IGMP v3lite, and URD interoperate with each other, so that both IGMP v3lite and URD can easily be
used as transitional solutions toward full IGMPv3 support in hosts.
SSM Operations
An established network, in which IP multicast service is based on PIM-SM, can support SSM services.
SSM can also be deployed alone in a network without the full range of protocols that are required for
interdomain PIM-SM (for example, MSDP, Auto-RP, or bootstrap router [BSR]) if only SSM service is
needed.
IPC-460
If SSM is deployed in a network already configured for PIM-SM (Cisco IOS Release 12.0 or later
releases is recommended), then only the last hop routers must be upgraded to a Cisco IOS software
image that supports SSM. Routers that are not directly connected to receivers do not have to upgrade to
a Cisco IOS software image that supports SSM. In general, these nonlast hop routers must only run
PIM-SM in the SSM range, and may need additional access control configuration to suppress MSDP
signalling, registering, or PIM-SM shared tree operations from occurring within the SSM range.
The SSM mode of operation is enabled by configuring the SSM range through the ip pim ssm global
configuration command. This configuration has the following effects:
For groups within the SSM range, (S, G) channel subscriptions are accepted through IGMPv3
INCLUDE mode membership reports, IGMP v3lite, or URD (each of these methods must be
configured on a per-interface basis). IGMP v3lite and URD (S, G) channel subscriptions are ignored
for groups outside the SSM range.
Both IGMP v3lite and URD are based on utilizing existing application IGMP group membership and
extending it with their respective (S, G) channel subscription mechanism, which is ignored by
Cisco IOS software outside the SSM range of addresses. Within the SSM range, IGMP Version 1
(IGMPv1) or Version 2 (IGMPv2) group membership reports or IGMPv3 EXCLUDE mode
membership reports are acted upon only in conjunction with an (S, G) specific membership report
from URD or IGMP v3lite.
PIM operations within the SSM range of addresses change to PIM-SSM, a mode derived from
PIM-SM. In this mode, only PIM (S, G) join and prune messages are generated by the router, and
no (S, G) rendezvous point tree (RPT) or (*, G) RPT messages are generated. Incoming messages
related to RPT operations are ignored or rejected and incoming PIM register messages are
immediately answered with register-stop messages. PIM-SSM is backward compatible with
PIM-SM, unless a router is a last hop router. Therefore, routers that are not last hop routers can run
PIM-SM for SSM groups (for example, if they do not yet support SSM).
No MSDP Source-Active (SA) messages within the SSM range will be accepted, generated, or
forwarded.
IPC-461
Applications must be compiled with the Host Side IGMP Library (HSIL) for IGMP v3lite. This software
provides applications with a subset of the IGMPv3 applications programming interface (API) that is
required to write SSM applications. HSIL was developed for Cisco by Talarian and is available from the
following web page:
http://www.talarianmulticast.com/cgi-bin/igmpdownld
One part of the HSIL is a client library linked to the SSM application. It provides the SSM subset of the
IGMPv3 API to the SSM application. If possible, the library checks whether the operating system kernel
supports IGMPv3. If it does, then the API calls simply are passed through to the kernel. If the kernel
does not support IGMPv3, then the library uses the IGMP v3lite mechanism.
When using the IGMP v3lite mechanism, the library tells the operating system kernel to join to the whole
multicast group, because joining to the whole group is the only method for the application to receive
traffic for that multicast group (if the operating system kernel only supports IGMPv1 or IGMPv2). In
addition, the library signals the (S, G) channel subscriptions to an IGMP v3lite server process, which is
also part of the HSIL. A server process is needed because multiple SSM applications may be on the same
host. This server process will then send IGMP v3lite-specific (S, G) channel subscriptions to the last hop
Cisco IOS router, which needs to be enabled for IGMP v3lite. This Cisco IOS router will then see both
the IGMPv1 or IGMPv2 group membership report from the operating system kernel and the (S, G)
channel subscription from the HSIL daemon. If the router sees both of these messages, it will interpret
them as an SSM (S, G) channel subscription and join to the channel through PIM-SSM. We recommend
referring to the documentation accompanying the HSIL software for further information on how to
utilize IGMP v3lite with your application.
IGMP v3lite is supported by Cisco only through the API provided by the HSIL, not as a function of the
router independent of the HSIL. By default, IGMP v3lite is disabled. When IGMP v3lite is configured
through the ip igmp v3lite interface configuration command on an interface, it will be active only for IP
multicast addresses in the SSM range.
The webserver string is the name or IP address to which the URL is targeted. This target need not be the
IP address of an existing web server, except for situations where the web server wants to recognize that
the last hop router failed to support the URD mechanism. The number 465 indicates the URD port. Port
465 is reserved for Cisco by the IANA for the URD mechanism so that no other applications can use this
port.
IPC-462
When the browser of a host encounters a URD intercept URL, it will try to open a TCP connection to
the web server on port 465. If the last hop router is enabled for URD on the interface where the router
receives the TCP packets from the host, it will intercept all packets for TCP connections destined to
port 465 independent of the actual destination address of the TCP connection (independent of the
address of the web server). Once intercepted, the last hop router will speak a very simple subset of
HTTP on this TCP connection, emulating a web server. The only HTTP request that the last hop router
will understand and reply to is the following GET request:
GET argument HTTP/1.0
argument = /path?group=group&source=source1&...source=sourceN&
When it receives a GET command, the router tries to parse the argument according to this syntax to
derive one or more (S, G) channel memberships. The path string of the argument is anything up to, but
not including, the first question mark, and is ignored. The group and source1 through sourceN strings
are the IP addresses or fully qualified domain names of the channels for which this argument is a
subscription request. If the argument matches the syntax shown, the router interprets the argument to be
subscriptions for the channels (source1, group) through (sourceN, group).
The router will accept the channel subscriptions if the following conditions are met:
The IP address of the host that originated the TCP connection is directly connected to the router.
If the channel subscription is accepted, the router will respond to the TCP connection with the following
HTML page format:
HTTP/1.1 200 OK
Server:cisco IOS
Content-Type:text/html
<html>
<body>
Retrieved URL string successfully
</body>
</html>
If an error condition occurs, the <body> part of the returned HTML page will carry an appropriate error
message. The HTML page is a by-product of the URD mechanism. This returned text may, depending
on how the web pages carrying a URD intercept URL are designed, be displayed to the user or be sized
so that the actual returned HTML page is invisible.
The primary effect of the URD mechanism is that the router will remember received channel
subscriptions and will match them against IGMP group membership reports received by the host. The
router will remember a URD (S, G) channel subscription for up to 3 minutes without a matching IGMP
group membership report. As soon as the router sees that it has received both an IGMP group
membership report for a multicast group G and a URD (S, G) channel subscription for the same group G,
it will join the (S, G) channel through PIM-SSM. The router will then continue to join to the (S, G)
channel based only on the presence of a continuing IGMP membership from the host. Thus, one initial
URD channel subscription is all that is needed to be added through a web page to enable SSM with URD.
If the last hop router from the receiver host is not enabled for URD, then it will not intercept the HTTP
connection toward the web server on port 465. This situation will result in a TCP connection to port 465
on the web server. If no further provisions on the web server are taken, then the user may see a notice
(for example, Connection refused) in the area of the web page reserved for displaying the URD
intercept URL (if the web page was designed to show this output). It is also possible to let the web server
listen to requests on port 465 and install a Common Gateway Interface (CGI) script that would allow
the web server to know if a channel subscription failed (for example, to subsequently return more
complex error descriptions to the user).
IPC-463
Because the router returns a Content-Type of text and HTML, the best way to include the URD intercept
URL into a web page is to use a frame. By defining the size of the frame, you can also hide the URD
intercept URL on the displayed page.
By default, URD is disabled on all interfaces. When URD is configured through the ip urd interface
configuration command on an interface, it will be active only for IP multicast addresses in the SSM
range.
Benefits
IP Multicast Address Management Not Required
In the ISM service, applications must acquire a unique IP multicast group address because traffic
distribution is based only on the IP multicast group address used. If two applications with different
sources and receivers use the same IP multicast group address, then receivers of both applications will
receive traffic from the senders of both applications. Even though the receivers, if programmed
appropriately, can filter out the unwanted traffic, this situation would cause generally unacceptable levels
of unwanted traffic.
Allocating a unique IP multicast group address for an application is still a problem. Most short-lived
applications use mechanisms like Session Description Protocol (SDP) and Session Announcement
Protocol (SAP) to get a random address, a solution that does not work well with a rising number of
applications in the Internet. The best current solution for long-lived applications is described in
RFC 2770, but this solution suffers from the restriction that each autonomous system is limited to only
255 usable IP multicast addresses.
In SSM, traffic from each source is forwarded between routers in the network independent of traffic from
other sources. Thus different sources can reuse multicast group addresses in the SSM range.
IPC-464
deployment. Another factor that contributes to the ease of installation of SSM is the fact that it can
leverage preexisting PIM-SM networks and requires only the upgrade of last hop routers to support
IGMPv3, IGMP v3lite, or URD.
The ability to provide Internet broadcast services through SSM without the need for unique IP
multicast addresses allows content providers to easily offer their service (IP multicast address
allocation has been a serious problem for content providers in the past).
The prevention against DoS attacks is an important factor for Internet broadcast services because,
with their exposure to a large number of receivers, they are the most common targets for such
attacks.
The ease of installation and operation of SSM makes it ideal for network operators, especially in
those cases where content needs to be forwarded between multiple independent PIM domains
(because there is no need to manage MSDP for SSM between PIM domains).
Restrictions
Legacy Applications Within the SSM Range Restrictions
Existing applications in a network predating SSM will not work within the SSM range unless they are
modified to support (S, G) channel subscriptions or are enabled through URD. Therefore, enabling SSM
in a network may cause problems for existing applications if they use addresses within the designated
SSM range.
IGMP v3lite and URD Require a Cisco IOS Last Hop Router
SSM and IGMPv3 are solutions that are being standardized in the IETF. However, IGMP v3lite and URD
are Cisco-developed solutions. For IGMP v3lite and URD to operate properly for a host, the last hop
router toward that host must be a Cisco IOS router with IGMP v3lite or URD enabled.
Note
This limitation does not apply to an application using the HSIL if the host has kernel support
for IGMPv3, because then the HSIL will use the kernel IGMPv3 instead of IGMP v3lite.
IPC-465
receivers will receive all (S, G) channel traffic (and filter out the unwanted traffic on input). Because of
the ability of SSM to reuse the group addresses in the SSM range for many independent applications,
this situation can lead to less than expected traffic filtering in a switched network. For this reason it is
important to follow the recommendations set forth in the IETF drafts for SSM to use random IP
addresses out of the SSM range for an application to minimize the chance for reuse of a single address
within the SSM range between different applications. For example, an application service providing a
set of television channels should, even with SSM, use a different group for each television (S, G)
channel. This setup will guarantee that multiple receivers to different channels within the same
application service will never experience traffic aliasing in networks that include Layer 2 switches.
HSIL Limitations
As explained in the IGMP v3lite Host Signalling section, the HSIL tries to determine if the host
operating system supports IGMPv3. This check is made so that a single application can be used both on
hosts where the operating system has been upgraded to IGMPv3 and on hosts where the operating system
only supports IGMPv1 or IGMPv2. Checking for the availability of IGMPv3 in the host operating system
can only be made by the HSIL if IGMPv3 kernel support exists for at least one version of this operating
system at the time when the HSIL was provided. If such an IGMPv3 kernel implementation has become
available only recently, then users may need to also upgrade the HSIL on their hosts so that applications
IPC-466
compiled with the HSIL will then dynamically bind to the newest version of the HSIL, which should
support the check for IGMPv3 in the operating system kernel. Upgrading the HSIL can be done
independently of upgrading the application itself.
Configuring SSM
To configure SSM, use the following commands beginning in global configuration mode:
Command
Purpose
Step 1
Step 2
Step 3
Step 4
or
or
or
or
Router(config-if)# ip urd
Monitoring SSM
To monitor SSM, use the following commands in privileged EXEC mode, as needed:
Command
Purpose
IPC-467
IPC-468
IPC-469
IPC-470
Bidir-PIM Overview
Bidir-PIM is a variant of the PIM suite of routing protocols for IP multicast. In PIM, packet traffic for a
multicast group is routed according to the rules of the mode configured for that multicast group. The
Cisco IOS implementation of PIM supports three modes for a multicast group:
Bidirectional mode
Dense mode
Sparse mode
A router can simultaneously support all three modes or any combination of them for different multicast
groups. In bidirectional mode, traffic is routed only along a bidirectional shared tree that is rooted at the
rendezvous point (RP) for the group. In bidir-PIM, the IP address of the RP acts as the key to having all
routers establish a loop-free spanning tree topology rooted in that IP address. This IP address need not
be a router, but can be any unassigned IP address on a network that is reachable throughout the PIM
domain. This technique is the preferred configuration method for establishing a redundant RP
configuration for bidir-PIM.
IPC-471
Membership to a bidirectional group is signalled via explicit join messages. Traffic from sources is
unconditionally sent up the shared tree toward the RP and passed down the tree toward the receivers on
each branch of the tree.
Bidir-PIM is designed to be used for many-to-many applications within individual PIM domains.
Multicast groups in bidirectional mode can scale to an arbitrary number of sources without incurring
overhead due to the number of sources.
Bidir-PIM is derived from the mechanisms of PIM-SM and shares many shortest-path tree (SPT)
operations. Bidir-PIM also has unconditional forwarding of source traffic toward the RP upstream on the
shared tree, but no registering process for sources as in PIM-SM. These modifications are necessary and
sufficient to allow forwarding of traffic in all routers solely based on the (*, G) multicast routing entries.
This feature eliminates any source-specific state and allows scaling capability to an arbitrary number of
sources. Figure 76 and Figure 77 show the difference in state created per router for a unidirectional
shared tree and source tree versus a bidirectional shared tree.
Figure 76
PIM source
register message
Multicast
data flow
RP
RP
(*, G)
(S, G)
(*, G)
(*, G)
(*, G)
(*, G)
(*, G)
(S, G)
Receiver
Receiver
ister
Reg
(*, G)
Source
IPC-472
Receiver
Source
33355
Receiver
(*, G)
(S, G)
(*, G)
(S, G)
(*, G)
Figure 77
RP
(*, G)
(*, G)
(*, G)
Receiver
Receiver
Source
33354
(*, G)
(*, G)
When packets are forwarded downstream from the RP toward receivers, there are no fundamental
differences between bidir-PIM and PIM-SM. Bidir-PIM deviates substantially from PIM-SM when
passing traffic from sources upstream toward the RP.
PIM-SM cannot forward traffic in the upstream direction of a tree, because it only accepts traffic from
one Reverse Path Forwarding (RPF) interface. This interface (for the shared tree) points toward the RP,
therefore allowing only downstream traffic flow. In this case, upstream traffic is first encapsulated into
unicast register messages, which are passed from the designated router (DR) of the source toward the
RP. In a second step, the RP joins an SPT that is rooted at the source. Therefore, in PIM-SM, traffic from
sources traveling toward the RP does not flow upstream in the shared tree, but downstream along the SPT
of the source until it reaches the RP. From the RP, traffic flows along the shared tree toward all receivers.
In bidir-PIM, the packet forwarding rules have been improved over PIM-SM, allowing traffic to be
passed up the shared tree toward the RP. To avoid multicast packet looping, bidir-PIM introduces a new
mechanism called designated forwarder (DF) election, which establishes a loop-free SPT rooted at the
RP.
DF Election
On every network segment and point-to-point link, all PIM routers participate in a procedure called DF
election. The procedure selects one router as the DF for every RP of bidirectional groups. This router is
responsible for forwarding multicast packets received on that network upstream to the RP.
The DF election is based on unicast routing metrics and uses the same tie-break rules employed by PIM
assert processes. The router with the most preferred unicast routing metric to the RP becomes the DF.
Use of this method ensures that only one copy of every packet will be sent to the RP, even if there are
parallel equal cost paths to the RP.
A DF is selected for every RP of bidirectional groups. As a result, multiple routers may be elected as DF
on any network segment, one for each RP. In addition, any particular router may be elected as DF on
more than one interface.
IPC-473
Packet Forwarding
A router only creates (*, G) entries for bidirectional groups. The olist of a (*, G) entry includes all the
interfaces for which the router has been elected DF and that have received either an IGMP or PIM join
message. If a router is located on a sender-only branch, it will also create (*, G) state, but the olist will
not include any interfaces.
If a packet is received from the RPF interface toward the RP, the packet is forwarded downstream
according to the olist of the (*, G) entry. Otherwise, only the router that is the DF for the receiving
interface forwards the packet upstream toward the RP; all other routers must discard the packet.
Prerequisites
Before configuring bidir-PIM, ensure that the feature is supported on all IP multicast-enabled routers in
that domain. It is not possible to enable groups for bidir-PIM operation in a partially upgraded network.
Note
Packet loops will occur immediately in networks that are only partially upgraded to support
bidir-PIM.
IPC-474
Configuring Bidir-PIM
Most of the configuration requirements for bidir-PIM are the same as those for configuring PIM-SM. You
need not enable or disable an interface for carrying traffic for multicast groups in bidirectional mode. Instead,
you configure which multicast groups you want to operate in bidirectional mode. Similar to PIM-SM, this
configuration can be done via Auto-RP, static RP configurations, or the PIM Version 2 bootstrap router
(PIMv2 BSR) mechanism.
To enable bidir-PIM, use the following command in global configuration mode:
Command
Purpose
To configure bidir-PIM, use the following commands in global configuration mode, depending on which
method you use to distribute group-to-RP mappings:
Command
Purpose
See the Bidir-PIM Configuration Example section later in this chapter for an example of how to
configure bidir-PIM.
To examine RP-to-group mappings and determine the bidirectional groups advertised by an RP, use
the show ip pim rp mapping command in EXEC mode.
To display the IP multicast routing table information for groups operating in bidirectional mode,
sparse mode, and dense mode, use the show ip mroute command in EXEC mode.
To display information about the elected DF for each RP of an interface and the metric associated
with the DF, use the show ip pim interface df command in EXEC mode.
IPC-475
Purpose
IPC-476
IPC-477
and the address or the originator ID of the RP, if configured. If the peer is an RP and has a member of
that multicast group, the data packet is decapsulated and forwarded down the shared-tree in the remote
domain.
The PIM designated router (DR) directly connected to the source sends the data encapsulated in a PIM
register message to the RP in the domain.
Note
The DR sends the encapsulated data to the RP only once per source, when the source goes active. If
the source times out, this process happens again when it goes active again. This situation is different
from the periodic SA message that contains all sources that are registered to the originating RP. These
messages have no data.
Each MSDP peer receives and forwards the SA message away from the originating RP to achieve
peer-RPF flooding. The concept of peer-RPF flooding is with respect to forwarding SA messages. The
router examines the BGP or MBGP routing table to determine which peer is the next hop toward the
originating RP of the SA message. Such a peer is called an RPF peer (Reverse Path Forwarding peer).
The router forwards the message to all MSDP peers other than the RPF peer.
If the MSDP peer receives the same SA message from a non-RPF peer toward the originating RP, it drops
the message. Otherwise, it forwards the message on to all its MSDP peers.
When an RP for a domain receives an SA message from an MSDP peer, it determines if it has any group
members interested in the group the SA message describes. If the (*, G) entry exists with a nonempty
outgoing interface list, the domain is interested in the group, and the RP triggers an (S, G) join toward
the source.
Figure 78
MSDP peer
RP + MSDP peer
MSDP SA
MSDP SA
TCP connection
BGP
Multicast
(S, G) Join
PIM
DR
Source
IPC-478
Router B
MSDP peer
Receiver
17529
Register
M
SD
SA
Benefits
MSDP has the following benefits:
It breaks up the shared multicast distribution tree. You can make the shared tree local to your
domain. Your local members join the local tree, and join messages for the shared tree never need to
leave your domain.
PIM-SM domains can rely on their own RPs only, thus decreasing reliance on RPs in another
domain. This increases security because you can prevent your sources from being known outside
your domain.
Domains with only receivers can receive data without globally advertising group membership.
Global source multicast routing table state is not required, thus saving on memory.
Prerequisites
Before configuring MSDP, the addresses of all MSDP peers must be known in BGP or MBGP. If that
does not occur, you must configure MSDP default peering when you configure MSDP.
See the MSDP Configuration Examples section later in this chapter for configuration examples.
IPC-479
Note
The router you specify by Domain Naming System (DNS) name or IP address as an MSDP peer is
probably a Border Gateway Protocol (BGP) neighbor. If it is not, see the section Configuring a
Default MSDP Peer later in this document.
To configure an MSDP peer, use the following commands in global configuration mode as needed. The
second command is optional.
Command
Purpose
Caching SA State
By default, the router does not cache source/group pairs from received SA messages. Once the router
forwards the MSDP SA information, it does not store it in memory. Therefore, if a member joins a group
soon after an SA message is received by the local RP, that member will need to wait until the next SA
message to hear about the source. This delay is known as join latency.
If you want to sacrifice some memory in exchange for reducing the latency of the source information,
you can configure the router to cache SA messages. To have the router cache source/group pairs, use the
following command in global configuration mode:
Command
Purpose
An alternative to caching the SA state is to request source information from a peer, which is described
in the following section, Requesting Source Information from an MSDP Peer. If you cache the
information, you need not trigger a request for it.
IPC-480
Purpose
Repeat the preceding command for each MSDP peer that you want to supply you with SA messages.
An alternative to requesting source information is to cache the SA state, which is described in the section
Caching SA State earlier in this chapter. If you cache the information, you need not trigger a request
for it.
Whom you will provide source information to (based on knowing who is asking you for information)
To control which sources you will advertise, see the following section, Redistributing Sources. To
control whom you will provide source information to, see the section Controlling Source Information
That Your Router Forwards later in this chapter.
Redistributing Sources
SA messages are originated on RPs to which sources have registered. By default, any source that
registers with an RP will be advertised. The A flag is set in the RP when a source is registered. This
flag indicates that the source will be advertised in an SA unless it is filtered with the following command.
IPC-481
To further restrict which registered sources are advertised, use the following command in global
configuration mode. The access list or autonomous system path access list determines which (S, G) pairs
are advertised.
Command
Purpose
Advertises (S, G) pairs that pass the access list or route map
to other domains.
Note
The ip msdp redistribute global configuration command could also be used to advertise sources that
are known to the RP but not registered. However, we strongly recommend that you NOT originate
advertisements for sources that have not registered with the RP.
Purpose
IPC-482
To apply an MSDP filter, use the following commands in global configuration mode as needed:
Command
Purpose
Purpose
To apply a filter, use the following commands in global configuration mode as needed:
Command
Purpose
IPC-483
Router C
Default MSDP peer
Router A
10.1.1.1
Router B
17528
SA
SA
SA
Router B advertises SAs to Router A and Router C, but uses only Router A or Router C to accept SA
messages. If Router A is first in the configuration file, it will be used if it is up and running. If Router A
is not running, then and only then will Router B accept SAs from Router C. This is the behavior without
a prefix list.
IPC-484
If you specify a prefix list, the peer will be a default peer only for the prefixes in the list. You can have
multiple active default peers when you have a prefix list associated with each. When you do not have
any prefix lists, you can configure multiple default peers, but only the first one is the active default peer
as long as the router has connectivity to this peer and the peer is alive. If the first configured peer goes
down or the connectivity to this peer goes down, the second configured peer becomes the active default,
and so on.
To specify a default MSDP peer, use the following command in global configuration mode:
Command
Purpose
See the section Default MSDP Peer later in this chapter for a sample configuration.
Purpose
Purpose
IPC-485
Purpose
Note
The ip msdp border command is not recommended. It is better to configure the border router in the
sparse mode domain to proxy-register sources in the dense mode domain to the RP of the sparse mode
domain and have the sparse mode domain use standard MSDP procedures to advertise these sources.
If you configure a logical RP on multiple routers in an MSDP mesh group. For an example of a
logical RP, see the section Logical RP later in this document.
If you have a router that borders a PIM sparse mode domain and a dense mode domain. If a router
borders a dense mode domain for a site, and sparse mode is being used externally, you might want
dense mode sources to be known to the outside world. Because this router is not an RP, it would not
have an RP address to use in an SA message. Therefore, this command provides the RP address by
specifying the address of the interface.
To allow an MSDP speaker that originates an SA message to use the IP address of its interface as the RP
address in the SA message, use the following command in global configuration mode:
Command
Purpose
IPC-486
Purpose
To clear MSDP connections, statistics, or SA cache entries, use the following commands in EXEC
modeas needed:
Command
Purpose
Clears the SA cache entries for all entries, all sources for a
specific group, or all entries for a specific source/group pair.
To enable Simple Network Management Protocol (SNMP) monitoring of MSDP, use the following
commands in global configuration mode:
Command
Purpose
Step 1
Step 2
For more information about network monitoring using SNMP, refer to the Configuring Simple Network
Management Protocol (SNMP) chapter in the Cisco IOS Configuration Fundamentals Configuration
Guide.
IPC-487
Logical RP
Router C Configuration
ip msdp default-peer 10.1.1.1 prefix-list site-a ge 32
ip prefix-list site-b permit 10.0.0.0/8
Logical RP
The following example configures a logical RP using an MSDP mesh group. The four routers that are
logical RPs are RouterA, RouterB, RouterC, and RouterD. RouterE is an MSDP border router that is not
an RP. Figure 80 illustrates the logical RP environment in this example; the configurations for routers
A, B, and E follow the figure.
It is important to note the use of the loopback interface and how those host routes are advertised in Open
Shortest Path First (OSPF). It is also important to carefully choose the OSPF router ID loopback so the
ID does not use the logical RP address.
In this example, all the logical RPs are on the same LAN, but this situation is not typical. The host route
for the RP address is advertised throughout the domain and each PIM designated router (DR) in the
domain joins to the closest RP. The RPs share (S, G) information with each other by sending SA
messages. Each logical RP must use a separate originator ID.
Note
There are two MSDP mesh groups on RouterA. The routes for the loopback interfaces are in OSPF.
Loopback 0 is the Router ID and is used as the connect source/update source for MBGP/MSDP.
Loopback 10 is the same on all routers in the example.
All networks are 171.69.0.0. The RP address is 10.10.10.10 on Loopback 10 on all RPs. BGP
connections are 192.168.1.x on Loopback 0. Loopback 0 is put into BGP with network 192.168.1.3 mask
255.255.255.255 NLRI unicast multicast.
IPC-488
Figure 80
Domain 2
Router F
Domain 1
192.169.1.x
Router E .6
Loopback 0
Receiver
192.168.1.6
Router B
Loopback 10
Loopback 0
10.10.10.10
192.168.1.2
e1/2/.2
Router C
Loopback 10
10.10.10.10
Loopback 0
10.10.10.10
171.69.2.x
e3/0/2/.4
Loopback 0
192.168.1.4
192.168.1.3
e3/.3
Router D
Loopback 10
10.10.10.10
(Host)
Sender
e3/0/1/.5
Loopback 0
192.168.1.5
30353
Router A
Loopback 10
RouterA Configuration
!
hostname RouterA
!
ip routing
!
ip subnet-zero
ip multicast-routing
!
!
interface Loopback0
ip address 192.168.1.2 255.255.255.255
no shutdown
!
interface Loopback10
ip address 10.10.10.10 255.255.255.255
no ip directed-broadcast
ip pim sparse-dense-mode
no shutdown
!
interface Ethernet1/2
description LANethernet2
IPC-489
RouterB Configuration
!
hostname RouterB
!
ip routing
!
ip multicast-routing
ip dvmrp route-limit 20000
!
interface Loopback0
ip address 192.168.1.3 255.255.255.255
IPC-490
no shutdown
!
interface Loopback10
ip address 10.10.10.10 255.255.255.255
ip pim sparse-dense-mode
no shutdown
!
interface Ethernet2
description LANethernet 0
ip address 171.69.0.3 255.255.255.0
ip pim sparse-dense-mode
no shutdown
!
interface Ethernet3
description LANethernet 2
ip address 171.69.2.3 255.255.255.0
ip pim sparse-dense
!
router ospf 10
network 171.69.0.0 0.0.255.255 area 0
network 10.10.10.10 0.0.0.0 area 0
network 192.168.1.3 0.0.0.0 area 0
!
router bgp 1
no synchronization
network 171.69.0.0 nlri unicast multicast
network 192.168.1.3 mask 255.255.255.255 nlri unicast multicast
neighbor 192.168.1.2 remote-as 1 nlri unicast multicast
neighbor description routerA
neighbor 192.168.1.2 update-source loopback0
neighbor 192.168.1.4 remote-as 1 nlri unicast multicast
neighbor description routerC
neighbor 192.168.1.4 update-source loopback0
neighbor 192.168.1.5 remote-as 1 nlri unicast multicast
neighbor description routerD
neighbor 192.168.1.5 update-source loopback0
neighbor 192.168.1.5 soft-recon in
!
ip msdp peer 192.168.1.2 connect-source loopback 0
ip msdp peer 192.168.1.5 connect-source loopback 0
ip msdp peer 192.168.1.4 connect-source loopback 0
ip msdp mesh-group inside-test 192.168.1.2
ip msdp mesh-group inside-test 192.168.1.4
ip msdp mesh-group inside-test 192.168.1.5
ip msdp cache-sa-state
ip msdp originator-id loopback0
!
ip classless
ip pim send-rp-disc scope 10
ip pim send-rp-anno loopback 10 scope 10
!
RouterE Configuration
!
hostname RouterE
!
ip routing
!
ip subnet-zero
ip routing
ip multicast-routing
ip dvmrp route-limit 20000
!
IPC-491
interface Loopback0
ip address 192.168.1.6 255.255.255.255
no shutdown
!
interface Ethernet2
description LANethernet 3
ip address 171.69.3.6 255.255.255.0
ip pim sparse-dense-mode
no shutdown
!
interface Ethernet5
description LANethernet 6
ip address 192.169.1.6 255.255.255.0
ip pim sparse-dense-mode
ip multicast boundary 20
no shutdown
!
router ospf 10
network 171.69.0.0 0.0.255.255 area 0
network 192.168.1.6 0.0.0.0 area 0
default-information originate metric-type 1
!
router bgp 1
no synchronization
network 171.69.0.0 nlri unicast multicast
network 192.168.1.6 mask 255.255.255.255 nlri unicast multicast
network 192.168.1.0
neighbor 192.168.1.2 remote-as 1 nlri unicast multicast
neighbor 192.168.1.2 update-source Loopback0
neighbor 192.168.1.2 next-hop-self
neighbor 192.168.1.2 route-map 2-intern out
neighbor 192.169.1.7 remote-as 2 nlri unicast multicast
neighbor 192.169.1.7 route-map 2-extern out
neighbor 192.169.1.7 default-originate
!
ip classless
ip msdp peer 192.168.1.2 connect-source Loopback0
ip msdp peer 192.169.1.7
ip msdp mesh-group outside-test 192.168.1.2
ip msdp cache-sa-state
ip msdp originator-id Loopback0
!
access-list 1 permit 192.168.1.0
access-list 1 deny 192.168.1.0 0.0.0.255
access-list 1 permit any
!
route-map 2-extern permit 10
match ip address 1
!
route-map 2-intern deny 10
match ip address 1
!
IPC-492
Note
Support for the PGM Host feature has been removed. Use of this feature is not recommended.
This chapter describes the PGM Host and Router Assist feature. PGM Host and Router Assist enables
Cisco routers to support multicast applications that operate at the PGM transport layer and the PGM
network layer, respectively.
The PGM Reliable Transport Protocol itself is implemented on the hosts of the customer. For
information on PGM Reliable Transport Protocol, refer to the Internet Engineering Task Force (IETF)
protocol specification draft named PGM Reliable Transport Protocol Specification.
For a complete description of the PGM Host and Router Assist commands in this chapter, refer to the
PGM Host and Router Assist Commands chapter of the Cisco IOS IP Command Reference, Volume 3
of 3: Multicast. To locate documentation of other commands that appear in this chapter, use the
command reference master index, or search online.
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the Identifying Supported Platforms
section in the Using Cisco IOS Software chapter.
PGM Overview
Pragmatic General Multicast (PGM) is a reliable multicast transport protocol for multicast applications
that require reliable, ordered, duplicate-free multicast data delivery from multiple sources to multiple
receivers. PGM guarantees that a receiver in a multicast group either receives all data packets from
transmissions and retransmissions, or can detect unrecoverable data packet loss. PGM is intended as a
solution for multicast applications with basic reliability requirements. PGM has two main parts: a host
element (also referred to as the transport layer of the PGM protocol) and a network element (also referred
to as the network layer of the PGM protocol).
The transport layer of the PGM protocol has two main parts: a source part and a receiver part. The
transport layer defines how multicast applications send and receive reliable, ordered, duplicate-free
multicast data from multiple sources to multiple receivers. PGM Host is the Cisco implementation of the
transport layer of the PGM protocol.
The network layer of the PGM protocol defines how intermediate network devices (such as routers and
switches) handle PGM transport data as the data flows through a network. PGM Router Assist is the
Cisco implementation of the network layer of the PGM protocol.
IPC-493
Note
PGM contains an element that assists routers and switches in handling PGM transport data as it flows
through a network. Unlike the Router Assist element, the Host element does not have a current
practical application.
PGM is network-layer independent; PGM Host and Router Assist in the Cisco IOS software support
PGM over IP. Both PGM Host and Router Assist use a unique transport session identifier (TSI) that
identifies each individual PGM session.
Figure 81 shows a simple network topology using the PGM Host and Router Assist feature.
Network Topology Using PGM Host and Router Assist
Source
Router A
Router C
Receiver
PGM Host
Multicast
application
IP multicast
PGM Host
PGM Host
PGM Router
Assist
IP multicast
PGM Host
IP multicast
IP multicast
Multicast
application
Router B
Receiver
PGM Router
Assist
Multicast
application
IP multicast
PGM Host
IP multicast
34212
Figure 81
When the router is functioning as a network element (PGM Router Assist is configured) and PGM Host
is configured (Router A in Figure 81), the router can process received PGM packets as a virtual PGM
Host, originate PGM packets and serve as its own first hop PGM network element, and forward received
PGM packets.
When the router is functioning as a network element and PGM Host is not configured (Router B in
Figure 81), the router forwards received PGM packets as specified by PGM Router Assist parameters.
When the router is not functioning as a network element and PGM Host is configured (Router C in
Figure 81), the router can receive and forward PGM packets on any router interface simultaneously as
specified by PGM Host feature parameters. Although this configuration is supported, it is not
recommended in a PGM network because PGM Host works optimally on routers that have PGM Router
Assist configured.
IPC-494
Support for the PGM Host feature has been removed. Use of this feature is not recommended.
To configure PGM Host, perform the tasks described in the following sections. The tasks in the first
section are required; the tasks in the remaining section are optional.
See the end of this chapter for the section PGM Host and Router Assist Configuration Examples.
Prerequisites
Before you configure PGM Host, ensure that the following tasks are performed:
PGM Router Assist is configured on intermediate routers and switches connected to your network.
IP multicast routing is configured on all devices connected to your network that will be processing
IP multicast traffic, including the router on which you are configuring PGM Host.
Protocol Independent Multicast (PIM) or another IP multicast routing protocol is configured on each
PGM interface in your network that will send and receive IP multicast packets.
A PGM multicast virtual host interface (vif) is configured on the router (if you do not plan to source
PGM packets through a physical interface installed on the router). The vif enables the router to send
and receive IP multicast packets on several different interfaces at once, as dictated by the multicast
routing tables on the router.
Support for the PGM Host feature has been removed. Use of this feature is not recommended.
When enabling PGM Host on your router, you must source PGM packets through a vif or out a physical
interface installed in the router.
Sourcing PGM packets through a vif enables the router to send and receive PGM packets through any
router interface. The vif also serves as the interface to the multicast applications that reside at the PGM
network layer.
Sourcing IP multicast traffic out a specific physical or logical interface type (for example, an Ethernet,
serial, or loopback interface) configures the router to send PGM packets out that interface only and to
receive packets on any router interface.
IPC-495
Purpose
Enables PGM Host (both the source and receiver parts of the PGM
network layer) globally on the router and configures the router to
source PGM packets through a vif.
Note
See the PGM Host with a Virtual Interface Example section later in this chapter for an example of
enabling PGM Host with a virtual interface.
Purpose
Step 1
Enables PGM Host (both the source and receiver part of the PGM
network layer) globally on the router.
Step 2
See the PGM Host with a Physical Interface Example section later in this chapter for an example of
enabling PGM Host with a physical interface.
Support for the PGM Host feature has been removed. Use of this feature is not recommended.
To verify that PGM Host is configured correctly on your router, use the following show commands in
EXEC mode:
Use the show ip pgm host sessions command to display information about current open PGM
transport sessions:
Router> show ip pgm host sessions
Idx
1
GSI
000000000000
IPC-496
Source Port
0
Type
State
receiver listen
Dest Port
48059
Mcast Address
224.3.3.3
9CD72EF099FA
1025
source
conn
48059
224.1.1.1
Specifying a traffic session number or a multicast IP address with the show ip pgm host sessions
command displays information specific to that PGM transport session:
Router> show ip pgm host sessions 2
Idx
2
GSI
9CD72EF099FA
Source Port
1025
Type
source
State
conn
Dest Port
48059
Mcast Address
224.1.1.1
0
0
0
0
0
0
0
6
0
0
0
0
0
0
Use the show ip pgm host traffic command to display traffic statistics at the PGM transport layer:
Router> show ip pgm host traffic
General Statistics :
Sessions in
out
Bytes
in
out
0
0
0
0
Source Statistics :
ODATA packets sent
bytes sent
RDATA packets sent
bytes sent
Total bytes sent
ADPUs sent
APDU transmit memory errors
SPM
packets sent
NCF
packets sent
NAK
packets received
packets received in error
0
0
0
0
0
0
0
0
0
0
0
Receiver Statistics :
ODATA packets received
packets received in error
valid bytes received
RDATA packets received
0
0
0
0
IPC-497
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Prerequisites
Before you enable PGM Router Assist, ensure that the following tasks are completed:
IP multicast is configured on the router upon which you will enable PGM Router Assist.
IPC-498
Purpose
Note
See the PGM Router Assist with a Virtual Interface Example section later in this chapter for an
example of enabling PGM Router Assist with a virtual interface.
Purpose
See the PGM Router Assist with a Physical Interface Example section later in this chapter for an
example of enabling PGM Router Assist with a physical interface.
Support for the PGM Host feature has been removed. Use of this feature is not recommended.
To reset PGM Host connections, use the following command in privileged EXEC mode:
Command
Purpose
IPC-499
To enable PGM Host debugging, use the following command in privileged EXEC mode:
Command
Purpose
To display PGM Host information, use the following commands in user EXEC mode, as needed:
Command
Purpose
Purpose
To display PGM information, use the following command in privileged EXEC mode:
Command
Purpose
Support for the PGM Host feature has been removed. Use of this feature is not recommended.
This section provides the following configuration examples:
IPC-500
Note
For clarity, extraneous information has been omitted from the examples in the following sections.
Support for the PGM Host feature has been removed. Use of this feature is not recommended.
The following example shows PGM Host (both the source and receiver part of the PGM network layer)
enabled globally on the router and PGM packets sourced through virtual host interface 1 (vif1). PGM
packets can be sent and received on the vif and on the two physical interfaces (ethernet1 and ethernet2)
simultaneously.
ip multicast-routing
ip routing
ip pgm host
interface vif1
ip address 10.0.0.1 255.255.255.0
ip pim dense-mode
no ip directed-broadcast
no ip mroute-cache
interface ethernet1
ip address 10.1.0.1 255.255.255.0
ip pim dense-mode
no ip directed-broadcast
no ip mroute-cache
media-type 10BaseT
interface ethernet2
ip address 10.2.0.1 255.255.255.0
ip pim dense-mode
no ip directed-broadcast
no ip mroute-cache
media-type 10BaseT
Support for the PGM Host feature has been removed. Use of this feature is not recommended.
The following example shows PGM Host (both the source and receiver part of the PGM network layer)
enabled globally on the router and PGM packets sourced out of physical Ethernet interface 1. PGM
packets can be received on physical Ethernet interfaces 1 and 2 simultaneously.
ip
ip
ip
ip
ip
multicast-routing
routing
pgm host
pgm host source-interface ethernet1
pgm host source-interface ethernet2
interface ethernet1
ip address 10.1.0.1 255.255.255.0
ip pim dense-mode
IPC-501
no ip directed-broadcast
no ip mroute-cache
media-type 10BaseT
interface ethernet2
ip address 10.2.0.1 255.255.255.0
ip pim dense-mode
no ip directed-broadcast
no ip mroute-cache
media-type 10BaseT
IPC-502
interface ethernet2
ip address 10.2.0.1 255.255.255.0
ip pim dense-mode
ip pgm router
no ip directed-broadcast
no ip mroute-cache
media-type 10BaseT
IPC-503
IPC-504
UDLR Overview
Both unicast and multicast routing protocols forward data on interfaces from which they have received
routing control information. This model works only on bidirectional links for most existing routing
protocols. However, some networks use broadcast satellite links, which are unidirectional. For networks
that use broadcast satellite links, accomplishing two-way communication over broadcast satellite links
presents a problem in terms of discovering and sharing knowledge of a network topology.
Specifically, in unicast routing, when a router receives an update message on an interface for a prefix, it
forwards data for destinations that match that prefix out that same interface. This is the case in distance
vector routing protocols. Similarly, in multicast routing, when a router receives a join message for a
multicast group on an interface, it forwards copies of data destined for that group out that same interface.
Based on these principles, existing unicast and multicast routing protocols cannot be supported over
UDLs. UDLR is designed to enable the operation of routing protocols over UDLs without changing the
routing protocols themselves.
IPC-505
UDLR enables a router to emulate the behavior of a bidirectional link for IP operations over UDLs.
UDLR has three complementary mechanisms for bidirectional link emulation, which are described in the
following sections:
UDLR Tunnel
IGMP UDLR
IGMP Proxy
You can use each mechanism independently or in conjunction with the others.
UDLR Tunnel
The UDLR tunnel mechanism enables IP and its associated unicast and multicast routing protocols to
treat the UDL as being logically bidirectional. A packet that is destined on a receive-only interface is
picked up by the UDLR tunnel mechanism and sent to an upstream router using a generic routing
encapsulation (GRE) tunnel. The control traffic flows in the opposite direction as the user data flow.
When the upstream router receives this packet, the UDLR tunnel mechanism makes it appear that the
packet was received on a send-only interface on the UDL.
The purpose of the unidirectional GRE tunnel is to move control packets from a downstream node to an
upstream node. The one-way tunnel is mapped to a one-way interface (that goes in the opposite
direction). Mapping is performed at the link layer, so the one-way interface appears bidirectional. When
the upstream node receives packets over the tunnel, it must make the upper-layer protocols act as if the
packets were received on the send-capable UDL.
UDLR tunnel supports the following features:
Note
Address Resolution Protocol (ARP) and Next Hop Resolution Protocol (NHRP) over a UDL
Emulation of bidirectional links for all IP traffic (as opposed to only control-only
broadcast/multicast traffic)
A UDL router can have many routing peers, for example, routers interconnected via a broadcast
satellite link. As with bidirectional links, the number of peer routers a router has must be kept
relatively small to limit the volume of routing updates that must be processed. For multicast
operation, we recommend using the IGMP UDLR mechanism when interconnecting more than 20
routers.
IGMP UDLR
Another mechanism that enables support of multicast routing protocols over UDLs is using IP multicast
routing with IGMP, which has been enhanced to accommodate UDLR. This mechanism scales well for
many broadcast satellite links.
With IGMP UDLR, an upstream router sends periodic queries for members on the UDL. The queries
include a unicast address of the router that is not the unicast address of the unidirectional interface. The
downstream routers forward IGMP reports received from directly connected members (on interfaces
configured to helper forward IGMP reports) to the upstream router. The upstream router adds the
unidirectional interface to the (*, G) outgoing interface list, thereby enabling multicast packets to be
forwarded down the UDL.
IPC-506
In a large enterprise network, it is not possible to be able to receive IP multicast traffic via satellite and
forward the traffic throughout the network. This limitation exists because receiving hosts must be
directly connected to the downstream router. However, you can use the IGMP Proxy mechanism to
overcome this limitation. See the IGMP Proxy section later in this chapter for more information on
this mechanism.
For information on IGMP, refer to the Configuring IP Multicast Routing chapter in the Cisco IOS IP
Configuration Guide.
IGMP Proxy
The IGMP Proxy mechanism enables hosts that are not directly connected to a downstream router to join
a multicast group sourced from an upstream network. Figure 82 illustrates this mechanism.
Figure 82
Unidirectional
tunnel
Router A
Internet
Unidirectional link
Router B
RP
Local net
Router C
User 1
46457
LAN B
IPC-507
2.
Router C sends a Protocol Independent Multicast (PIM) join message hop-by-hop to the rendezvous
point (Router B).
3.
Router B receives the PIM join message and adds a forwarding entry for group G on LAN B.
4.
Router B periodically checks its mroute table, and forwards an IGMP report for each multicast group
in which it is the reporter.
5.
In an enterprise network, for example, it is desirable to be able to receive IP multicast traffic via satellite
and forward the traffic throughout the network. With IGMP UDLR alone, this scenario is not possible
because receiving hosts must be directly connected to the downstream router. IGMP Proxy overcomes
this limitation by creating an IGMP report for (*, G) entries in the multicast forwarding table. To make
this scenario functional, you must configure PIM sparse mode (PIM-SM) in the network, make the UDL
downstream router the rendezvous point (RP) for a select set of addresses, and configure mroute proxy
on interfaces leading to PIM-enabled networks with potential members. When the UDL downstream
router has a (*, G) forwarding entry for an mroute proxy interface, an IGMP report for the group is
created and sent to a loopback interface (IGMP Proxy interface). The loopback interface then uses the
same mechanism as IGMP UDLR to forward reports upstream.
Note
Because PIM messages are not forwarded upstream, each downstream network and the upstream
network has a separate domain.
Prerequisite
Before configuring UDLR tunnel, ensure that all routers on the UDL have the same subnet address. If
all routers on the UDL cannot have the same subnet address, the upstream router must be configured with
secondary addresses to match all the subnets that the downstream routers are attached to.
You need not assign an IP address to the tunnel (you need not use the ip address or ip unnumbered
interface configuration commands).
IPC-508
On the upstream router, where the UDL can only send, you must configure the tunnel to receive.
When packets are received over the tunnel, the upper-layer protocols treat the packet as though it is
received over the unidirectional, send-only interface.
On the downstream router, where the UDL can only receive, you must configure the tunnel to send.
When packets are sent by upper-layer protocols over the interface, they will be redirected and sent
over this GRE tunnel.
To configure a UDLR tunnel on the upstream router, use the following commands beginning in global
configuration mode:
Command
Purpose
Step 1
Step 2
Step 3
Configures the UDLR tunnel. Use the same type and number
values as the unidirectional send-only interface type and number
values specified with the interface type number command.
Step 4
Step 5
To configure a UDLR tunnel on the downstream router, use the following commands beginning in global
configuration mode:
Command
Purpose
Step 1
Step 2
Step 3
Configures the UDLR tunnel. Use the same type and number
values as the unidirectional receive-only interface type and
number values specified with the interface type number
command.
Step 4
Step 5
Step 6
See the UDLR Tunnel Example section later in this chapter for an example of how to configure a
UDLR tunnel. See the Integrated UDLR Tunnel, IGMP UDLR, and IGMP Proxy Example section
later in this chapter for an example of how to set up all three UDLR mechanisms in the same
configuration.
IPC-509
Prerequisites
Before configuring IGMP UDLR, ensure that the following conditions exist:
All routers on the UDL have the same subnet address. If all routers on the UDL cannot have the same
subnet address, the upstream router must be configured with secondary addresses to match all the
subnets that the downstream routers are attached to.
You need not specify whether the direction is sending or receiving; IGMP learns the direction by the
nature of the physical connection.
When the downstream router receives an IGMP report from a host, the router helpers the report to
the IGMP querier associated with the UDL interface identified in the ip igmp helper-address
interface configuration command.
To configure the IGMP UDL on the upstream router, use the following command in interface
configuration mode:
Command
Purpose
To configure the IGMP UDL on the downstream router, use the following commands in interface
configuration mode:
Command
Purpose
Step 1
Router(config-if)# ip igmp
unidirectional-link
Step 2
Router(config-if)# ip igmp
helper-address udl type number
IPC-510
See the IGMP UDLR Example section later in this chapter for an example of how to configure IGMP
UDLR. See the Integrated UDLR Tunnel, IGMP UDLR, and IGMP Proxy Example section later in
this chapter for an example of how to set up all three UDLR mechanisms in the same configuration.
Purpose
Purpose
IPC-511
Prerequisites
Before configuring IGMP Proxy, ensure that the following conditions exist:
All routers on the UDL have the same subnet address. If all routers on the UDL cannot have the same
subnet address; the upstream router must be configured with secondary addresses to match all the
subnets that the downstream routers are attached to.
PIM-SM is configured in the network, the UDL downstream router is the RP for a select set of
addresses, and mroute proxy is configured on interfaces leading to PIM-enabled networks with
potential members.
Purpose
Step 1
Step 2
See the IGMP Proxy Example section later in this chapter for an example of how to configure IGMP
Proxy. See the Integrated UDLR Tunnel, IGMP UDLR, and IGMP Proxy Example section later in this
chapter for an example of how to set up all three UDLR mechanisms in the same configuration.
IPC-512
Reporter Expires
00:02:59
00:02:40
Router A
Data
Serial 0
Control
messages
Tunnel 0
Satellite
network
Internet
Tunnel 1
Router B
18929
Control
messages
Serial 1
Router A Configuration
ip multicast-routing
!
! Serial0 has send-only capability
!
interface serial 0
encapsulation hdlc
ip address 10.1.0.1 255.255.0.0
ip pim sparse-dense-mode
!
! Configure tunnel as receive-only UDLR tunnel.
!
interface tunnel 0
tunnel source 11.0.0.1
tunnel destination 11.0.0.2
IPC-513
Router B Configuration
ip multicast-routing
!
! Serial1 has receive-only capability
!
interface serial 1
encapsulation hdlc
ip address 10.1.0.2 255.255.0.0
ip pim sparse-dense-mode
!
! Configure tunnel as send-only UDLR tunnel.
!
interface tunnel 0
tunnel source 11.0.0.2
tunnel destination 11.0.0.1
tunnel udlr send-only serial 1
tunnel udlr address-resolution
!
! Configure OSPF.
!
router ospf <pid>
network 10.0.0.0 0.255.255.255 area 0
Note
Configuring PIM on the back channel interfaces on the uplink router and downlink router is optional.
All routers on a UDL must have the same subnet address. If all routers on a UDL cannot have the same
subnet address, the upstream router must be configured with secondary addresses to match all the
subnets that the downstream routers are attached to.
IPC-514
Figure 84
Source (12.0.0.12)
12.0.0.1
Uplink router
11.0.0.1
10.0.0.1
UDL
Back channel
10.0.0.2
Downlink router
13.0.0.2
Receiver (14.0.0.14)
18930
14.0.0.2
IPC-515
IPC-516
Figure 85
10.1.1.1
Router A
10.3.1.1
10.2.1.1
Internet
Unidirectional link
10.2.1.2
10.6.1.1
Router B
10.5.1.1
Local net
Router C
46458
10.9.1.1
Router A Configuration
interface ethernet 0
ip address 10.1.1.1 255.255.255.0
ip pim dense-mode
!
interface ethernet 1
ip address 10.2.1.1 255.255.255.0
ip pim dense-mode
ip igmp unidirectional link
!
interface ethernet 2
ip address 10.3.1.1 255.255.255.0
Router B Configuration
ip pim rp-address 10.5.1.1 5
access-list 5 permit 239.0.0.0 0.255.255.255.255
!
interface loopback 0
ip address 10.7.1.1 255.255.255.0
ip pim dense-mode
ip igmp helper-address udl ethernet 0
ip igmp proxy-service
!
interface ethernet 0
ip address 10.2.1.2 255.255.255.0
ip pim dense-mode
ip igmp unidirectional link
IPC-517
!
interface ethernet 1
ip address 10.5.1.1 255.255.255.0
ip pim sparse-mode
ip igmp mroute-proxy loopback 0
!
interface ethernet 2
ip address 10.6.1.1 255.255.255.0
Router C Configuration
ip pim rp-address 10.5.1.1 5
access-list 5 permit 239.0.0.0 0.255.255.255
!
interface ethernet 0
ip address 10.8.1.1 255.255.255.0
ip pim sparse-mode
!
interface ethernet 1
ip address 10.9.1.1 255.255.255.0
ip pim sparse-mode
IPC-518
no ip directed-broadcast
ip pim dense-mode
ip nhrp network-id 5
ip nhrp server-only
ip igmp unidirectional-link
fair-queue 64 256 31
ip rsvp bandwidth 1000 100
!
router ospf 1
network 9.1.92.96 0.0.0.15 area 1
!
ip classless
ip route 9.1.90.0 255.255.255.0 9.1.92.99
!
Downstream Configuration
ip multicast-routing
!
!
!
interface Loopback0
ip address 9.1.90.161 255.255.255.252
ip pim sparse-mode
ip igmp helper-address udl Ethernet2/3
ip igmp proxy-service
!
interface Tunnel0
ip address 9.1.90.97 255.255.255.252
ip access-group 120 out
no ip directed-broadcast
no ip mroute-cache
tunnel source 9.1.90.97
tunnel destination 9.1.89.97
tunnel key 5
tunnel udlr send-only Ethernet2/3
tunnel udlr address-resolution
!
interface Ethernet2/0
no ip address
no ip directed-broadcast
shutdown
no cdp enable
!
! user network
interface Ethernet2/1
ip address 9.1.90.1 255.255.255.240
no ip directed-broadcast
ip pim sparse-mode
ip igmp mroute-proxy Loopback0
no cdp enable
!
! Backchannel
interface Ethernet2/2
ip address 9.1.95.3 255.255.255.240
no ip directed-broadcast
no cdp enable
!
! physical receive-only interface
interface Ethernet2/3
ip address 9.1.92.99 255.255.255.240
no ip directed-broadcast
ip pim sparse-mode
ip igmp unidirectional-link
IPC-519
no keepalive
no cdp enable
!
router ospf 1
network 9.1.90.0 0.0.0.255 area 1
network 9.1.92.96 0.0.0.15 area 1
!
ip classless
ip route 0.0.0.0 0.0.0.0 9.1.95.1
! set rpf to be the physical receive-only interface
ip mroute 0.0.0.0 0.0.0.0 9.1.92.96
ip pim rp-address 9.1.90.1
!
! permit ospf, ping and rsvp, deny others
access-list 120 permit icmp any any
access-list 120 permit 46 any any
access-list 120 permit ospf any any
IPC-520
Benefits
The benefits of the MRM feature are as follows:
Find fault in multicast routing in near real timeIf a problem exists in the multicast routing
environment, you will find out about it right away.
IPC-521
Can verify a multicast environment prior to an eventYou need not wait for real multicast traffic
to fail in order to find out that a problem exists. You can test the multicast routing environment
before a planned event.
Restrictions
You must make sure the underlying multicast forwarding network being tested has no access lists or
boundaries that deny the MRM data and control traffic. Specifically, consider the following factors:
MRM test data are User Datagram Protocol (UDP) and Real-Time Transport Protocol (RTP) packets
addressed to the configured multicast group address.
MRM control traffic between the Test Sender, Test Receiver, and Manager is addressed to the
224.0.1.111 multicast group, which all three components join.
Purpose
Step 1
Specifies an interface.
Step 2
Step 3
To use MRM on test packets instead of actual IP multicast traffic, use the following commands beginning
in global configuration mode to configure a Test Sender on a different router or host from where you
configured the Test Receiver:
Command
Purpose
Step 1
Specifies an interface.
Step 2
Step 3
Optionally, specifies that the Test Sender can accept status report
requests only from Managers specified by the access list.
IPC-522
Test Sender and Test Receiver for Different Groups on One Router
Group B
ip mrm test-sender-receiver
ip mrm test-sender
Test Receiver
and
Test Sender
Test Sender
Group A
Test Receiver
23783
ip mrm test-receiver
To configure the routers in Figure 86 for monitoring more than one multcast group, configure the Test
Sender in Group B and the Test Receiver in Group A separately, as already discussed, and configure the
following commands beginning in global configuration mode on the router or host that belongs to both
Group A and Group B (in the upper left of Figure 86):
Step 1
Command
Purpose
Specifies an interface.
IPC-523
Command
Purpose
Step 2
Step 3
Configuring a Manager
To configure a router as a Manager in order for MRM to function, use the following commands
beginning in global configuration mode. A host cannot be a Manager.
Command
Purpose
Step 1
Step 2
Step 3
Step 4
Router(config-mrm-manager)# udp-port
[test-packet port-number] [status-report
port-number]
Step 5
Router(config-mrm-manager)# senders
{access-list} [packet-delay milliseconds] [rtp
| udp] [target-only | all-multicasts |
all-test-senders]
Step 6
Router(config-mrm-manager)# receivers
{access-list} [sender-list {access-list}
[packet-delay]] [window seconds] [report-delay
seconds] [loss percentage] [no-join] [monitor
| poll]
Purpose
IPC-524
When the test begins, the Manager sends a unicast control packet to the Test Sender and Test Receiver,
and then the Manager starts sending beacons. The Test Sender and Test Receiver send acknowledgments
to the Manager and begin sending or receiving test packets. If an error occurs, the Test Receiver sends
an error report to the Manager, which immediately displays the report.
You cannot change the Manager parameters while the test is in progress.
Purpose
Purpose
IPC-525
Sender
Receiver
Ethernet 0
10.1.1.2
IP multicast
network
Ethernet 0
10.1.4.2
23784
Ethernet 1
Manager
Manager Configuration
ip mrm manager test1
manager Ethernet 1 group 239.1.1.1
senders 1
receivers 2 sender-list 1
!
access-list 1 permit 10.1.1.2
access-list 2 permit 10.1.4.2
IPC-526
Internet Group Management Protocol (IGMP) is used between hosts on a LAN and the routers on
that LAN to track the multicast groups of which hosts are members.
Protocol Independent Multicast (PIM) is used between routers so that they can track which multicast
packets to forward to each other and to their directly connected LANs.
Distance Vector Multicast Routing Protocol (DVMRP) is the protocol used on the MBONE (the
multicast backbone of the Internet). The Cisco IOS software supports PIM-to-DVMRP interaction.
Cisco Group Management Protocol (CGMP) is a protocol used on routers connected to Catalyst
switches to perform tasks similar to those performed by IGMP.
IPC-527
Figure 88 shows where these protocols operate within the IP multicast environment.
Figure 88
Internet
MBONE
Catalyst 5000
switch
DVMRP
Host
CGMP
Host
IGMP
Note
43274
PIM
CGMP and RGMP cannot interoperate on the same switched network. If RGMP is enabled on a
switch or router interface, CGMP is automatically disabled on that switch or router interface; if
CGMP is enabled on a switch or router interface, RGMP is automatically disabled on that switch or
router interface.
RGMP Overview
RGMP enables a router to communicate to a switch the IP multicast group for which the router would
like to receive or forward traffic. RGMP is designed for switched Ethernet backbone networks running
PIM sparse mode (PIM-SM) or sparse-dense mode.
Note
RGMP-enabled switches and router interfaces in a switched network support directly connected,
multicast-enabled hosts that receive multicast traffic. RGMP-enabled switches and router interfaces
in a switched network do not support directly connected, multicast-enabled hosts that source
multicast traffic. A multicast-enabled host can be a PC, a workstation, or a multicast application
running in a router.
Figure 89 shows a switched Ethernet backbone network running PIM in sparse mode, RGMP, and IGMP
snooping.
IPC-528
Router B
PIM SM
RGMP
Router A
PIM SM
RGMP
A
B
B
A
Source for
group A
Switched network
Source for
group B
B
A
A
A
Receiver 1
for group A
A
Receiver 2
for group A
Switch A
RGMP
IGMP
snooping
B
Switch B
RGMP
IGMP
snooping
Receiver 1
for group B
Router D
PIM SM
RGMP
Router C
PIM SM
RGMP
Traffic restricted by RGMP
39165
Figure 89
Receiver 2
for group B
In Figure 89, the sources for the two different multicast groups (the source for group A and the source
for group B) send traffic into the same switched network. Without RGMP, traffic from source A is
unnecessarily flooded from switch A to switch B, then to router B and router D. Also, traffic from
source B is unnecessarily flooded from switch B to switch A, then to router A and router C. With RGMP
enabled on all routers and switches in this network, traffic from source A would not flood router B and
router D. Also, traffic from source B would not flood router A and router C. Traffic from both sources
would still flood the link between switch A and switch B. Flooding over this link would still occur
because RGMP does not restrict traffic on links toward other RGMP-enabled switches with routers
behind them.
By restricting unwanted multicast traffic in a switched network, RGMP increases the available
bandwidth for all other multicast traffic in the network and saves the processing resources of the routers.
Figure 90 shows the RGMP messages sent between an RGMP-enabled router and an RGMP-enabled
switch.
IPC-529
Figure 90
RGMP Messages
PIM-SM
RGMP
RGMP
IGMP Snooping
PIM hello
RGMP hello
RGMP bye
The router sends simultaneous PIM hello (or a PIM query message if PIM Version 1 is configured) and
RGMP hello messages to the switch. The PIM hello message is used to locate neighboring PIM routers.
The RGMP hello message instructs the switch to restrict all multicast traffic on the interface from which
the switch received the RGMP hello message.
Note
RGMP messages are sent to the multicast address 224.0.0.25, which is the local-link multicast
address reserved by the Internet Assigned Numbers Authority (IANA) for sending IP multicast traffic
from routers to switches.
If RGMP is not enabled on both the router and the switch, the switch automatically forwards all
multicast traffic out the interface from which the switch received the PIM hello message.
The router sends the switch an RGMP join <G> message (where G is the multicast group address) when
the router wants to receive traffic for a specific multicast group. The RGMP join message instructs the
switch to forward multicast traffic for group <G> out the interface from which the switch received the
RGMP hello message.
Note
The router sends the switch an RGMP join <G> message for a multicast group even if the router is
only forwarding traffic for the multicast group into a switched network. By joining a specific
multicast group, the router can determine if another router is also forwarding traffic for the multicast
group into the same switched network. If two routers are forwarding traffic for a specific multicast
group into the same switched network, the two routers use the PIM assert mechanism to determine
which router should continue forwarding the multicast traffic into the network.
The router sends the switch an RGMP leave <G> message when the router wants to stop receiving traffic
for a specific multicast group. The RGMP leave message instructs the switch to stop forwarding the
multicast traffic on the port from which the switch received the PIM and RGMP hello messages.
IPC-530
Note
An RGMP-enabled router cannot send an RGMP leave <G> message until the router does not receive
or forward traffic from any source for a specific multicast group (if multiple sources exist for a
specific multicast group).
The router sends the switch an RGMP bye message when RGMP is disabled on the router. The RGMP
bye message instructs the switch to forward the router all IP multicast traffic on the port from which the
switch received the PIM and RGMP hello messages, as long as the switch continues to receive PIM hello
messages on the port.
See the end of this chapter for the section RGMP Configuration Example.
Prerequisites
Before you enable RGMP, ensure that the following features are enabled on your router:
IP routing
IP multicast
PIM in sparse mode, sparse-dense mode, source specific mode, or bidirectional mode
If your router is in a bidirectional group, make sure to enable RGMP only on interfaces that do not
function as a designated forwarder (DF). If you enable RGMP on an interface that functions as a DF, the
interface will not forward multicast packets up the bidirectional shared tree to the rendezvous point (RP).
You must have the following features enabled on your switch:
Note
IP multicast
IGMP snooping
Refer to the Catalyst switch software documentation for RGMP switch configuration tasks and
command information.
IPC-531
Enabling RGMP
To enable RGMP, use the following commands on all routers in your network beginning in global
configuration mode:
Command
Purpose
Step 1
Step 2
Router(config-if)# ip rgmp
See the RGMP Configuration Example section later in this chapter for an example of how to configure
RGMP.
Note
If RGMP is not enabled on an interface, no RGMP information is displayed in the show ip igmp
interface command output for that interface.
IPC-532
Purpose
Figure 91 shows the debug messages that are logged by an RGMP-enabled router as the router sends
RGMP join <G> and RGMP leave <G> messages to an RGMP-enabled switch.
RGMP Debug Messages
PIM-SM
RGMP
RGMP
IGMP snooping
PIM hello
RGMP hello
RGMP: Sending a hello packet on Ethernet1/0
X
RGMP join 224.1.2.3
Figure 91
IPC-533
1/0
Router B
PIM SM
RGMP
Router A
PIM SM
RGMP
1/1
1/0
1/1
Source for
group B
Source for
group A
Receiver 1
for group A
1/1
Switch A
RGMP
IGMP
snooping
Switch B
RGMP
IGMP
snooping
Receiver 1
for group B
1/1
1/0
Router C
PIM SM
RGMP
Router A Configuration
ip routing
ip multicast-routing
interface ethernet 1/0
ip address 10.0.0.1 255.0.0.0
ip pim sparse-dense-mode
no shutdown
interface ethernet 1/1
ip address 10.1.0.1 255.0.0.0
ip pim sparse-dense-mode
ip rgmp
no shutdown
Router B Configuration
ip routing
ip multicast-routing
interface ethernet 1/0
ip address 10.2.0.1 255.0.0.0
ip pim sparse-dense-mode
no shutdown
interface ethernet 1/1
ip address 10.3.0.1 255.0.0.0
ip pim sparse-dense-mode
ip rgmp
IPC-534
Router D
PIM SM
RGMP
42758
Receiver 2
for group A
1/0
Receiver 2
for group B
no shutdown
Router C Configuration
ip routing
ip multicast-routing
interface ethernet 1/0
ip address 10.4.0.1 255.0.0.0
ip pim sparse-dense-mode
no shutdown
interface ethernet 1/1
ip address 10.5.0.1 255.0.0.0
ip pim sparse-dense-mode
ip rgmp
no shutdown
Router D Configuration
ip routing
ip multicast-routing
interface ethernet 1/0
ip address 10.6.0.1 255.0.0.0
ip pim sparse-dense-mode
no shutdown
interface ethernet 1/1
ip address 10.7.0.1 255.0.0.0
ip pim sparse-dense-mode
ip rgmp
no shutdown
Switch A Configuration
Switch> (enable) set igmp enable
Switch> (enable) set rgmp enable
Switch B Configuration
Switch> (enable) set igmp enable
Switch> (enable) set rgmp enable
IPC-535
IPC-536
For more advanced DVMRP interoperability features, see the section Advanced DVMRP
Interoperability Configuration Task List later in this chapter.
IPC-537
Purpose
A more sophisticated way to achieve the same results as the preceding command is to use a route map
instead of an access list. Thus, you have a finer granularity of control. To subject unicast routes to route
map conditions before they are injected into DVMRP, use the following command in interface
configuration mode:
Command
Purpose
IPC-538
See the DVMRP Interoperability Example section later in this chapter for an example of how to
configure a PIM router to interoperate with a DVMRP router.
To indicate whether the Cisco IOS software should perform DVMRP summarization
You can assign an IP address either by using the ip address interface configuration command, or by
using the ip unnumbered interface configuration command to configure the tunnel to be unnumbered.
Either of these two methods allows IP multicast packets to flow over the tunnel. The software will not
advertise subnets over the tunnel if the tunnel has a different network number from the subnet. In this
case, the software advertises only the network number over the tunnel.
To configure a DVMRP tunnel, use the following commands in interface configuration mode:
Command
Purpose
Step 1
Step 2
Step 3
Step 4
Step 5
or
or
Step 6
Step 7
IPC-539
See the DVMRP Tunnel Example section later in this chapter for an example of how to configure a
DVMRP tunnel.
Purpose
IPC-540
When DVMRP unicast routing is enabled, the router caches routes learned in DVMRP report messages
in a DVMRP routing table. PIM prefers DVMRP routes to unicast routes by default, but that preference
can be configured.
DVMRP unicast routing can run on all interfaces, including generic routing encapsulation (GRE)
tunnels. On DVMRP tunnels, it runs by virtue of DVMRP multicast routing. This feature does not enable
DVMRP multicast routing among Cisco routers. However, if there is a DVMRP-capable multicast router,
the Cisco router will do PIM/DVMRP multicast routing interaction.
To enable DVMRP unicast routing, use the following command in interface configuration mode:
Command
Purpose
Purpose
Purpose
Use the show ip igmp interface EXEC command to display a running count of routes. When the count
is exceeded, *** ALERT *** is appended to the line.
IPC-541
Command
Purpose
Note
At least one, more-specific route must be present in the unicast routing table before a configured
summary address will be advertised.
Purpose
Purpose
Similar to the metric keyword in mrouted configuration files, the following is true when using the
ip dvmrp metric-offset interface configuration command:
When you specify the in keywordor no keyword, the increment value is added to incoming DVMRP
reports and is reported in mrinfo replies. The default value for the in keyword is 1.
When you specify the out keyword, the increment is added to outgoing DVMRP reports for routes
from the DVMRP routing table. The default value for the out keyword is 0.
IPC-542
Source or RP
RP
Router A
Valid
multicast
traffic
Router B
Receiver
Router C
Leaf nonpruning
DVMRP machine
Stub LAN with no members
43276
Wasted
multicast
traffic
You can prevent a router from peering (communicating) with a DVMRP neighbor if that neighbor does
not support DVMRP pruning or grafting. To do so, configure Router C (which is a neighbor to the leaf,
nonpruning DVMRP machine) with the ip dvmrp reject-non-pruners interface configuration command
on the interface to the nonpruning machine. Figure 94 illustrates this scenario. In this case, when the
router receives a DVMRP probe or report message without the Prune-Capable flag set, the router logs a
syslog message and discards the message.
IPC-543
Figure 94
Source or RP
RP
Router A
Multicast
traffic gets
to receiver,
not to leaf
DVMRP
machine
Router B
Receiver
Router C
43277
ip dvmrp reject-non-pruners
Note that the ip dvmrp reject-non-pruners command prevents peering with neighbors only. If there are
any nonpruning routers multiple hops away (downstream toward potential receivers) that are not
rejected, then a nonpruning DVMRP network might still exist.
To prevent peering with nonpruning DVMRP neighbors, use the following command in interface
configuration mode:
Command
Purpose
Purpose
IPC-544
Purpose
To display entries in the DVMRP routing table, use the following command in EXEC mode:
Command
Purpose
1
1
1
1
1
1
2
permit
permit
permit
permit
permit
deny
permit
198.92.35.0 0.0.0.255
198.92.36.0 0.0.0.255
198.92.37.0 0.0.0.255
131.108.0.0 0.0.255.255
150.136.0.0 0.0.255.255
0.0.0.0 255.255.255.255
0.0.0.0 255.255.255.255
IPC-545
ip unnumbered ethernet 0
ip pim dense-mode
tunnel source ethernet 0
tunnel destination 192.70.92.133
tunnel mode dvmrp
!
interface ethernet 0
description Universitat DMZ-ethernet
ip address 192.76.243.2 255.255.255.0
ip pim dense-mode
IPC-546
Index
INDEX
Symbols
<cr>
address pools
xli
? command
names, creating
xl
IPC-69
obtaining IP addresses
IPC-65
A
accept-lifetime command
DRP route authentication
access-class command
OSPF
IPC-230
IPC-266
IPC-88, IPC-99
access groups, IP
IPC-99
BGP, setting
definition
IPC-372
agent command
IPC-144
IPC-145
aggregate-address command
IP
extended
IPC-122, IPC-124
IPC-22
IPC-88, IPC-91
fragment control
IPC-90, IPC-93
standard
time-based
undefined
IPC-229
IPC-285
IPC-230
IPC-229
IPC-231
ARP cache
See ARP tables
IPC-88
encapsulation
IPC-14
IP
IPC-97
encapsulations, setting
IPC-99
violations, accounting
IPC-99
IPC-229
IPC-98
IPC-91
numbered
IPC-90, IPC-93
IPC-311
IPC-229
area-password command
IPC-93
IPC-312
IPC-308
configuration examples
IPC-282
IPC-325
advertise command
IPC-96
access lists
BGP access list filters
IPC-12
administrative distance
IPC-99
access control, IP
named
IPC-285
IPC-87
IS-IS
IPC-108
IPC-96
IPC-14
IPC-99
IPC-28
IPC-14
IPC-48
IN-549
Index
timeout
IPC-14
tables
IP
contents, displaying
defining static IPC-13
arp arpa command
IPC-14
IPC-14
IPC-206
IPC-14
IPC-14
backup, stateless
ATM
IPC-139
SVC, point-to-multipoint
VC status, displaying
IPC-434, IPC-436
beacon command
IPC-447
IPC-436
defaults
dynamic
setting
IPC-88
IPC-266
IPC-325
IPC-321
IPC-22
(example)
IPC-86
IPC-311
IPC-341
authentication, MD5
IPC-323
IPC-365
advertisement interval
IPC-265
NHRP, configuring
IPC-524
administrative distance
authentication
EIGRP, route
IPC-260
EIGRP, packets
autonomous system
IPC-232
IPC-367
autonomous systems
autonomous system path comparison, disabling
IPC-303
Cisco implementation
IPC-325
IPC-293
BGP
autonomous system paths to remote networks,
providing IPC-302
community filtering
Conditional Advertisement
IPC-293
IGRP
IPC-381
configuration tasks
configuring
overview
IPC-213
verifying
IPC-213
confederation
IPC-3
IPC-367
IPC-343
IPC-315
IPC-315
IPC-314
troubleshooting tips
IPC-370
IPC-316
IPC-315
IPC-316
OSPF
IPC-332 to IPC-343
(example)
IPC-246, IPC-385
IPC-294, IPC-311
IPC-312
configuration (examples)
(example)
IPC-263
IPC-14
IN-550
IPC-312
IPC-295
IPC-336
IPC-333
Index
configuring
route maps
IPC-293 to IPC-327
connections
route reflector
filter
IPC-317 to IPC-320
IPC-311
IPC-293
IPC-332
IPC-367
IPC-326
supernets
IPC-311
IPC-297
IPC-316
IPC-302
IPC-321
for a neighbor
IPC-325
mesh reduction
IPC-323
IPC-322
confederation method
IPC-316
timers, adjusting
IPC-317
version, controlling
metric translations
Version 4
IPC-369
multicast
IPC-325
IPC-310
IPC-294
weight, configuring
IPC-310
IPC-297
IPC-324
IPC-326
IPC-308
disabling
displaying
IPC-320
IPC-311
IPC-331
IPC-328
IPC-73
broadcasts
IPC-330
IPC-304
IPC-214
IPC-329
routes, unsuppressing
IPC-142
IP
IPC-331
factors, configuring
IPC-332
update frequency
enabling
IGRP
IPC-321
route dampening
description
IPC-328
IPC-311
bootfile command
IPC-332
IPC-326
IPC-324
IPC-317
IPC-329
IPC-320
IPC-316
IPC-308
peer groups
configuring
IPC-327
IPC-319
clearing
IPC-327
IPC-313
neighbors, disabling
IPC-303
IPC-347
neighbors, configuring
IPC-327
IPC-295
multiprotocol BGP
IPC-303
IPC-330
IPC-31
directed
IPC-31
flooding
IPC-31, IPC-33
flooding (example)
solution to storms
IPC-60
IPC-31
IN-551
Index
types
benefits
IPC-31
IPC-66
IPC-68
enabling
xli
overview
IPC-198
reconvergence of IP routes
timeout value
IPC-197
prerequisites
IPC-73
IPC-67
IPC-196
IPC-196
IPC-119
IPC-47
IPC-47
IPC-198
IPC-73
IPC-197
IPC-75
IPC-65
number of packets
IPC-197
IPC-198
IPC-119
IPC-299
IPC-116
IPC-331
IPC-116
IPC-330
IPC-75
IPC-75
xxxiii
benefit
IPC-311
IPC-78
IPC-67
IPC-67
IN-552
IPC-487
IPC-487
IPC-487
IPC-46
IPC-49
IPC-241
IPC-525
IPC-446
IPC-170
IPC-67
IPC-272
IPC-446
IPC-76
IPC-119
IPC-294
IPC-446
IPC-311
description
IPC-331
IPC-78
ping
IPC-196
updates
IPC-73
xxxiv
IPC-77
IPC-68
lease, specifying
IPC-91
timer
IPC-73
IPC-499
IPC-500
Index
IPC-446
IPC-47, IPC-378
IPC-76
IPC-119
IPC-73
IPC-72
IPC-72
xxxix to xl
IPC-76
IPC-120
xl
IPC-170
IPC-170
IPC-487
IPC-500
IPC-533
xliii
IPC-358
commands
default form, using
IPC-273
IPC-144
client-name command
IPC-446
IPC-446
IPC-198
IPC-120
IPC-369
IPC-326
command syntax
IPC-284
conventions
IPC-231
no form, using
xliii
xxxiv
displaying (example)
xli
communities attribute
IPC-312
IPC-314
IPC-313
IPC-119
default-router command
IPC-284
IPC-369
IPC-369
IPC-365
IPC-371
IPC-71
default routes
OSPF
(example)
description
IP
IPC-252, IPC-391
IPC-231
configuration, saving
specifying
xliv
IPC-300
IPC-300
ContentFlow Architecture
benefits
IPC-313
IPC-310, IPC-369
IPC-115
IPC-116
IPC-116
IPC-116
IPC-366
IPC-365
IS-IS, generating
IPC-284
OSPF, generating
IPC-231
delay command
IPC-144
deny command
IPC-91
IPC-282
IPC-145
description
IPC-138
IPC-32
IN-553
Index
configuration
messages
dhcpack
Server Agent
IPC-66
dhcpdecline
dhcpoffer
IPC-66
dhcpdiscover
description
IPC-66
enabling
IPC-66
options, autoconfiguring
server boot file, specifying
distance bgp command
distance command
statistics, clearing
IPC-198
IPC-86
IPC-119
IPC-325
IPC-372
DistributedDirector
IPC-85
distribute-list in command
IP
dynamic name lookup (example)
IPC-51
IPC-16
IPC-17
IPC-232
authentication, enabling
IPC-17
bandwidth percentage
IPC-260
Cisco implementation
IPC-257
IPC-70
enabling
documentation
modules
features
xxxiii
feedback, providing
ordering
xxxv
interfaces, displaying
xxxv
IPC-215
metrics, adjusting
IPC-51
offsets, applying
domain-password command
IPC-260
IPC-260
IPC-260
IPC-201, IPC-215, IPC-262
redistribution
IPC-70
(examples)
IPC-285
IPC-382
domains
IPC-370
IPC-201, IPC-262
IPC-273
xxxii
IPC-70
IN-554
IPC-258
Documentation CD-ROM
OSPF
IPC-259
xxxv
domain-name command
IPC-265
filters
xxxv
xxix to xxxi
online, accessing
IPC-300
IPC-197, IPC-372
dns-server command
IPC-299
IPC-197, IPC-372
conventions
IPC-355
name server
IPC-86
IPC-73
IPC-119
IPC-86
key management
IPC-74
IPC-86
IPC-85
displaying information
IPC-66
dhcprequest
IPC-85
IPC-367
route authentication
IPC-265
route summarization
IPC-262
SeeAppleTalk, EIGRP
IPC-383
Index
IPC-267
stub routing
benefits
IPC-271
configuration tasks
configuring
overview
verifying
IPC-272
IPC-268
IPC-268
restrictions
IPC-272
forwarding-agent command
IPC-266, IPC-267
IPC-168
Forwarding Agent
IPC-271
timers, adjusting
IPC-47
IPC-118
IPC-260
fragment control
IPC-272
encapsulations
IPC-93
IPC-219
IPC-207
IPC-118
IPC-207, IPC-219
Ethernet
simplex circuit, configuring
IPC-85
IPC-433
IPC-9
IPC-432
IPC-432
IPC-432
IPC-416
F
faildetect command
IPC-142
IPC-376
Feature Navigator
IPC-213, IPC-366
xl
IPC-429
xliv
filtering routes
by a group of prefixes
by a group prefix list
by a prefix list
IPC-338
IPC-337
hardware-address command
IPC-305
hardware platforms
filters
EIGRP
offsets for routing metrics
hello packets
IPC-201, IPC-215, IPC-262
IP
on routing information
EIGRP
interval between
IPC-370
valid time
IPC-372
IPC-372
IPC-372
IPC-72
IPC-267
IPC-267
IPC-280
IPC-225
help command
xl
IPC-370
Cisco IOS IP Configuration Guide
IN-555
Index
helper addresses
IP
(example)
IPC-60
configuring
IPC-32
IPC-308
holddown
definition
IPC-121
IPC-83
IPC-83
IPC-214
IPC-82
disabling, IGRP
IPC-218
idle command
IPC-267
IPC-165
IPC-167
IPC-51
IPC-126
IPC-102
IPC-102
authentication
enabling
configuring
IPC-213
IPC-215
IPC-217
IPC-381
IPC-370
IPC-165
IPC-105
route redistribution
running with RIP
IPC-102
IPC-127
timers, adjusting
IPC-216
IPC-369
IPC-206
IPC-102
IPC-218
IPC-217
IPC-103
MIB (example)
transition to EIGRP
IPC-128
IPC-103
IPC-139
IPC-103
IPC-102
IPC-214
IPC-74
IPC-299
xxxii
IPC-197
ODR environment
IPC-215
IPC-214
updates, frequency
indexes, master
IPC-103
IPC-195
IPC-216
IPC-260
IPC-103
hub router
IPC-214
description
timers, setting
(example)
IPC-102
notifications
IPC-213
redistribution
IPC-101
MAC address
IPC-370
Cisco implementation
metrics, adjusting
IPC-102
burned-in-address
IPC-238
enabling
IPC-102
traps
IPC-18
autonomous systems
HSRP
MIB
IPC-72
IPC-144
IPC-143
IPC-144
IN-556
Index
IP traffic, routing
helper (example)
IPC-30
IPC-60
interfaces, assigning to
xl
interfaces
multiple
assigning multiple
primary
primary
IPC-9, IPC-50
IPC-509
IPC-9
IPC-8
secondary
IPC-9
address resolution
IP
IPC-12
advertising, definition
access lists
authentication keys
IPC-59
IP
access lists
extended
IPC-93
IPC-90, IPC-93
IPC-90, IPC-93
IPC-123
IPC-98
undefined
IPC-99
violations
IPC-108
flooding
IPC-31, IPC-33
types
IPC-31
definition
IPC-99
enabling
IPC-28
IPC-28
IPC-31
IPC-88, IPC-91
IPC-60
configuring
IPC-108
addresses
IPC-32
configuring
IPC-15
IPC-7
metric translations
IPC-16
IPC-32
(example)
description
monitoring tasks
for IP routing
IPC-59
IPC-32
IPC-30
local-area mobility
redistributing routes
IPC-31, IPC-33
IPC-51
helper address
(example)
violations, accounting
accounting, configuring
IPC-31
directed broadcasts
IPC-91
standard, creating
directed
default gateway
broadcast
IPC-60
broadcasts
IPC-88, IPC-91
fragment control
helper
IPC-377
broadcasting (example)
IPC-97
IPC-364
IPC-199
IPC-91
implicit masks
IPC-47
IPC-213
(caution)
IPC-15
IPC-9
multiple, assigning
IPC-9
IPC-8
secondary
IPC-8
IPC-282
IP addresses
classes
IPC-7
IPC-15
IPC-377
IPC-369
IPC-118
IPC-378
multicast routing
See IP multicast routing
Cisco IOS IP Configuration Guide
IN-557
Index
IPC-91
ip accounting-transits command
IPC-109
IPC-9
IPC-17
performance parameters
IPC-110
ip address command
PIM
IPC-373, IPC-376
IPC-8
IPC-73
IPC-67
IPC-377
IPC-374
IPC-375
primary address
serial interfaces
ip broadcast-address command
ip casa command
IPC-11
tunnel interfaces
ip cef command
IPC-11
protocol, description
routing
ip cgmp command
IPC-27
IPC-85
IPC-4
IPC-84
IPC-207, IPC-219
IPC-381
IPC-11
ip community-list command
IPC-313
ip default-gateway command
IPC-28
ip default-network command
IPC-366
IPC-111
IPC-110
IPC-32
UDP datagrams
IPC-69
IPC-73
IPC-73
IPC-69, IPC-72
IPC-75
IPC-75
speeding up flooding
IPC-75
IPC-32
IPC-16
IPC-34
IPC-115
IPC-17
IPC-16
IPC-99
IPC-69
ip directed-broadcast command
IPC-34
IPC-69
IPC-9
IPC-24
IPC-440
IPC-9
IPC-116
IPC-30
IPC-86
ip access-list command
IPC-91
ip accounting command
IPC-108
ip accounting-list command
IPC-109
IPC-110
IPC-109
IN-558
IPC-86
IPC-86
IPC-109
IPC-314
IPC-118
ip classless command
IPC-28
secondary addresses
IPC-260
IPC-33
IPC-1
IPC-266
IPC-265
IPC-8
processing on
flooding
IPC-232
IPC-539
IPC-542
IPC-538
IPC-540
Index
IPC-355
IPC-542
IPC-544
IPC-541
IPC-541
IPC-34
IPC-34
IPC-524
ip mroute-cache command
IPC-415
IPC-430
IPC-485
IPC-267
IPC-82
IPC-480
IPC-483
IPC-483
IPC-481
IPC-409
IPC-486
ip mtu command
IPC-441
IPC-482
IPC-485
IPC-18
IPC-482, IPC-486
IPC-480
IPC-16
ip hp-host command
IPC-522
IPC-267
IPC-32
IPC-522
IPC-32
IPC-167
IPC-117
ip forward-protocol command
IPC-168
ip mroute command
IPC-257
ip host command
ip mrm command
IPC-542
IPC-168
IPC-541
IPC-173
IPC-483
IPC-84
IPC-420, IPC-438
IPC-512
IPC-512
IP multicast heartbeat
IPC-411, IPC-413
(example)
description
IPC-510
IPC-467
IPC-410
IPC-511
IPC-458
IPC-447
IPC-414
IPC-413
IPC-440
IPC-447
IPC-439
IPC-442
IPC-430
IP multicast routing
IPC-29
IPC-377
IPC-437
ip mask-reply command
IPC-83
IPC-15
Auto-RP
IPC-168
IPC-168
IPC-167
IPC-172
cache, clearing
configuring
IPC-436
IPC-446
IPC-406
mapping agent
IPC-407
IPC-417
IN-559
Index
CGMP
clearing
IPC-446
version, changing
enabling
IPC-440
Version 1
IPC-410
Version 2
IPC-411
Version 3
IPC-411
proxy
IPC-440
IPC-415
clearing
IPC-521
automatic summarization
IPC-542
IPC-543
IPC-544
IPC-541
routes
IPC-402
IPC-457
native
route threshold
IPC-541
summary address
unicast routing
MBONE
monitoring tasks
IPC-526
IPC-521
IPC-521, IPC-524
Manager restrictions
IPC-447
test, conducting
IPC-410
IPC-410
IPC-400, IPC-527
IPC-523
IPC-524
IPC-525
IPC-525
IPC-524
Test Receiver
IPC-441
host-query messages
purpose
IPC-446
IPC-403
helper address
IPC-522
IPC-416
IGMP
DR election process
IPC-524
status report
IPC-415
heartbeat, monitoring
IPC-538
multiple groups
IPC-403
functional addresses
(example)
Manager
IPC-445
MRM
description
IPC-541
IPC-443
IPC-400, IPC-527
beacon messages
IPC-542
enabling on router
IPC-442
IPC-442
mrinfo requests
advertising IPC-540
clearing IPC-545
IPC-411
IPC-413
IPC-411, IPC-413
IPC-412
IN-560
join message
configuration tasks
IPC-538
SSM
IPC-446
across tunnels
IPC-538
mrouted protocol
displaying
(example)
IPC-402
interoperability
IPC-446
load splitting
IPC-400, IPC-527
description
IPC-410
IPC-425
DVMRP
definition
IPC-414
information, displaying
interface IPC-522
parameters IPC-524
IPC-525
Test Sender
information, displaying
interface IPC-522
parameters IPC-524
UDP port numbers
IPC-524
IPC-525
Index
mroute
description IPC-471
enabling IPC-475
packet forwarding
IPC-429
mrouted
advertising routes
description
IPC-540
IPC-538
IPC-539
MSDP
benefits
prerequisites
(example) IPC-449
configuring IPC-405
description IPC-405
IPC-480
IPC-479
description
IPC-409
peering
IPC-446
neighbors, displaying
PGM
See also IP multicast routing, PGM Host
See also IP multicast routing, PGM Router Assist
preventing
IPC-495
description
IPC-493
IPC-493
verifying
IPC-496
description
IPC-493
Version 2
IPC-500
PIM
bidirectional mode
IPC-404, IPC-419
IPC-495, IPC-498
IPC-425
IPC-419
IPC-417
prune message
IPC-493
IPC-500
IPC-424
IPC-498
TSI
IPC-427
sparse mode
configuring
IPC-426
version, setting
overview
IPC-427
register messages
IPC-500
IPC-447
IPC-428
IPC-441
registering process
PGM Host
configuring
IPC-436
mode, enabling
network IPC-428
IPC-440
IPC-543
IPC-500
IPC-446
NBMA
IPC-399
(examples)
IPC-473
IPC-441
information, displaying
IPC-401
IPC-446
IPC-409
overview
IPC-404
IPC-402
multicast groups
joining
dense mode
IPC-477
peer, configuring
IPC-450
IPC-480
overview
enabling
IPC-479
enabling
IPC-474
IPC-474
IPC-404
IPC-402
IPC-413
RGMP
(example)
IPC-534
configuration tasks
IPC-532
IN-561
Index
description
IPC-528
(example)
IPC-533
description
IPC-531
testing
IPC-532
RP (rendezvous point)
IPC-440
IPC-521
address, configuring
(example)
IPC-406
Auto-RP
IPC-449
description
groups covered
mapping agent
displaying
IPC-407
description
IPC-417
RP-mapping agent
to a group, assigning
IPC-430
IPC-424
shared tree
IPC-447
IPC-416
tunnel
IPC-415
IPC-423
shortest-path tree
source tree
IPC-423
IPC-423
SSM
description
IPC-459
filtering (example)
IPC-505
IGMP proxy
SAP
listener support
IPC-506
IPC-425
limiting cache
IPC-415
IGMP
IPC-408
displaying cache
IPC-417
UDLR
IPC-408
IPC-416
IPC-408
IPC-447
filter RP announcements
IPC-468
IPC-117
ip multicast-routing command
IPC-403
IPC-415
IGMPv3
(example)
description
IPC-468
IPC-461
IGMP v3lite
IP address range
operation of
ip name-server command
ip nat command
IPC-468
IPC-461
IPC-460
IPC-460
IPC-43, IPC-45
IPC-462
statically connected member IPC-413
static routes
IPC-45
URD
(example)
description
IPC-417
IPC-17
(example)
description
IPC-429
IN-562
IPC-456
IPC-45, IPC-46
IPC-47
IPC-45
IPC-48
IPC-22
Index
IPC-21, IPC-49
IPC-25
IPC-24
IPC-226
IPC-225
IPC-234
IPC-238
IPC-226
IPC-227, IPC-228
IPC-225
IPC-225
IPC-225
IPC-83
IPC-532
IPC-203
IPC-203
IPC-202
IPC-202
IPC-208
IPC-420
IPC-404, IPC-405
IPC-437
IPC-436
IPC-428
IPC-441
IPC-425
IPC-27
IPC-420
IPC-427
IPC-427
IPC-425, IPC-475
IPC-205
IPC-425
IPC-408
IPC-377
IPC-364
ip routing command
IPC-499
ip rgmp command
IPC-14
IPC-496
ip redirects command
IPC-18
ip pim command
IPC-305
IPC-232
ip prefix-list command
IPC-373
IPC-225
IPC-419
ip proxy-arp command
IPC-225
IPC-405
IPC-436
IPC-225
IPC-424
IPC-467
IPC-408
IPC-23
IPC-26
IPC-27
IPC-407, IPC-475
IPC-26
IPC-421
IPC-21
IPC-21
IPC-475
IPC-22
IPC-26
IPC-433
IPC-432
IPC-416
IPC-416
IPC-145
IPC-141
IPC-143
ip source-route command
IPC-85
ip split-horizon command
IPC-207, IPC-219
IPC-267
IPC-10
IPC-263
IPC-204, IPC-205
IN-563
Index
IPC-114
route redistribution
IPC-112
system type
IPC-114
IPC-281
IPC-367
IPC-284
IPC-111
IPC-113
IPC-280
IPC-280
IPC-115
IPC-282
IPC-113
IPC-112
IPC-114
IPC-12, IPC-539
ip unreachables command
IPC-82
IPC-29
IPC-282
IPC-280
IPC-325
IPC-284
EIGRP
for DRP
IPC-277
IPC-265, IPC-266
IPC-86
key command
IPC-284
EIGRP
IPC-282
IPC-285
for DRP
EIGRP
IPC-279
for DRP
IPC-86
IPC-266
IPC-87
IPC-282
IPC-280
IPC-286
IPC-286
lease, specifying
multiarea support
lease command
configuration
IPC-73
IPC-71
(example) IPC-290
LSP flooding IPC-283
output of show commands
routing level IPC-286
password authentication
IPC-266
key-string command
IPC-280
IPC-285
IN-564
IPC-284
IPC-277
LSP refresh
IPC-281
IPC-277
IPC-285
IPC-281
IPC-29
LSP lifetime
ISO 10589
is-type command
IPC-29
IPC-282
configuring
IPC-282
IPC-467
IPC-281
IPC-280
ip unnumbered command
ip urd command
IPC-282
configuring
IPC-15
redistributing routes
IPC-15
IPC-133
IPC-280
Index
IPC-88
IPC-235
IPC-260
IPC-232
lsp-gen-interval command
IPC-288
lsp-refresh-interval command
IPC-327
IPC-294
messages
Internet broadcast, establishing
IPC-287
IPC-84
IPC-218
masks
BGP
IPC-47
IPC-123
IPC-368, IPC-374
IPC-368
IPC-374
IPC-368
IPC-368
IPC-213, IPC-217
IS-IS link-state
RIP
IPC-257
IPC-280
IPC-199
IPC-217, IPC-261
MIB
OSPF
IPC-353, IPC-354
IPC-260
IP Enhanced IGRP
IPC-367
IPC-368
IPC-538
EIGRP, adjusting
IGRP
IPC-367
IPC-293
DVMRP
IPC-368
IPC-223
xxxii
IPC-368
maxconns command
IPC-142
IPC-117
maximum-paths command
IPC-295, IPC-366
max-lsp-lifetime command
IPC-287
product description
IPC-400, IPC-527
IPC-431
restrictions
IPC-116
IPC-116
ContentFlow architecture
IPC-229
memory allocation
IPC-203
IPC-323
IPC-130
IPC-115
related documentation
affinities, displaying
IPC-265
IPC-218
metrics
IPC-12
IPC-524
format in displays
IPC-33
IPC-116
IPC-118
IPC-117
IPC-120
IN-565
Index
overview
security
IPC-115
keys
IPC-118
virtual networks
IPC-118
IPC-115
agent advertisements
IPC-161
mrm command
IPC-161
agent solicitations
authentication
IPC-163, IPC-164
IPC-162
configuration tasks
mstat command
IPC-167
denial-of-service attack
IPC-162
foreign agents
IPC-160, IPC-161
definition
IPC-164
configuration examples
configuration task list
verifying
IPC-175
home agents
HSRP groups
IPC-84
IPC-176
multicast routing
See IP multicast routing
multi-interface load splitting, configuring
address, aggregate
benefits
IPC-160, IPC-161
IPC-162
IPC-164
IPC-163
IPC-357
IPC-347
description
IPC-347
IPC-351
IPC-351
packet forwarding
IPC-162
restrictions
physical networks
IPC-165
registration
replay attacks
routing
IPC-162
IPC-163
IPC-162
Cisco IOS IP Configuration Guide
IN-566
IPC-355
enabling
peer group
IPC-159
IPC-367
IPC-165
overview
IPC-83
multicast
IPC-171
IPC-160, IPC-161
mobility binding
IP
size, specifying
IPC-178
IPC-84
of path
overview
IPC-525
IPC-165
IPC-525
mtrace command
IPC-163
deregistration
operation
IPC-524
mrouted protocol
IPC-161
IPC-163
care-of address
IPC-525
IPC-164
agent discovery
IPC-165
Mobile IP
AAA server
IPC-164
modes
IPC-120
keys
IPC-163, IPC-164
IPC-116
IPC-163
IPC-348
IPC-356
Index
IPC-91
configuring
IPC-35
IPC-46
IPC-38, IPC-39
local address
IPC-36
IPC-36
source translation
IPC-37
IPC-61
IPC-46
outside
IPC-309
IPC-320
IPC-297, IPC-350
IPC-311, IPC-353
IPC-319
neighbors, BGP
global address
local address
IPC-36
disabling
IPC-36
address (example)
addresses
IPC-324
overlapping
IPC-62
IPC-41
global address
IPC-39
IPC-62
IPC-35
IPC-138
IPC-38
IPC-71
IPC-63
IPC-45
IPC-26
IPC-18
cache entries
IPC-71
IPC-117
IPC-117
enabling on interfaces
netmask, definition
IPC-71
switching
IPC-19
IPC-52
IPC-117
IPC-47
IPC-325
network command
IPC-215
IPC-227, IPC-228
IPC-70
NetFlow
cache size, adjusting
IPC-145
IPC-321
IPC-310
IPC-43
IPC-322
IPC-326
netbios-name-server command
IPC-313
IPC-324
static translations
IPC-324
overloading
definition
IPC-321
IPC-322
timeouts
IPC-308
global address
IPC-321
inside
overview
IPC-304
IPC-46
IPC-321
IPC-321
displaying translations
IPC-238
IPC-321
IPC-201
IPC-351
enabling BGP
enabling EIGRP
IPC-70
IPC-215
IPC-297
IPC-259
Cisco IOS IP Configuration Guide
IN-567
Index
enabling OSPF
enabling RIP
traffic monitoring
IPC-225
tunnel (example)
IPC-200
IPC-218
OSPF
IPC-58
IPC-27
IPC-47
network numbers
BGP
tunnel network
IPC-49
IPC-19
IPC-293
IPC-230
xxxiii
IPC-350
IPC-227
xxxiv
O
ODR (On-Demand Routing)
(example)
IPC-51
configuration tasks
access list
IPC-22
default routes
authentication
IPC-22
description
cache clearing
dynamic entries
static entries
IPC-196
IPC-195
IPC-49
enabling
IPC-49
cache monitoring
IPC-196
IPC-196
information, filtering
IPC-49
IPC-197
Cisco implementation
IPC-18
redistributing
IPC-20
enabling
IPC-21
hold time
timer
IPC-26
initiation, controlling
offsets, applying
IPC-18
definition
packet rate
administrative distances
IPC-26
aging pacing
IPC-21
requests, triggering
server-only mode
IPC-236
IPC-228
IPC-25
IPC-26
IPC-27
IPC-229
IPC-225
IPC-23
IPC-26
IPC-230
IPC-233
IPC-19
IN-568
IPC-196
IPC-26
as responder
IPC-197
IPC-198
offset-list command
IPC-22, IPC-23
interfaces supported
loop detection
IPC-197
IPC-226
Index
defining an NSSA
on-demand circuit
IPC-236
Cisco implementation
packet pacing
IPC-223
IPC-249, IPC-388
refresh pacing
IPC-231
IPC-241
IPC-224
IPC-232
IPC-229
enabling
IPC-245, IPC-384
IPC-232
IPC-225
IPC-230
IPC-230
IPC-225
IPC-233
IPC-229
summarization of routes
IPC-238
IP multicast
IPC-225
route summarization
IPC-225
flooding reduction
IPC-233
IPC-231
IPC-233
IPC-226
IPC-236
IPC-241
configuration (examples)
cost differentiation
IPC-225
point-to-multipoint, description
IPC-252, IPC-391
IPC-239
point-to-multipoint (example)
IPC-234
IPC-229
IPC-231
IPC-225
IPC-223
IPC-225
IPC-238
IPC-300
output-delay command
IPC-208
IPC-226
authentication
IPC-229
IPC-285
interface, assigning on
IPC-238
IPC-285
IPC-282
IPC-223
neighbor command
IPC-285
domain, assigning on
IPC-232
IPC-233, IPC-370
IS-IS
area, assigning on
IPC-226
multicast addressing
passive-interface command
passwords
IPC-240
multicast, IP
IPC-238
IPC-225
understanding
IPC-226
IPC-228
IPC-235
IPC-229
IPC-112
IPC-83
peer groups
IPC-226
IPC-83
IPC-227
IPC-324
IPC-324
Cisco IOS IP Configuration Guide
IN-569
Index
permit command
IPC-91
xl
IPC-446
IP
privileged
user
IPC-48
real command
IPC-48
IPC-73
IPC-524
redistribute command
xlv
IPC-355
redistribution
IGRP
IPC-377
predictor command
IPC-299, IPC-300
IPC-369
xlv
IPC-373, IPC-376
prc-interval command
(example)
IPC-288
IPC-381
IPC-141
prefix list
IPC-305
deleting
IPC-307
route filtering
IPC-306
sequence values
reset
configured inbound soft, BGP
IPC-8
IPC-308
xl
xl
IPC-142
RFC
full text, obtaining
disabling
IPC-14
IPC-300
IPC-299
IPC-300
IPC-3
proxy ARP
IPC-28
IPC-381
IPC-307
definition
IPC-367
release notes
IPC-306
IPC-367
IPC-306
IPC-382
IPC-382
IPC-307
prompts, system
IPC-367
routing information
IPC-304
sequence numbers
show entries
IPC-306
IPC-305
removing an entry
IS-IS
entries, configuring
filtering with
IPC-339
IN-570
IPC-142
fast switched
reassign command
receivers command
IPC-73
platforms, supported
policy routing
IPC-142, IPC-145
xxxii
RFC 791
Internet Protocol
IPC-84
IPC-281
IPC-369
Index
subnetting
RFC 1348
IPC-9
RFC 792
Internet Control Message Protocol (ICMP)
IPC-81
RFC 826
ARP
IPC-17
IPC-334
RFC 1469
IPC-13
IPC-1
IPC-1
RFC 1531
Dynamic Host Configuration Protocol (DHCP)
RFC 903
RARP
IPC-13
RFC 919
Broadcasting Internet Datagrams
IPC-31
IPC-223
RFC 1631
IPC-199
IPC-401
RFC 1144
Compressing TCP/IP Headers for Low-Speed Serial
Links IPC-434
TCP/IP header compression
IPC-431
RFC 2091
Triggered Extensions to RIP to Support Demand
Circuits IPC-208
RFC 2236
Internet Group Management Protocol, Version
2 IPC-401
RFC 2362
RFC 2507
IPC-83, IPC-112
RFC 1195
IP Header Compression
IPC-434
RFC 2508
IPC-11
IPC-223
RFC 1256
IPC-29
IPC-113
IPC-8
RFC 1191
IPC-224
RFC 2018
RFC 1112
Internet Numbers
IPC-293,
IPC-303
IPC-13, IPC-14
IPC-35
RFC 1027
Proxy ARP
IPC-224
RFC 922
IPC-32
IPC-114
IP
authentication
IPC-203
authentication (example)
IPC-394
IN-571
Index
specifying
IPC-199
redistribution (example)
route summarization
IGRP types
IPC-203
route summarization
version, specifying
IPC-207
IPC-202
IPC-203
BGP
IPC-265
updates
IPC-203
IPC-299
routing tables
route-map command
BGP
IPC-373
attributes
for redistribution
IPC-367
updates
route maps
IPC-303
IPC-300
updates (BGP)
IPC-373
redistribution, defining
IPC-367
dynamic
IPC-29
static
IPC-367
IPC-215
IPC-364
RP (rendezvous point)
IPC-259
IPC-214
IPC-364
IPC-317
IPC-300
IP
IPC-297
IPC-167
IPC-196
IPC-430
IPC-225, IPC-234
IPC-200
routes
IPC-451
IPC-352
IN-572
IPC-370
routing table
route authentication
route reflector
IPC-230
IPC-206
IPC-285
IPC-201
IPC-230
IPC-262
IS-IS addresses
IPC-201
IPC-364
IPC-348
IPC-262
IPC-355
IPC-213
static, IP configuration
IPC-206
IPC-365
IPC-366
IPC-382
(examples) IPC-209
configuring IPC-205
disabling IPC-206
EIGRP IPC-205
restrictions IPC-205
specified interfaces
verifying IPC-205
RIP
default, IP
gateway of last resort, determining
IPC-200
hop count
EIGRP
IPC-206
connections supported
IPC-432
IPC-432
Index
description
enabling
express
IPC-430
services manager
IPC-432
IPC-433
sessions
BGP
IPC-453
default version
IPC-432
resetting
IPC-446
IPC-368
IPC-368
IPC-368
IPC-431
IPC-374
IPC-309
secondary addresses
IP
in networking subnets (example)
IPC-210,
IPC-265
IPC-113
IPC-524
IPC-266
IPC-87
IPC-368
IPC-306
IPC-306
IPC-50
IPC-133
IPC-119
IPC-119
IPC-48
IPC-368
IPC-143
IPC-286
IPC-369
IPC-369
IPC-368
set-overload-bit command
serverfarm command
IPC-368
IPC-368
send-lifetime command
IPC-368
IPC-368
for DRP
IPC-368
IPC-50
IPC-48
algorithms
IPC-135
description
IPC-133
IPC-141
IPC-375
IPC-374
IPC-9
senders command
IPC-374
IPC-505
assigning
IPC-374
IPC-374
satellite link
IPC-313
IPC-447
supported protocols
IPC-368
IPC-431
IPC-446
displaying
IPC-311
IPC-452
statistics
clearing
IPC-310
IPC-432
prerequisites
IPC-68
IPC-119
IPC-119
IPC-109
IN-573
Index
IPC-48
IPC-48
IPC-170
IPC-170
IPC-332
IPC-332
IPC-331
IPC-332
IPC-330
IPC-332
IPC-332
IPC-170
IPC-170
IPC-170
IPC-170
IPC-170
IPC-446
IPC-525
IPC-525
IPC-120
IPC-525
IPC-446, IPC-475
IPC-378
IPC-170
IPC-332
IPC-170
IPC-332
IPC-332
IPC-332
IPC-170
IPC-332
IPC-332
IPC-487
IPC-487
IPC-120
IPC-487
IPC-120
IPC-487
IPC-46
IPC-120
IPC-76
IPC-76
IPC-76
IPC-76
IPC-119
IPC-49
IPC-76
IPC-49
IPC-545
IPC-240
IPC-240
IPC-239, IPC-240
IPC-240
IPC-241
IPC-273
IPC-273
IPC-273
IPC-240
IPC-241
IPC-241
IPC-273
IPC-446
IPC-241
IPC-500
IPC-496, IPC-500
IPC-446, IPC-512
IPC-511
IPC-48
IPC-48
IPC-378
IPC-48
IPC-446
IN-574
IPC-241
IPC-497, IPC-500
IPC-500
IPC-422
IPC-447
Index
IPC-447
IPC-378
IPC-170
IPC-48, IPC-378
standby ip command
IPC-76
IPC-378
IPC-447
IPC-379
IPC-379
IPC-299, IPC-300
IPC-102
IPC-102
IPC-145
IPC-364
IPC-381
IPC-367
IPC-144
IPC-271
configuring
overview
IPC-85
IPC-207, IPC-219
IPC-103
IPC-120
static routes
configuration tasks
IPC-120
split horizon
benefits
IPC-120
IPC-288
IPC-108
EIGRP
IPC-85
spf-interval command
stub routing
IPC-102
See OSPF
IPC-85
stub area
IPC-376
IPC-102
sticky command
IPC-120
redistributing
IPC-289
IPC-103
redistribution (example)
IPC-289
configuring
IPC-289
IPC-102
IP
IPC-289
IPC-120
IPC-120
IPC-120
IPC-101
IPC-447
IPC-102
IPC-447
IPC-102
IPC-48, IPC-378
IPC-204
IPC-459
IPC-209
IPC-207, IPC-219
IPC-48, IPC-120
IPC-267
IPC-475
IPC-378
IPC-422
IPC-103
IPC-268
IPC-268
restrictions
verifying
IPC-272
IPC-271
IPC-272
ODR
definition
enabling
IPC-195
IPC-196
subnets
displaying number using masks
in OSPF network (figure)
IPC-48
IPC-247, IPC-386
IN-575
Index
IPC-50
window size
IPC-114
IPC-9
TCP/IP
IPC-244, IPC-379
definition
IPC-364
overview
IPC-231
IPC-302
EIGRP
IPC-325
IPC-267
EIGRP, adjusting
IGRP, adjusting
IPC-302
RIP, adjusting
IPC-340
synchronization command
IPC-266
IPC-217
IPC-201
IPC-302
IPC-144
IPC-202
IPC-198, IPC-218
IPC-326
functional address
IPC-325
IPC-323
IPC-112
privileged
IPC-112
user
IPC-114
IPC-112
IPC-111
IPC-115
IPC-113
IPC-119
IPC-120
IPC-114
Cisco IOS IP Configuration Guide
IPC-367
IPC-85
IPC-506
IPC-509
IPC-1
selective acknowledgment
IPC-217
statistics, displaying
IPC-49
transmit-interface command
IPC-111, IPC-433
statistics, clearing
IPC-49
traffic-share command
header compression
IN-576
IPC-416
IP
timestamp
IPC-417
trace command
overview
IPC-233
connections
express
IPC-237
Token Ring
xl
TCP
enabling
IPC-48
IPC-97
BGP, adjusting
IPC-206
synchronization, BGP
synguard command
IPC-48
timers
IPC-263
figure
disabling
IPC-1
IPC-285
summary addresses
aggregate
IPC-111, IPC-433
IPC-509
IPC-27
IPC-27
IPC-509
IPC-509
IPC-509
Index
IPC-509
IPC-120
IPC-509
IPC-96
IPC-34
U
UDLR (unidirectional link routing)
See IP multicast routing, UDLR
UDP (User Datagram Protocol)
broadcast addresses, establishing
IPC-33
datagrams
flooding
IPC-34
speeding up flooding
turbo flooding
IPC-34
IPC-199
udp-port command
IPC-34
IPC-524
IPC-214
xl
V
validate-update-source command
variance command
IPC-207, IPC-218
IPC-216
version command
IPC-202
IPC-143
IPC-231
IPC-364
ODR support
IPC-196
OSPF (example)
RIP Version 2
IPC-244, IPC-379
IPC-199
W
WANs, configuring over IP
weight command
IPC-115
IPC-142
Cisco IOS IP Configuration Guide
IN-577
Index
IN-578