Cisco IOS IP Command Reference Part 1 of 3
Cisco IOS IP Command Reference Part 1 of 3
IP
Command Reference, Volume 1 of 3:
Addressing and Services
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 Command Reference, Volume 1 of 3: Addressing and Services
Copyright 20012006 Cisco Systems, Inc.
All rights reserved.
C O N T E N T S
xv
IP Addressing Commands
IP1R-1
DHCP Commands
IP1R-103
IP Services Commands
IP1R-157
IP1R-305
IP1R-345
Index
iii
Contents
iv
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.
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
WR
Cisco IOS
Wide-Area
Networking
Command
Reference
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
vi
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
vii
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.
viii
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.
ix
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.
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].
xi
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
xii
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.
xiii
xiv
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.
xv
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.)
xvi
Command
Comment
Router> enable
Password: <password>
Router#
xvii
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
xviii
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
xix
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.
xx
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.
xxi
xxii
IP Addressing Commands
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 Internet protocols, collectively referred to as the Internet Protocol suite, are built. IP is
a network-layer protocol that contains addressing information and some 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 computers 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.
Use the commands in this chapter to configure and monitor the addressing of IP networks. For IP
addressing configuration information and examples, refer to the Configuring IP Addressing chapter of
the Cisco IOS IP Configuration Guide.
IP1R-1
IP Addressing Commands
arp (global)
arp (global)
To add a permanent entry in the Address Resolution Protocol (ARP) cache, use the arp global
configuration command. To remove an entry from the ARP cache, use the no form of this command.
arp ip-address hardware-address type [alias]
no arp ip-address hardware-address type [alias]
Syntax Description
ip-address
hardware-address
type
alias
Defaults
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
The Cisco IOS software uses ARP cache entries to translate 32-bit IP addresses into 48-bit hardware
addresses.
Because most hosts support dynamic resolution, you generally need not specify static ARP cache entries.
To remove all nonstatic entries from the ARP cache, use the clear arp-cache privileged EXEC
command.
Examples
The following is an example of a static ARP entry for a typical Ethernet host:
arp 192.31.7.19 0800.0900.1834 arpa
Related Commands
Command
Description
clear arp-cache
IP1R-2
IP Addressing Commands
arp (interface)
arp (interface)
To control the interface-specific handling of IP address resolution into 48-bit Ethernet, FDDI, Frame
Relay, and Token Ring hardware addresses, use the arp interface configuration command. To disable an
encapsulation type, use the no form of this command.
arp {arpa | frame-relay | probe | snap}
no arp {arpa | frame-relay | probe | snap}
Syntax Description
arpa
frame-relay
probe
snap
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Usage Guidelines
Unlike most commands that have multiple arguments, the arp command has arguments that are not
mutually exclusive. Each command enables or disables a specific type of ARP. For example, if you enter
the arp arpa command followed by the arp probe command, the Cisco IOS software would send three
packets (two for probe and one for arpa) each time it needed to discover a MAC address.
The arp probe command allows the software to use the Probe protocol (in addition to ARP) whenever
it attempts to resolve an IEEE-802.3 or Ethernet local data-link address. The subset of Probe that
performs address resolution is called Virtual Address Request and Reply. Using Probe, the Cisco IOS
software can communicate transparently with Hewlett Packard IEEE-802.3 hosts that use this type of
data encapsulation.
Note
Cisco support for HP Probe proxy support changed as of Release 8.3(2) and subsequent software
releases. The no arp probe command is now the default. All interfaces that will use Probe must now
be explicitly configured for the arp probe command.
Given a network protocol address (IP address), the arp frame-relay command determines the
corresponding hardware address, which would be a data-link connection identifier (DLCI) for Frame
Relay.
The show interfaces EXEC command displays the type of ARP being used on a particular interface. To
remove all nonstatic entries from the ARP cache, use the clear arp-cache privileged EXEC command.
IP1R-3
IP Addressing Commands
arp (interface)
Examples
Related Commands
Command
Description
clear arp-cache
show interfaces
Displays statistics for all interfaces configured on the router or access server.
IP1R-4
IP Addressing Commands
arp timeout
arp timeout
To configure how long an entry remains in the Address Resolution Protocol (ARP) cache, use the arp
timeout interface configuration command. To restore the default value, use the no form of this
command.
arp timeout seconds
no arp timeout seconds
Syntax Description
seconds
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Usage Guidelines
Time (in seconds) that an entry remains in the ARP cache. A value of zero
means that entries are never cleared from the cache.
This command is ignored when issued on interfaces that do not use ARP. The show interfaces EXEC
command displays the ARP timeout value. The value follows the Entry Timeout: heading, as seen in
the following example from the show interfaces command:
ARP type: ARPA, PROBE, Entry Timeout: 14400 sec
Examples
The following example sets the ARP timeout to 12000 seconds to allow entries to time out more quickly
than the default:
interface ethernet 0
arp timeout 12000
Related Commands
Command
Description
show interfaces
Displays statistics for all interfaces configured on the router or access server.
IP1R-5
IP Addressing Commands
clear arp-cache
clear arp-cache
To delete all dynamic entries from the Address Resolution Protocol ARP cache, to clear the
fast-switching cache, and to clear the IP route cache, use the clear arp-cache EXEC command.
clear arp-cache
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
10.0
Examples
The following example removes all dynamic entries from the ARP cache and clears the fast-switching
cache:
clear arp-cache
Related Commands
Command
Description
arp (global)
arp (interface)
IP1R-6
IP Addressing Commands
clear host
clear host
To delete entries from the host name-to-address cache, use the clear host EXEC command.
clear host {name | *}
Syntax Description
name
Command Modes
EXEC
Command History
Release
Modification
10.0
Usage Guidelines
The host name entries will not be removed from NVRAM, but will be cleared in running memory.
Examples
The following example clears all entries from the host name-to-address cache:
clear host *
Related Commands
Command
Description
ip host
show hosts
Displays the default domain name, the style of name lookup service, a list of
name server hosts, and the cached list of host names and addresses.
IP1R-7
IP Addressing Commands
clear ip nat translation
Syntax Description
forced
(Optional) Clears all dynamic translations and processes that are causing the
router to hang.
inside
(Optional) Clears the inside translations containing the specified global-ip and
local-ip addresses.
global-ip
local-ip
(Optional) Clears an entry that contains this local IP address and the specified
global-ip address.
outside
(Optional) Clears the outside translations containing the specified global-ip and
local-ip addresses.
protocol
Clears an entry that contains this protocol and the specified global-ip address,
local-ip address, global-port value, and local-port value.
global-port
Clears an entry that contains this global-port value and the specified protocol
value, global-ip address, local-ip address, and local-port value.
local-port
Clears an entry that contains this local-port value and the specified protocol
value, global-ip address, local-ip address, and global-port value.
Command Modes
EXEC
Command History
Release
Modification
11.2
Usage Guidelines
Use this command to clear entries from the translation table before they time out.
Examples
The following example shows the NAT entries before and after the User Datagram Protocol (UDP) entry
is cleared:
Router# show ip nat translation
Pro Inside global
Inside local
Outside local
udp 171.69.233.209:1220 192.168.1.95:1220 171.69.2.132:53
IP1R-8
Outside global
171.69.2.132:53
IP Addressing Commands
clear ip nat translation
171.69.1.220:23
171.69.1.161:23
Router# clear ip nat translation udp inside 171.69.233.209 1220 192.168.1.95 1220
171.69.2.132 53 171.69.2.132 53
Router# show ip nat translation
Pro Inside global
Inside local
Outside local
tcp 171.69.233.209:11012 192.168.1.89:11012 171.69.1.220:23
tcp 171.69.233.209:1067 192.168.1.95:1067 171.69.1.161:23
Related Commands
Outside global
171.69.1.220:23
171.69.1.161:23
Command
Description
ip nat
ip nat pool
ip nat service
Changes the amount of time after which NAT translations time out.
IP1R-9
IP Addressing Commands
clear ip nhrp
clear ip nhrp
To clear all dynamic entries from the Next Hop Resolution Protocol (NHRP) cache, use the
clear ip nhrp EXEC command.
clear ip nhrp
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
11.0
Usage Guidelines
This command does not clear any static (configured) IP-to-nonbroadcast multiaccess (NBMA) address
mappings from the NHRP cache.
Examples
The following example clears all dynamic entries from the NHRP cache for the interface:
clear ip nhrp
Related Commands
Command
Description
show ip nhrp
IP1R-10
IP Addressing Commands
clear ip route
clear ip route
To delete routes from the IP routing table, use the clear ip route EXEC command.
clear ip route {network [mask] | *}
Syntax Description
network
mask
Defaults
Command Modes
EXEC
Command History
Release
Modification
10.0
Examples
The following example removes a route to network 132.5.0.0 from the IP routing table:
clear ip route 132.5.0.0
IP1R-11
IP Addressing Commands
ip address
ip address
To set a primary or secondary IP address for an interface, use the ip address interface configuration
command. To remove an IP address or disable IP processing, use the no form of this command.
ip address ip-address mask [secondary]
no ip address ip-address mask [secondary]
Syntax Description
ip-address
IP address.
mask
secondary
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Usage Guidelines
An interface can have one primary IP address and multiple secondary IP addresses. Packets generated
by the Cisco IOS software always use the primary IP address. Therefore, all routers and access servers
on a segment should share the same primary network number.
Hosts can determine subnet masks using the Internet Control Message Protocol (ICMP) mask request
message. Routers respond to this request with an ICMP mask reply message.
You can disable IP processing on a particular interface by removing its IP address with the no ip address
command. If the software detects another host using one of its IP addresses, it will print an error message
on the console.
The optional secondary keyword allows you to specify an unlimited number of secondary addresses.
Secondary addresses are treated like primary addresses, except the system never generates datagrams
other than routing updates with secondary source addresses. IP broadcasts and Address Resolution
Protocol (ARP) requests are handled properly, as are interface routes in the IP routing table.
Secondary IP addresses can be used in a variety of situations. The following are the most common
applications:
There may not be enough host addresses for a particular network segment. For example, your
subnetting allows up to 254 hosts per logical subnet, but on one physical subnet you need 300 host
addresses. Using secondary IP addresses on the routers or access servers allows you to have two
logical subnets using one physical subnet.
IP1R-12
IP Addressing Commands
ip address
Many older networks were built using Level 2 bridges. The judicious use of secondary addresses can
aid in the transition to a subnetted, router-based network. Routers on an older, bridged segment can
be easily made aware that many subnets are on that segment.
Two subnets of a single network might otherwise be separated by another network. This situation is
not permitted when subnets are in use. In these instances, the first network is extended, or layered
on top of the second network using secondary addresses.
Note
If any router on a network segment uses a secondary address, all other devices on that same segment
must also use a secondary address from the same network or subnet. Inconsistent use of secondary
addresses on a network segment can very quickly cause routing loops.
Note
When you are routing using the Open Shortest Path First (OSPF) algorithm, ensure that all secondary
addresses of an interface fall into the same OSPF area as the primary addresses.
To transparently bridge IP on an interface, you must perform the following two tasks:
To concurrently route and transparently bridge IP on an interface, see the bridge crb command.
Examples
In the following example, 131.108.1.27 is the primary address and 192.31.7.17 and 192.31.8.17 are
secondary addresses for Ethernet interface 0:
interface ethernet 0
ip address 131.108.1.27 255.255.255.0
ip address 192.31.7.17 255.255.255.0 secondary
ip address 192.31.8.17 255.255.255.0 secondary
Related Commands
Command
Description
bridge crb
Enables the Cisco IOS software to both route and bridge a given protocol on
separate interfaces within a single router.
bridge-group
IP1R-13
IP Addressing Commands
ip broadcast-address
ip broadcast-address
To define a broadcast address for an interface, use the ip broadcast-address interface configuration
command. To restore the default IP broadcast address, use the no form of this command.
ip broadcast-address [ip-address]
no ip broadcast-address [ip-address]
Syntax Description
ip-address
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Examples
IP1R-14
IP Addressing Commands
ip cef traffic-statistics
ip cef traffic-statistics
To change the time interval that controls when Next Hop Resolution Protocol (NHRP) will set up or tear
down a switched virtual circuit (SVC), use the ip cef traffic-statistics global configuration command.
To restore the default values, use the no form of this command.
ip cef traffic-statistics [load-interval seconds] [update-rate seconds]
no ip cef traffic-statistics
Syntax Description
Defaults
load-interval seconds
update-rate seconds
(Optional) Frequency that the port adapter sends the accounting statistics
to the Route Processor (RP). When using NHRP in distributed CEF
switching mode, this value must be set to 5 seconds. The default value is
10 seconds.
load-interval: 30 seconds
update-rate: 10 seconds
Command Modes
Global configuration
Command History
Release
Modification
12.0
Usage Guidelines
The thresholds in the ip nhrp trigger-svc command are measured during a sampling interval of 30
seconds, by default. To change that interval, use the load-interval seconds option of the
ip cef traffic-statistics command.
When NHRP is configured on a CEF switching node with a Versatile Interface Processor (VIP2) adapter,
you must make sure the update-rate keyword is set to 5 seconds.
Other Cisco IOS features could also use the ip cef traffic-statistics command; this NHRP feature relies
on it.
Examples
In the following example, the triggering and teardown thresholds are calculated based on an average over
120 seconds:
ip cef traffic-statistics load-interval 120
IP1R-15
IP Addressing Commands
ip cef traffic-statistics
Related Commands
Command
Description
ip nhrp trigger-svc
Configures when NHRP will set up and tear down an SVC based on
aggregate traffic rates.
IP1R-16
IP Addressing Commands
ip classless
ip classless
At times the router might receive packets destined for a subnet of a network that has no network default
route. To have the Cisco IOS software forward such packets to the best supernet route possible, use the
ip classless global configuration command. To disable this feature, use the no form of this command.
ip classless
no ip classless
Syntax Description
Defaults
Enabled
Command Modes
Global configuration
Command History
Release
Modification
10.0
11.3
Usage Guidelines
This command allows the software to forward packets that are destined for unrecognized subnets of
directly connected networks. The packets are forwarded to the best supernet route.
When this feature is disabled, the Cisco IOS software discards the packets when a router receives packets
for a subnet that numerically falls within its subnetwork addressing scheme, no such subnet number is
in the routing table and there is no network default route.
Note
Examples
If the supernet, or default route, is learned via IS-IS or OSPF, the no ip classless configuration
command is ignored.
The following example prevents the software from forwarding packets destined for an unrecognized
subnet to the best supernet possible:
no ip classless
IP1R-17
IP Addressing Commands
ip default-gateway
ip default-gateway
To define a default gateway (router) when IP routing is disabled, use the ip default-gateway global
configuration command. To disable this function, use the no form of this command.
ip default-gateway ip-address
no ip default-gateway ip-address
Syntax Description
ip-address
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
The Cisco IOS software sends any packets that need the assistance of a gateway to the address you
specify. If another gateway has a better route to the requested host, the default gateway sends an Internet
Control Message Protocol (ICMP) redirect message back. The ICMP redirect message indicates which
local router the Cisco IOS software should use.
Examples
The following example defines the router on IP address 192.31.7.18 as the default router:
ip default-gateway 192.31.7.18
Related Commands
Command
Description
ip redirects
Enables the sending of ICMP redirect messages if the Cisco IOS software is
forced to resend a packet through the same interface on which it was
received.
show ip redirects
Displays the address of a default gateway (router) and the address of hosts
for which an ICMP redirect message has been received.
IP1R-18
IP Addressing Commands
ip directed-broadcast
ip directed-broadcast
To enable the translation of a directed broadcast to physical broadcasts, use the ip directed-broadcast
interface configuration command. To disable this function, use the no form of this command.
ip directed-broadcast [access-list-number] | [extended access-list-number]
no ip directed-broadcast [access-list-number] | [extended access-list-number]
Syntax Description
access-list-number
extended access-list-number
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.0
12.0
Usage Guidelines
An IP directed broadcast is an IP packet whose destination address is a valid broadcast address for some
IP subnet, but which originates from a node that is not itself part of that destination subnet.
A router that is not directly connected to its destination subnet forwards an IP directed broadcast in the
same way it would forward unicast IP packets destined to a host on that subnet. When a directed
broadcast packet reaches a router that is directly connected to its destination subnet, that packet is
exploded as a broadcast on the destination subnet. The destination address in the IP header of the
packet is rewritten to the configured IP broadcast address for the subnet, and the packet is sent as a
link-layer broadcast.
The ip directed-broadcast interface command controls the explosion of directed broadcasts when they
reach their target subnets. The command affects only the final transmission of the directed broadcast on
its ultimate destination subnet. It does not affect the transit unicast routing of IP directed broadcasts.
If directed broadcast is enabled for an interface, incoming IP packets whose addresses identify them as
directed broadcasts intended for the subnet to which that interface is attached will be exploded as
broadcasts on that subnet. If an access list has been configured with the ip directed-broadcast
command, only directed broadcasts that are permitted by the access list in question will be forwarded;
all other directed broadcasts destined for the interface subnet will be dropped.
If the no ip directed-broadcast command has been configured for an interface, directed broadcasts
destined for the subnet to which that interface is attached will be dropped, rather than being broadcast.
IP1R-19
IP Addressing Commands
ip directed-broadcast
Note
Examples
Because directed broadcasts, and particularly Internet Control Message Protocol (ICMP)
directed broadcasts, have been abused by malicious persons, we recommend that
security-conscious users disable the ip directed-broadcast command on any intereface
where directed broadcasts are not needed and that they use access lists to limit the number
of exploded packets.
Related Commands
Command
Description
ip forward-protocol
Specifies which protocols and ports the router forwards when forwarding
broadcast packets.
IP1R-20
IP Addressing Commands
ip dns primary
ip dns primary
To configure the router as authoritative for its zone, use the ip dns primary command in global
configuration mode. To disable, use the no form of this command.
ip dns primary name soa server-name mailbox-name [refresh-time [retry-time]]
no ip dns primary name soa server-name mailbox-name [refresh-time [retry-time]]
Syntax Description
name
soa
server-name
mailbox-name
refresh-time
retry-time
Command Default
Command Modes
<<Text.>>
Command History
Release
Modification
11.1
Usage Guidelines
<<Text.>>
Examples
Related Commands
Command
Description
<<command>>
<<FID.>>
IP1R-21
IP Addressing Commands
ip domain list
ip domain list
To define a list of default domain names to complete unqualified host names, use the ip domain list
command in global configuration mode. To delete a name from a list, use the no form of this command.
ip domain list name
no ip domain list name
Syntax Description
name
Defaults
Command Modes
Global configuration
Command History
Release
Modification
10.0
12.2
Usage Guidelines
If there is no domain list, the domain name that you specified with the ip domain name global
configuration command is used. If there is a domain list, the default domain name is not used. The ip
domain list command is similar to the ip domain name command, except that with the ip domain list
command you can define a list of domains, each to be tried in turn.
The Cisco IOS software will still accept the previous version of the command ip domain-list.
Examples
The following example adds a name to and then deletes a name from the list:
ip domain list school.edu
no ip domain list school.edu
Related Commands
Command
Description
ip domain name
IP1R-22
IP Addressing Commands
ip domain lookup
ip domain lookup
To enable the IP Domain Naming System (DNS)-based host name-to-address translation, use the
ip domain lookup command in global configuration mode. To disable the DNS, use the no form of this
command.
ip domain lookup
no ip domain lookup
Syntax Description
Defaults
Enabled
Command Modes
Global configuration
Command History
Release
Modification
10.0
12.2
Usage Guidelines
The Cisco IOS software will still accept the previous version of the command ip domain-lookup.
Examples
Related Commands
Command
Description
ip domain name
ip name-server
Specifies the address of one or more name servers to use for name and
address resolution.
IP1R-23
IP Addressing Commands
ip domain name
ip domain name
To define a default domain name that the Cisco IOS software uses to complete unqualified host names
(names without a dotted-decimal domain name), use the ip domain-name command in global
configuration mode. To disable use of the Domain Name System (DNS), use the no form of this
command.
ip domain name name
no ip domain name name
Syntax Description
name
Defaults
Enabled
Command Modes
Global configuration
Command History
Release
Modification
10.0
12.2
Usage Guidelines
Any IP host name that does not contain a domain name (that is, any name without a dot) will have the
dot and cisco.com appended to it before being added to the host table.
The Cisco IOS software will still accept the previous version of the command ip domain-name.
Examples
Related Commands
Command
Description
ip domain list
ip domain lookup
ip name-server
Specifies the address of one or more name servers to use for name and
address resolution.
IP1R-24
IP Addressing Commands
ip domain round-robin
ip domain round-robin
To enable round-robin functionality on DNS servers, use the ip domain round-robin command in global
configuration mode. To disable round-robin functionality, use the no form of the command.
ip domain round-robin
no ip domain round-robin
Syntax Description
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.1(3)T
Usage Guidelines
In a multiple server configuration without the DNS round-robin functionality, the first host server/IP
address is used for the whole time to live (TTL) of the cache, and uses the second and third only in the
event of host failure. This behavior presents a problem when a high volume of users all arrive at the first
host during the TTL time. The network access server (NAS) then sends out a DNS query; the DNS
servers reply with a list of the configured IP addresses to the NAS. The NAS then caches these IP
addresses for a given time (for example, five minutes). All users that dial in during the five minute TTL
time will land on one host, the first IP address in the list.
In a multiple server configuration with the DNS round-robin functionality, the DNS server returns the IP
address of all hosts to rotate between the cache of host names. During the TTL of the cache, users are
distributed among the hosts. This functionality distributes calls across the configured hosts and reduces
the amount of DNS queries.
Examples
The following example allows a Telnet to www.company.com to connect to each of the three IP addresses
specified in the following order: the first time the Telnet command is given, it would connect to 10.0.0.1;
the second time the command is given, it would connect to 20.0.0.1; and the third time the command is
given, it would connect to 30.0.0.1. In each case, the other two addresses would also be tried if the first
one failed; this is the normal operation of the Telnet command.
Router(config)# ip host www.company.com 10.0.0.1 20.0.0.1 30.0.0.1
Router(config)# ip domain round-robin
IP1R-25
IP Addressing Commands
ip forward-protocol
ip forward-protocol
To specify which protocols and ports the router forwards when forwarding broadcast packets, use the ip
forward-protocol global configuration command. To remove a protocol or port, use the no form of this
command.
ip forward-protocol {udp [port] | nd | sdns}
no ip forward-protocol {udp [port | nd | sdns}
Syntax Description
udp
Forwards User Datagram Protocol (UDP) datagrams. See the Defaults section
for a list of port numbers forwarded by default.
port
(Optional) Destination port that controls which UDP services are forwarded.
nd
Forwards Network Disk (ND) datagrams. This protocol is used by older diskless
Sun workstations.
sdns
Defaults
Enabled
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
Enabling a helper address or UDP flooding on an interface causes the Cisco IOS software to forward
particular broadcast packets. You can use the ip forward-protocol command to specify exactly which
types of broadcast packets you would like to have forwarded. A number of commonly forwarded
applications are enabled by default. Enabling forwarding for some ports (for example, Routing
Information Protocol (RIP) may be hazardous to your network.
If you use the ip forward-protocol command, specifying only UDP without the port enables forwarding
and flooding on the default ports.
One common application that requires helper addresses is Dynamic Host Configuration Protocol
(DHCP). DHCP is defined in RFC 1531. DHCP protocol information is carried inside of BOOTP
packets. To enable BOOTP broadcast forwarding for a set of clients, configure a helper address on the
router interface closest to the client. The helper address should specify the address of the DHCP server.
If you have multiple servers, you can configure one helper address for each server. Because BOOTP
packets are forwarded by default, DHCP information can now be forwarded by the software. The DHCP
server now receives broadcasts from the DHCP clients.
If an IP helper address is defined, UDP forwarding is enabled on default ports. If UDP flooding is
configured, UDP flooding is enabled on the default ports.
If a helper address is specified and UDP forwarding is enabled, broadcast packets destined to the
following port numbers are forwarded by default:
IP1R-26
IP Addressing Commands
ip forward-protocol
Boot Protocol (BOOTP) client and server datagrams (ports 67 and 68)
IP1R-27
IP Addressing Commands
ip forward-protocol spanning-tree
ip forward-protocol spanning-tree
To permit IP broadcasts to be flooded throughout the internetwork in a controlled fashion, use the
ip forward-protocol spanning-tree global configuration command. To disable the flooding of IP
broadcasts, use the no form of this command.
ip forward-protocol spanning-tree [any-local-broadcast]
no ip forward-protocol spanning-tree [any-local-broadcast]
Syntax Description
any-local-broadcast
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
The MAC address of the received frame must be all-ones broadcast address (ffff.ffff.ffff).
The IP destination address must be one of the following: all-ones broadcast (255.255.255.255),
subnet broadcast for the receiving interface; major-net broadcast for the receiving interface if the no
ip classless command is also configured; or any local IP broadcast address if the ip
forward-protocol spanning-tree any-local-broadcast command is configured.
The UDP destination port must be for TFTP, Domain Name System (DNS), Time, NetBIOS, ND, or
BOOTP packet, or a UDP port specified by the ip forward-protocol udp global configuration
command.
A flooded UDP datagram is given the destination address specified by the ip broadcast-address
interface configuration command 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.
The ip forward-protocol spanning-tree command uses the database created by the bridging
Spanning-Tree Protocol. Therefore, the transparent bridging option must be in the routing software, and
bridging must be configured on each interface that is to participate in the flooding in order to support
this capability.
IP1R-28
IP Addressing Commands
ip forward-protocol spanning-tree
If an interface does not have bridging configured, it still will be able to receive broadcasts, but it will
never forward broadcasts received on that interface. Also, it will never use that interface to send
broadcasts received on a different interface.
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 in 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.
The spanning-tree-based flooding mechanism forwards packets whose contents are all ones
(255.255.255.255), all zeros (0.0.0.0), and, if subnetting is enabled, all networks (131.108.255.255 as an
example in the network number 131.108.0.0). This mechanism also forward packets whose contents are
the zeros version of the all-networks broadcast when subnetting is enabled (for example, 131.108.0.0).
This command is an extension of the ip helper-address interface configuration command, in that the
same packets that may be subject to the helper address and forwarded to a single network can now be
flooded. Only one copy of the packet will be put on each network segment. In some cases, where DHCP
broadcasts are being forwarded to spanning-tree enabled interfaces, a duplicate copy of the packet will
be put on a network segment. See the ip directed-broadcast global configuration command for
information on how to ensure that duplicate packets are not copied onto a network segment.
Examples
The following example permits IP broadcasts to be flooded through the internetwork in a controlled
fashion:
ip forward-protocol spanning-tree
Related Commands
Command
Description
ip broadcast-address
ip directed-broadcast
ip forward-protocol
ip forward-protocol turbo-flood
ip helper-address
IP1R-29
IP Addressing Commands
ip forward-protocol turbo-flood
ip forward-protocol turbo-flood
To speed up flooding of User Datagram Protocol (UDP) datagrams using the spanning-tree algorithm,
use the ip forward-protocol turbo-flood global configuration command. To disable this feature, use the
no form of this command.
ip forward-protocol turbo-flood
no ip forward-protocol turbo-flood
Syntax Description
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
Used in conjunction with the ip forward-protocol spanning-tree global configuration command, this
feature is supported over Advanced Research Projects Agency (ARPA)-encapsulated Ethernets, FDDI,
and High-Level Data Link Control (HDLC) encapsulated serials, but is not supported on Token Rings.
As long as the Token Rings and the non-HDLC serials are not part of the bridge group being used for
UDP flooding, turbo flooding will behave normally.
Examples
IP1R-30
IP Addressing Commands
ip forward-protocol turbo-flood
Related Commands
Command
Description
ip forward-protocol
IP1R-31
IP Addressing Commands
ip helper-address
ip helper-address
To have the Cisco IOS software forward User Datagram Protocol (UDP) broadcasts, including BOOTP,
received on an interface, use the ip helper-address interface configuration command. To disable the
forwarding of broadcast packets to specific addresses, use the no form of this command.
ip helper-address address
no ip helper-address address
Syntax Description
address
Defaults
Disabled
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Usage Guidelines
The MAC address of the received frame must be all-ones broadcast address (ffff.ffff.ffff).
The IP destination address must be one of the following: all-ones broadcast (255.255.255.255),
subnet broadcast for the receiving interface; or major-net broadcast for the receiving interface if the
no ip classless command is also configured.
The UDP destination port must be for TFTP, Domain Name System (DNS), Time, NetBIOS, ND,
BOOTP or DHCP packet, or a UDP port specified by the ip forward-protocol udp global
configuration command.
IP1R-32
IP Addressing Commands
ip helper-address
Note
Examples
The ip helper-address command does not work on an X.25 interfaceon a destination router because
the router cannot determine if the packet was intended as a physical broadcast.
Related Commands
Command
Description
ip forward-protocol
Specifies which protocols and ports the router forwards when forwarding
broadcast packets.
IP1R-33
IP Addressing Commands
ip helper-address
Related Commands
Command
Description
ip forward-protocol
Specifies which protocols and ports the router forwards when forwarding
broadcast packets.
IP1R-34
IP Addressing Commands
ip host
ip host
To define a static host name-to-address mapping in the host cache, use the ip host global configuration
command. To remove the name-to-address mapping, use the no form of this command.
ip host name [tcp-port-number] {address1 [address2...address8]}
no ip host name [tcp-port-number] {address1 [address2...address8]}
Syntax Description
name
tcp-port-number
address1
Associated IP address.
address2...address8
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
The first character can be either a letter or a number. If you use a number, the types of operations you
can perform (such as ping) are limited.
Examples
IP1R-35
IP Addressing Commands
ip hp-host
ip hp-host
To enter into the host table the host name of a Hewlett-Packard (HP) host to be used for HP Probe Proxy
service, use the ip hp-host global configuration command. To remove a host name, use the no form of
this command.
ip hp-host host-name ip-address
no ip hp-host host-name ip-address
Syntax Description
host-name
ip-address
Defaults
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
To use the HP Probe Proxy service, you must first enter the host name of the HP host into the host table
using this command.
Examples
The following example specifies the name and address of an HP host, and then enables HP Probe Proxy:
ip hp-host BCWjo 131.108.1.27
interface ethernet 0
ip probe proxy
Related Commands
Command
Description
ip probe proxy
Enables the HP Probe Proxy support, which allows the Cisco IOS software
to respond to HP Probe Proxy name requests.
IP1R-36
IP Addressing Commands
ip irdp
ip irdp
To enable ICMP Router Discovery Protocol (IRDP) processing on an interface, use the ip irdp interface
configuration command. To disable IRDP routing, use the no form of this command.
ip irdp [multicast | holdtime seconds | maxadvertinterval seconds | minadvertinterval seconds |
preference number | address address [number]]
no ip irdp
Syntax Description
Defaults
multicast
holdtime seconds
maxadvertinterval seconds
minadvertinterval seconds
preference number
Disabled
When enabled, IRDP uses these defaults:
Preference: 0
Command Modes
Interface configuration
Command History
Release
Modification
10.0
IP1R-37
IP Addressing Commands
ip irdp
Usage Guidelines
If you change the maxadvertinterval value, the other two values also change, so it is important to
change the maxadvertinterval value before changing either the holdtime or minadvertinterval values.
The ip irdp multicast command allows for compatibility with Sun Microsystems Solaris, which requires
IRDP packets to be sent out as multicasts. Many implementations cannot receive these multicasts; ensure
end-host ability before using this command.
Examples
Related Commands
Command
Description
The following is
sample output from
the show ip interface
brief command:
IP1R-38
IP Addressing Commands
ip mobile arp
ip mobile arp
To enable local-area mobility, use the ip mobile arp interface configuration command. To disable
local-area mobility, use the no form of this command.
ip mobile arp [timers keepalive hold-time] [access-group access-list-number | name]
no ip mobile arp [timers keepalive hold-time] [access-group access-list-number | name]
Syntax Description
Defaults
timers
keepalive
hold-time
(Optional) Hold time, in minutes. This is the length of time the software
considers that a relocated host is present without receiving some type of
ARP broadcast or unicast from the host. Normally, the hold time should be
at least three times greater than the keepalive time. The default hold time is
15 minutes (900 seconds).
access-group
(Optional) Indicates that you are applying an access list. This access list
applies only to local-area mobility.
access-list-number
name
Command Modes
Interface configuration
Command History
Release
Modification
11.0
Usage Guidelines
Local-area mobility is supported on Ethernet, Token Ring, and FDDI interfaces only.
IP1R-39
IP Addressing Commands
ip mobile arp
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 IGRP, Open Shortest Path First
(OSPF), or Intermediate System-to-Intermediate System (IS-IS); you can also use Routing Information
Protocol (RIP), but RIP is not recommended. The mobile area must consist of a contiguous set of
subnets.
Using an access list to control the list of possible mobile nodes is strongly encouraged. Without an access
list, misconfigured hosts can be taken for mobile nodes and disrupt normal operations.
Examples
Related Commands
Command
Description
default-metric (BGP)
Sets default metric values for the BGP, OSPF, and RIP routing protocols.
default-metric (OSPF)
default-metric (RIP)
network (BGP)
network (IGRP)
network (RIP)
redistribute (IP)
router eigrp
router isis
Enables the IS-IS routing protocol and specifies an IS-IS process for IP.
router ospf
IP1R-40
IP Addressing Commands
ip name-server
ip name-server
To specify the address of one or more name servers to use for name and address resolution, use the ip
name-server global configuration command. To remove the addresses specified, use the no form of this
command.
ip name-server server-address1 [server-address2...server-address6]
no ip name-server server-address1 [server-address2...server-address6]
Syntax Description
server-address1
server-address2...server-address6
Defaults
Command Modes
Global configuration
Command History
Release
Modification
10.0
Examples
The following example specifies host 131.108.1.111 as the primary name server and host 131.108.1.2 as
the secondary server:
ip name-server 131.108.1.111 131.108.1.2
Related Commands
Command
Description
ip domain lookup
ip domain name
IP1R-41
IP Addressing Commands
ip nat
ip nat
To designate that traffic originating from or destined for the interface is subject to Network Address
Translation (NAT), use the ip nat interface configuration command. To prevent the interface from being
able to translate, use the no form of this command.
ip nat {inside | outside} | log {translations syslog}
no ip nat {inside | outside} | log {translations syslog}
Syntax Description
inside
Indicates that the interface is connected to the inside network (the network
subject to NAT translation).
outside
log
translations
syslog
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
11.2
Usage Guidelines
Only packets moving between inside and outside interfaces can be translated. You must specify at least
one inside interface and outside interface for each border router where you intend to use NAT.
NAT translations logging can be enabled or disabled with the ip nat log translations syslog command.
Examples
The following example translates between inside hosts addressed from either the 192.168.1.0 or
192.168.2.0 network to the globally unique 171.69.233.208/28 network:
ip nat pool net-208 171.69.233.208 171.69.233.223 prefix-length 28
ip nat inside source list 1 pool net-208
!
interface ethernet 0
ip address 171.69.232.182 255.255.255.240
ip nat outside
!
interface ethernet 1
ip address 192.168.1.94 255.255.255.0
ip nat inside
!
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 1 permit 192.168.2.0 0.0.0.255
IP1R-42
IP Addressing Commands
ip nat
Related Commands
Command
Description
ip nat pool
ip nat service
IP1R-43
IP Addressing Commands
ip nat inside destination
Syntax Description
list access-list-number
list name
pool name
Name of the pool from which global IP addresses are allocated during
dynamic translation.
Defaults
Command Modes
Global configuration
Command History
Release
Modification
11.2
Usage Guidelines
This command has two forms: dynamic and static address translation. The form with an access list
establishes dynamic translation. Packets from addresses that match the standard access list are translated
using global addresses allocated from the pool named with the ip nat pool command.
IP1R-44
IP Addressing Commands
ip nat inside destination
Examples
The following example translates between inside hosts addressed to either the 192.168.1.0 or
192.168.2.0 network to the globally unique 171.69.233.208/28 network:
ip nat pool net-208 171.69.233.208 171.69.233.223 prefix-length 28
ip nat inside destination list 1 pool net-208
!
interface ethernet 0
ip address 171.69.232.182 255.255.255.240
ip nat outside
!
interface ethernet 1
ip address 192.168.1.94 255.255.255.0
ip nat inside
!
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 1 permit 192.168.2.0 0.0.0.255
Related Commands
Command
Description
ip nat
ip nat pool
ip nat service
IP1R-45
IP Addressing Commands
ip nat inside source
ip nat inside source {static {tcp | udp local-ip local-port global-ip global-port} [extendable]
[no-alias]
no ip nat inside source {static {tcp | udp local-ip local-port global-ip global-port} [extendable]
[no-alias]
Network Static NAT
Syntax Description
list access-list-number
Standard IP access list number. Packets with source addresses that pass
the access list are dynamically translated using global addresses from the
named pool.
list name
Name of a standard IP access list. Packets with source addresses that pass
the access list are dynamically translated using global addresses from the
named pool.
pool name
overload
(Optional) Enables the router to use one global address for many local
addresses. When overloading is configured, the TCP or UDP port number
of each inside host distinguishes between the multiple conversations
using the same local IP address.
static local-ip
local-port
IP1R-46
IP Addressing Commands
ip nat inside source
static global-ip
global-port
extendable
no-alias
(Optional) Prohibits an alias from being created for the global address.
tcp
udp
network local-network
global-network
mask
Defaults
Command Modes
Global configuration
Command History
Release
Modification
11.2
Usage Guidelines
This command has two forms: dynamic and static address translation. The form with an access list
establishes dynamic translation. Packets from addresses that match the standard access list are translated
using global addresses allocated from the pool named with the ip nat pool command.
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.
Alternatively, the syntax form with the keyword static establishes a single static translation.
Examples
The following example translates between inside hosts addressed from either the 192.168.1.0 or
192.168.2.0 network to the globally unique 171.69.233.208/28 network:
ip nat pool net-208 171.69.233.208 171.69.233.223 prefix-length 28
ip nat inside source list 1 pool net-208
!
interface ethernet 0
ip address 171.69.232.182 255.255.255.240
ip nat outside
!
interface ethernet 1
ip address 192.168.1.94 255.255.255.0
ip nat inside
!
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 1 permit 192.168.2.0 0.0.0.255
IP1R-47
IP Addressing Commands
ip nat inside source
Related Commands
Command
Description
ip nat
ip nat pool
ip nat service
IP1R-48
IP Addressing Commands
ip nat outside source
ip nat outside source {static {tcp | udp global-ip global-port local-ip local-port} [add-route]
[extendable] [no-alias]
no ip nat outside source {static {tcp | udp global-ip global-port local-ip local-port} [add-route]
[extendable] [no-alias]
Networkt Static NAT
Syntax Description
list access-list-number
Standard IP access list number. Packets with source addresses that pass
the access list are translated using global addresses from the named pool.
list name
Name of a standard IP access list. Packets with source addresses that pass
the access list are translated using global addresses from the named pool.
pool name
add-route
static global-ip
global-port
static local-ip
local-port
extendable
IP1R-49
IP Addressing Commands
ip nat outside source
no-alias
(Optional) Prohibits an alias from being created for the local address.
tcp
udp
network global-network
local-network
mask
Defaults
No translation of source addresses coming from the outside to the inside network occurs.
Command Modes
Global configuration
Command History
Release
Modification
11.2
Usage Guidelines
You might have IP addresses that are not legal, officially assigned IP addresses. Perhaps you chose IP
addresses that officially belong to another network. The case of an address used illegally and legally is
called overlapping. You can use NAT to translate inside addresses that overlap with outside addresses.
Use this feature if your IP addresses in the stub network happen to be legitimate IP addresses belonging
to another network, and you need to communicate with those hosts or routers.
This command has two forms: dynamic and static address translation. The form with an access list
establishes dynamic translation. Packets from addresses that match the standard access list are translated
using global addresses allocated from the pool named with the ip nat pool command.
Alternatively, the syntax form with the static keyword establishes a single static translation.
Examples
The following example translates between inside hosts addressed from the 9.114.11.0 network to the
globally unique 171.69.233.208/28 network. Further packets from outside hosts addressed from the
9.114.11.0 network (the true 9.114.11.0 network) are translated to appear to be from the 10.0.1.0/24
network.
ip nat pool net-208 171.69.233.208 171.69.233.223 prefix-length 28
ip nat pool net-10 10.0.1.0 10.0.1.255 prefix-length 24
ip nat inside source list 1 pool net-208
ip nat outside source list 1 pool net-10
!
interface ethernet 0
ip address 171.69.232.182 255.255.255.240
ip nat outside
!
interface ethernet 1
ip address 9.114.11.39 255.255.255.0
ip nat inside
!
access-list 1 permit 9.114.11.0 0.0.0.255
IP1R-50
IP Addressing Commands
ip nat outside source
Related Commands
Command
Description
ip nat
ip nat pool
ip nat service
IP1R-51
IP Addressing Commands
ip nat pool
ip nat pool
To define a pool of IP addresses for Network Address Translation (NAT), use the ip nat pool global
configuration command. To remove one or more addresses from the pool, use the no form of this
command.
ip nat pool name start-ip end-ip {netmask netmask | prefix-length prefix-length}[type rotary]
no ip nat pool name start-ip end-ip {netmask netmask | prefix-length prefix-length} [type rotary]
Syntax Description
name
start-ip
Starting IP address that defines the range of addresses in the address pool.
end-ip
Ending IP address that defines the range of addresses in the address pool.
netmask netmask
Network mask that indicates which address bits belong to the network and
subnetwork fields and which bits belong to the host field. Specify the netmask
of the network to which the pool addresses belong.
prefix-length
prefix-length
Number that indicates how many bits of the netmask are ones (how many bits of
the address indicate network). Specify the netmask of the network to which the
pool addresses belong.
type rotary
(Optional) Indicates that the range of address in the address pool identify real,
inside hosts among which TCP load distribution will occur.
Defaults
Command Modes
Global configuration
Command History
Release
Modification
11.2
Usage Guidelines
This command defines a pool of addresses using start address, end address, and either netmask or prefix
length. The pool could define either an inside global pool, an outside local pool, or a rotary pool.
Examples
The following example translates between inside hosts addressed from either the 192.168.1.0 or
192.168.2.0 network to the globally unique 171.69.233.208/28 network:
ip nat pool net-208 171.69.233.208 171.69.233.223 prefix-length 28
ip nat inside source list 1 pool net-208
!
interface ethernet 0
ip address 171.69.232.182 255.255.255.240
ip nat outside
!
interface ethernet 1
ip address 192.168.1.94 255.255.255.0
IP1R-52
IP Addressing Commands
ip nat pool
ip nat inside
!
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 1 permit 192.168.2.0 0.0.0.255
Related Commands
Command
Description
ip nat
ip nat service
IP1R-53
IP Addressing Commands
ip nat service
ip nat service
To specify a port other than the default port, use the ip nat service command in global configuration
mode. To disable the port, use the no form of this command.
ip nat service {H225 | list {access-list-number | access-list-name} ftp tcp port port-number |
skinny tcp port port-number}
no ip nat service {H225 | list {access-list-number | access-list-name} ftp tcp port port-number |
skinny tcp port port-number}
Syntax Description
H225
H323-H225 protocol.
list access-list-number
access-list-name
ftp
FTP protocol.
tcp
TCP protocol.
port port-number
Port other than the default port in the range from 1 to 65533.
skinny
Skinny protocol.
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
11.3
12.1(5)T
Usage Guidelines
A host with an FTP server using a port other than the default port can have an FTP client using the default
FTP control port. When a port other than the default port is configured for an FTP server, Network
Address Translation (NAT) prevents FTP control sessions that are using port 21 for that particular server.
If an FTP server uses the default port and a port other than the default port, both ports need to be
configured using the ip nat service command.
NAT listens on the default port of the Cisco CallManager to translate the skinny messages. If the
CallManager uses a port other than the default port, that port needs to be configured using the ip nat
service command.
Use the no ip nat service H225 command to disable support of H.225 packets by NAT.
Examples
IP1R-54
IP Addressing Commands
ip nat service
The following example configures the standard FTP port 21 and the nonstandard port 2021:
ip nat service list 10 ftp tcp port 21
ip nat service list 10 ftp tcp port 2021
access-list 10 permit 10.1.1.1
Related
Commands
Command
Description
ip nat
IP1R-55
IP Addressing Commands
ip nat translation
ip nat translation
To change the amount of time after which Network Address Translation (NAT) translations time out, use
the ip nat translation global configuration command. To disable the timeout, use the no form of this
command.
ip nat translation [max-entries number] {timeout | udp-timeout | dns-timeout | tcp-timeout |
finrst-timeout | icmp-timeout | pptp-timeout | syn-timeout | port-timeout} seconds | never
no ip nat translation [max-entries number] {timeout | udp-timeout | dns-timeout | tcp-timeout
| finrst-timeout | icmp-timeout | pptp-timeout | syn-timeout | port-timeout}
Syntax Description
Defaults
max-entries number
timeout
Specifies that the timeout value applies to dynamic translations except for
overload translations. Default is 86400 seconds (24 hours).
udp-timeout
Specifies that the timeout value applies to the User Datagram Protocol
(UDP) port. Default is 300 seconds (5 minutes).
dns-timeout
tcp-timeout
Specifies that the timeout value applies to the TCP port. Default is
86400 seconds (24 hours).
finrst-timeout
Specifies that the timeout value applies to Finish and Reset TCP packets,
which terminate a connection. Default is 60 seconds.
icmp-timeout
Specifies the timeout value for Internet Control Message Protocol (ICMP)
flows. Default is 60 seconds.
pptp-timeout
syn-timeout
port-timeout
seconds
Number of seconds after which the specified port translation times out.
The default is 0.
never
IP1R-56
IP Addressing Commands
ip nat translation
Command Modes
Global configuration
Command History
Release
Modification
11.2
Usage Guidelines
When port translation is configured, there is finer control over translation entry timeouts because each
entry contains more context about the traffic that is using it. Non-DNS UDP translations time out after
5 minutes, while DNS times out in 1 minute. TCP translations timeout in 24 hours, unless an RST or FIN
is seen on the stream, in which case they will time out in 1 minute.
Examples
The following example causes UDP port translation entries to time out after 10 minutes:
ip nat translation udp-timeout 600
Related Commands
Command
Description
ip nat
ip nat pool
IP1R-57
IP Addressing Commands
ip netmask-format
ip netmask-format
To specify the format in which netmasks are displayed in show command output, use the
ip netmask-format line configuration command. To restore the default display format, use the no form
of this command.
ip netmask-format {bit-count | decimal | hexadecimal}
no ip netmask-format {bit-count | decimal | hexadecimal}
Syntax Description
bit-count
Addresses are followed by a slash and the total number of bits in the netmask.
For example, 131.108.11.0/24 indicates that the netmask is 24 bits.
decimal
hexadecimal
Defaults
Command Modes
Line configuration
Command History
Release
Modification
10.3
Usage Guidelines
IP uses a 32-bit mask that indicates which address bits belong to the network and subnetwork fields, and
which bits belong to the host field. This is called a netmask. By default, show commands display an IP
address and then its netmask in dotted decimal notation. For example, a subnet would be displayed as
131.108.11.0 255.255.255.0.
However, you can specify that the display of the network mask appear in hexadecimal format or bit count
format instead. The hexadecimal format is commonly used on UNIX systems. The previous example
would be displayed as 131.108.11.0 0XFFFFFF00.
The bitcount format for displaying network masks is to append a slash (/) and the total number of bits in
the netmask to the address itself. The previous example would be displayed as 131.108.11.0/24.
Examples
The following example configures network masks for the specified line to be displayed in bitcount
notation in the output of show commands:
line vty 0 4
ip netmask-format bitcount
IP1R-58
IP Addressing Commands
ip nhrp authentication
ip nhrp authentication
To configure the authentication string for an interface using the Next Hop Resolution Protocol (NHRP),
use the ip nhrp authentication interface configuration command. To remove the authentication string,
use the no form of this command.
ip nhrp authentication string
no ip nhrp authentication [string]
Syntax Description
string
Defaults
No authentication string is configured; the Cisco IOS software adds no authentication option to NHRP
packets it generates.
Command Modes
Interface configuration
Command History
Release
Modification
10.3
Usage Guidelines
All routers configured with NHRP within one logical NBMA network must share the same
authentication string.
Examples
In the following example, the authentication string named specialxx must be configured in all devices
using NHRP on the interface before NHRP communication occurs:
ip nhrp authentication specialxx
IP1R-59
IP Addressing Commands
ip nhrp holdtime
ip nhrp holdtime
To change the number of seconds that Next Hop Resolution Protocol (NHRP) nonbroadcast multiaccess
(NBMA) addresses are advertised as valid in authoritative NHRP responses, use the ip nhrp holdtime
interface configuration command. To restore the default value, use the no form of this command.
ip nhrp holdtime seconds
no ip nhrp holdtime [seconds]
Syntax Description
seconds
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.3
Usage Guidelines
The ip nhrp holdtime command affects authoritative responses only. The advertised holding time is the
length of time the Cisco IOS software tells other routers to keep information that it is providing in
authoritative NHRP responses. The cached IP-to-NBMA address mapping entries are discarded after the
holding time expires.
The NHRP cache can contain static and dynamic entries. The static entries never expire. Dynamic entries
expire regardless of whether they are authoritative or nonauthoritative.
Examples
In the following example, NHRP NBMA addresses are advertised as valid in positive authoritative
NHRP responses for 1 hour:
ip nhrp holdtime 3600
IP1R-60
IP Addressing Commands
ip nhrp interest
ip nhrp interest
To control which IP packets can trigger sending a Next Hop Resolution Protocol (NHRP) request packet,
use the ip nhrp interest interface configuration command. To restore the default value, use the no form
of this command.
ip nhrp interest access-list-number
no ip nhrp interest [access-list-number]
Syntax Description
access-list-number
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.3
Usage Guidelines
Use this command with the access-list command to control which IP packets trigger NHRP requests.
The ip nhrp interest command controls which packets cause NHRP address resolution to take place; the
ip nhrp use command controls how readily the system attempts such address resolution.
Examples
In the following example, any TCP traffic can cause NHRP requests to be sent, but no other IP packets
will cause NHRP requests:
ip nhrp interest 101
access-list 101 permit tcp any any
Related Commands
Command
Description
access-list (IP
extended)
access-list (IP
standard)
ip nhrp use
Configures the software so that NHRP is deferred until the system has
attempted to send data traffic to a particular destination multiple times.
IP1R-61
IP Addressing Commands
ip nhrp map
ip nhrp map
To statically configure the IP-to-NonBroadcast MutiAccess (NBMA) address mapping of IP destinations
connected to an MBMA network, use the ip nhrp map interface configuration command. To remove the
static entry from Next Hop Resolution Protocol (NHRP) cache, use the no form of this command.
ip nhrp map ip-address nbma-address
no ip nhrp map ip-address nbma-address
Syntax Description
ip-address
nbma-address
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.3
Usage Guidelines
You will probably need to configure at least one static mapping in order to reach the Next Hop Server.
Repeat this command to statically configure multiple IP-to-NBMA address mappings.
Examples
In the following example, this station in a multipoint tunnel network is statically configured to be served
by two Next Hop Servers 100.0.0.1 and 100.0.1.3. The NBMA address for 100.0.0.1 is statically
configured to be 11.0.0.1 and the NBMA address for 100.0.1.3 is 12.2.7.8.
interface tunnel 0
ip nhrp nhs 100.0.0.1
ip nhrp nhs 100.0.1.3
ip nhrp map 100.0.0.1 11.0.0.1
ip nhrp map 100.0.1.3 12.2.7.8
Related Commands
Command
Description
clear ip nhrp
IP1R-62
IP Addressing Commands
ip nhrp map multicast
Syntax Description
nbma-address
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.3
Usage Guidelines
Examples
IP1R-63
IP Addressing Commands
ip nhrp max-send
ip nhrp max-send
To change the maximum frequency at which Next Hop Resolution Protocol (NHRP) packets can be sent,
use the ip nhrp max-send interface configuration command. To restore this frequency to the default
value, use the no form of this command.
ip nhrp max-send pkt-count every interval
no ip nhrp max-send
Syntax Description
Defaults
pkt-count
Number of packets that can be sent in the range from 1 to 65535. Default is
5 packets.
every interval
pkt-count: 5 packets
interval: 10 seconds
Command Modes
Interface configuration
Command History
Release
Modification
11.1
Usage Guidelines
The software maintains a per-interface quota of NHRP packets that can be sent. NHRP traffic, whether
locally generated or forwarded, cannot be sent at a rate that exceeds this quota. The quota is replenished
at the rate specified by the interval value.
Examples
In the following example, only one NHRP packet can be sent from serial interface 0 each minute:
interface serial 0
ip nhrp max-send 1 every 60
Related Commands
Command
Description
ip nhrp interest
ip nhrp use
Configures the software so that NHRP is deferred until the system has
attempted to send data traffic to a particular destination multiple times.
IP1R-64
IP Addressing Commands
ip nhrp network-id
ip nhrp network-id
To enable the Next Hop Resolution Protocol (NHRP) on an interface, use the ip nhrp network-id
interface configuration command. To disable NHRP on the interface, use the no form of this command.
ip nhrp network-id number
no ip nhrp network-id [number]
Syntax Description
number
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.3
Usage Guidelines
In general, all NHRP stations within one logical NBMA network must be configured with the same
network identifier.
Examples
IP1R-65
IP Addressing Commands
ip nhrp nhs
ip nhrp nhs
To specify the address of one or more Next Hop Resolution Protocol (NHRP) servers, use the ip nhrp
nhs interface configuration command. To remove the address, use the no form of this command.
ip nhrp nhs nhs-address [net-address [netmask]]
no ip nhrp nhs nhs-address [net-address [netmask]]
Syntax Description
nhs-address
net-address
netmask
Defaults
No Next Hop Servers are explicitly configured, so normal network layer routing decisions are used to
forward NHRP traffic.
Command Modes
Interface configuration
Command History
Release
Modification
10.3
Usage Guidelines
Use this command to specify the address of a Next Hop Server and the networks it serves. Normally,
NHRP consults the network layer forwarding table to determine how to forward NHRP packets. When
Next Hop Servers are configured, these next hop addresses override the forwarding path that would
otherwise be used for NHRP traffic.
For any Next Hop Server that is configured, you can specify multiple networks that it serves by repeating
this command with the same nhs-address argument, but with different net-address IP network addresses.
Examples
In the following example, the Next Hop Server with address 131.108.10.11 serves IP network 10.0.0.0.
The mask is 255.0.0.0.
ip nhrp nhs 131.108.10.11 10.0.0.0 255.0.0.0
IP1R-66
IP Addressing Commands
ip nhrp record
ip nhrp record
To reenable the use of forward record and reverse record options in Next Hop Resolution Protocol
(NHRP) request and reply packets, use the ip nhrp record interface configuration command. To
suppress the use of such options, use the no form of this command.
ip nhrp record
no ip nhrp record
Syntax Description
Defaults
Forward record and reverse record options are used in NHRP request and reply packets.
Command Modes
Interface configuration
Command History
Release
Modification
10.3
Usage Guidelines
Forward record and reverse record options provide loop detection and are enabled by default. Using the
no form of this command disables this method of loop detection. For another method of loop detection,
see the ip nhrp responder command.
Examples
The following example suppresses forward record and reverse record options:
no ip nhrp record
Related Commands
Command
Description
ip nhrp responder
Designates the primary IP address of which interface the Next Hop Server
will use in NHRP reply packets when the NHRP requester uses the
Responder Address option.
IP1R-67
IP Addressing Commands
ip nhrp responder
ip nhrp responder
To designate the primary IP address the Next Hop Server that an interface will use in Next Hop
Resolution Protocol (NHRP) reply packets when the NHRP requestor uses the Responder Address
option, use the ip nhrp responder interface configuration command. To remove the designation, use the
no form of this command.
ip nhrp responder type number
no ip nhrp responder [type] [number]
Syntax Description
type
Interface type whose primary IP address is used when a Next Hop Server
complies with a Responder Address option (for example, serial or tunnel).
number
Interface number whose primary IP address is used when a Next Hop Server
complies with a Responder Address option.
Defaults
The Next Hop Server uses the IP address of the interface where the NHRP request was received.
Command Modes
Interface configuration
Command History
Release
Modification
10.3
Usage Guidelines
If an NHRP requestor wants to know which Next Hop Server generates an NHRP reply packet, it can
request that information through the Responder Address option. The Next Hop Server that generates the
NHRP reply packet then complies by inserting its own IP address in the Responder Address option of
the NHRP reply. The Next Hop Server uses the primary IP address of the specified interface.
If an NHRP reply packet being forwarded by a Next Hop Server contains the IP address of that Next Hop
Server, the Next Hop Server generates an Error Indication of type NHRP Loop Detected and discards
the reply packet.
Examples
In the following example, any NHRP requests for the Responder Address will cause this router acting as
a Next Hop Server to supply the primary IP address of serial interface 0 in the NHRP reply packet:
ip nhrp responder serial 0
IP1R-68
IP Addressing Commands
ip nhrp server-only
ip nhrp server-only
To configure the interface to operate in Next Hop Resolution Protocol (NHRP) server-only mode, use
the ip nhrp server-only interface configuration command. To disable this feature, use the no form of
this command.
ip nhrp server-only [non-caching]
no ip nhrp server-only
Syntax Description
non-caching
Defaults
Disabled
Command Modes
Interface configuration
Command History
Release
Modification
11.2
12.0
(Optional) The router will not cache NHRP information received on this
interface.
Usage Guidelines
When the interface is operating in NHRP server-only mode, the interface does not originate NHRP
requests or set up an NHRP shortcut Switched Virtual Circuit (SVC).
Examples
IP1R-69
IP Addressing Commands
ip nhrp trigger-svc
ip nhrp trigger-svc
To configure when the Next Hop Resolution Protocol (NHRP) will set up and tear down a switched
virtual circuit (SVC) based on aggregate traffic rates, use the ip nhrp trigger-svc interface configuration
command. To restore the default thresholds, use the no form of this command.
ip nhrp trigger-svc trigger-threshold teardown-threshold
no ip nhrp trigger-svc
Syntax Description
trigger-threshold
Average traffic rate calculated during the load interval, at or above which NHRP
will set up an SVC for a destination. The default value is 1 kbps.
teardown-threshold Average traffic rate calculated during the load interval, at or below which NHRP
will tear down the SVC to the destination. The default value is 0 kbps.
Defaults
trigger-threshold: 1 kbps
teardown-threshold: 0 kbps
Command Modes
Interface configuration
Command History
Release
Modification
12.0
Usage Guidelines
The two thresholds are measured during a sampling interval of 30 seconds, by default. To change that
interval, use the load-interval seconds argument of the ip cef traffic-statistics command.
Examples
In the following example, the triggering and teardown thresholds are set to 100 kbps and 5 kbps,
respectively:
ip nhrp trigger-svc 100 5
Related Commands
Command
Description
ip cef
ip cef accounting
ip cef traffic-statistics Changes the time interval that controls when NHRP will set up or tear down
an SVC.
ip nhrp interest
IP1R-70
IP Addressing Commands
ip nhrp use
ip nhrp use
To configure the software so that Next Hop Resolution Protocol (NHRP) is deferred until the system has
attempted to send data traffic to a particular destination multiple times, use the ip nhrp use interface
configuration command. To restore the default value, use the no form of this command.
ip nhrp use usage-count
no ip nhrp use usage-count
Syntax Description
usage-count
Defaults
usage-count: 1. The first time a data packet is sent to a destination for which the system determines
NHRP can be used, an NHRP request is sent.
Command Modes
Interface configuration
Command History
Release
Modification
11.1
Usage Guidelines
When the software attempts to send a data packet to a destination for which it has determined that NHRP
address resolution can be used, an NHRP request for that destination is normally sent immediately.
Configuring the usage-count argument causes the system to wait until that many data packets have been
sent to a particular destination before it attempts NHRP. The usage-count argument for a particular
destination is measured over 1-minute intervals (the NHRP cache expiration interval).
The usage count applies per destination. So if the usage-count argument is configured to be 3, and four
data packets are sent toward 10.0.0.1 and one packet toward 10.0.0.2, then an NHRP request is generated
for 10.0.0.1 only.
If the system continues to need to forward data packets to a particular destination, but no NHRP response
has been received, retransmission of NHRP requests is performed. This retransmission occurs only if
data traffic continues to be sent to a destination.
The ip nhrp interest command controls which packets cause NHRP address resolution to take place; the
ip nhrp use command controls how readily the system attempts such address resolution.
Examples
In the following example, if in the first minute five packets are sent to the first destination and five
packets are sent to a second destination, then a single NHRP request is generated for the second
destination.
If in the second minute the same traffic is generated and no NHRP responses have been received, then
the system resends its request for the second destination.
ip nhrp use 5
IP1R-71
IP Addressing Commands
ip nhrp use
Related Commands
Command
Description
ip nhrp interest
ip nhrp max-send
IP1R-72
IP Addressing Commands
ip probe proxy
ip probe proxy
To enable the HP Probe Proxy support, which allows the Cisco IOS software to respond to HP Probe
Proxy name requests, use the ip probe proxy interface configuration command. To disable HP Probe
Proxy, use the no form of this command.
ip probe proxy
no ip probe proxy
Syntax Description
Defaults
Disabled
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Usage Guidelines
HP Probe Proxy Name requests are typically used at sites that have Hewlett-Packard (HP) equipment
and are already using HP Probe.
To use the HP Probe Proxy service, you must first enter the host name of the HP host into the host table
using the ip hp-host global configuration command.
Examples
The following example specifies an HP host name and address, and then enables Probe Proxy:
ip hp-host BCWjo 131.108.1.27
interface ethernet 0
ip probe proxy
Related Commands
Command
Description
ip hp-host
Enters into the host table the host name of an HP host to be used for HP Probe
Proxy service.
IP1R-73
IP Addressing Commands
ip proxy-arp
ip proxy-arp
To enable proxy Address Resolution Protocol (ARP) on an interface, use the ip proxy-arp interface
configuration command. To disable proxy ARP on the interface, use the no form of this command.
ip proxy-arp
no ip proxy-arp
Syntax Description
Defaults
Enabled
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Examples
IP1R-74
IP Addressing Commands
ip routing
ip routing
To enable IP routing, use the ip routing global configuration command. To disable IP routing, use the
no form of this command.
ip routing
no ip routing
Syntax Description
Defaults
Enabled
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
To bridge IP, the no ip routing command must be configured to disable IP routing. However, you need
not specify no ip routing in conjunction with concurrent routing and bridging to bridge IP.
The ip routing command is disabled on the Cisco VG200 voice over IP gateway.
Examples
IP1R-75
IP Addressing Commands
ip subnet-zero
ip subnet-zero
To enable the use of subnet 0 for interface addresses and routing updates, use the ip subnet-zero global
configuration command. To restore the default, use the no form of this command.
ip subnet-zero
no ip subnet-zero
Syntax Description
Defaults
Enabled
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
The ip subnet-zero command provides the ability to configure and route to subnet 0 subnets.
Subnetting with a subnet address of 0 is discouraged because of the confusion inherent in having a
network and a subnet with indistinguishable addresses.
Examples
IP1R-76
IP Addressing Commands
ip unnumbered
ip unnumbered
To enable IP processing on a serial interface without assigning an explicit IP address to the interface, use
the ip unnumbered interface configuration command. To disable the IP processing on the interface, use
the no form of this command.
ip unnumbered type number
no ip unnumbered type number
Syntax Description
type number
Defaults
Disabled
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Usage Guidelines
Whenever the unnumbered interface generates a packet (for example, for a routing update), it uses the
address of the specified interface as the source address of the IP packet. It also uses the address of the
specified interface in determining which routing processes are sending updates over the unnumbered
interface. Restrictions include the following:
Serial interfaces using High Level Data Link Control (HDLC), PPP, Link Access Procedure,
Balanced (LAPB), Frame Relay encapsulations, and Serial Line Internet Protocol (SLIP) and tunnel
interfaces can be unnumbered. It is not possible to use this interface configuration command with
X.25 or Switched Multimegabit Data Service (SMDS) interfaces.
You cannot use the ping EXEC command to determine whether the interface is up, because the
interface has no address. Simple Network Management Protocol (SNMP) can be used to remotely
monitor interface status.
The interface you specify by the type and number arguments must be enabled (listed as up in the show
interfaces command display).
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.
IP1R-77
IP Addressing Commands
ip unnumbered
Note
Examples
Using an unnumbered serial line between different major networks (or majornets) requires special
care. If at each end of the link there are different majornets assigned to the interfaces you specified
as unnumbered, then any routing protocol running across the serial line must not advertise subnet
information.
In the following example, the first serial interface is given the address of Ethernet 0:
interface ethernet 0
ip address 131.108.6.6 255.255.255.0
!
interface serial 0
ip unnumbered ethernet 0
IP1R-78
IP Addressing Commands
no ip gratuitous-arps
no ip gratuitous-arps
To disable the transmission of gratuitous Address Resolution Protocol (ARP) messages for an address
in a local pool, use the no ip gratuitous-arps command in global configuration mode.
no ip gratuitous-arps
Syntax Description
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
11.3
Usage Guidelines
A Cisco router will send out a gratuitous ARP message when a client connects and negotiates an address
over a PPP connection. This transmission occurs even when the client receives the address from a local
address pool.
Examples
The following example disables gratuitous arp messages from being sent:
no ip gratuitous-arps
IP1R-79
IP Addressing Commands
show arp
show arp
To display the entries in the Address Resolution Protocol (ARP) table, use the show arp privileged
EXEC command.
show arp
Syntax Description
Command Modes
Privileged EXEC
Command History
Release
Modification
10.0
Examples
Address
Age (min)
Hardware Addr
Type
Interface
Internet
AppleTalk
Internet
AppleTalk
Internet
Internet
AppleTalk
Internet
131.108.42.112
4028.5
131.108.42.114
4028.9
131.108.42.121
131.108.36.9
4036.9
131.108.33.9
120
29
105
42
-
0000.a710.4baf
0000.0c01.0e56
0000.a710.859b
0000.0c02.a03c
0000.a710.68cd
0000.3080.6fd4
0000.3080.6fd4
0000.0c01.7bbd
ARPA
SNAP
ARPA
SNAP
ARPA
SNAP
SNAP
SNAP
Ethernet3
Ethernet2
Ethernet3
Ethernet2
Ethernet3
TokenRing0
TokenRing0
Fddi0
Field
Description
Protocol
Address
Age (min)
Age in munutes of the cache entryh. A hyphen (-) means the address is local.
Hardware Addr
IP1R-80
IP Addressing Commands
show arp
Table 3
Field
Description
Type
Indicates the encapsulation type the Cisco IOS software is using for the network
address in this entry. Possible values include:
Interface
ARPA
SNAP
ETLK (EtherTalk)
SMDS
IP1R-81
IP Addressing Commands
show hosts
show hosts
To display the default domain name, the style of name lookup service, a list of name server hosts, and
the cached list of host names and addresses, use the show hosts EXEC command.
show hosts
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
10.0
Examples
Address(es)
131.108.4.10
192.31.7.50
131.108.1.115
131.108.1.111
131.108.1.27
131.108.1.30
Field
Description
Flag
A temporary entry is entered by a name server; the Cisco IOS software removes the
entry after 72 hours of inactivity.
A permanent entry is entered by a configuration command and is not timed out.
Entries marked OK are believed to be valid. Entries marked?? are considered suspect
and subject to revalidation. Entries marked EX are expired.
Age
Indicates the number of hours since the software last referred to the cache entry.
Type
Identifies the type of address, for example, IP, Connectionless Network Service
(CLNS), or X.121. If you have used the ip hp-host global configuration command,
the show hosts command will display these host names as type HP-IP.
Address(es)
Displays the address of the host. One host may have up to eight addresses.
IP1R-82
IP Addressing Commands
show hosts
Related Commands
Command
Description
clear host
IP1R-83
IP Addressing Commands
show ip aliases
show ip aliases
To display the IP addresses mapped to TCP ports (aliases) and Serial Line Internet Protocol (SLIP)
addresses, which are treated similarly to aliases, use the show ip aliases EXEC command.
show ip aliases
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
10.0
Usage Guidelines
To distinguish a SLIP address from a normal alias address, the command output uses the form SLIP
TTY1 for the port number, where 1 is the auxiliary port.
Examples
Related Commands
Command
Description
show line
IP1R-84
IP Addressing Commands
show ip arp
show ip arp
To display the Address Resolution Protocol (ARP) cache, where Serial Line Internet Protocol (SLIP)
addresses appear as permanent ARP table entries, use the show ip arp EXEC command.
show ip arp [ip-address] [host-name] [mac-address] [interface type number]
Syntax Description
ip-address
host-name
mac-address
interface type number (Optional) ARP entries learned via this interface type and number are
displayed.
Command Modes
EXEC
Command History
Release
Modification
9.0
Usage Guidelines
ARP establishes correspondences between network addresses (an IP address, for example) and LAN
hardware addresses (Ethernet addresses). A record of each correspondence is kept in a cache for a
predetermined amount of time and then discarded.
Examples
Field
Description
Protocol
Address
Age (min)
Age in minutes of the cache entry. A hyphen (-) means the address is local.
Hardware
Addr
LAN hardware address of a MAC address that corresponds to the network address.
IP1R-85
IP Addressing Commands
show ip arp
Table 5
Field
Description
Type
Indicates the encapsulation type the Cisco IOS software is using the network address in
this entry. Possible value include:
Interface
ARPA
SNAP
SAP
IP1R-86
IP Addressing Commands
show ip interface
show ip interface
To display the usability status of interfaces configured for IP, use the show ip interface EXEC command.
show ip interface [type number] [brief]
Syntax Description
type
number
brief
Command Modes
EXEC
Command History
Release
Modification
10.0
12.0(3)T
This command was expanded to include the status of ip wccp redirect out
and ip wccp redirect exclude add in commands.
Usage Guidelines
The Cisco IOS software automatically enters a directly connected route in the routing table if the
interface is usable. A usable interface is one through which the software can send and receive packets.
If the software determines that an interface is not usable, it removes the directly connected routing entry
from the routing table. Removing the entry allows the software to use dynamic routing protocols to
determine backup routes to the network, if any.
If the interface can provide two-way communication, the line protocol is marked up. If the interface
hardware is usable, the interface is marked up.
If you specify an optional interface type, you will see only information on that specific interface.
If you specify no optional arguments, you will see information on all the interfaces.
When an asynchronous interface is encapsulated with PPP or Serial Line Internet Protocol (SLIP), IP
fast switching is enabled. A show ip interface command on an asynchronous interface encapsulated
with PPP or SLIP displays a message indicating that IP fast switching is enabled.
Examples
IP1R-87
IP Addressing Commands
show ip interface
Field
Description
Ethernet0 is up
line protocol is up
Internet address and subnet mask IP Internet address and subnet mask of the interface.
Broadcast address
MTU
Helper address
Secondary address
Proxy ARP
Security level
Specifies the IP Security Option (IPSO) security level set for this
interface.
Split horizon
ICMP redirects
ICMP unreachables
IP1R-88
IP Addressing Commands
show ip interface
Table 6
Field
Description
IP fast switching
IP SSE switching
Router Discovery
Specifies whether the discovery process has been enabled for this
interface. It is generally disabled on serial interfaces.
The following is sample output from the show ip interface brief command:
Router# show ip interface brief
Interface
Ethernet0
Ethernet1
Loopback0
Serial0
Serial1
Serial2
Serial3
IP-Address
151.108.0.5
unassigned
152.108.20.5
162.108.10.5
162.108.4.5
152.108.10.5
unassigned
OK?
YES
YES
YES
YES
YES
YES
YES
Method
NVRAM
unset
NVRAM
NVRAM
NVRAM
manual
unset
Status
up
administratively down
up
up
up
up
administratively down
Protocol
up
down
up
up
up
up
down
BOOTPBootstrap protocol
TFTPConfiguration file obtained from Trivial File Transfer Protocol (TFTP) server
unassignedNo IP address
unsetUnset
otherUnknown
IP1R-89
IP Addressing Commands
show ip irdp
show ip irdp
To display ICMP Router Discovery Protocol (HRDP) values, use the show ip irdp EXEC command.
show ip irdp
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
10.0
Examples
As the display shows, show ip irdp output indicates whether router discovery has been configured for
each router interface, and it lists the values of router discovery configurables for those interfaces on
which router discovery has been enabled. Explanations for the less obvious lines of output in the display
are as follows:
Advertisements will occur between every 450 and 600 seconds.
This indicates the configured minimum and maximum advertising interval for the interface.
Advertisements are valid for 1800 seconds.
This indicates the configured (or in this case default) preference value for the interface.
Related Commands
Command
Description
ip irdp
IP1R-90
IP Addressing Commands
show ip masks
show ip masks
To display the masks used for network addresses and the number of subnets using each mask, use the
show ip masks EXEC command.
show ip masks address
Syntax Description
address
Command Modes
EXEC
Command History
Release
Modification
10.0
Usage Guidelines
The show ip masks command is useful for debugging when a variable-length subnet mask (VLSM) is
used. It shows the number of masks associated with the network and the number of routes for each mask.
Examples
Reference count
2
3
1
IP1R-91
IP Addressing Commands
show ip nat statistics
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
11.2
Examples
The following is sample output from the show ip nat statistics command:
Router# show ip nat statistics
Total translations: 2 (0 static, 2 dynamic; 0 extended)
Outside interfaces: Serial0
Inside interfaces: Ethernet1
Hits: 135 Misses: 5
Expired translations: 2
Dynamic mappings:
-- Inside Source
access-list 1 pool net-208 refcount 2
pool net-208: netmask 255.255.255.240
start 171.69.233.208 end 171.69.233.221
type generic, total addresses 14, allocated 2 (14%), misses 0
Field
Description
Total translations
Outside interfaces
Inside interfaces
Hits
Misses
IP1R-92
IP Addressing Commands
show ip nat statistics
Table 7
Related Commands
Field
Description
Expired translations
Dynamic mappings
Inside Source
access-list
pool
refcount
netmask
start
end
type
total addresses
allocated
misses
Command
Description
ip nat
ip nat pool
ip nat service
Changes the amount of time after which NAT translations time out.
IP1R-93
IP Addressing Commands
show ip nat translations
Syntax Description
verbose
Command Modes
EXEC
Command History
Release
Modification
11.2
Examples
The following is sample output from the show ip nat translations command. Without overloading, two
inside hosts are exchanging packets with some number of outside hosts.
Router# show ip nat translations
Pro Inside global
--- 171.69.233.209
--- 171.69.233.210
Inside local
192.168.1.95
192.168.1.89
Outside local
-----
Outside global
----
With overloading, a translation for a Domain Name Server (DNS) transaction is still active, and
translations for two Telnet sessions (from two different hosts) are also active. Note that two different
inside hosts appear on the outside with a single IP address.
Router# show ip nat translations
Pro
udp
tcp
tcp
Inside global
171.69.233.209:1220
171.69.233.209:11012
171.69.233.209:1067
Inside local
192.168.1.95:1220
192.168.1.89:11012
192.168.1.95:1067
Outside local
171.69.2.132:53
171.69.1.220:23
171.69.1.161:23
Outside global
171.69.2.132:53
171.69.1.220:23
171.69.1.161:23
Inside local
Outside local
192.168.1.95:1220 171.69.2.132:53
use 00:00:00, flags: extended
192.168.1.89:11012 171.69.1.220:23
use 00:00:50, flags: extended
192.168.1.95:1067 171.69.1.161:23
use 00:00:00, flags: extended
IP1R-94
Outside global
171.69.2.132:53
171.69.1.220:23
171.69.1.161:23
IP Addressing Commands
show ip nat translations
Related Commands
Field
Description
Pro
Inside global
Inside local
Outside local
Outside global
create
use
How long ago the entry was last used (in hours:minutes:seconds).
flags
extendedExtended translation
staticStatic translation
destinationRotary translation
outsideOutside translation
Command
Description
ip nat
ip nat pool
ip nat service
Changes the amount of time after which NAT translations time out.
IP1R-95
IP Addressing Commands
show ip nhrp
show ip nhrp
To display the Next Hop Resolution Protocol (NHRP) cache, use the show ip nhrp EXEC command.
show ip nhrp [detail | purge] | [type number [detail]] | [dynamic | incomplete | nhs | static [type
number] [detail]]
Syntax Description
detail
purge
type number
(Optional) Displays the interface type and number in the NHRP cache. See
Table 9 for types, number ranges, and descriptions.
dynamic
incomplete
nhs
(Optional) Displays information about the next-hop server (NHS). See Table 9
for types, number ranges, and descriptions.
static
(Optional) Displays only the static IP-to-NBMA address entries in the cache
(configured using the ip nhrp map command). See Table 9 for types, number
ranges, and descriptions.
Command Modes
EXEC
Command History
Release
Modification
10.3
Usage Guidelines
Note
Table 9 lists the valid types, number ranges, and descriptions for the type and number optional
arguments.
The valid types can vary according to the platform and interfaces on the platform.
Table 9
Valid Types
Number Ranges
Interface Descriptions
async
Async
atm
0 to 6
ATM
bvi
1 to 255
Bridge-Group Virtual
Interface
cdma-ix
CDMA Ix
IP1R-96
IP Addressing Commands
show ip nhrp
Table 9
Examples
Valid Types
Number Ranges
Interface Descriptions
ctunnel
0 to 2147483647
C-Tunnel
dialer
0 to 20049
Dialer
fastethernet
0 to 6
lex
0 to 2147483647
Lex
loopback
0 to 2147483647
Loopback
mfr
0 to 2147483647
multilink
0 to 2147483647
Multilink-group
null
Null
port-channel
1 to 64
Port channel
tunnel
0 to 2147483647
Tunnel
vif
virtual-ppp
0 to 2147483647
Virtual PPP
virtual-template
1 to 1000
Virtual template
virtual-tokenring 0 to 2147483647
xtagatm
0 to 2147483647
Field
Description
10.0.0.2 255.255.255.255
Interface type and number (in this case, ATM slot and port
numbers) and how long ago it was created
(hours:minutes:seconds).
expire 1:59:16
IP1R-97
IP Addressing Commands
show ip nhrp
Table 10
Field
Type
Flags
Related Commands
Description
NBMA address
Command
Description
ip nhrp map
IP1R-98
IP Addressing Commands
show ip nhrp traffic
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
10.3
Examples
The following is sample output from the show ip nhrp traffic command:
Router# show ip nhrp traffic
Tunnel0
request packets sent: 2
request packets received: 4
reply packets sent: 4
reply packets received: 2
register packets sent: 0
register packets received: 0
error packets sent: 0
error packets received: 0
Field
Description
Tunnel 0
IP1R-99
IP Addressing Commands
show ip nhrp traffic
Table 11
Field
Description
IP1R-100
IP Addressing Commands
term ip netmask-format
term ip netmask-format
To specify the format in which netmasks are displayed in show command output, use the
term ip netmask-format EXEC command. To restore the default display format, use the no form of this
command.
term ip netmask-format {bitcount | decimal | hexadecimal}
no term ip netmask-format [bitcount | decimal | hexadecimal]
Syntax Description
bitcount
decimal
hexadecimal
Defaults
Command Modes
EXEC
Command History
Release
Modification
10.3
Usage Guidelines
IP uses a 32-bit mask that indicates which address bits belong to the network and subnetwork fields, and
which bits belong to the host field. This range of IP addresses is called a netmask. By default, show
commands display an IP address and then its netmask in dotted decimal notation. For example, a subnet
would be displayed as 131.108.11.55 255.255.255.0.
However, you can specify that the display of the network mask appear in hexadecimal format or bit count
format instead. The hexadecimal format is commonly used on UNIX systems. The previous example
would be displayed as 131.108.11.55 0XFFFFFF00.
The bitcount format for displaying network masks is to append a slash (/) and the total number of bits in
the netmask to the address itself. The previous example would be displayed as 131.108.11.55/24.
Examples
The following example specifies that network masks for the session be displayed in bitcount notation in
the output of show commands:
term ip netmask-format bitcount
IP1R-101
IP Addressing Commands
term ip netmask-format
IP1R-102
DHCP Commands
Use the commands in this chapter to configure and monitor Dynamic Host Configuration Protocol
(DHCP). For DHCP configuration information and examples, refer to the Configuring DHCP chapter
of the Cisco IOS IP Configuration Guide.
IP1R-103
DHCP Commands
bootfile
bootfile
To specify the name of the default boot image for a Dynamic Host Configuration Protocol (DHCP)
client, use the bootfile DHCP pool configuration command. To delete the boot image name, use the no
form of this command.
bootfile filename
no bootfile
Syntax Description
filename
Defaults
Command Modes
Command History
Release
Modification
12.0(1)T
Examples
The following example specifies xllboot as the name of the boot file:
bootfile xllboot
Related Commands
Command
Description
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
next-server
IP1R-104
DHCP Commands
clear ip dhcp binding
Syntax Description
address
Command Modes
Privileged EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
Typically, the address denotes the IP address of the client. If the asterisk (*) character is used as the
address parameter, DHCP clears all automatic bindings.
Use the no ip dhcp pool global configuration command to delete a manual binding.
Examples
The following example deletes the address binding 10.12.1.99 from a DHCP server database:
Router# clear ip dhcp binding 10.12.1.99
Related Commands
Command
Description
IP1R-105
DHCP Commands
clear ip dhcp conflict
Syntax Description
address
The IP address of the host that contains the conflicting address you
want to clear.
Command Modes
Privileged EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
The server detects conflicts using a ping session. The client detects conflicts using gratuitous Address
Resolution Protocol (ARP). If the asterisk (*) character is used as the address parameter, DHCP clears
all conflicts.
Examples
The following example shows an address conflict of 10.12.1.99 being deleted from the DHCP server
database:
Router# clear ip dhcp conflict 10.12.1.99
Related Commands
Command
Description
IP1R-106
DHCP Commands
clear ip dhcp server statistics
Syntax Description
Command Modes
Privileged EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
The show ip dhcp server statistics command displays DHCP counters. All counters are cumulative. The
counters will be initialized, or set to zero, with the clear ip dhcp server statistics command.
Examples
Related Commands
Command
Description
IP1R-107
DHCP Commands
clear ip route dhcp
Syntax Description
vrf
vrf-name
ip-address
Defaults
Command Modes
EXEC
Command History
Release
Modification
12.2
Usage Guidelines
To remove information about global routes in the routing table, use the clear ip route dhcp command.
To remove routes in the VRF routing table, use the clear ip route vrf vrf-name dhcp command.
Examples
The following example removes a route to network 55.5.5.217 from the routing table:
Router# clear ip route dhcp 55.5.5.217
Related Commands
Command
Description
Displays the routes added to the routing table by the Cisco IOS DHCP
Server and Relay Agent.
IP1R-108
DHCP Commands
client-identifier
client-identifier
To specify the unique identifier (in dotted hexadecimal notation) for a Microsoft Dynamic Host
Configuration Protocol (DHCP) client, use the client-identifier DHCP pool configuration command. It
is valid for manual bindings only. To delete the client identifier, use the no form of this command.
client-identifier unique-identifier
no client-identifier
Syntax Description
unique-identifier
Command Modes
Command History
Release
Modification
12.0(1)T
Usage Guidelines
Microsoft DHCP clients require client identifiers instead of hardware addresses. The client identifier is
formed by concatenating the media type and the MAC address. For example, the Microsoft client
identifier for Ethernet address b708.1388.f166 is 01b7.0813.88f1.66, where 01 represents the Ethernet
media type. For a list of media type codes, refer to the Address Resolution Protocol Parameters section
of RFC 1700, Assigned Numbers.
Examples
The following example specifies the client identifier for MAC address b7.0813.8811.66 in dotted
hexadecimal notation:
client-identifier 01b7.0813.8811.66
Related Commands
Command
Description
hardware-address
host
Specifies the IP address and network mask for a manual binding to a DHCP
client.
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
IP1R-109
DHCP Commands
client-name
client-name
To specify the name of a DHCP client, use the client-name DHCP pool configuration command. The
client name should not include the domain name. To remove the client name, use the no form of this
command.
client-name name
no client-name
Syntax Description
name
Command Modes
Command History
Release
Modification
12.0(1)T
Examples
Specifies the name of the client, using any standard ASCII character. The
client name should not include the domain name. For example, the name mars
should not be specified as mars.cisco.com.
The following example specifies a string client1 that will be the name of the client:
client-name client1
Related Commands
Command
Description
host
Specifies the IP address and network mask for a manual binding to a DHCP
client.
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
IP1R-110
DHCP Commands
default-router
default-router
To specify the default router list for a Dynamic Host Configuration Protocol (DHCP) client, use the
default-router DHCP pool configuration command. To remove the default router list, use the no form
of this command.
default-router address [address2...address8]
no default-router
Syntax Description
address
address2...address8
Command Modes
Command History
Release
Modification
12.0(1)T
Usage Guidelines
The IP address of the router should be on the same subnet as the client subnet. You can specify up to
eight routers in the list. Routers are listed in order of preference (address1 is the most preferred router,
address2 is the next most preferred router, and so on).
Examples
The following example specifies 10.12.1.99 as the IP address of the default router:
default-router 10.12.1.99
Related Commands
Command
Description
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
IP1R-111
DHCP Commands
dns-server
dns-server
To specify the Domain Name System (DNS) IP servers available to a Dynamic Host Configuration
Protocol (DHCP) client, use the dns-server DHCP pool configuration command. To remove the DNS
server list, use the no form of this command.
dns-server address [address2...address8]
no dns-server
Syntax Description
address
address2...address8
Defaults
If DNS IP servers are not configured for a DHCP client, the client cannot correlate host names to
IP addresses.
Command Modes
Command History
Release
Modification
12.0(1)T
Usage Guidelines
Servers are listed in order of preference (address1 is the most preferred server, address2 is the next most
preferred server, and so on).
Examples
The following example specifies 10.12.1.99 as the IP address of the domain name server of the client:
dns-server 10.12.1.99
Related Commands
Command
Description
domain-name
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
IP1R-112
DHCP Commands
domain-name
domain-name
To specify the domain name for a Dynamic Host Configuration Protocol (DHCP) client, use the
domain-name DHCP pool configuration command. To remove the domain name, use the no form of this
command.
domain-name domain
no domain-name
Syntax Description
domain
Command Modes
Command History
Release
Modification
12.0(1)T
Examples
The following example specifies cisco.com as the domain name of the client:
domain-name cisco.com
Related Commands
Command
Description
dns-server
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
IP1R-113
DHCP Commands
hardware-address
hardware-address
To specify the hardware address of a Dynamic Host Configuration Protocol (DHCP) client, use the
hardware-address DHCP pool configuration command. It is valid for manual bindings only. To remove
the hardware address, use the no form of this command.
hardware-address hardware-address type
no hardware-address
Syntax Description
hardware-address
type
Indicates the protocol of the hardware platform. Strings and values are
acceptable. The string options are:
ethernet
ieee802
1 10Mb Ethernet
6 IEEE 802
Defaults
Command Modes
Command History
Release
Modification
12.0(1)T
Examples
The following example specifies b708.1388.f166 as the MAC address of the client:
hardware-address b708.1388.f166
Related Commands
Command
Description
client-identifier
host
Specifies the IP address and network mask for a manual binding to a DHCP
client.
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
IP1R-114
DHCP Commands
host
host
To specify the IP address and network mask for a manual binding to a Dynamic Host Configuration
Protocol (DHCP) client, use the host DHCP pool configuration command. To remove the IP address of
the client, use the no form of this command.
host address [mask | prefix-length]
no host
Syntax Description
address
mask
prefix-length
(Optional) Specifies the number of bits that comprise the address prefix. The
prefix is an alternative way of specifying the network mask of the client. The
prefix length must be preceded by a forward slash (/).
Command Modes
Command History
Release
Modification
12.0(1)T
Usage Guidelines
If the mask and prefix length are unspecified, DHCP examines its address pools. If no mask is found in
the pool database, the Class A, B, or C natural mask is used. This command is valid for manual bindings
only.
There is no limit on the number of manual bindings but you can only configure one manual binding per
host pool.
Examples
The following example specifies 10.12.1.99 as the IP address of the client and 255.255.248.0 as the
subnet mask:
host 10.12.1.99 255.255.248.0
Related Commands
Command
Description
client-identifier
hardware-address
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
network (DHCP)
Configures the subnet number and mask for a DHCP address pool on a
Cisco IOS DHCP Server.
IP1R-115
DHCP Commands
import all
import all
To import Dynamic Host Configuration Protocol (DHCP) option parameters into the DHCP Server
database, use the import all DHCP pool configuration command. To disable this feature, use the no form
of this command.
import all
no import all
Syntax Description
Defaults
Disabled
Command Modes
Command History
Release
Modification
12.1(2)T
Usage Guidelines
When the no import all command is used, the Cisco IOS DHCP Server deletes all imported option
parameters that were added to the specified pool in the server database. Manually configured DHCP
option parameters override imported DHCP option parameters.
Imported option parameters are not part of the router configuration and are not saved in NVRAM.
Examples
The following example allows the importing of all DHCP options for a pool named pool1:
ip dhcp pool pool1
network 172.16.0.0 /16
import all
Related Commands
Command
Description
ip dhcp database
Displays the option parameters that were imported into the DHCP Server
database.
IP1R-116
DHCP Commands
ip address dhcp
ip address dhcp
To acquire an IP address on an Ethernet interface from the Dynamic Host Configuration Protocol
(DHCP), use the ip address dhcp interface configuration command. To deconfigure any address that was
acquired, use the no form of this command.
ip address dhcp [client-id interface-name] [hostname host-name]
no ip address dhcp [client-id interface-name] [hostname host-name]
Syntax Description
Defaults
client-id
interface-name
(Optional) The interface name from which the MAC address is taken.
hostname
host-name
(Optional) Name of the host to be placed in the DHCP option 12 field. This name
need not be the same as the host name entered in global configuration mode.
The host name is the globally configured host name of the router.
The client identifier is an ASCII value.
Command Modes
Interface configuration
Command History
Release
Modification
12.1(2)T
12.1(3)T
12.2(3)
client-id
interface-name
hostname
host-name
Usage Guidelines
The ip address dhcp command allows any interface to dynamically learn its IP address by using the
DHCP protocol. It is especially useful on Ethernet interfaces that dynamically connect to an Internet
Service Provider (ISP). Once assigned a dynamic address, the interface can be used with the Port
Address Translation (PAT) of Cisco IOS Network Address Translation (NAT) to provide Internet access
to a privately addressed network attached to the router.
IP1R-117
DHCP Commands
ip address dhcp
Some ISPs require that the DHCPDISCOVER message have a specific host name and client identifier
that is the MAC address of the interface. The most typical usage of the ip address dhcp client-id
interface-name hostname host-name command is when interface-name is the Ethernet interface where
the command is configured and host-name is the host name provided by the ISP.
A client identifier (DHCP option 61) can be a hexadecimal or an ASCII value. By default, the client
identifier is an ASCII value. The client-id interface option overrides the default and forces the use of
the hexadecimal MAC address of the named interface.
Note
Between 12.1(3)T and 12.2(3), the client-id optional keyword allowed the change of the
fixed ASCII value for the client identifier. After 12.2(3), the optional client-id keyword
forced the use of the hexadecimal MAC address of the named interface as the client identifier.
If a Cisco router is configured to obtain its IP address from a DHCP server, it sends a DHCPDISCOVER
message to provide information about itself to the DHCP server on the network.
If you use the ip address dhcp command with or without any of the optional keywords, the DHCP option
12 field (host name option) is included in the DISCOVER message. By default, the host name specified
in option 12 will be the globally configured host name of the router. However, you can use the ip address
dhcp hostname host-name command to place a different name in the DHCP option 12 field than the
globally configured host name of the router.
The no ip address dhcp command deconfigures any IP address that was acquired, thus sending a
DHCPRELEASE message.
You might need to experiment with different configurations to determine the one required by your DHCP
server. Table 12 shows the possible configuration methods and the information placed in the DISCOVER
message for each method.
Table 12
Configuration Method
ip address dhcp
The DISCOVER message contains ciscomac-address -Eth1 in the client ID field. The
mac-address is the media access control
(MAC) address of the Ethernet 1 interface and
contains the default host name of the router in
the option 12 field.
The DISCOVER message contains ciscomac-address -Eth1 in the client ID field. The
mac-address is the MAC address of the
Ethernet 1 interface, and contains host-name in
the option 12 field.
IP1R-118
DHCP Commands
ip address dhcp
Examples
In the examples that follow, the command ip address dhcp is entered for the Ethernet 1 interface. The
DISCOVER message sent by a router configured as shown in the following example would contain
cisco- mac-address -Eth1 in the client-ID field, and the value fresno in the option 12 field.
hostname fresno
!
interface Ethernet 1
ip address dhcp
The DISCOVER message sent by a router configured as shown in the following example would contain
cisco- mac-address -Eth1 in the client-ID field, and the value sanfran in the option 12 field.
hostname fresno
!
interface Ethernet 1
ip address dhcp hostname sanfran
The DISCOVER message sent by a router configured as shown in the following example would contain
the MAC address of the Ethernet 1 interface in the client-id field, and the value fresno in the option 12
field.
hostname fresno
!
interface Ethernet 1
ip address dhcp client-id Ethernet 1
The DISCOVER message sent by a router configured as shown in the following example would
contain the MAC address of the Ethernet 1 interface in the client-id field, and the value sanfran in the
option 12 field.
hostname fresno
!
interface Ethernet 1
ip address dhcp client-id Ethernet 1 hostname sanfran
Related Commands
Command
Description
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
IP1R-119
DHCP Commands
ip dhcp-client broadcast-flag
ip dhcp-client broadcast-flag
To configure the Cisco IOS Dynamic Host Configuration (DHCP) client to set the broadcast flag, use the
ip dhcp-client broadcast-flag command in global configuration mode. To disable this feature, use the
no form of this command.
ip dhcp-client broadcast-flag
no dhcp-client broadcast-flag
Syntax Description
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.2
Usage Guidelines
Use this command to set the broadcast flag to 1 or 0 in the DHCP header when the DHCP client sends a
discover requesting an IP address. The DHCP Server listens to this broadcast flag and broadcasts the
reply packet if the flag is set to 1.
If you enter no ip dhcp-client broadcast-flag, the broadcast flag is set to 0 and the DHCP Server
unicasts the reply packets to the client with the offered IP address.
The Cisco IOS DHCP client can receive both broadcast and unicast offers from the DHCP Server.
Examples
Related Commands
Command
Description
ip address dhcp
service dhcp
IP1R-120
DHCP Commands
ip dhcp-client default-router distance
Syntax Description
distance
Defaults
254
Command Modes
Global configuration
Command History
Release
Modification
12.2
Examples
DHCP administrative distance. The value argument sets the default distance.
The range is from 1 to 255.
The following example shows how to configure the default admininstrative distance to be 25:
ip dhcp-client default-router distance 25
Related Commands
Command
Description
Displays the routes added to the routing table by the DHCP server and relay
agent.
IP1R-121
DHCP Commands
ip dhcp conflict logging
Syntax Description
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
We recommend using a DHCP server database agent to store automatic bindings. If you decide not to
use a DHCP Server database agent to store automatic bindings, use the no ip dhcp conflict logging
command to disable the recording of address conflicts. By default, the Cisco IOS DHCP Server records
DHCP address conflicts in a log file.
Examples
Related Commands
Command
Description
Clears an address conflict from the Cisco IOS DHCP Server database.
ip dhcp database
IP1R-122
DHCP Commands
ip dhcp database
ip dhcp database
To configure a Cisco IOS Dynamic Host Configuration Protocol (DHCP) Server and relay agent to save
automatic bindings on a remote host called a database agent, use the ip dhcp database global
configuration command. To remove the database agent, use the no form of this command.
ip dhcp database url [timeout seconds | write-delay seconds]
no ip dhcp database url
Syntax Description
url
Specifies the remote file used to store the automatic bindings. Following are the
acceptable URL file formats:
tftp://host/filename
ftp://user:password@host/filename
rcp://user@host/filename
timeout seconds
(Optional) Specifies how long (in seconds) the DHCP Server should wait before
aborting a database transfer. Transfers that exceed the timeout period are
aborted. By default, DHCP waits 300 seconds (5 minutes) before aborting a
database transfer. Infinity is defined as 0 seconds.
write-delay
seconds
(Optional) Specifies how soon the DHCP server should send database updates.
By default, DHCP waits 300 seconds (5 minutes) before sending database
changes. The minimum delay is 60 seconds.
Defaults
DHCP waits 300 seconds for both a write delay and a timeout.
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
The administrator may configure multiple database agents. Bindings are transferred by using FTP,
Trivial File Transport Protocol (TFTP), or remote copy protocol (rcp).
The DHCP relay agent can save route information to the same database agents to ensure recovery after
reloads.
Examples
The following example specifies the DHCP database transfer timeout value at 80 seconds:
ip dhcp database ftp://user:[email protected]/router-dhcp timeout 80
The following example specifies the DHCP database update delay value at 100 seconds:
ip dhcp database tftp://172.16.1.1/router-dhcp write-delay 100
IP1R-123
DHCP Commands
ip dhcp database
Related Commands
Command
Description
show ip dhcp database Displays Cisco IOS DHCP Server database agent information.
IP1R-124
DHCP Commands
ip dhcp excluded-address
ip dhcp excluded-address
To specify IP addresses that a Cisco IOS Dynamic Host Configuration Protocol (DHCP) Server should
not assign to DHCP clients, use the ip dhcp excluded-address global configuration command. To
remove the excluded IP addresses, use the no form of this command.
ip dhcp excluded-address low-address [high-address]
no ip dhcp excluded-address low-address [high-address]
Syntax Description
low-address
high-address
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
The DHCP Server assumes that all pool addresses may be assigned to clients. Use this command to
exclude a single IP address or a range of IP addresses.
Examples
The following example configures an excluded IP address range from 172.16.1.100 through
172.16.1.199:
ip dhcp excluded-address 172.16.1.100 172.16.1.199
Related Commands
Command
Description
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
network (DHCP)
Configures the subnet number and mask for a DHCP address pool on a
Cisco IOS DHCP Server.
IP1R-125
DHCP Commands
ip dhcp limited-broadcast-address
ip dhcp limited-broadcast-address
To override a configured network broadcast and have the DHCP server and relay agent send an all
networks, all nodes broadcast to a DHCP client, use the ip dhcp limited-broadcast-address global
configuration command. To disable this functionality, use the no form of this command.
ip dhcp limited-broadcast-address
no ip dhcp limited-broadcast-address
Syntax Description
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.1
Usage Guidelines
When a DHCP client sets the broadcast bit in the DHCP packet, the DHCP server and relay agent send
DHCP messages to clients using the all ones broadcast address (255.255.255.255). If the
ip broadcast-address interface configuration command has been configured to send a network
broadcast, the all ones broadcast set by DHCP is overridden. To remedy this situation, use the
ip dhcp limited-broadcast-address command to ensure that a configured network broadcast does not
override the default DHCP behavior.
Some DHCP clients can only accept an all ones broadcast and may not be able to acquire a DHCP
address unless this command is configured on the router interface connected to the client.
Examples
Related Commands
Command
Description
ip broadcast-address
IP1R-126
DHCP Commands
ip dhcp ping packets
Syntax Description
number
Defaults
Two packets
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
Indicates the number of ping packets that are sent before assigning the address
to a requesting client. The default value is two packets.
The DHCP Server pings a pool address before assigning the address to a requesting client. If the ping is
unanswered, the DHCP Server assumes (with a high probability) that the address is not in use and assigns
the address to the requesting client.
Setting the number argument to a value of 0 turns off DHCP Server ping operation completely.
Examples
The following example specifies five ping attempts by the DHCP Server before ceasing any further ping
attempts:
ip dhcp ping packets 5
Related Commands
Command
Description
Clears an address conflict from the Cisco IOS DHCP Server database.
Specifies how long a Cisco IOS DHCP Server waits for a ping reply from an
address pool.
IP1R-127
DHCP Commands
ip dhcp ping timeout
Syntax Description
milliseconds
Defaults
500 milliseconds
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
The amount of time (in milliseconds) that the DHCP server waits for a ping
reply before it stops attempting to reach a pool address for client assignment.
The maximum timeout is 10000 milliseconds (10 seconds). The default
timeout is 500 milliseconds.
Usage Guidelines
This command specifies how long to wait for a ping reply (in milliseconds).
Examples
The following example specifies that the DHCP Server will wait 800 milliseconds for a ping reply before
considering the ping a failure:
ip dhcp ping timeout 800
Related Commands
Command
Description
Clears an address conflict from the Cisco IOS DHCP Server database.
Specifies the number of packets a Cisco IOS DHCP Server sends to a pool
address as part of a ping operation.
IP1R-128
DHCP Commands
ip dhcp pool
ip dhcp pool
To configure a Dynamic Host Configuration Protocol (DHCP) address pool on a Cisco IOS DHCP
Server and enter DHCP pool configuration mode, use the ip dhcp pool global configuration command.
To remove the address pool, use the no form of this command.
ip dhcp pool name
no ip dhcp pool name
Syntax Description
name
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
During execution of this command, the configuration mode changes to DHCP pool configuration mode,
which is identified by the (config-dhcp)# prompt. In this mode, the administrator can configure pool
parameters, like the IP subnet number and default router list.
Examples
Related Commands
Command
Description
host
Specifies the IP address and network mask for a manual binding to a DHCP
client.
ip dhcp
excluded-address
Specifies IP addresses that a Cisco IOS DHCP Server should not assign to
DHCP clients.
network (DHCP)
Configures the subnet number and mask for a DHCP address pool on a
Cisco IOS DHCP Server.
IP1R-129
DHCP Commands
ip dhcp relay information check
Syntax Description
Defaults
The DHCP server checks relay information. Invalid messages are dropped.
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
This command is used by cable access router termination systems. By default, DHCP checks relay
information. Invalid messages are dropped.
Examples
The following example configures the DHCP Server to check that the relay agent information option in
forwarded BOOTREPLY messages is valid:
ip dhcp relay information check
Related Commands
Command
Description
ip dhcp relay
information option
Configures a Cisco IOS DHCP Server to insert the DHCP relay agent
information option in forwarded BOOTREQUEST messages.
ip dhcp relay
information policy
IP1R-130
DHCP Commands
ip dhcp relay information option
Syntax Description
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
This command is used by cable access router termination systems. This functionality enables a DHCP
server to identify the user (cable access router) sending the request and initiate appropriate action based
on this information. By default, DHCP does not insert relay information.
Examples
The following example configures a DHCP Server to insert the DHCP relay agent information option in
forwarded BOOTREQUEST messages:
ip dhcp relay information option
Related Commands
Command
Description
ip dhcp relay
information check
Configures a Cisco IOS DHCP Server to validate the relay agent information
option in forwarded BOOTREPLY messages.
ip dhcp relay
information policy
IP1R-131
DHCP Commands
ip dhcp relay information policy
Syntax Description
drop
Directs the DHCP relay agent to discard messages with existing relay
information if the relay information option is already present.
keep
Indicates that existing information is left unchanged on the DHCP relay agent.
replace
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
This command is used by cable access router termination systems. When a DHCP relay agent receives
a message from a another DHCP relay agent, relay information might already be present in the message.
By default, the relay information from the previous relay agent is replaced.
Examples
The following examples configure a DHCP relay agent to drop messages with existing relay information,
keep existing information, and replace existing information:
ip dhcp relay information policy drop
ip dhcp relay information policy keep
ip dhcp relay information policy replace
IP1R-132
DHCP Commands
ip dhcp relay information policy
Related Commands
Command
Description
ip dhcp relay
information check
Configures a Cisco IOS DHCP Server to validate the relay agent information
option in forwarded BOOTREPLY messages.
ip dhcp relay
information option
Configures a Cisco IOS DHCP Server to insert the DHCP relay agent
information option in forwarded BOOTREQUEST messages.
IP1R-133
DHCP Commands
ip dhcp relay information trusted
Syntax Description
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
12.2
Usage Guidelines
By default, if the gateway address is set to all zeros in the DHCP packet and the relay information option
is already present in the packet, the Cisco IOS DHCP relay agent will discard the packet. If the ip dhcp
relay information trusted command is configured on an interface, the Cisco IOS DHCP relay agent will
not discard the packet even if the gateway address is set to all zeros. Instead, the received
DHCPDISCOVER or DHCPREQUEST messages will be forwarded to the addresses configured by the
ip helper-address command as in normal DHCP relay operation.
Examples
In the following example, interface Ethernet 1 is configured as a trusted source for the relay agent
information:
interface ethernet 1
ip dhcp relay information trusted
Related Commands
Command
Description
ip helper-address
Displays all interfaces on the router that are configured as a trusted source
for the DHCP relay agent information option.
IP1R-134
DHCP Commands
ip dhcp relay information trust-all
Syntax Description
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.2
Usage Guidelines
By default, if the gateway address is set to all zeros in the DHCP packet and the relay information option
is already present in the packet, the Cisco IOS DHCP relay agent will discard the packet. If the ip dhcp
relay information trust-all command is configured globally, the Cisco IOS DHCP relay agent will not
discard the packet even if the gateway address is set to all zeros. Instead, the received DHCPDISCOVER
or DHCPREQUEST messages will be forwarded to the addresses configured by the ip helper-address
command as in normal DHCP relay operation.
Examples
In the following example, all interfaces on the router are configured as a trusted source for relay agent
information:
ip dhcp relay information trust-all
Related Commands
Command
Description
ip helper-address
Displays all interfaces on the router that are configured as a trusted source
for the DHCP relay agent information option.
IP1R-135
DHCP Commands
ip dhcp smart-relay
ip dhcp smart-relay
To allow the Cisco IOS Dynamic Host Configuration Protocol (DHCP) relay agent to switch the gateway
address (giaddr field of a DHCP packet) to secondary addresses when there is no DHCPOFFER message
from a DHCP server, use the ip dhcp smart-relay global configuration command. To disable this
smart-relay functionality and restore the default behavior, use the no form of this command.
ip dhcp smart-relay
no ip dhcp smart-relay
Syntax Description
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
12.1
Usage Guidelines
The DHCP relay agent attempts to forward the primary address as the gateway address three times. After
three attempts and no response, the relay agent automatically switches to secondary addresses.
Examples
The following example enables the DHCP relay agent to automatically switch to secondary address
pools:
ip dhcp smart-relay
IP1R-136
DHCP Commands
lease
lease
To configure the duration of the lease for an IP address that is assigned from a Cisco IOS Dynamic Host
Configuration Protocol (DHCP) Server to a DHCP client, use the lease DHCP pool configuration
command. To restore the default value, use the no form of this command.
lease {days [hours][minutes] | infinite}
no lease
Syntax Description
days
hours
(Optional) Specifies the number of hours in the lease. A days value must be
supplied before you can configure an hours value.
minutes
(Optional) Specifies the number of minutes in the lease. A days value and an
hours value must be supplied before you can configure a minutes value.
infinite
Defaults
One day
Command Modes
Command History
Release
Modification
12.0(1)T
Examples
Related Commands
Command
Description
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
IP1R-137
DHCP Commands
netbios-name-server
netbios-name-server
To configure NetBIOS Windows Internet Naming Service (WINS) name servers that are available to
Microsoft Dynamic Host Configuration Protocol (DHCP) clients, use the netbios-name-server DHCP
pool configuration command. To remove the NetBIOS name server list, use the no form of this
command.
netbios-name-server address [address2...address8]
no netbios-name-server
Syntax Description
address
Specifies the IP address of the NetBIOS WINS name server. One IP address
is required, although you can specify up to eight addresses in one command
line.
address2...address8
Command Modes
Command History
Release
Modification
12.0(1)T
Usage Guidelines
One IP address is required, although you can specify up to eight addresses in one command line. Servers
are listed in order of preference (address1 is the most preferred server, address2 is the next most
preferred server, and so on).
Examples
The following example specifies the IP address of a NetBIOS name server available to the client:
netbios-name-server 10.12.1.90
Related Commands
Command
Description
dns-server
domain-name
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
netbios-node-type
IP1R-138
DHCP Commands
netbios-node-type
netbios-node-type
To configure the NetBIOS node type for Microsoft Dynamic Host Configuration Protocol (DHCP)
clients, use the netbios-node-type DHCP pool configuration command. To remove the NetBIOS node
type, use the no form of this command.
netbios-node-type type
no netbios-node-type
Syntax Description
type
b-nodeBroadcast
p-nodePeer-to-peer
m-nodeMixed
h-nodeHybrid (recommended)
Command Modes
Command History
Release
Modification
12.0(1)T
Usage Guidelines
Examples
Related Commands
Command
Description
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
netbios-name-server
IP1R-139
DHCP Commands
network (DHCP)
network (DHCP)
To configure the subnet number and mask for a Dynamic Host Configuration Protocol (DHCP) address
pool on a Cisco IOS DHCP Server, use the network DHCP pool configuration command. To remove the
subnet number and mask, use the no form of this command.
network network-number [mask | prefix-length]
no network
Syntax Description
network-number
mask
(Optional) The bit combination that renders which portion of the address of the
DHCP address pool refers to the network or subnet and which part refers to the
host.
prefix-length
(Optional) Specifies the number of bits that comprise the address prefix. The
prefix is an alternative way of specifying the network mask of the client. The
prefix length must be preceded by a forward slash (/).
Command Modes
Command History
Release
Modification
12.0(1)T
Usage Guidelines
This command is valid for DHCP subnetwork address pools only. If the mask or prefix length is not
specified, the class A, B, or C natural mask is used. The DHCP Server assumes that all host addresses
are available. The system administrator can exclude subsets of the address space by using the ip dhcp
excluded-address command.
You can not configure manual bindings within the same pool that is configured with the network
command.
Examples
The following example configures 172.16.0.0/16 as the subnetwork number and mask of the DHCP pool:
network 172.16.0.0/16
Related Commands
Command
Description
host
Specifies the IP address and network mask for a manual binding to a DHCP
client.
ip dhcp
excluded-address
Specifies IP addresses that a Cisco IOS DHCP Server should not assign to
DHCP clients.
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
IP1R-140
DHCP Commands
next-server
next-server
To configure the next server in the boot process of a Dynamic Host Configuration Protocol (DHCP)
client, use the next-server DHCP pool configuration command. To remove the boot server list, use the
no form of this command.
next-server address [address2...address8]
no next-server address
Syntax Description
address
Specifies the IP address of the next server in the boot process, which is
typically a Trivial File Transfer Protocol (TFTP) server. One IP address is
required, although you can specify up to eight addresses in one command line.
address2...address8
Defaults
If the next-server command is not used to configure a boot server list, the DHCP Server uses inbound
interface helper addresses as boot servers.
Command Modes
Command History
Release
Modification
12.0(1)T
Usage Guidelines
You can specify up to eight servers in the list. Servers are listed in order of preference (address1 is the
most preferred server, address2 is the next most preferred server, and so on).
Examples
The following example specifies 10.12.1.99 as the IP address of the next server in the boot process:
next-server 10.12.1.99
Related Commands
Command
Description
bootfile
Specifies the name of the default boot image for a DHCP client.
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
ip helper-address
option
IP1R-141
DHCP Commands
option
option
To configure Cisco IOS Dynamic Host Configuration Protocol (DHCP) Server options, use the option
DHCP pool configuration command. To remove the options, use the no form of this command.
option code [instance number] {ascii string | hex string | ip address}
no option code [instance number]
Syntax Description
code
instance number
ascii string
Specifies an NVT ASCII character string. ASCII character strings that contain
white space must be delimited by quotation marks.
hex string
ip address
Specifies an IP address.
Defaults
Command Modes
Command History
Release
Modification
12.0(1)T
Usage Guidelines
DHCP provides a framework for passing configuration information to hosts on a TCP/IP network.
Configuration parameters and other control information are carried in tagged data items that are stored
in the options field of the DHCP message. The data items themselves are also called options. The current
set of DHCP options are documented in RFC 2131, Dynamic Host Configuration Protocol.
Examples
The following example configures DHCP option 19, which specifies whether the client should configure
its IP layer for packet forwarding. A value of 0 means disable IP forwarding; a value of 1 means enable
IP forwarding. IP forwarding is enabled in the following example:
option 19 hex 01
The following example configures DHCP option 72, which specifies the World Wide Web servers for
DHCP clients. World Wide Web servers 172.16.3.252 and 172.16.3.253 are configured in the following
example:
option 72 ip 172.16.3.252 172.16.3.253
IP1R-142
DHCP Commands
option
Related Commands
Command
Description
ip dhcp pool
Configures a DHCP address pool on a Cisco IOS DHCP Server and enters
DHCP pool configuration mode.
IP1R-143
DHCP Commands
service dhcp
service dhcp
To enable the Cisco IOS Dynamic Host Configuration Protocol (DHCP) server and relay agent features
on your router, use the service dhcp global configuration command. To disable the Cisco IOS DHCP
server and relay agent features, use the no form of this command.
service dhcp
no service dhcp
Syntax Description
Defaults
Enabled
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
The BOOTP and DHCP servers in Cisco IOS software both use the ICMP port (port 67) by default. ICMP
port unreachable messages will only be returned to the sender if both the BOOTP server and DHCP
server are disabled. Disabling only one of the servers will not result in ICMP port unreachable messages.
Examples
IP1R-144
DHCP Commands
show ip dhcp binding
Syntax Description
ip-address
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
(Optional) Specifies the IP address of the DHCP client for which bindings
will be displayed.
Usage Guidelines
If the address is not specified, all address bindings are shown. Otherwise, only the binding for the
specified client is displayed.
Examples
The following examples show the DHCP binding address parameters, including an IP address, an
associated MAC address, a lease expiration date, and the type of address assignment that have occurred.
Table 13 lists descriptions of the fields in each example.
Router> show ip dhcp binding 172.16.1.11
IP address
172.16.1.11
Hardware address
00a0.9802.32de
Lease expiration
Feb 01 1998 12:00 AM
Type
Automatic
Table 13
Hardware address
02c7.f800.0422
Lease expiration
Infinite
Type
Manual
Field
Description
IP address
Hardware address
Lease expiration
Type
IP1R-145
DHCP Commands
show ip dhcp binding
Related Commands
Command
Description
Deletes an automatic address binding from the Cisco IOS DHCP Server
database.
IP1R-146
DHCP Commands
show ip dhcp conflict
Syntax Description
ip-address
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
The server detects conflicts using ping. The client detects conflicts using gratuitous Address Resolution
Protocol (ARP). If an address conflict is detected, the address is removed from the pool and the address
will not be assigned until an administrator resolves the conflict.
Examples
The following example displays the detection method and detection time for all IP addresses the DHCP
Server has offered that have conflicts with other devices. Table 14 lists descriptions of the fields in the
example.
Router> show ip dhcp conflict
IP address
172.16.1.32
172.16.1.64
Table 14
Related Commands
Detection Method
Ping
Gratuitous ARP
Detection time
Feb 16 1998 12:28 PM
Feb 23 1998 08:12 AM
Field
Description
IP address
Detection Method
The manner in which the IP address of the hosts were found on the DHCP
Server. Can be a ping or a gratuitous ARP.
Detection time
Command
Description
Clears an address conflict from the Cisco IOS DHCP Server database.
Specifies the number of packets a Cisco IOS DHCP Server sends to a pool
address as part of a ping operation.
Specifies how long a Cisco IOS DHCP Server waits for a ping reply from an
address pool.
IP1R-147
DHCP Commands
show ip dhcp database
Syntax Description
url
(Optional) Specifies the remote file used to store automatic DHCP bindings.
Following are the acceptable URL file formats:
tftp://host/filename
ftp://user:password@host/filename
rcp://user@host/filename
Defaults
If a URL is not specified, all database agent records are shown. Otherwise, only information about the
specified agent is displayed.
Command Modes
Privileged EXEC
Command History
Release
Modification
12.0(1)T
Examples
The following example shows all DHCP Server database agent information. Table 15 lists descriptions
for each field in the example.
Router# show ip dhcp database
URL
Read
Written
Status
Delay
Timeout
Failures
Successes
:
:
:
:
:
:
:
:
ftp://user:[email protected]/router-dhcp
Dec 01 1997 12:01 AM
Never
Last read succeeded. Bindings have been loaded in RAM.
300 seconds
300 seconds
0
1
IP1R-148
DHCP Commands
show ip dhcp database
Table 15
Related Commands
Field
Description
URL
Specifies the remote file used to store automatic DHCP bindings. Following
are the acceptable URL file formats:
tftp://host/filename
ftp://user:password@host/filename
rcp://user@host/filename
Read
The last time bindings were read from the file server.
Written
Status
Indication of whether the last read or write of host bindings was successful.
Delay
Timeout
Failures
Successes
Command
Description
ip dhcp database
IP1R-149
DHCP Commands
show ip dhcp import
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
12.1(2)T
Usage Guidelines
Imported option parameters are not part of the router configuration and are not saved in NVRAM. Thus,
the show ip dhcp import command is necessary to display the imported option parameters.
Examples
The following is sample output from the show ip dhcp import command:
Router# show ip dhcp import
Address Pool Name:2
Domain Name Server(s): 1.1.1.1
NetBIOS Name Server(s): 3.3.3.3
The following example indicates the imported values, which are domain name and NetBIOS name
information:
Domain Name Server(s): 1.1.1.1
NetBIOS Name Server(s): 3.3.3.3
Related Commands
Command
Description
import all
IP1R-150
DHCP Commands
show ip dhcp relay information trusted-sources
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
12.2
Examples
The following is sample output when the ip dhcp relay information trusted interface configuration
command is configured. Note that the display output lists the interfaces that are configured to be trusted
sources.
Router# show ip dhcp relay information trusted-sources
List of trusted sources of relay agent information option:
Ethernet1/1
Ethernet1/2
Ethernet1/3
Serial4/1.1
Serial4/1.2
Serial4/1.3
The following is sample output when the ip dhcp relay information trust-all global configuration
command is configured. Note that the display output does not list the individual interfaces.
Router# show ip dhcp relay information trusted-sources
All interfaces are trusted source of relay agent information option
Related Commands
Command
Description
ip dhcp relay
information trusted
ip dhcp relay
information trust-all
IP1R-151
DHCP Commands
show ip dhcp server statistics
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Examples
The following example displays DHCP Server statistics. Table 16 lists descriptions for each field in the
example.
Router> show ip dhcp server statistics
Memory usage
Address pools
Database agents
Automatic bindings
Manual bindings
Expired bindings
Malformed messages
40392
3
1
190
1
3
0
Message
BOOTREQUEST
DHCPDISCOVER
DHCPREQUEST
DHCPDECLINE
DHCPRELEASE
DHCPINFORM
Received
12
200
178
0
0
0
Message
BOOTREPLY
DHCPOFFER
DHCPACK
DHCPNAK
Sent
12
190
172
6
Table 16
Field
Description
Memory usage
Address pools
Database agents
IP1R-152
DHCP Commands
show ip dhcp server statistics
Table 16
Related Commands
Field
Description
Automatic bindings
Manual bindings
The number of IP addresses that have been manually mapped to the MAC
addresses of hosts that are found in the DHCP database.
Expired bindings
Malformed messages
Message
The DHCP message type that was received by the DHCP Server.
Received
The number of DHCP messages that were received by the DHCP Server.
Sent
The number of DHCP messages that were sent by the DHCP Server.
Command
Description
IP1R-153
DHCP Commands
show ip route dhcp
Syntax Description
vrf
vrf-name
ip-address
Defaults
Command Modes
EXEC
Command History
Release
Modification
12.2
Usage Guidelines
To display information about global routes, use the show ip route dhcp command. To display routes in
the VRF routing table, use the show ip route vrf vrf-name dhcp command.
Examples
The following is sample output from the show ip route dhcp command when entered without an address.
This command gives the list of all routes added by the Cisco IOS DHCP Server and Relay Agent.
Router# show ip route dhcp
55.5.5.56/32 is directly connected, ATM0.2
55.5.5.217/32 is directly connected, ATM0.2
The following is sample output from the show ip route dhcp command when an address is specified.
This command gives the details of the address with the server address (who assigned it) and the lease
expiration time.
Router# show ip route dhcp 55.5.5.217
55.5.5.217 is directly connected, ATM0.2
DHCP Server: 49.9.9.10
Lease expires at Nov 08 2001 01:19 PM
The following is sample output from the show ip route vrf vrf-name dhcp command when entered
without an address:
Router# show ip route vrf red dhcp
55.5.5.218/32 is directly connected, ATM0.2
IP1R-154
DHCP Commands
show ip route dhcp
The following is sample output from the show ip route vrf vrf-name dhcp command when an address
is specified. This command gives the details of the address with the server address (who assigned it) and
the lease expiration time.
Router# show ip route vrf red dhcp 55.5.5.218
55.5.5.218/32 is directly connected, ATM0.2
DHCP Server: 49.9.9.10
Lease expires at Nov 08 2001 03:15PM
Related Commands
Command
Description
Removes routes from the routing table added by the DHCP Server and
Relay Agent for the DHCP clients on unnumbered interfaces.
IP1R-155
DHCP Commands
show ip route dhcp
IP1R-156
IP Services Commands
Use the commands in this chapter to configure various IP services. For configuration information and
examples on IP services, refer to the Configuring IP Services chapter of the Cisco IOS IP
Configuration Guide.
IP1R-157
IP Services Commands
access-class
access-class
To restrict incoming and outgoing connections between a particular vty (into a Cisco device) and the
addresses in an access list, use the access-class command in line configuration mode. To remove access
restrictions, use the no form of this command.
access-class access-list-number {in [vrf-also] | out}
no access-class access-list-number {in | out}
Syntax Description
access-list-number
in
vrf-also
out
Defaults
Command Modes
Line configuration
Command History
Release
Modification
10.0
12.2
Usage Guidelines
Remember to set identical restrictions on all the virtual terminal lines because a user can connect to any
of them.
To display the access lists for a particular terminal line, use the show line EXEC command and specify
the line number.
If you do not specify the vrf-also keyword, incoming Telnet connections from interfaces that are part of
a VRF are rejected.
Examples
The following example defines an access list that permits only hosts on network 192.89.55.0 to connect
to the virtual terminal ports on the router:
access-list 12 permit 192.89.55.0
line 1 5
access-class 12 in
0.0.0.255
IP1R-158
IP Services Commands
access-class
The following example defines an access list that denies connections to networks other than network
36.0.0.0 on terminal lines 1 through 5:
access-list 10 permit 36.0.0.0 0.255.255.255
line 1 5
access-class 10 out
Related Commands
Command
Description
show line
IP1R-159
IP Services Commands
access-list (IP extended)
Syntax Description
access-list-number
dynamic dynamic-name
IP1R-160
IP Services Commands
access-list (IP extended)
timeout minutes
deny
permit
protocol
source
Number of the network or host from which the packet is being sent. There
are three alternative ways to specify the source:
source-wildcard
Wildcard bits set to 1 need not be contiguous in the source wildcard. For
example, a source wildcard of 0.255.0.64 would be valid.
destination
Number of the network or host to which the packet is being sent. There
are three alternative ways to specify the destination:
IP1R-161
IP Services Commands
access-list (IP extended)
destination-wildcard
precedence precedence
tos tos
log
log-input
time-range
time-range-name
(Optional) Name of the time range that applies to this statement. The
name of the time range and its restrictions are specified by the time-range
command.
icmp-type
(Optional) ICMP packets can be filtered by ICMP message type. The type
is a number from 0 to 255.
icmp-code
(Optional) ICMP packets that are filtered by ICMP message type can also
be filtered by the ICMP message code. The code is a number from 0 to
255.
IP1R-162
IP Services Commands
access-list (IP extended)
icmp-message
igmp-type
operator
port
established
fragments
Defaults
An extended access list defaults to a list that denies everything. An extended access list is terminated by
an implicit deny statement.
Command Modes
Global configuration
IP1R-163
IP Services Commands
access-list (IP extended)
Command History
Usage Guidelines
Release
Modification
10.0
10.3
source
source-wildcard
destination
destination-wildcard
precedence precedence
icmp-type
icm-code
icmp-message
igmp-type
operator
port
established
11.1
11.1
11.2
12.0(1)T
You can use access lists to control the transmission of packets on an interface, control vty access, and
restrict the contents of routing updates. The Cisco IOS software stops checking the extended access list
after a match occurs.
Fragmented IP packets, other than the initial fragment, are immediately accepted by any extended IP
access list. Extended access lists used to control vty access or restrict the contents of routing updates
must not match against the TCP source port, the type of service (ToS) value, or the precedence of the
packet.
Note
After a numbered access list is created, any subsequent additions (possibly entered from the terminal)
are placed at the end of the list. In other words, you cannot selectively add or remove access list
command lines from a specific numbered access list.
The following is a list of precedence names:
critical
flash
flash-override
immediate
internet
network
IP1R-164
IP Services Commands
access-list (IP extended)
priority
routine
max-reliability
max-throughput
min-delay
min-monetary-cost
normal
The following is a list of ICMP message type names and ICMP message type and code names:
administratively-prohibited
alternate-address
conversion-error
dod-host-prohibited
dod-net-prohibited
echo
echo-reply
general-parameter-problem
host-isolated
host-precedence-unreachable
host-redirect
host-tos-redirect
host-tos-unreachable
host-unknown
host-unreachable
information-reply
information-request
mask-reply
mask-request
mobile-redirect
net-redirect
net-tos-redirect
net-tos-unreachable
net-unreachable
network-unknown
no-room-for-option
option-missing
packet-too-big
parameter-problem
IP1R-165
IP Services Commands
access-list (IP extended)
port-unreachable
precedence-unreachable
protocol-unreachable
reassembly-timeout
redirect
router-advertisement
router-solicitation
source-quench
source-route-failed
time-exceeded
timestamp-reply
timestamp-request
traceroute
ttl-exceeded
unreachable
dvmrp
host-query
host-report
pim
trace
The following is a list of TCP port names that can be used instead of port numbers. Refer to the current
assigned numbers RFC to find a reference to these protocols. Port numbers corresponding to these
protocols can also be found if you type a ? in the place of a port number.
bgp
chargen
daytime
discard
domain
echo
finger
ftp
ftp-data
gopher
hostname
irc
klogin
kshell
IP1R-166
IP Services Commands
access-list (IP extended)
lpd
nntp
pop2
pop3
smtp
sunrpc
syslog
tacacs-ds
talk
telnet
time
uucp
whois
www
The following is a list of UDP port names that can be used instead of port numbers. Refer to the current
assigned numbers RFC to find a reference to these protocols. Port numbers corresponding to these
protocols can also be found if you type a ? in the place of a port number.
biff
bootpc
bootps
discard
dnsix
domain
echo
mobile-ip
nameserver
netbios-dgm
netbios-ns
ntp
rip
snmp
snmptrap
sunrpc
syslog
tacacs-ds
talk
tftp
time
IP1R-167
IP Services Commands
access-list (IP extended)
who
xdmcp
The behavior of access-list entries regarding the use or lack of the fragments keyword can be
summarized as follows:
If the Access-List Entry has...
Then..
...no fragments keyword (the default For an access-list entry containing only Layer 3 information:
behavior), and assuming all of the
The entry is applied to nonfragmented packets, initial
access-list entry information matches,
fragments and noninitial fragments.
For an access list entry containing Layer 3 and Layer 4
information:
fragment is permitted.
If the entry is a deny statement, the packet or
fragment is denied.
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
IP1R-168
IP Services Commands
access-list (IP extended)
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.
Packet fragments of IP datagrams are considered individual packets and each counts individually as a
packet in access list accounting and access list violation counts.
Note
The fragments keyword cannot solve all cases involving access lists and IP fragments.
Fragments and 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.
Examples
In the following example, serial interface 0 is part of 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 indicates 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 serial 0
ip access-group 102 in
The following example permits Domain Naming System (DNS) packets and ICMP echo and echo reply
packets:
access-list
access-list
access-list
access-list
access-list
access-list
102
102
102
102
102
102
permit
permit
permit
permit
permit
permit
The following examples show how wildcard bits are used to indicate the bits of the prefix or mask that
are relevant. Wildcard bits are similar to the bitmasks that are used with normal access lists. Prefix or
mask bits corresponding to wildcard bits set to 1 are ignored during comparisons and prefix or mask bits
corresponding to wildcard bits set to 0 are used in comparison.
The following example permits 192.108.0.0 255.255.0.0 but denies any more specific routes of
192.108.0.0 (including 192.108.0.0 255.255.255.0):
access-list 101 permit ip 192.108.0.0 0.0.0.0
255.255.0.0 0.0.0.0
access-list 101 deny ip 192.108.0.0 0.0.255.255 255.255.0.0 0.0.255.255
The following example permits 131.108.0/24 but denies 131.108/16 and all other subnets of 131.108.0.0:
access-list 101 permit ip 131.108.0.0 0.0.0.0
255.255.255.0 0.0.0.0
access-list 101 deny ip 131.108.0.0 0.0.255.255 255.255.0.0
0.0.255.255
IP1R-169
IP Services Commands
access-list (IP extended)
The following example uses a time range to deny HTTP traffic on Monday through Friday from
8:00 a.m. to 6:00 p.m.:
time-range no-http
periodic weekdays 8:00 to 18:00
!
access-list 101 deny tcp any any eq http time-range no-http
!
interface ethernet 0
ip access-group 101 in
Related Commands
Command
Description
access-class
clear access-template
deny (IP)
Sets conditions under which a packet does not pass a named access list.
distribute-list in (IP)
ip access-group
ip access-list
ip access-list log-update Sets the threshold number of packets that cause a logging message.
ip accounting
logging console
permit (IP)
remark
show access-lists
show ip access-list
time-range
IP1R-170
IP Services Commands
access-list (IP standard)
Caution
Syntax Description
Enhancements to this command are backward compatible; migrating from releases prior to Cisco
IOS Release 10.3 will convert your access lists automatically. However, releases prior to
Release 10.3 are not upwardly compatible with these enhancements. Therefore, if you save an access
list with these images and then use software prior to Release 10.3, the resulting access list will not
be interpreted correctly. This condition could cause you severe security problems. Save your old
configuration file before booting these images.
access-list-number
deny
permit
source
Number of the network or host from which the packet is being sent. There
are two alternative ways to specify the source:
IP1R-171
IP Services Commands
access-list (IP standard)
source-wildcard
log
Defaults
The access list defaults to an implicit deny statement for everything. The access list is always terminated
by an implicit deny statement for everything.
Command Modes
Global configuration
Command History
Release
Modification
10.3
11.3(3)T
Usage Guidelines
Plan your access conditions carefully and be aware of the implicit deny statement at the end of the access
list.
You can use access lists to control the transmission of packets on an interface, control vty access, and
restrict the contents of routing updates.
Use the show access-lists EXEC command to display the contents of all access lists.
IP1R-172
IP Services Commands
access-list (IP standard)
Use the show ip access-list EXEC command to display the contents of one access list.
Examples
The following example of a standard access list allows access for only those hosts on the three specified
networks. The wildcard bits apply to the host portions of the network addresses. Any host 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)
The following example of a standard access list allows access for devices with IP addresses in the range
from 10.29.2.64 to 10.29.2.127. All packets with a source address not in this range will be rejected.
access-list 1 permit 10.29.2.64 0.0.0.63
! (Note: all other access implicitly denied)
To specify a large number of individual addresses more easily, you can omit the wildcard if it is all zeros.
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
Related Commands
0.0.0.0
Command
Description
access-class
deny (IP)
Sets conditions under which a packet does not pass a named access list.
distribute-list in (IP)
ip access-group
ip access-list log-update Sets the threshold number of packets that cause a logging message.
logging console
permit (IP)
remark (IP)
show access-lists
show ip access-list
IP1R-173
IP Services Commands
access-list compiled
access-list compiled
To enable the Turbo Access Control Lists (Turbo ACL) feature, use the access-list compiled command
in global configuration mode. To disable the Turbo ACL feature, use the no form of this command.
access-list compiled
no access-list compiled
Syntax Description
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
12.0(6)S
12.1(1)E
12.1(5)T
Usage Guidelines
By default, the Turbo ACL feature is disabled. When Turbo ACL is disabled, normal ACL processing is
enabled, and no ACL acceleration occurs.
When the Turbo ACL feature is enabled using the access-list compiled command, the ACLs in the
configuration are scanned and, if suitable, compiled for Turbo ACL acceleration. This scanning and
compilation may take a few seconds when the system is processing large and complex ACLs, or when
the system is processing a configuration that contains a large number of ACLs.
Any configuration change to an ACL that is being accelerated, such as the addition of new ACL entries
or the deletion of the ACL, triggers a recompilation of that ACL.
When Turbo ACL tables are being built (or rebuilt) for a particular ACL, the normal sequential ACL
search is used until the new tables are ready for installation.
Examples
IP1R-174
IP Services Commands
access-list remark
access-list remark
To write a helpful comment (remark) for an entry in a numbered IP access list, use the access-list
remark command in global configuration mode. To remove the remark, use the no form of this
command.
access-list access-list-number remark remark
no access-list access-list-number remark remark
Syntax Description
access-list-number
remark
Comment that describes the access list entry, up to 100 characters long.
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(2)T
Usage Guidelines
Examples
In the following example, the workstation belonging to Jones is allowed access, and the workstation
belonging to Smith is not allowed access:
access-list
access-list
access-list
access-list
Related Commands
1
1
1
1
Command
Description
remark
IP1R-175
IP Services Commands
clear access-list counters
Syntax Description
access-list-number
Access list number of the access list for which to clear the counters.
access-list-name
Command Modes
EXEC
Command History
Release
Modification
11.0
Usage Guidelines
Some access lists keep counters that count the number of packets that pass each line of an access list.
The show access-lists command displays the counters as a number of matches. Use the clear access-list
counters command to restart the counters for a particular access list to 0.
Examples
The following example clears the counters for access list 101:
Router> clear access-list counters 101
Related Commands
Command
Description
show access-lists
IP1R-176
IP Services Commands
clear ip accounting
clear ip accounting
To clear the active or checkpointed database when IP accounting is enabled, use the clear ip accounting
command in EXEC mode.
clear ip accounting [checkpoint]
Syntax Description
checkpoint
Command Modes
EXEC
Command History
Release
Modification
10.0
Usage Guidelines
You can also clear the checkpointed database by issuing the clear ip accounting command twice in
succession.
Examples
The following example clears the active database when IP accounting is enabled:
Router> clear ip accounting
Related Commands
Command
Description
ip accounting
ip accounting-list
Controls the number of transit records that are stored in the IP accounting
database.
show ip accounting
IP1R-177
IP Services Commands
clear ip drp
clear ip drp
To clear all statistics being collected on Director Response Protocol (DRP) requests and replies, use the
clear ip drp command in EXEC mode.
clear ip drp
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
11.2 F
Examples
Related Commands
Command
Description
ip drp access-group
IP1R-178
IP Services Commands
clear tcp statistics
Syntax Description
Command Modes
Privileged EXEC
Command History
Release
Modification
11.3
Examples
Related Commands
Command
Description
IP1R-179
IP Services Commands
deny (IP)
deny (IP)
To set conditions for a named IP access list, use the deny command in access-list configuration mode.To
remove a deny condition from an access list, use the no form of this command.
deny source [source-wildcard]
no deny source [source-wildcard]
deny protocol source source-wildcard destination destination-wildcard [precedence precedence]
[tos tos] [log] [time-range time-range-name] [fragments]
no deny protocol source source-wildcard destination destination-wildcard
Internet Control Message Protocol (ICMP)
IP1R-180
IP Services Commands
deny (IP)
Syntax Description
source
source-wildcard
Number of the network or host from which the packet is being sent. There
are three alternative ways to specify the source:
Wildcard bits to be applied to the source. There are three alternative ways
to specify the source wildcard:
protocol
destination
Number of the network or host to which the packet is being sent. There
are three alternative ways to specify the destination:
destination-wildcard
precedence precedence
tos tos
IP1R-181
IP Services Commands
deny (IP)
log
time-range
time-range-name
(Optional) Name of the time range that applies to this deny statement.
The name of the time range and its restrictions are specified by the
time-range and absolute or periodic commands, respectively.
icmp-type
(Optional) ICMP packets can be filtered by ICMP message type. The type
is a number from 0 to 255.
icmp-code
(Optional) ICMP packets that are filtered by ICMP message type can also
be filtered by the ICMP message code. The code is a number from 0 to
255.
icmp-message
igmp-type
operator
IP1R-182
IP Services Commands
deny (IP)
port
established
fragments
Defaults
There is no specific condition under which a packet is denied passing the named access list.
Command Modes
Access-list configuration
Command History
Release
Modification
11.2
12.0(1)T
Usage Guidelines
Use this command following the ip access-list command to specify conditions under which a packet
cannot pass the named access list.
The time-range option allows you to identify a time range by name. The time-range, absolute, and
periodic commands specify when this deny statement is in effect.
IP1R-183
IP Services Commands
deny (IP)
The behavior of access-list entries regarding the use or lack of the fragments keyword can be
summarized as follows:
If the Access-List Entry has...
Then..
...no fragments keyword (the default For an access-list entry containing only Layer 3 information:
behavior), and assuming all of the
The entry is applied to nonfragmented packets, initial
access-list entry information matches,
fragments and noninitial fragments.
For an access list entry containing Layer 3 and Layer 4
information:
fragment is permitted.
If the entry is a deny statement, the packet or
fragment is denied.
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
IP1R-184
IP Services Commands
deny (IP)
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.
Packet fragments of IP datagrams are considered individual packets and each counts individually as a
packet in access list accounting and access list violation counts.
Note
The fragments keyword cannot solve all cases involving access lists and IP fragments.
Fragments and 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.
Examples
The following example sets a deny condition for a standard access list named Internetfilter:
ip access-list standard Internetfilter
deny 192.5.34.0 0.0.0.255
permit 128.88.0.0 0.0.255.255
permit 36.0.0.0 0.255.255.255
! (Note: all other access implicitly denied)
The following example denies HTTP traffic on Monday through Friday from 8:00 a.m. to 6:00 p.m.:
time-range no-http
periodic weekdays 8:00 to 18:00
!
ip access-list extended strict
deny tcp any any eq http time-range no-http
!
interface ethernet 0
ip access-group strict in
Related Commands
Command
Description
ip access-group
ip access-list
ip access-list log-update
permit (IP)
remark
show ip access-list
time-range
IP1R-185
IP Services Commands
dynamic
dynamic
To define a named dynamic IP access list, use the dynamic access-list configuration command. To
remove the access lists, use the no form of this command.
dynamic dynamic-name [timeout minutes] {deny | permit} protocol source source-wildcard
destination destination-wildcard [precedence precedence] [tos tos] [log] [fragments]
no dynamic dynamic-name
Internet Control Message Protocol (ICMP)
Caution
Syntax Description
Named IP access lists will not be recognized by any software release prior to Cisco IOS Release 11.2.
dynamic-name
timeout minutes
(Optional) Specifies the absolute length of time (in minutes) that a temporary
access list entry can remain in a dynamic access list. The default is an infinite
length of time and allows an entry to remain permanently. Refer to
lock-and-key access documented in the Configuring Lock-and-Key Security
(Dynamic Access Lists) chapter in the Cisco IOS Security Configuration
Guide.
IP1R-186
IP Services Commands
dynamic
deny
permit
protocol
source
Number of the network or host from which the packet is being sent. There are
three alternative ways to specify the source:
source-wildcard
destination
destination-wildcard
Number of the network or host to which the packet is being sent. There are
three alternative ways to specify the destination:
Wildcard bits to be applied to the destination. There are three alternative ways
to specify the destination wildcard:
precedence
precedence
tos tos
IP1R-187
IP Services Commands
dynamic
deny
permit
protocol
source
Number of the network or host from which the packet is being sent. There are
three alternative ways to specify the source:
source-wildcard
destination
destination-wildcard
Number of the network or host to which the packet is being sent. There are
three alternative ways to specify the destination:
Wildcard bits to be applied to the destination. There are three alternative ways
to specify the destination wildcard:
precedence
precedence
tos tos
IP1R-188
IP Services Commands
dynamic
log
icmp-type
(Optional) ICMP packets can be filtered by ICMP message type. The type is
a number from 0 to 255.
icmp-code
(Optional) ICMP packets that are filtered by ICMP message type can also be
filtered by the ICMP message code. The code is a number from 0 to 255.
icmp-message
igmp-type
operator
port
(Optional) The decimal number or name of a TCP or UDP port. A port number
is a number from 0 to 65535. TCP and UDP port names are listed in the
section Usage Guidelines of the access-list (IP extended) command. TCP
port names can only be used when filtering TCP. UDP port names can only be
used when filtering UDP.
IP1R-189
IP Services Commands
dynamic
established
fragments
(Optional) The access list entry applies to noninitial fragments of packets; the
fragment is either permitted or denied accordingly. For more details about the
fragments keyword, see the Access List Processing of Fragments and
Fragments and Policy Routing sections in the Usage Guidelines section.
Defaults
An extended access list defaults to a list that denies everything. An extended access list is terminated by
an implicit deny statement.
Command Modes
Access-list configuration
Command History
Release
Modification
11.2
Usage Guidelines
You can use named access lists to control the transmission of packets on an interface and restrict contents
of routing updates. The Cisco IOS software stops checking the extended access list after a match occurs.
Fragmented IP packets, other than the initial fragment, are immediately accepted by any extended IP
access list. Extended access lists used to control vty access or restrict the contents of routing updates
must not match against the TCP source port, the ToS value, or the precedence of the packet.
Note
After an access list is created initially, any subsequent additions (possibly entered from the terminal)
are placed at the end of the list. In other words, you cannot selectively add or remove access list
command lines from a specific access list.
The following is a list of precedence names:
critical
flash
flash-override
immediate
internet
network
priority
routine
max-reliability
max-throughput
IP1R-190
IP Services Commands
dynamic
min-delay
min-monetary-cost
normal
The following is a list of ICMP message type names and ICMP message type and code names:
administratively-prohibited
alternate-address
conversion-error
dod-host-prohibited
dod-net-prohibited
echo
echo-reply
general-parameter-problem
host-isolated
host-precedence-unreachable
host-redirect
host-tos-redirect
host-tos-unreachable
host-unknown
host-unreachable
information-reply
information-request
mask-reply
mask-request
mobile-redirect
net-redirect
net-tos-redirect
net-tos-unreachable
net-unreachable
network-unknown
no-room-for-option
option-missing
packet-too-big
parameter-problem
port-unreachable
precedence-unreachable
protocol-unreachable
reassembly-timeout
redirect
IP1R-191
IP Services Commands
dynamic
router-advertisement
router-solicitation
source-quench
source-route-failed
time-exceeded
timestamp-reply
timestamp-request
traceroute
ttl-exceeded
unreachable
dvmrp
host-query
host-report
pim
trace
The following is a list of TCP port names that can be used instead of port numbers. Refer to the current
assigned numbers RFC to find a reference to these protocols. Port numbers corresponding to these
protocols can also be found if you type a ? in the place of a port number.
bgp
chargen
daytime
discard
domain
echo
finger
ftp
ftp-data
gopher
hostname
irc
klogin
kshell
lpd
nntp
pop2
pop3
smtp
IP1R-192
IP Services Commands
dynamic
sunrpc
syslog
tacacs-ds
talk
telnet
time
uucp
whois
www
The following is a list of UDP port names that can be used instead of port numbers. Refer to the current
assigned numbers RFC to find a reference to these protocols. Port numbers corresponding to these
protocols can also be found if you type a ? in the place of a port number.
biff
bootpc
bootps
discard
dns
dnsix
echo
mobile-ip
nameserver
netbios-dgm
netbios-ns
ntp
rip
snmp
snmptrap
sunrpc
syslog
tacacs-ds
talk
tftp
time
who
xdmcp
IP1R-193
IP Services Commands
dynamic
The behavior of access-list entries regarding the use or lack of the fragments keyword can be
summarized as follows:
If the Access-List Entry has...
Then..
...no fragments keyword (the default For an access-list entry containing only Layer 3 information:
behavior), and assuming all of the
The entry is applied to nonfragmented packets, initial
access-list entry information matches,
fragments and noninitial fragments.
For an access list entry containing Layer 3 and Layer 4
information:
fragment is permitted.
If the entry is a deny statement, the packet or
fragment is denied.
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
IP1R-194
IP Services Commands
dynamic
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.
Packet fragments of IP datagrams are considered individual packets and each counts individually as a
packet in access list accounting and access list violation counts.
Note
The fragments keyword cannot solve all cases involving access lists and IP fragments.
Fragments and 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.
Examples
Related Commands
Command
Description
clear access-template
Clears a temporary access list entry from a dynamic access list manually.
distribute-list in (IP)
ip access-list
ip access-list
log-update
logging console
show access-lists
show ip access-list
IP1R-195
IP Services Commands
forwarding-agent
forwarding-agent
To specify the port on which the Forwarding Agent will listen for wildcard and fixed affinities, use the
forwarding-agent command in CASA-port configuration mode. To disable listening on that port, use
the no form of the command.
forwarding-agent port-number [password [timeout]]
no forwarding-agent
Syntax Description
Defaults
port-number
Port numbers on which the Forwarding Agent will listen for wildcards
broadcast from the services manager. This must match the port number
defined on the services manager.
password
timeout
Command Modes
CASA-port configuration
Command History
Release
Modification
12.0(5)T
Examples
The following example specifies that the Forwarding Agent will listen for wildcard and fixed affinities
on port 1637:
forwarding-agent 1637
Related Commands
Command
Description
IP1R-196
IP Services Commands
ip access-group
ip access-group
To control access to an interface, use the ip access-group command in interface configuration mode. To
remove the specified access group, use the no form of this command.
ip access-group {access-list-number | access-list-name}{in | out}
no ip access-group {access-list-number | access-list-name}{in | out}
Syntax Description
access-list-number
access-list-name
in
out
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.0
11.2
Usage Guidelines
Access lists are applied on either outbound or inbound interfaces. For standard inbound access lists, after
receiving a packet, the Cisco IOS software checks the source address of the packet against the access
list. For extended access lists, the router also checks the destination 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 standard 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. For extended access lists, the
router also checks the destination 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.
If the specified access list does not exist, all packets are passed.
When you enable outbound access lists, you automatically disable autonomous switching for that
interface. When you enable input access lists on any CBus or CxBus interface, you automatically disable
autonomous switching for all interfaces (with one exceptionan SSE configured with simple access
lists can still switch packets, on output only).
IP1R-197
IP Services Commands
ip access-group
Examples
The following example applies list 101 on packets outbound from Ethernet interface 0:
interface ethernet 0
ip access-group 101 out
Related Commands
Command
Description
ip access-list
show access-lists
IP1R-198
IP Services Commands
ip access-list
ip access-list
To define an IP access list by name, use the ip access-list command in global configuration mode. To
remove a named IP access list, use the no form of this command.
ip access-list {standard | extended} access-list-name
no ip access-list {standard | extended} access-list-name
Caution
Syntax Description
Named access lists will not be recognized by any software release prior to Cisco IOS Release 11.2.
standard
extended
access-list-name
Name of the access list. Names cannot contain a space or quotation mark,
and must begin with an alphabetic character to prevent ambiguity with
numbered access lists.
Defaults
Command Modes
Global configuration
Command History
Release
Modification
11.2
Usage Guidelines
Use this command to configure a named IP access list as opposed to a numbered IP access list. This
command will take you into access-list configuration mode, where you must define the denied or
permitted access conditions with the deny and permit commands.
Specifying the standard or extended keyword with the ip access-list command determines the prompt
you get when you enter access-list configuration mode.
Use the ip access-group command to apply the access list to an interface.
Named access lists are not compatible with Cisco IOS releases prior to Release 11.2.
Examples
IP1R-199
IP Services Commands
ip access-list
Related Commands
Command
Description
deny (IP)
ip access-group
permit (IP)
remark
show ip access-list
IP1R-200
IP Services Commands
ip access-list log-update
ip access-list log-update
To set the threshold number of packets that generate a log message if they match an access list, use the
ip access-list log-update command in global configuration mode. To remove the threshold, use the no
form of this command.
ip access-list log-update threshold number-of-matches
no ip access-list log-update
Syntax Description
number-of-matches
Defaults
Log messages are sent at the first matching packet and at 5-minute intervals after that.
Command Modes
Global configuration
Command History
Release
Modification
12.0(2)T
Usage Guidelines
Log messages are generated if you have specified the log keyword in the access-list (IP standard),
access-list (IP extended), deny (IP), dynamic, or permit command.
Log messages provide information about the packets that are permitted or denied by an access list. By
default, log messages appear at the console. (The level of messages logged to the console is controlled
by the logging console command.) The log message includes the access list number, whether the packet
was permitted or denied, and other information.
By default, the log messages are sent at the first matching packet and after that, identical messages are
accumulated for 5-minute intervals, with a single message being sent with the number of packets
permitted and denied during that 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 the
cache is emptied at the end of 5 minutes, regardless of the count of messages in the 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.
IP1R-201
IP Services Commands
ip access-list log-update
If the syslog server is not directly connected to a LAN that the router shares, any intermediate router
might drop the log messages because they are UDP (unreliable) messages.
Examples
The following example enables logging whenever the 1000th packet matches an access list entry:
ip access-list log-update threshold 1000
Related Commands
Command
Description
deny (IP)
dynamic
logging console
permit
IP1R-202
IP Services Commands
ip accounting
ip accounting
To enable IP accounting on an interface, use the ip accounting command in interface configuration
mode. To disable IP accounting, use the no form of this command.
ip accounting [access-violations] [output-packets]
no ip accounting [access-violations] [output-packets]
Syntax Description
access-violations
output-packets
Defaults
Disabled
Command Modes
Interface configuration
Command History
Release
Usage Guidelines
Modification
10.0
10.3
The ip accounting command records the number of bytes (IP header and data) and packets switched
through the system on a source and destination IP address basis. Only transit IP traffic is measured and
only on an outbound basis; traffic generated by the router access server or terminating in this device is
not included in the accounting statistics. Traffic coming from a remote site and transiting through a router
is also recorded.
If you specify the access-violations keyword, the ip accounting command 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 might also indicate that you should verify IP
access list configurations.
To receive a logging message on the console when an extended access list entry denies a packet access
(to log violations), you must include the log keyword in the access-list (IP extended) or access-list (IP
standard) command.
Statistics are accurate even if IP fast switching or IP access lists are being used on the interface.
IP accounting disables autonomous switching, SSE switching, and distributed switching (dCEF) on the
interface. IP accounting will cause packets to be switched on the Route Switch Processor (RSP) instead
of the Versatile Interface Processor (VIP), which can cause performance degradation.
IP1R-203
IP Services Commands
ip accounting
Examples
Related Commands
Command
Description
ip accounting-list
Controls the number of transit records that are stored in the IP accounting
database.
show ip accounting
IP1R-204
IP Services Commands
ip accounting-list
ip accounting-list
To define filters to control the hosts for which IP accounting information is kept, use the ip
accounting-list command in global configuration mode. To remove a filter definition, use the no form
of this command.
ip accounting-list ip-address wildcard
no ip accounting-list ip-address wildcard
Syntax Description
ip-address
wildcard
Defaults
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
The wildcard argument is a 32-bit quantity written in dotted-decimal format. Address bits corresponding
to wildcard bits set to 1 are ignored in comparisons; address bits corresponding to wildcard bits set to
zero are used in comparisons.
Examples
The following example adds all hosts with IP addresses beginning with 192.31 to the list of hosts for
which accounting information will be kept:
ip accounting-list 192.31.0.0 0.0.255.255
Related Commands
Command
Description
clear ip accounting
ip accounting
Controls the number of transit records that are stored in the IP accounting
database.
show ip accounting
IP1R-205
IP Services Commands
ip accounting-threshold
ip accounting-threshold
To set the maximum number of accounting entries to be created, use the ip accounting-threshold
command in global configuration mode. To restore the default number of entries, use the no form of this
command.
ip accounting-threshold threshold
no ip accounting-threshold threshold
Syntax Description
threshold
Defaults
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
Maximum number of entries (source and destination address pairs) that the
Cisco IOS software accumulates.
The accounting threshold defines the maximum number of entries (source and destination address pairs)
that the software accumulates, preventing IP accounting from possibly consuming all available free
memory. This level of memory consumption could occur in a router that is switching traffic for many
hosts. Overflows will be recorded; see the monitoring commands for display formats.
The default accounting threshold of 512 entries results in a maximum table size of 12,928 bytes. Active
and checkpointed tables can reach this size independently.
Examples
The following example sets the IP accounting threshold to only 500 entries:
ip accounting-threshold 500
Related Commands
Command
Description
clear ip accounting
ip accounting
ip accounting-list
ip accounting-transits Controls the number of transit records that are stored in the IP accounting
database.
show ip accounting
IP1R-206
IP Services Commands
ip accounting-transits
ip accounting-transits
To control the number of transit records that are stored in the IP accounting database, use the ip
accounting-transits command in global configuration mode. To return to the default number of records,
use the no form of this command.
ip accounting-transits count
no ip accounting-transits
Syntax Description
count
Defaults
The default number of transit records that are stored in the IP accounting database is 0.
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
Transit entries are those that do not match any of the filters specified by ip accounting-list global
configuration commands. If no filters are defined, no transit entries are possible.
To maintain accurate accounting totals, the Cisco IOS software maintains two accounting databases: an
active and a checkpointed database.
Examples
The following example specifies that no more than 100 transit records are stored:
ip accounting-transits 100
Related Commands
Command
Description
clear ip accounting
ip accounting
ip accounting-list
IP1R-207
IP Services Commands
ip accounting mac-address
ip accounting mac-address
To enable IP accounting on a LAN interface based on the source and destination MAC address, use the
ip accounting mac-address command in interface configuration mode. To disable IP accounting based
on the source and destination MAC address, use the no form of this command.
ip accounting mac-address {input | output]
no ip accounting mac-address {input | output]
Syntax Description
input
output
Defaults
Disabled
Command Modes
Interface configuration
Command History
Release
Modification
11.1CC
Usage Guidelines
Examples
The following example enables IP accounting based on the source and destination MAC address for
received and transmitted packets:
interface ethernet 4/0/0
ip accounting mac-address input
ip accounting mac-address output
Related Commands
Command
Description
IP1R-208
IP Services Commands
ip accounting precedence
ip accounting precedence
To enable IP accounting on any interface based on IP precedence, use the ip accounting precedence
command in interface configuration mode. To disable IP accounting based on IP precedence, use the no
form of this command.
ip accounting precedence {input | output]
no ip accounting precedence {input | output]
Syntax Description
input
output
Defaults
Disabled
Command Modes
Interface configuration
Command History
Release
Modification
11.1CC
Usage Guidelines
To display IP precedence accounting information, use the show interface precedence EXEC command.
The precedence accounting feature provides accounting information for IP traffic, summarized by IP
precedence value(s). This feature calculates the total packet and byte counts for an interface that receives
or sends IP packets and sorts the results based on IP precedence. This feature is supported on all
interfaces and subinterfaces and supports CEF, dCEF, flow, and optimum switching.
Examples
The following example enables IP accounting based on IP precedence for received and transmitted
packets:
interface ethernet 4/0/0
ip accounting precedence input
ip accounting precedence output
Related Commands
Command
Description
show interface
precedence
IP1R-209
IP Services Commands
ip casa
ip casa
To configure the router to function as a forwarding agent, use the ip casa command in global
configuration mode. To disable the forwarding agent, use the no form of this command.
ip casa control-address igmp-address
no ip casa
Syntax Description
control-address
igmp-address
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(5)T
Examples
The following example specifies the Internet address (10.10.4.1) and IGMP address (224.0.1.2) for the
Forwarding Agent:
ip-casa 10.10.4.1 224.0.1.2
Related Commands
Command
Description
forwarding-agent
Specifies the port on which the Forwarding Agent will listen for wildcard
and fixed affinities.
IP1R-210
IP Services Commands
ip drp access-group
ip drp access-group
To control the sources of Director Response Protocol (DRP) queries to the DRP Server Agent, use the
ip drp access-group command in global configuration mode. To remove the access list, use the no form
of this command.
ip drp access-group access-list-number
no ip drp access-group access-list-number
Syntax Description
access-list-number
Defaults
Command Modes
Global configuration
Command History
Release
Modification
11.2 F
Usage Guidelines
This command applies an access list to the interface, thereby controlling which devices can send queries
to the DRP Server Agent.
If both an authentication key chain and an access group have been specified, both security measures must
permit access before a request is processed.
Examples
The following example configures access list 1, which permits only queries from the host at 33.45.12.4:
access-list 1 permit 33.45.12.4
ip drp access-group 1
Related Commands
Command
Description
show ip drp
IP1R-211
IP Services Commands
ip drp authentication key-chain
Syntax Description
name-of-chain
Defaults
Command Modes
Global configuration
Command History
Release
Modification
11.2 F
Usage Guidelines
When a key chain and key are configured, the key is used to authenticate all DRP requests and responses.
The active key on the DRP Server Agent must match the active key on the primary agent. Use the key
and key-string commands to configure the key.
Examples
Related Commands
Command
Description
accept-lifetime
Sets the time period during which the authentication key on a key
chain is received as valid.
ip drp access-group
key
key chain
key-string (authentication)
send-lifetime
show ip drp
IP1R-212
IP Services Commands
ip drp server
ip drp server
To enable the Director Response Protocol (DRP) Server Agent that works with DistributedDirector, use
the ip drp server command in global configuration mode. To disable the DRP Server Agent, use the no
form of this command.
ip drp server
no ip drp server
Syntax Description
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
11.2 F
Examples
Related Commands
Command
Description
ip drp access-group
ip drp authentication key-chain Configures authentication on the DRP Server Agent for
DistributedDirector.
show ip drp
IP1R-213
IP Services Commands
ip icmp rate-limit unreachable
Syntax Description
df
(Optional) Limits the rate ICMP destination unreachable messages are sent
when code 4, fragmentation is needed and DF set, is specified in the IP header
of the ICMP destination unreachable message.
milliseconds
Defaults
The default value is one ICMP destination unreachable message per 500 milliseconds.
Command Modes
Global configuration
Command History
Release
Modification
12.0
Usage Guidelines
The no ip icmp rate-limit unreachable command turns off the previously configured rate limit. To
re-set the rate limit to its default value, use the default ip icmp rate-limit unreachable command.
The Cisco IOS software maintains two timers: one for general destination unreachable messages and one
for DF destination unreachable messages. Both share the same time limits and defaults. If the df option
is not configured, the ip icmp rate-limit unreachable command sets the time values for DF destination
unreachable messages. If the df option is configured, its time values remain independent from those of
general destination unreachable messages.
Examples
The following example sets the rate of the ICMP destination unreachable message to one message every
10 milliseconds:
ip icmp rate-limit unreachable 10
The following example turns off the previously configured rate limit:
no ip icmp rate-limit unreachable
The following example sets the rate limit back to the default:
default ip icmp rate-limit unreachable
IP1R-214
IP Services Commands
ip icmp redirect
ip icmp redirect
To control the type of Internet Control Message Protocol (ICMP) redirect message that is sent by the
Cisco IOS software, use the ip icmp redirect command in global configuration mode. To set the value
back to the default, use the no form of this command.
ip icmp redirect [host | subnet]
no ip icmp redirect [host | subnet]
Syntax Description
Defaults
host
subnet
Command Modes
Global configuration
Command History
Release
Modification
12.0
Usage Guidelines
An ICMP redirect message can be generated by a router when a packet is received and transmitted on
the same interface. In this situation, the router will forward the original packet and send a ICMP redirect
message back to the sender of the original packet. This behavior allows the sender to bypass the router
and forward future packets directly to the destination (or a router closer to the destination).
There are two types of ICMP redirect messages: redirect for a host address or redirect for an entire
subnet.
The ip icmp redirect command determines the type of ICMP redirects sent by the system and is
configured on a per system basis. Some hosts do not understand ICMP subnet redirects and need the
router to send out ICMP host redirects. Use the ip icmp redirect host command to have the router send
out ICMP host redirects. Use the ip icmp redirect subnet command to set the value back to the default,
which is to send subnet redirects.
To prevent the router from sending ICMP redirects, use the no ip redirects interface configuration
command.
Examples
The following example enables the router to send out ICMP host redirects:
ip icmp redirect hosts
The following example sets the value back to the default, which is subnet redirects:
ip icmp redirect subnet
IP1R-215
IP Services Commands
ip icmp redirect
Related Commands
Command
Description
ip redirects
IP1R-216
IP Services Commands
ip mask-reply
ip mask-reply
To have the Cisco IOS software respond to Internet Control Message Protocol (ICMP) mask requests by
sending ICMP mask reply messages, use the ip mask-reply command in interface configuration mode.
To disable this function, use the no form of this command.
ip mask-reply
no ip mask-reply
Syntax Description
Defaults
Disabled
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Examples
The following example enables the sending of ICMP mask reply messages on Ethernet interface 0:
interface ethernet 0
ip address 131.108.1.0 255.255.255.0
ip mask-reply
IP1R-217
IP Services Commands
ip mask-reply
IP1R-218
IP Services Commands
ip mtu
ip mtu
To set the maximum transmission unit (MTU) size of IP packets sent on an interface, use the ip mtu
interface configuration command. To restore the default MTU size, use the no form of this command.
ip mtu bytes
no ip mtu
Syntax Description
bytes
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Usage Guidelines
MTU in bytes.
If an IP packet exceeds the MTU set for the interface, the Cisco IOS software will fragment it.
All devices on a physical medium must have the same protocol MTU in order to operate.
Note
Examples
Changing the MTU value (with the mtu interface configuration command) can affect the IP MTU
value. If the current IP MTU value is the same as the MTU value, and you change the MTU value,
the IP MTU value will be modified automatically to match the new MTU. However, the reverse is not
true; changing the IP MTU value has no effect on the value for the mtu command.
The following example sets the maximum IP packet size for the first serial interface to 300 bytes:
interface serial 0
ip mtu 300
Related Commands
Command
Description
mtu
IP1R-219
IP Services Commands
ip redirects
ip redirects
To enable the sending of Internet Control Message Protocol (ICMP) redirect messages if the Cisco IOS
software is forced to resend a packet through the same interface on which it was received, use the ip
redirects interface configuration command. To disable the sending of redirect messages, use the no form
of this command.
ip redirects
no ip redirects
Syntax Description
Defaults
Enabled
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Usage Guidelines
Previously, if the Hot Standby Router Protocol (HSRP) was configured on an interface, ICMP redirect
messages were disabled by default for the interface. With Cisco IOS Release 12.1(3)T, ICMP redirect
messages are enabled by default if HSRP is configured.
Examples
The following example enables the sending of ICMP redirect messages on Ethernet interface 0:
interface ethernet 0
ip redirects
Related Commands
Command
Description
ip default-gateway
show ip redirects
Displays the address of a default gateway (router) and the address of hosts
for which an ICMP redirect message has been received.
IP1R-220
IP Services Commands
ip source-route
ip source-route
To allow the Cisco IOS software to handle IP datagrams with source routing header options, use the ip
source-route global configuration command. To have the software discard any IP datagram containing
a source-route option, use the no form of this command.
ip source-route
no ip source-route
Syntax Description
Defaults
Enabled
Command Modes
Global configuration
Command History
Release
Modification
10.0
Examples
The following example enables the handling of IP datagrams with source routing header options:
ip source-route
Related Commands
Command
Description
ping (privileged)
ping (user)
IP1R-221
IP Services Commands
ip tcp chunk-size
ip tcp chunk-size
To alter the TCP maximum read size for Telnet or rlogin, use the ip tcp chunk-size global configuration
command. To restore the default value, use the no form of this command.
ip tcp chunk-size characters
no ip tcp chunk-size
Syntax Description
characters
Defaults
0, which Telnet and rlogin interpret as the largest possible 32-bit positive number.
Command Modes
Global configuration
Command History
Release
Modification
9.1
Maximum number of characters that Telnet or rlogin can read in one read
instruction. The default value is 0, which Telnet and rlogin interpret as the
largest possible 32-bit positive number.
Usage Guidelines
Examples
The following example sets the maximum TCP read size to 64,000 bytes:
ip tcp chunk-size 64000
IP1R-222
IP Services Commands
ip tcp compression-connections
ip tcp compression-connections
To specify the total number of TCP header compression connections that can exist on an interface, use
the ip tcp compression-connections interface configuration command. To restore the default, use the
no form of this command.
ip tcp compression-connections number
no ip tcp compression-connections number
Syntax Description
number
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.0
12.0(7)T
For Frame Relay, PPP, and High-Level Data Link Control (HDLC)
encapsulation, the maximum number of compression connections increased
to 256. For Frame Relay, the maximum value is fixed, not configurable.
Usage Guidelines
You should configure one connection for each TCP connection through the specified interface.
Each connection sets up a compression cache entry, so you are in effect specifying the maximum number
of cache entries and the size of the cache. Too few cache entries for the specified interface can lead to
degraded performance, and too many cache entries can lead to wasted memory.
Note
Examples
Both ends of the serial connection must use the same number of cache entries.
The following example sets the first serial interface for header compression with a maximum of ten
cache entries:
interface serial 0
ip tcp header-compression
ip tcp compression-connections 10
IP1R-223
IP Services Commands
ip tcp compression-connections
Related Commands
Command
Description
ip rtp header-compression
ip tcp header-compression
IP1R-224
IP Services Commands
ip tcp header-compression
ip tcp header-compression
To enable TCP header compression, use the ip tcp header-compression interface configuration
command. To disable compression, use the no form of this command.
ip tcp header-compression [passive]
no ip tcp header-compression [passive]
Syntax Description
passive
Defaults
Disabled
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Usage Guidelines
You can compress the headers of your TCP/IP packets in order to reduce the size of your packets. TCP
header compression is supported on serial lines using Frame Relay, HDLC, or PPP encapsulation. You
must enable compression on both ends of a serial connection. RFC 1144 specifies the compression
process. Compressing the TCP header can speed up Telnet connections dramatically. In general, TCP
header compression is advantageous when your traffic consists of many small packets, not for traffic that
consists of large packets. Transaction processing (usually using terminals) tends to use small packets and
file transfers use large packets. This feature only compresses the TCP header, so it has no effect on UDP
packets or other protocol headers.
When compression is enabled, fast switching is disabled. This condition means that fast interfaces like
T1 can overload the router. Consider the traffic characteristics of your network before using this
command.
Examples
The following example sets the first serial interface for header compression with a maximum of ten
cache entries:
interface serial 0
ip tcp header-compression
ip tcp compression-connections 10
Related Commands
Command
Description
ip tcp header-compression
IP1R-225
IP Services Commands
ip tcp mss
ip tcp mss
To enable a maximum segment size (MSS) for TCP connections originating or terminating on a router,
use the ip tcp mss command in global configuration mode. To disable the configuration of the MSS, use
the no form of this command.
ip tcp mss mss-value
no ip tcp mss mss-value
Syntax Description
mss-value
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(05)S
12.1
Usage Guidelines
Maximum segment size for TCP connections in bytes. The range is from 68
to 10000.
If this command is not enabled, the MSS value of 536 bytes is used if the destination is not on a LAN,
otherwise the MSS value is 1460 for a local destination.
For connections originating from a router, the specified value is used directly as an MSS option in the
synchronize (SYN) segment. For connections terminating on a router, the value is used only if the
incoming SYN segment has an MSS option value higher than the configured value. Otherwise the
incoming value is used as the MSS option in the SYN/acknowledge (ACK) segment.
Note
Examples
The ip tcp mss command interacts with the ip tcp path-mtu-discovery command and not
the ip tcp header-compression command. The ip tcp path-mtu-discovery command
changes the default MSS to 1460 even for non-local nodes.
Related Commands
Command
Description
ip tcp header-compression
IP1R-226
IP Services Commands
ip tcp path-mtu-discovery
ip tcp path-mtu-discovery
To enable the Path MTU Discovery feature for all new TCP connections from the router, use the ip tcp
path-mtu-discovery global configuration command. To disable the function, use the no form of this
command.
ip tcp path-mtu-discovery [age-timer {minutes | infinite}]
no ip tcp path-mtu-discovery [age-timer {minutes | infinite}]
Syntax Description
age-timer minutes
(Optional) Time interval (in minutes) after which TCP re-estimates the path
MTU with a larger maximum segment size (MSS). The maximum is
30 minutes; the default is 10 minutes.
age-timer infinite
Defaults
Command Modes
Global configuration
Command History
Release
Usage Guidelines
Modification
10.3
11.2
Path MTU Discovery is a method for maximizing the use of available bandwidth in the network between
the endpoints of a TCP connection. It is described in RFC 1191. Existing connections are not affected
when this feature is turned on or off.
Customers using TCP connections to move bulk data between systems on distinct subnets would benefit
most by enabling this feature.
The age timer is a time interval for how often TCP re-estimates the path MTU with a larger MSS. When
the age timer is used, TCP path MTU becomes a dynamic process. If the MSS used for the connection
is smaller than what the peer connection can handle, a larger MSS is tried every time the age timer
expires. The discovery process is stopped when either the send MSS is as large as the peer negotiated,
or the user has disabled the timer on the router. You can turn off the age timer by setting it to infinite.
Examples
IP1R-227
IP Services Commands
ip tcp queuemax
ip tcp queuemax
To alter the maximum TCP outgoing queue per connection, use the ip tcp queuemax global
configuration command. To restore the default value, use the no form of this command.
ip tcp queuemax packets
no ip tcp queuemax
Syntax Description
packets
Defaults
The default value is 5 segments if the connection has a TTY associated with it. If no TTY is associated
with it, the default value is 20 segments.
Command Modes
Global configuration
Command History
Release
Modification
10.0
Outgoing queue size of TCP packets. The default value is 5 segments if the
connection has a TTY associated with it. If no TTY is associated with it, the
default value is 20 segments.
Usage Guidelines
Changing the default value changes the 5 segments, not the 20 segments.
Examples
The following example sets the maximum TCP outgoing queue to 10 packets:
ip tcp queuemax 10
IP1R-228
IP Services Commands
ip tcp selective-ack
ip tcp selective-ack
To enable TCP selective acknowledgment, use the ip tcp selective-ack global configuration command.
To disable TCP selective acknowledgment, use the no form of this command.
ip tcp selective-ack
no ip tcp selective-ack
Syntax Description
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
11.2 F
Usage Guidelines
TCP might not experience optimal performance if multiple packets are lost from one window of data.
With the limited information available from cumulative acknowledgments, a TCP sender can learn about
only one lost packet per round-trip time. An aggressive sender could resend packets early, but such
re-sent segments might have already been received.
The TCP selective acknowledgment mechanism helps overcome these limitations. The receiving TCP
returns selective acknowledgment packets to the sender, informing the sender about data that has been
received. The sender can then resend only the missing data segments.
TCP selective acknowledgment improves overall performance. The feature is used only when a multiple
number of packets drop from a TCP window. There is no performance impact when the feature is enabled
but not used.
This command becomes effective only on new TCP connections opened after the feature is enabled.
This feature must be disabled if you want TCP header compression. You might disable this feature if you
have severe TCP problems.
Refer to RFC 2018 for more detailed information on TCP selective acknowledgment.
Examples
The following example enables the router to send and receive TCP selective acknowledgments:
ip tcp selective-ack
Related Commands
Command
Description
ip tcp header-compression
IP1R-229
IP Services Commands
ip tcp synwait-time
ip tcp synwait-time
To set a period of time the Cisco IOS software waits while attempting to establish a TCP connection
before it times out, use the ip tcp synwait-time global configuration command. To restore the default
time, use the no form of this command.
ip tcp synwait-time seconds
no ip tcp synwait-time seconds
Syntax Description
seconds
Defaults
Command Modes
Global configuration
Command History
Release
Modification
10.0
Usage Guidelines
Time (in seconds) the software waits while attempting to establish a TCP
connection. It can be an integer from 5 to 300 seconds. The default is
30 seconds.
In versions previous to Cisco IOS software Release 10.0, the system would wait a fixed 30 seconds when
attempting to establish a TCP connection. If your network contains Public Switched Telephone Network
(PSTN) dial-on-demand routing (DDR), the call setup time may exceed 30 seconds. This amount of time
is not sufficient in networks that have dialup asynchronous connections because it will affect your ability
to Telnet over the link (from the router) if the link must be brought up. If you have this type of network,
you might want to set this value to the UNIX value of 75.
Because this is a host parameter, it does not pertain to traffic going through the router, just for traffic
originated at this device. Because UNIX has a fixed 75-second timeout, hosts are unlikely to experience
this problem.
Examples
The following example configures the Cisco IOS software to continue attempting to establish a TCP
connection for 180 seconds:
ip tcp synwait-time 180
IP1R-230
IP Services Commands
ip tcp timestamp
ip tcp timestamp
To enable TCP time stamp, use the ip tcp timestamp global configuration command. To disable TCP
time stamp, use the no form of this command.
ip tcp timestamp
no ip tcp timestamp
Syntax Description
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
11.2 F
Usage Guidelines
TCP time stamp improves round-trip time estimates. Refer to RFC 1323 for more detailed information
on TCP time stamp.
This feature must be disabled if you want to use TCP header compression.
Examples
The following example enables the router to send TCP time stamps:
ip tcp timestamp
Related Commands
Command
Description
ip tcp header-compression
IP1R-231
IP Services Commands
ip tcp window-size
ip tcp window-size
To alter the TCP window size, use the ip tcp window-size global configuration command. To restore the
default value, use the no form of this command.
ip tcp window-size bytes
no ip tcp window-size
Syntax Description
bytes
Defaults
Command Modes
Global configuration
Command History
Release
Modification
9.1
Usage Guidelines
Window size (in bytes). The maximum is 65,535 bytes. The default value is
2144 bytes.
Do not use this command unless you clearly understand why you want to change the default value.
If your TCP window size is set to 1000 bytes, for example, you could have 1 packet of 1000 bytes or
2 packets of 500 bytes, and so on. However, there is also a limit on the number of packets allowed in the
window. There can be a maximum of 5 packets if the connection has TTY; otherwise there can be 20
packets.
Examples
The following example sets the TCP window size to 1000 bytes:
ip tcp window-size 1000
IP1R-232
IP Services Commands
ip unreachables
ip unreachables
To enable the generation of Internet Control Message Protocol (ICMP) unreachable messages, use the
ip unreachables interface configuration command. To disable this function, use the no form of this
command.
ip unreachables
no ip unreachables
Syntax Description
Defaults
Enabled
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Usage Guidelines
If the Cisco IOS software receives a nonbroadcast packet destined for itself that uses a protocol it does
not recognize, it sends an ICMP unreachable message to the source.
If the software receives a datagram that it cannot deliver to its ultimate destination because it knows of
no route to the destination address, it replies to the originator of that datagram with an ICMP host
unreachable message.
This command affects all types of ICMP unreachable messages.
Examples
The following example enables the generation of ICMP unreachable messages, as appropriate, on an
interface:
interface ethernet 0
ip unreachables
IP1R-233
IP Services Commands
permit (IP)
permit (IP)
To set conditions for a named IP access list, use the permit access-list configuration command. To
remove a condition from an access list, use the no form of this command.
permit source [source-wildcard]
no permit source [source-wildcard]
permit protocol source source-wildcard destination destination-wildcard [precedence precedence]
[tos tos] [log] [time-range time-range-name] [fragments]
no permit protocol source source-wildcard destination destination-wildcard
[precedence precedence] [tos tos] [log] [time-range time-range-name] [fragments]
Internet Control Message Protocol (ICMP)
IP1R-234
IP Services Commands
permit (IP)
Syntax Description
source
source-wildcard
Number of the network or host from which the packet is being sent. There
are three alternative ways to specify the source:
protocol
destination
Number of the network or host to which the packet is being sent. There
are three alternative ways to specify the destination:
destination-wildcard
precedence precedence
tos tos
IP1R-235
IP Services Commands
permit (IP)
log
time-range
time-range-name
(Optional) Name of the time range that applies to this permit statement.
The name of the time range and its restrictions are specified by the
time-range and absolute or periodic commands, respectively.
icmp-type
(Optional) ICMP packets can be filtered by ICMP message type. The type
is a number from 0 to 255.
icmp-code
(Optional) ICMP packets that are filtered by ICMP message type can also
be filtered by the ICMP message code. The code is a number from 0 to
255.
icmp-message
igmp-type
operator
IP1R-236
IP Services Commands
permit (IP)
port
established
fragments
Defaults
There are no specific conditions under which a packet passes the named access list.
Command Modes
Access-list configuration
Command History
Release
Modification
11.2
12.0(1)T
Usage Guidelines
Use this command following the ip access-list command to define the conditions under which a packet
passes the access list.
The time-range option allows you to identify a time range by name. The time-range, absolute, and
periodic commands specify when this permit statement is in effect.
IP1R-237
IP Services Commands
permit (IP)
The behavior of access-list entries regarding the use or lack of the fragments keyword can be
summarized as follows:
If the Access-List Entry has...
Then..
...no fragments keyword (the default For an access-list entry containing only Layer 3 information:
behavior), and assuming all of the
The entry is applied to nonfragmented packets, initial
access-list entry information matches,
fragments and noninitial fragments.
For an access list entry containing Layer 3 and Layer 4
information:
fragment is permitted.
If the entry is a deny statement, the packet or
fragment is denied.
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
IP1R-238
IP Services Commands
permit (IP)
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.
Packet fragments of IP datagrams are considered individual packets and each counts individually as a
packet in access list accounting and access list violation counts.
Note
The fragments keyword cannot solve all cases involving access lists and IP fragments.
Fragments and 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.
Examples
The following example sets conditions for a standard access list named Internetfilter:
ip access-list standard Internetfilter
deny 192.5.34.0 0.0.0.255
permit 128.88.0.0 0.0.255.255
permit 36.0.0.0 0.255.255.255
! (Note: all other access implicitly denied)
The following example permits Telnet traffic on Mondays, Tuesdays, and Fridays from 9:00 a.m. to 5:00
p.m.:
time-range testing
periodic Monday Tuesday Friday 9:00 to 17:00
!
ip access-list extended legal
permit tcp any any eq telnet time-range testing
!
interface ethernet 0
ip access-group legal in
Related Commands
Command
Description
deny (IP)
Sets conditions under which a packet does not pass a named IP access list.
ip access-group
ip access-list
ip access-list
log-update
show ip access-list
time-range
IP1R-239
IP Services Commands
remark
remark
To write a helpful comment (remark) for an entry in a named IP access list, use the remark access-list
configuration command. To remove the remark, use the no form of this command.
remark remark
no remark remark
Syntax Description
remark
Defaults
Command Modes
Command History
Release
Modification
12.0(2)T
Usage Guidelines
Comment that describes the access list entry, up to 100 characters long.
Examples
In the following example, the Jones subnet is not allowed to use outbound Telnet:
ip access-list extended telnetting
remark Do not allow Jones subnet to telnet out
deny tcp host 171.69.2.88 any eq telnet
Related Commands
Command
Description
access-list remark
deny (IP)
Sets conditions under which a packet does not pass a named IP access list.
ip access-list
permit (IP)
IP1R-240
IP Services Commands
show access-lists
show access-lists
To display the contents of current access lists, use the show access-lists privileged EXEC command.
show access-lists [access-list-number | access-list-name]
Syntax Description
access-list-number
access-list-name
Defaults
Command Modes
Privileged EXEC
Command History
Release
Modification
10.0
12.1(5)T
Examples
The following is sample output from the show access-lists command when access list 101 is specified:
Router# show access-lists 101
Extended IP access list 101
permit tcp host 198.92.32.130 any established (4304 matches) check=5
permit udp host 198.92.32.130 any eq domain (129 matches)
permit icmp host 198.92.32.130 any
permit tcp host 198.92.32.130 host 171.69.2.141 gt 1023
permit tcp host 198.92.32.130 host 171.69.2.135 eq smtp (2 matches)
permit tcp host 198.92.32.130 host 198.92.30.32 eq smtp
permit tcp host 198.92.32.130 host 171.69.108.33 eq smtp
permit udp host 198.92.32.130 host 171.68.225.190 eq syslog
permit udp host 198.92.32.130 host 171.68.225.126 eq syslog
deny
ip 150.136.0.0 0.0.255.255 224.0.0.0 15.255.255.255
deny
ip 171.68.0.0 0.1.255.255 224.0.0.0 15.255.255.255 (2 matches) check=1
deny
ip 172.24.24.0 0.0.1.255 224.0.0.0 15.255.255.255
deny
ip 192.82.152.0 0.0.0.255 224.0.0.0 15.255.255.255
deny
ip 192.122.173.0 0.0.0.255 224.0.0.0 15.255.255.255
deny
ip 192.122.174.0 0.0.0.255 224.0.0.0 15.255.255.255
deny
ip 192.135.239.0 0.0.0.255 224.0.0.0 15.255.255.255
deny
ip 192.135.240.0 0.0.7.255 224.0.0.0 15.255.255.255
deny
ip 192.135.248.0 0.0.3.255 224.0.0.0 15.255.255.255
An access list counter counts how many packets are allowed by each line of the access list. This number
is displayed as the number of matches. Check denotes how many times a packet was compared to the
access list but did not match.
The following is sample output from the show access-lists command when the Turbo Access Control
List (ACL) feature is configured on all of the following access lists.
IP1R-241
IP Services Commands
show access-lists
Note
The permit and deny information displayed by the show access-lists command may not be in the
same order as that entered using the access-list command
Router# show access-lists
Standard IP access list 1 (Compiled)
deny
any
Standard IP access list 2 (Compiled)
deny
192.168.0.0, wildcard bits 0.0.0.255
permit any
Standard IP access list 3 (Compiled)
deny
0.0.0.0
deny
192.168.0.1, wildcard bits 0.0.0.255
permit any
Standard IP access list 4 (Compiled)
permit 0.0.0.0
permit 192.168.0.2, wildcard bits 0.0.0.255
For information on how to configure access lists, refer to the Configuring IP Services chapter of the
Cisco IOS IP Configuration Guide.
For information on how to configure dynamic access lists, refer to the Traffic Filtering and Firewalls
chapter of the Cisco IOS Security Configuration Guide.
Related Commands
Command
Description
clear access-template
ip access-list
show access-lists
IP1R-242
IP Services Commands
show access-list compiled
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
12.0(6)S
12.1(1)E
12.1(5)T
Usage Guidelines
This command is used to display the status and condition of the Turbo ACL tables associated with each
access list. The memory usage is displayed for each table; large and complex access lists may require
substantial amounts of memory. If the memory usage is greater than the memory available, you can
disable the Turbo ACL feature so that memory exhaustion does not occur, but the acceleration of the
access lists is not then enabled.
Examples
The following is a partial sample output of the show access-list compiled command:
Router# show access-list 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
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
IP1R-243
IP Services Commands
show access-list compiled
5
6
7
Related Commands
1/16
3/16
3/16
12/16
12/16
12/16
Command
Description
access-list compiled
access-list (extended)
access-list (standard)
clear access-temp
ip access-list
show ip access-list
IP1R-244
66048
66048
66048
IP Services Commands
show interface mac
Syntax Description
type
number
Command Modes
EXEC
Command History
Release
Modification
11.1 CC
Usage Guidelines
The show interface mac command displays information for all interfaces configured for MAC
accounting. To display information for a single interface, use the show interface type number mac
command.
For incoming packets on the interface, the accounting statistics are gathered before the CAR/DCAR
feature is performed on the packet. For outgoing packets on the interface, the accounting statistics are
gathered after output CAR, before output DCAR or DWRED or DWFQ feature is performed on the
packet. Therefore, if a you are using DCAR or DWRED on the interface and packets are dropped, the
dropped packets are still counted in the show interface mac command because the calculations are done
prior to the features.
The maximum number of MAC addresses that can be stored for the input address is 512 and the
maximum number of MAC address that can be stored for the output address is 512. After the maximum
is reached, subsequent MAC addresses are ignored.
To clear the accounting statistics, use the clear counter EXEC command. To configure an interface for
IP accounting based on the MAC address, use the ip accounting mac-address interface configuration
command.
IP1R-245
IP Services Commands
show interface mac
Examples
The following is sample output from the show interface mac command. This feature calculates the total
packet and byte counts for the interface that receives (input) or sends (output) IP packets to or from a
unique MAC address. It also records a timestamp for the last packet received or sent.
Router# show interface ethernet 0/1/1 mac
Ethernet0/1/1
Input (511 free)
0007.f618.4449(228): 4 packets, 456 bytes, last: 2684ms ago
Total: 4 packets, 456 bytes
Output (511 free)
0007.f618.4449(228): 4 packets, 456 bytes, last: 2692ms ago
Total: 4 packets, 456 bytes
Related Commands
Command
Description
ip accounting
mac-address
IP1R-246
IP Services Commands
show interface precedence
Syntax Description
type
number
(Optional) Port number of the interface. The syntax varies depending on the type
router. For example, on a Cisco 7500 series router the syntax is 0/0/0, where 0
represents the slot, port adapter, and port number (the slash is required). Refer
to the appropriate hardware manual for numbering information.
Command Modes
EXEC
Command History
Release
Modification
11.1 CC
Usage Guidelines
The show interface precedence command displays information for all interfaces configured for IP
precedence accounting. To display information for a single interface, use the show interface type
number precedence command.
For incoming packets on the interface, the accounting statistics are gathered before input CAR/DCAR
is performed on the packet. Therefore, if CAR/DCAR changes the precedence on the packet, it is counted
based on the old precedence setting with the show interface precedence command.
For outgoing packets on the interface, the accounting statistics are gathered after output DCAR or
DWRED or DWFQ feature is performed on the packet.
To clear the accounting statistics, use the clear counter EXEC command.
To configure an interface for IP accounting based on IP precedence, use the ip accounting precedence
interface configuration command.
Examples
The following is sample output from the show interface precedence command. This feature calculates
the total packet and byte counts for the interface that receives (input) or sends (output) IP packets and
sorts the results based on IP precedence.
Router# show interface ethernet 0/1/1 precedence
Ethernet0/1/1
Input
Precedence 0: 4 packets, 456 bytes
Output
Precedence 0: 4 packets, 456 bytes
Related Commands
IP1R-247
IP Services Commands
show interface precedence
Command
Description
ip accounting
precedence
IP1R-248
IP Services Commands
show ip access-list
show ip access-list
To display the contents of all current IP access lists, use the show ip access-list EXEC command.
show ip access-list [access-list-number | access-list-name]
Syntax Description
access-list-number
access-list-name
Defaults
Command Modes
EXEC
Command History
Release
Modification
10.3
Usage Guidelines
The show ip access-list command provides output identical to the show access-lists command, except
that it is IP-specific and allows you to specify a particular access list.
Examples
The following is sample output from the show ip access-list command when all access lists are
requested:
Router# show ip access-list
Extended IP access list 101
deny udp any any eq ntp
permit tcp any any
permit udp any any eq tftp
permit icmp any any
permit udp any any eq domain
The following is sample output from the show ip access-list command when the name of a specific
access list is requested:
Router# show ip access-list Internetfilter
Extended IP access list Internetfilter
permit tcp any 171.69.0.0 0.0.255.255 eq telnet
deny tcp any any
deny udp any 171.69.0.0 0.0.255.255 lt 1024
deny ip any any log
IP1R-249
IP Services Commands
show ip accounting
show ip accounting
To display the active accounting or checkpointed database or to display access list violations, use the
show ip accounting EXEC command.
show ip accounting [checkpoint] [output-packets | access-violations]
Syntax Description
checkpoint
output-packets
access-violations
Defaults
If neither the output-packets nor access-violations keyword is specified, the show ip accounting
command displays information pertaining to packets that passed access control and were routed.
Command Modes
EXEC
Command History
Release
Modification
10.0
10.3
Usage Guidelines
If you do not specify any keywords, the show ip accounting command displays information about the
active accounting database, and traffic coming from a remote site and transiting through a router.
To display IP access violations, you must use the access-violations keyword. If you do not specify the
keyword, the command defaults to displaying the number of packets that have passed access lists and
were routed.
To use this command, you must first enable IP accounting on a per-interface basis.
Examples
Destination
192.67.67.20
192.67.67.20
192.12.33.51
130.93.2.1
130.93.1.2
130.93.2.1
IP1R-250
Packets
7
67
17
5
463
4
Bytes
306
2749
1111
319
30991
262
IP Services Commands
show ip accounting
131.108.19.40
130.93.1.2
28
131.108.20.2
128.18.6.100
39
131.108.13.55
130.93.1.2
35
131.108.19.40
192.12.33.51
1986
131.108.2.50
192.67.67.20
233
131.108.13.28
192.67.67.53
390
131.108.13.55
192.12.33.51
214669
131.108.13.111
128.18.6.23
27739
131.108.13.44
192.12.33.51
35412
192.31.7.21
130.93.1.2
11
131.108.13.28
192.12.33.2
21
131.108.2.166
192.31.7.130
797
131.108.3.11
192.67.67.53
4
192.31.7.21
192.12.33.51
15696
192.31.7.24
192.67.67.20
21
131.108.13.111
128.18.10.1
16
accounting threshold exceeded for 7 packets and 433 bytes
2552
2184
3020
95091
14908
24817
9806659
1126607
1523980
824
1762
141054
246
695635
916
1137
The following is sample output from the show ip accounting access-violations command. The output
pertains to packets that failed access lists and were not routed:
Router# show ip accounting access-violations
Source
131.108.19.40
131.108.13.55
131.108.2.50
131.108.2.50
131.108.19.40
Destination
192.67.67.20
192.67.67.20
192.12.33.51
130.93.2.1
130.93.2.1
Packets
7
67
17
5
4
Bytes
306
2749
1111
319
262
ACL
77
185
140
140
77
The following is sample output from the show ip accounting command. The output shows the original
source and destination addresses that are separated by three routers:
Router3# show ip accounting
Source
10.225.231.154
10.76.97.34
10.10.11.1
10.10.10.1
10.100.45.1
10.98.32.5
Destination
172.16.10.2
172.16.10.2
172.16.10.2
172.16.10.2
172.16.10.2
172.16.10.2
Packets
44
44
507
507
508
44
Bytes
28160
28160
324480
318396
325120
28160
Field
Description
Source
Destination
Packets
Number of packets sent from the source address to the destination address.
With the access-violations keyword, the number of packets sent from the source
address to the destination address that violated an Access Control List (ACL).
IP1R-251
IP Services Commands
show ip accounting
Table 17
Field
Description
Bytes
Sum of the total number of bytes (IP header and data) of all IP packets sent from
the source address to the destination address.
With the access-violations keyword, the total number of bytes sent from the
source address to the destination address that violated an ACL.
Related Commands
ACL
Number of the access list of the last packet sent from the source to the destination
that failed an access list filter.
accounting
threshold
exceeded...
Data for all packets that could not be entered into the accounting table when the
accounting table is full. This data is combined into a single entry.
Command
Description
clear ip accounting
ip accounting
ip accounting-list
Controls the number of transit records that are stored in the IP accounting
database.
IP1R-252
IP Services Commands
show ip casa affinities
Syntax Description
stats
saddr ip-address
detail
daddr ip-address
sport source-port
dport destination-port
protocol protocol
Command Modes
EXEC
Command History
Release
Modification
12.0(5)T
Examples
Source Address
161.44.36.118
172.26.56.13
Port
1118
19
Affinity Table
Dest Address
Port
172.26.56.13
19
161.44.36.118
1118
Prot
TCP
TCP
The following is sample output of the show ip casa affinities detail command:
Router# show ip casa affinities detail
Affinity Table
Source Address Port Dest Address
Port
161.44.36.118
1118 172.26.56.13
19
Action Details:
Interest Addr:
172.26.56.19
Interest Packet: 0x0102 SYN FRAG
Interest Tickle: 0x0005 FIN RST
Dispatch (Layer 2):
YES
Source Address Port Dest Address
Port
172.26.56.13
19
161.44.36.118
1118
Action Details:
Interest Addr:
172.26.56.19
Interest Packet: 0x0104 RST FRAG
Interest Tickle: 0x0003 FIN SYN
Dispatch (Layer 2):
NO
Prot
TCP
Interest Port: 1638
IP1R-253
IP Services Commands
show ip casa affinities
Related Commands
Field
Description
Source Address
Port
Dest Address
Port
Prot
Action Details
Interest Addr
Interest Port
Interest Packet
List of TCP packet types that the services manager is interested in.
Interest Tickle
List of TCP packet types for which the services manager wants the entire
packet.
Dispatch (Layer 2)
Dispatch Address
Command
Description
forwarding-agent
Specifies the port on which the Forwarding Agent will listen for wildcard
and fixed affinities.
IP1R-254
IP Services Commands
show ip casa oper
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
12.0(5)T
Examples
Related Commands
Field
Description
Casa is Active
Port
Current passwd
Current password.
Pending passwd
Passwd timeout
Command
Description
IP1R-255
IP Services Commands
show ip casa stats
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
12.0(5)T
Examples
6
0
441
Max Wildcards:
6
Wildcard Drops:
0
Bytes Throughput: 39120
2
444
0
Max Affinities:
Cache Misses:
2
0
4
0
Int Tickle:
Drop Count:
0
0
Table 20
Field
Description
Casa is Active
Wildcard Stats
Wildcard statistics.
Wildcards
Max Wildcards
Wildcard Denies
Protocol violations.
Wildcard Drops
Pkts Throughput
Bytes Throughput
Affinity Stats
Affinity statistics.
IP1R-256
IP Services Commands
show ip casa stats
Table 20
Related Commands
Field
Description
Affinities
Max Affinities
Cache Hits
Cache Misses
Affinity Drops
Casa Stats
Int Packet
Interest packets.
Int Tickle
Interest tickles.
Casa Denies
Protocol violation.
Security Drops
Drop Count
Command
Description
IP1R-257
IP Services Commands
show ip casa wildcard
Syntax Description
detail
Command Modes
EXEC
Command History
Release
Modification
12.0(5)T
Examples
Source Mask
0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0
255.255.255.255
255.255.255.255
Port
0
0
0
0
0
0
Dest Address
172.26.56.2
172.26.56.2
172.26.56.13
172.26.56.13
0.0.0.0
0.0.0.0
Dest Mask
255.255.255.255
255.255.255.255
255.255.255.255
255.255.255.255
0.0.0.0
0.0.0.0
Port
0
0
0
0
0
0
Prot
ICMP
TCP
ICMP
TCP
TCP
TCP
Dest Mask
Port
255.255.255.255 0
Prot
ICMP
The following is sample output of the show ip casa wildcard detail command:
router# show ip casa wildcard detail
Source Address Source Mask
0.0.0.0
0.0.0.0
Service Manager Details:
Manager Addr:
Affinity Statistics:
Affinity Count:
Packet Statistics:
Packets:
Action Details:
Interest Addr:
Interest Packet: 0x8000
Interest Tickle: 0x0107
Dispatch (Layer 2):
Advertise Dest Address:
Port
0
Dest Address
172.26.56.2
172.26.56.19
Bytes: 0
172.26.56.19
ALLPKTS
FIN SYN RST FRAG
NO
YES
IP1R-258
IP Services Commands
show ip casa wildcard
Interest Addr:
Interest Packet: 0x8102
Interest Tickle: 0x0005
Dispatch (Layer 2):
Advertise Dest Address:
Note
172.26.56.19
SYN FRAG ALLPKTS
FIN RST
NO
YES
Field
Description
Source Address
Source Mask
Port
Dest Address
Dest Mask
Port
Prot
Manager Addr
Insert Time
Affinity Statistics
Affinity statistics.
Affinity Count
Packet Statistics
Packet statistics.
Packets
Bytes
Action Details
Interest Addr
Interest Port
Interest Packet
Interest Tickle
List of packet types for which the services manager wants the entire
packet.
Dispatch (Layer 2)
Dispatch Address
Destination address.
Match Fragments
IP1R-259
IP Services Commands
show ip casa wildcard
Related Commands
Command
Description
IP1R-260
IP Services Commands
show ip drp
show ip drp
To display information about the Director Response Protocol (DRP) Server Agent for
DistributedDirector, use the show ip drp EXEC command.
show ip drp
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
11.2 F
Examples
Related Commands
Field
Description
director requests
successful lookups
failures
Command
Description
ip drp access-group
IP1R-261
IP Services Commands
show ip redirects
show ip redirects
To display the address of a default gateway (router) and the address of hosts for which an Internet
Control Message Protocol (ICMP) redirect message has been received, use the show ip redirects EXEC
command.
show ip redirects
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
10.0
Usage Guidelines
This command displays the default router (gateway) as configured by the ip default-gateway command.
The ip mtu command enables the router to send ICMP redirect messages.
Examples
Related Commands
Gateway
160.89.80.240
160.89.80.240
Last Use
0:00
0:00
Interface
Ethernet0
Ethernet0
Command
Description
ip default-gateway
ip mtu
Enables the sending of ICMP redirect messages if the Cisco IOS software is
forced to resend a packet through the same interface on which it was
received.
IP1R-262
Total Uses
9
4
IP Services Commands
show ip sockets
show ip sockets
To display IP socket information, use the show ip sockets command in privileged EXEC mode or user
EXEC mode.
show ip sockets
Syntax Description
Defaults
Command Modes
Privileged EXEC
User EXEC
Command History
Release
Modification
10.0 T
Usage Guidelines
Use this command to verify that the socket being used is opening correctly. If there is a local and remote
endpoint, a connection is established with the ports indicated.
Examples
Remote
Port
0.0.0.0
0
171.68.191.135 514
172.16.135.20
514
171.68.207.163
49
0.0.0.0
123
0.0.0.0
0
172.16.96.59 32856
--listen--
Local
171.68.186.193
171.68.191.129
171.68.191.1
171.68.186.193
171.68.186.193
171.68.186.193
171.68.191.1
--any--
Port
67
1811
4125
49
123
202
161
496
IP1R-263
IP Services Commands
show ip sockets
Table 23
Field
Description
Proto
Remote
Port
Local
Local address. If the local address is considered illegal or is the address 0.0.0.0,
--any-- displays.
Port
Local port.
In
Out
Stat
TTY
OutputIF
IP1R-264
IP Services Commands
show ip tcp header-compression
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
10.0
Examples
The following is sample output from the show ip tcp header-compression command:
Router# show ip tcp header-compression
TCP/IP header compression statistics:
Interface Serial1: (passive, compressing)
Rcvd:
4060 total, 2891 compressed, 0 errors
0 dropped, 1 buffer copies, 0 buffer failures
Sent:
4284 total, 3224 compressed,
105295 bytes saved, 661973 bytes sent
1.15 efficiency improvement factor
Connect: 16 slots, 1543 long searches, 2 misses, 99% hit ratio
Five minute miss rate 0 misses/sec, 0 max misses/sec
Field
Description
Rcvd:
total
compressed
errors
Unknown packets.
dropped
buffer copies
buffer failures
Sent:
total
compressed
IP1R-265
IP Services Commands
show ip tcp header-compression
Table 24
Field
Description
bytes saved
bytes sent
efficiency improvement
factor
Connect:
Related Commands
slots
long searches
misses
hit ratio
max misses/sec
Command
Description
ip tcp header-compression
IP1R-266
IP Services Commands
show ip traffic
show ip traffic
To display statistics about IP traffic, use the show ip traffic command in user EXEC or privileged EXEC
mode.
show ip traffic
Syntax Description
Command Modes
User EXEC
Privileged EXEC
Command History
Release
Modification
10.0
12.2
The output was enhanced to displays the number of keepalive, open, update,
route-refresh request, and notification messages that have been received and
sent by a Border Gateway Protocol (BGP) routing process.
Examples
IP1R-267
IP Services Commands
show ip traffic
UDP statistics:
Rcvd: 0 total, 0 checksum errors, 0 no port
Sent: 36 total, 0 forwarded broadcasts
TCP statistics:
Rcvd: 654 total, 0 checksum errors, 0 no port
Sent: 603 total
BGP statistics:
Rcvd: 288 total, 8 opens, 0 notifications, 0 updates
280 keepalives, 0 route-refresh, 0 unrecognized
Sent: 288 total, 8 opens, 0 notifications, 0 updates
280 keepalives, 0 route-refresh
OSPF statistics:
Rcvd: 0 total, 0 checksum errors
0 hello, 0 database desc, 0 link state req
0 link state updates, 0 link state acks
Sent: 0 total
0 hello, 0 database desc, 0 link state req
0 link state updates, 0 link state acks
IP-EIGRP statistics:
Rcvd: 2303 total
Sent: 2301 total
PIMv2 statistics: Sent/Received
Total: 0/0, 0 checksum errors, 0 format errors
Registers: 0/0 (0 non-rp, 0 non-sm-group), Register Stops: 0/0,
Join/Prunes: 0/0, Asserts: 0/0, grafts: 0/0
Bootstraps: 0/0, Candidate_RP_Advertisements: 0/0
Queue drops: 0
State-Refresh: 0/0
Hellos: 0/0
Field
Description
IP statistics
Total
Rcvd
format errors
checksum errors
Indicates that the packet has a bad checksum value in the header.
Occurs when a packet is discarded because its time-to-live (TTL) field was
decremented to zero.
IP1R-268
IP Services Commands
show ip traffic
Table 25
Field
Description
unknown protocol
not a gateway
Non-routed packet.
security failures
bad options
with options
Opts
Frags
Bcast
Mcast
Sent
Drop
encapsulation failed
Usually indicates that the router had no ARP request entry and therefore did
not send a datagram.
no route
Counted when the Cisco IOS software discards a datagram it did not know
how to route.
ICMP statistics
UDP statistics
TCP
BGP
OSPF
IP-EIGRP
PIMv2
IGMP
ARP
IP1R-269
IP Services Commands
show standby
show standby
To display Hot Standby Router Protocol (HSRP) information, use the show standby command in user
EXEC or privileged EXEC mode.
show standby [type number [group]] [all | brief]
Syntax Description
type number
group
all
(Optional) Displays information for groups that are learned or who do not have
the standby ip command configured.
brief
Command Modes
User EXEC
Privileged EXEC
Command History
Release
Modification
10.0
12.2(8)T
The output for the command was made clearer and easier to understand.
Usage Guidelines
Examples
The following is sample output from the show standby command with the brief keyword specified:
IP1R-270
IP Services Commands
show standby
Active addr
10.0.0.1
Standby addr
unknown
Group addr
10.0.0.12
Field
Description
Ethernet - Group
Interface type and number and Hot Standby group number for the interface.
State is
Virtual IP address is, All secondary virtual IP addresses are listed on separate lines. If one of the
secondary virtual IP virtual IP addresses is a duplicate of an address configured for another device,
addresses
it will be marked as duplicate. A duplicate address indicates that the router
has failed to defend its ARP (Address Resolution Protocol) cache entry.
Active virtual MAC
address
Virtual MAC address that would be used if this router became the active router.
The origin of this address (displayed in parentheses) can be default, bia,
(burned-in address) or confgd (configured).
The hello time is the time between hello packets (in seconds) based on the
command. The holdtime is the time (in seconds) before other routers declare the
active or standby router to be down, based on the standby timers command. All
routers in an HSRP group use the hello and hold- time values of the current
active router. If the locally configured values are different, the variance appears
in parentheses after the hello time and hold-time values.
Next hello sent in ... Time in which the Cisco IOS software will send the next hello packet (in
hours:minutes:seconds).
Preemption enabled, Indicates whether preemption is enabled. If enabled, the minimum delay is the
sync delay
time a higher-priority nonactive router will wait before preempting the
lower-priority active router. The sync delay is the maximum time a group will
wait to synchronize with the IP redundancy clients.
IP1R-271
IP Services Commands
show standby
Table 26
Field
Description
Active router is
Standby router is
expires in
Tracking
List of interfaces that are being tracked and their corresponding states. Based
on the standby track command.
Related Commands
Command
Description
standby authentication
standby ip
standby mac-address
standby mac-refresh
standby preempt
standby priority
standby timers
Configures the time between hello messages and the time before other
routers declare the active Hot Standby or standby router to be down.
standby track
standby use-bias
Configures HSRP to use the BIA of the interface as its virtual MAC
address, instead of the preassigned MAC address (on Ethernet and FDDI)
or the functional address (on Token Ring).
IP1R-272
IP Services Commands
show standby capability
Syntax Description
type number
Command Modes
User EXEC
Privileged EXEC
Command History
Release
Modification
12.2
Usage Guidelines
HSRP allows up to 256 groups to be configured on each interface, but it is possible that the MAC address
filter of the interface does not support that many entries. For example, Versatile Interface Processor
(VIP) interfaces only support 32 MAC addresses in their MAC address filter. If more HSRP groups are
created than there are address filter entries, then it is likely that the router will stop listening to packets
sent to the MAC address of an active HSRP group.
Examples
The following is sample output from the show standby capability command:
Router# show standby capability
7206VXR * indicates hardware may support HSRP
|
Interface
FastEthernet0/0
0x60194BE8)
FastEthernet1/0
0x60194BE8)
Ethernet2/0
0x601A25E4)
Ethernet2/1
0x601A25E4)
Ethernet2/2
0x601A25E4)
Ethernet2/3
0x601A25E4)
Ethernet2/4
0x601A25E4)
Ethernet2/5
0x601A25E4)
Ethernet2/6
0x601A25E4)
Ethernet2/7
0x601A25E4)
ATM3/0
TokenRing4/0
Type
18 DEC21140A
H
*
18
DEC21140A
256
(0x60194B00,
61
AmdP2
256
(0x601A252C,
61
AmdP2
256
(0x601A252C,
61
AmdP2
256
(0x601A252C,
61
AmdP2
256
(0x601A252C,
61
AmdP2
256
(0x601A252C,
61
AmdP2
256
(0x601A252C,
61
AmdP2
256
(0x601A252C,
61
AmdP2
256
(0x601A252C,
74
66
ENHANCED ATM PA
HAWKEYE
*
*
256
3
LAN emulation
HSRP TR functional
IP1R-273
IP Services Commands
show standby capability
addresses (0x6076A590)
TokenRing4/1
66
addresses (0x6076A590)
TokenRing4/2
66
addresses (0x6076A590)
TokenRing4/3
66
addresses (0x6076A590)
Serial5/0
67
Serial5/1
67
Serial5/2
67
Serial5/3
67
FastEthernet6/0
18
0x60194BE8)
VoIP-Null0
102
HAWKEYE
HSRP TR functional
HAWKEYE
HSRP TR functional
HAWKEYE
HSRP TR functional
256
(0x60194B00,
M4T
M4T
M4T
M4T
DEC21140A
VoIP-Null
Field
Description
Interface
Type
Hardware type.
An estimate of the number of HSRP groups that a MAC address filter can
process for an interface.
IP1R-274
IP Services Commands
show standby delay
Syntax Description
type number
Command Modes
User EXEC
Privileged EXEC
Command History
Release
Modification
12.2
Examples
The following is sample output from the show standby delay command:
Router# show standby delay
Interface
Ethernet0/3
Related Commands
Minimum Reload
1
5
Command
Description
standby delay
minimum reload
IP1R-275
IP Services Commands
show standby internal
Syntax Description
type number
Command Modes
User EXEC
Privileged EXEC
Command History
Release
Modification
12.2
Examples
This example shows a configuration example and the output from the show standby internal command
for the configuration:
interface Ethernet2/0
ip address 10.0.0.254 255.255.0.0
standby use-bia
standby version 2
standby 1 ip 10.0.0.1
standby 1 timers 2 6
standby 1 priority 110
standby 1 preempt
Router# show standby internal
Global
Et2/0 If hw
Et2/0 If hw
Et2/0 If hw
Et2/0 If sw
Et2/0 If sw
Et2/0 Grp 1
Et2/0 Grp 1
Confg:
AmdP2,
Confg:
Flags:
Confg:
Flags:
Confg:
Flags:
0000
State
0001,
0000
0040,
0001,
0072,
0000
0x210040
USEBIA
VERSION
USEBIA
IP_PRI, PRIORITY, PREEMPT, TIMERS
The above output shows internal flags and hardware and software information for Ethernet interface 2/0.
The output shows that HSRP group 1 is configured for priority, preemption, and the standby timers and
standby-use bia commands have been configured.
Related Commands
Command
Description
show standby
IP1R-276
IP Services Commands
show standby redirect
Syntax Description
ip-address
interface-type
interface-number
active
passive
timers
Command Modes
User EXEC
Privileged EXEC
Command History
Release
Modification
12.2
Examples
The following is sample output from the show standby redirect command with no optional keywords:
Router# show standby redirect
Interface
Ethernet0/2
Ethernet0/3
Redirects Unknown
enabled
enabled
enabled
disabled
Adv
30
30
Holddown
180
180
Active
10.19.0.7
local
local
Hits
0
0
0
Interface
Ethernet0/2
Ethernet0/3
Ethernet0/3
Group
3
1
2
Virtual IP
10.19.0.13
10.20.0.11
10.20.0.12
Passive
10.19.0.6
Hits
0
Interface
Ethernet0/2
Expires in
151.800
Virtual MAC
0000.0c07.ac03
0000.0c07.ac01
0000.0c07.ac02
IP1R-277
IP Services Commands
show standby redirect
Field
Description
Interface
Redirects
Unknown
Adv
Holddown
Active
Hits
Interface
Interface type and number for the interface on the active router.
Group
Virtual IP
Virtual MAC
Passive
Hits
Interface
Interface type and number for the interface on the passive router.
Expires in
Time in seconds for a virtual IP to expire and the holddown time to apply
for filtering routes to the standby router.
The following is sample output from the show standby redirect command with a specific interface
Ethernet 0/3:
Router# show standby redirect e0/3
Interface
Ethernet0/3
Active
local
local
Redirects Unknown
enabled
disabled
Hits
0
0
Adv
30
Interface
Ethernet0/3
Ethernet0/3
Holddown
180
Group Virtual IP
1
10.20.0.11
2
10.20.0.12
Virtual MAC
0000.0c07.ac01
0000.0c07.ac02
The following is sample output from the show standby redirect command showing all active routers on
interface Ethernet 0/3:
Router# show standby redirect e0/3 active
Active
local
local
Hits
0
0
Interface
Ethernet0/3
Ethernet0/3
Group Virtual IP
1
10.20.0.11
2
10.20.0.12
Virtual MAC
0000.0c07.ac01
0000.0c07.ac02
The following is sample output from the show standby redirect ip-address command, where the
IP address is the real IP address of the router:
Router# show standby redirect 10.19.0.7
Active
10.19.0.7
Hits
0
Interface
Ethernet0/2
Group Virtual IP
3
10.19.0.13
IP1R-278
Virtual MAC
0000.0c07.ac03
IP Services Commands
show standby redirect
Related Commands
Command
Description
show standby
standby redirect
IP1R-279
IP Services Commands
show tcp statistics
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
11.3
Examples
The following is sample output from the show tcp statistics command:
Router# show tcp statistics
Rcvd: 210 Total, 0 no port
0 checksum error, 0 bad offset, 0 too short
132 packets (26640 bytes) in sequence
5 dup packets (502 bytes)
0 partially dup packets (0 bytes)
0 out-of-order packets (0 bytes)
0 packets (0 bytes) with data after window
0 packets after close
0 window probe packets, 0 window update packets
0 dup ack packets, 0 ack packets with unsend data
69 ack packets (3044 bytes)
Sent: 175 Total, 0 urgent packets
16 control packets (including 1 retransmitted)
69 data packets (3029 bytes)
0 data packets (0 bytes) retransmitted
73 ack only packets (49 delayed)
0 window probe packets, 17 window update packets
7 Connections initiated, 1 connections accepted, 8 connections established
8 Connections closed (including 0 dropped, 0 embryonic dropped)
1 Total rxmt timeout, 0 connections dropped in rxmt timeout
0 Keepalive timeout, 0 keepalive probe, 0 Connections dropped in keepalive
Field
Description
Rcvd:
Total
no port
checksum error
bad offset
IP1R-280
IP Services Commands
show tcp statistics
Table 29
Field
Description
too short
packets in sequence
dup packets
out-of-order packets
packets with data after window Number of packets received with data that exceeded the window
size of the receiver.
packets after close
ack packets
Sent:
Related Commands
Total
urgent packets
control packets
data packets
Connections initiated
connections accepted
connections established
Connections closed
Keepalive timeout
keepalive probe
Connections dropped in
keepalive
Command
Description
IP1R-281
IP Services Commands
standby authentication
standby authentication
To configure an authentication string for the Hot Standby Router Protocol (HSRP), use the standby
authentication interface configuration command. To delete an authentication string, use the no form of
this command.
standby [group-number] authentication [mode text] string
no standby [group-number] authentication [mode text] string
Syntax Description
group-number
mode text
string
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
10.0
12.1
Usage Guidelines
Examples
The following example configures company1 as the authentication string required to allow Hot
Standby routers in group 1 to interoperate:
interface ethernet 0
standby 1 authentication mode text company1
IP1R-282
IP Services Commands
standby delay minimum reload
Syntax Description
Defaults
min-delay
Minimum time (in seconds) to delay HSRP group initialization after an interface
comes up. This minimum delay period applies to all subsequent interface events.
reload-delay
Time (in seconds) to delay after the router has reloaded. This delay period only
applies to the first interface-up event after the router has reloaded.
Command Modes
Interface configuration
Command History
Release
Modification
12.2
Usage Guidelines
If the active router fails or is removed from the network, then the standby router will automatically
become the new active router. If the former active router comes back online, you can control whether it
takes over as the active router by using the standby preempt command.
However, in some cases, even if the standby preempt command is not configured, the former active
router will resume the active role after it reloads and comes back online. Use the standby delay
minimum reload command to set a delay period for HSRP group initialization. This command allows
time for the packets to get through before the router resumes the active role.
We recommend that you use the standby delay minimum reload command if the standby timers
command is configured in milliseconds or if HSRP is configured on a VLAN interface of a switch.
In most configurations, the default values provide sufficient time for the packets to get through and it is
not necessary to configure longer delay values.
The delay will be cancelled if an HSRP packet is received on an interface.
You can view the delays with the show standby delay command.
Examples
The following example sets the minimum delay period to 30 seconds and the delay period after the first
reload to 120 seconds:
interface ethernet 0
IP1R-283
IP Services Commands
standby delay minimum reload
Related Commands
Command
Description
standby preempt
standby timers
Configures the time between hello packets and the time before other routers
declare the active HSRP or standby router to be down.
IP1R-284
IP Services Commands
standby ip
standby ip
To activate the Hot Standby Router Protocol (HSRP), use the standby ip interface configuration
command. To disable HSRP, use the no form of this command.
standby [group-number] ip [ip-address [secondary]]
no standby [group-number] ip [ip-address]
Syntax Description
Defaults
group-number
(Optional) Group number on the interface for which HSRP is being activated.
The default is 0.
ip-address
secondary
Command Modes
Interface configuration
Command History
Release
Usage Guidelines
Modification
10.0
10.3
11.1
The standby ip command activates HSRP on the configured interface. If an IP address is specified, that
address is used as the designated address for the Hot Standby group. If no IP address is specified, the
designated address is learned through the standby function. For HSRP to elect a designated router, at
least one router on the cable must have been configured with, or have learned, the designated address.
Configuring the designated address on the active router always overrides a designated address that is
currently in use.
When the standby ip command is enabled on an interface, the handling of proxy ARP requests is
changed (unless proxy ARP was disabled). If the Hot Standby state of the interface is active, proxy ARP
requests are answered using the MAC address of the Hot Standby group. If the interface is in a different
state, proxy ARP responses are suppressed.
When group number 0 is used, no group number is written to NVRAM, providing backward
compatibility.
Examples
The following example activates HSRP for group 1 on Ethernet interface 0. The IP address used by the
Hot Standby group will be learned using HSRP.
IP1R-285
IP Services Commands
standby ip
interface ethernet 0
standby 1 ip
In the following example, all three virtual IP addresses appear in the ARP table using the same (single)
virtual MAC address. All three virtual IP addresses are using the same HSRP group (group 0).
ip address
ip address
ip address
ip address
standby ip
standby ip
standby ip
1.1.1.1. 255.255.255.0
1.2.2.2. 255.255.255.0 secondary
1.3.3.3. 255.255.255.0 secondary
1.4.4.4. 255.255.255.0 secondary
1.1.1.254
1.2.2.254 secondary
1.3.3.254 secondary
IP1R-286
IP Services Commands
standby mac-address
standby mac-address
To specify a virtual MAC address for the Hot Standby Router Protocol (HSRP), use the standby
mac-address interface configuration command. To revert to the standard virtual MAC address
(0000.0C07.ACxy), use the no form of this command.
standby [group-number] mac-address mac-address
no standby [group-number] mac-address
Syntax Description
group-number
(Optional) Group number on the interface for which HSRP is being activated.
The default is 0.
mac-address
MAC address.
Defaults
If this command is not configured, and the standby use-bia command is not configured, the standard
virtual MAC address is used: 0000.0C07.ACxy, where xy is the group number in hexadecimal. This
address is specified in RFC 2281, Cisco Hot Standby Router Protocol (HSRP).
Command Modes
Interface configuration
Command History
Release
Modification
11.2
Usage Guidelines
APPN
IP
End node
Host
Network node
Router or gateway
IP1R-287
IP Services Commands
standby mac-address
In an APPN network, an end node is typically configured with the MAC address of the adjacent network
node. Use the standby mac-address command in the routers to set the virtual MAC address to the value
used in the end nodes.
Examples
If the end nodes are configured to use 4000.1000.1060 as the MAC address of the network node, the
following example shows the command used to configure HSRP group 1 with the virtual MAC address:
standby 1 mac-address 4000.1000.1060
Related Commands
Command
Description
show standby
standby use-bia
Configures HSRP to use the burned-in address of the interface as its virtual
MAC address.
IP1R-288
IP Services Commands
standby mac-refresh
standby mac-refresh
To change the interval at which packets are sent to refresh the MAC cache when the Hot Standby Router
Protocol (HSRP) is running over FDDI, use the standby mac-refresh interface configuration command.
To restore the default value, use the no form of this command.
standby mac-refresh seconds
no standby mac-refresh
Syntax Description
seconds
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
12.0
Usage Guidelines
Number of seconds in the interval at which a packet is sent to refresh the MAC
cache. The maximum value is 255 seconds. The default is 10 seconds.
This command applies to HSRP running over FDDI only. Packets are sent every 10 seconds to refresh
the MAC cache on learning bridges or switches. By default, the MAC cache entries age out in
300 seconds (5 minutes).
All other routers participating in HSRP on the FDDI ring receive the refresh packets, although the
packets are intended only for the learning bridge or switch. Use this command to change the interval.
Set the interval to 0 if you want to prevent refresh packets (if you have FDDI but do not have a learning
bridge or switch).
Examples
The following example changes the MAC refresh interval to 100 seconds. Therefore, a learning bridge
would need to miss three packets before the entry ages out.
standby mac-refresh 100
IP1R-289
IP Services Commands
standby name
standby name
To configure the name of the standby group, use the standby name interface configuration command.
To disable the name, use the no form of this command.
standby name group-name
no standby name group-name
Syntax Description
group-name
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
12.0(2)T
Usage Guidelines
Examples
Related Commands
Command
Description
ip mobile home-agent
standby
IP1R-290
IP Services Commands
standby preempt
standby preempt
To configure Hot Standby Router Protocol (HSRP) preemption and preemption delay, use the standby
preempt command in interface configuration mode. To restore the default values, use the no form of this
command.
standby [group-number] preempt [delay{minimum delay | reload delay | sync delay}]
no standby [group-number] preempt [delay{minimum delay | reload delay | sync delay}]
Syntax Description
group-number
delay
minimum delay
(Optional) Specifies the minimum delay period in delay seconds. The delay
argument causes the local router to postpone taking over the active role for
delay (minimum) seconds since that router was last restarted. The range is
from 0 to 3600 seconds (1 hour). The default is 0 seconds (no delay).
reload delay
(Optional) Specifies the preemption delay period after a reload only. This
delay period applies only to the first interface-up event after the router has
reloaded.
sync delay
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
11.3
12.0(2)T
12.2
The behavior of the command changed such that standby preempt and
standby priority must be entered as separate commands.
12.2
Usage Guidelines
When this command is configured, the router is configured to preempt, which means that when the local
router has a Hot Standby priority higher than the current active router, the local router should attempt to
assume control as the active router. If preemption is not configured, the local router assumes control as
the active router only if it receives information indicating no router is in the active state (acting as the
designated router).
IP1R-291
IP Services Commands
standby preempt
When a router first comes up, it does not have a complete routing table. If it is configured to preempt, it
will become the active router, yet it is unable to provide adequate routing services. Solve this problem
by configuring a delay before the preempting router actually preempts the currently active router.
When group number 0 is used, no group number is written to NVRAM, providing backward
compatibility.
IP redundancy clients can prevent preemption from taking place. The standby preempt delay sync
delay command specifies a maximum number of seconds to allow IP redundancy clients to prevent
preemption. When this expires, then preemption takes place regardless of the state of the IP redundancy
clients.
The standby preempt delay reload delay command allows preemption to occur only after a router
reloads. This provides stabilization of the router at startup. After this initial delay at startup, the
operation returns to the default behavior.
The no standby preempt delay command will disable the preemption delay but preemption will remain
enabled. The no standby preempt delay minimum delay command will disable the minimum delay but
leave any synchronization delay if it was configured.
Examples
In the following example, the router will wait for 300 seconds (5 minutes) before attempting to become
the active router:
interface ethernet 0
standby ip 172.19.108.254
standby preempt delay minimum 300
IP1R-292
IP Services Commands
standby priority
standby priority
To configure Hot Standby Router Protocol (HSRP) priority, use the standby priority command in
interface configuration mode. To restore the default values, use the no form of this command.
standby [group-number] priority priority
no standby [group-number] priority priority
Syntax Description
Defaults
group-number
priority
Priority value that prioritizes a potential Hot Standby router. The range is
from 1 to 255, where 1 denotes the lowest priority and 255 denotes the
highest priority. The default priority value is 100. The router in the HSRP
group with the highest priority value becomes the active router.
Command Modes
Interface configuration
Command History
Release
Modification
11.3
12.0(2)T
12.2
The behavior of the command changed such that standby preempt and
standby priority must be entered as separate commands.
Usage Guidelines
When group number 0 is used, no group number is written to NVRAM, providing backward
compatibility.
The assigned priority is used to help select the active and standby routers. Assuming preemption is
enabled, the router with the highest priority becomes the designated active router. In case of ties, the
primary IP addresses are compared, and the higher IP address has priority.
Note that the priority of the device can change dynamically if an interface is configured with the standby
track command and another interface on the router goes down.
Examples
In the following example, the router has a priority of 120 (higher than the default value):
interface ethernet 0
standby ip 172.19.108.254
standby priority 120
standby preempt delay 300
IP1R-293
IP Services Commands
standby priority
Related Commands
Command
Description
standby track
Configures an interface so that the Hot Standby priority changes based on the
availability of other interfaces.
IP1R-294
IP Services Commands
standby redirect
standby redirect
To enable Hot Standby Router Protocol (HSRP) filtering of Internet Control Message Protocol (ICMP)
redirect messages, use the standby redirects command in interface configuration mode. To disable the
HSRP filtering of ICMP redirect messages, use the no form of this command.
standby redirect [enable | disable] [timers advertisement holddown] [unknown]
no standby redirects [unknown]
Syntax Description
enable
disable
timers
advertisement
holddown
unknown
(Optional) Allows sending of ICMP packets when the next hop IP address
contained in the packet is unknown in the HSRP table of real IP addresses
and active virtual IP addresses. The no standby redirect unknown
command stops the redirects from being sent.
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
12.1(3)T
12.2
Usage Guidelines
unknown
The standby redirect command can be configured globally or on a per-interface basis. When HSRP is
first configured on an interface, the setting for that interface will inherit the global value. If the filtering
of ICMP redirects is explicitly disabled on an interface, then the global command cannot reenable this
functionality.
The no standby redirect command is the same as the standby redirect disable command. However, it
is not desirable to save the no form of this command to NVRAM. Because the command is enabled by
default, it is preferable to use the standby redirect disable command to disable the functionality.
IP1R-295
IP Services Commands
standby redirect
With the standby redirect command enabled, the real IP address of a router can be replaced with a
virtual IP address in the next hop address or gateway field of the redirect packet. HSRP looks up the
next hop IP address in its table of real IP addresses versus virtual IP addresses. If HSRP does not find a
match, the HSRP router allows the redirect packet to go out unchanged. The host HSRP router is
redirected to a router that is unknown, that is, a router with no active HSRP groups. You can specify the
no standby redirect unknown command to stop these redirects from being sent.
Examples
The following example allows HSRP to filter ICMP redirect messages on interface Ethernet 0:
Router(config)# interface ethernet 0
Router(config-if)# ip address 10.0.0.1 255.0.0.0
Router(config-if)# standby redirect
Router(config-if)# standby 1 ip 10.0.0.11
The following example shows how to change the HSRP router advertisement interval to 90 seconds and
the holddown timer to 270 seconds on interface Ethernet 0:
Router(config)# interface ethernet 0
Router(config-if)# ip address 10.0.0.1 255.0.0.0
Router(config-if)# standby redirect timers 90 270
Router(config-if)# standby 1 ip 10.0.0.11
Related Commands
Command
Description
show standby
IP1R-296
IP Services Commands
standby timers
standby timers
To configure the time between hello packets and the time before other routers declare the active Hot
Standby or standby router to be down, use the standby timers interface configuration command. To
restore the timers to their default values, use the no form of this command.
standby [group-number] timers [msec] hellotime [msec] holdtime
no standby [group-number] timers [msec] hellotime [msec] holdtime
Syntax Description
group-number
(Optional) Group number on the interface to which the timers apply. The
default is 0.
msec
hellotime
Hello interval (in seconds). This is an integer from 1 to 254. The default is
3 seconds. If the msec option is specified, hello interval is in milliseconds.
This is an integer from 15 to 999.
holdtime
Time (in seconds) before the active or standby router is declared to be down.
This is an integer from y to 255. The default is 10 seconds. If the msec option
is specified, holdtime is in milliseconds. This is an integer from x to 3000.
Where:
Defaults
x is greater than or equal to 3 times the hellotime and is not less than 50
milliseconds.
Command Modes
Interface configuration
Command History
Release
Modification
10.0
11.2
12.2
Usage Guidelines
The standby timers command configures the time between standby hello packets and the time before
other routers declare the active or standby router to be down. Routers or access servers on which timer
values are not configured can learn timer values from the active or standby router. The timers configured
on the active router always override any other timer settings. All routers in a Hot Standby group should
IP1R-297
IP Services Commands
standby timers
use the same timer values. Normally, holdtime is greater than or equal to three times the value of
hellotime. The range of values for holdtime force the holdtime to be greater than the hellotime. If the
timer values are specified in milliseconds, the holdtime is required to be at least three times the hellotime
value and not less than 50 milliseconds.
Some HSRP state flapping can occasionally occur if the holdtime is set to less than 250 milliseconds,
and the processor is busy. It is recommended that a holdtime value less than 250 millisecond only be
used on 7200 platforms or better, and on fast-ethernet or FDDI interfaces or better. Setting the
process-max-time command to a suitable value may also help with flapping.
The value of the standby timer will not be learned through HSRP hellos if it is less than 1 second.
When group number 0 is used, no group number is written to NVRAM, providing backward
compatibility.
Examples
The following example sets, for group number 1 on Ethernet interface 0, the time between hello packets
to 5 seconds, and the time after which a router is considered to be down to 15 seconds:
interface ethernet 0
standby 1 ip
standby 1 timers 5 15
The following example sets, for the Hot Router interface located at 172.19.10.1 on Ethernet interface 0,
the time between hello packets to 300 milliseconds, and the time after which a router is considered to be
down to 900 milliseconds.
interface ethernet 0
standby ip 172.19.10.1
standby timers msec 300 msec 900
The following example sets, for the Hot Router interface located at 172.18.10.1 on Ethernet interface 0,
the time between hello packets to 15 milliseconds, and the time after which a router is considered to be
down to 50 milliseconds. Note that the holdtime is larger than three times the hellotime because the
minimum holdtime value in milliseconds is 50.
interface ethernet 0
standby ip 172.18.10.1
standby timers msec 15 msec 50
IP1R-298
IP Services Commands
standby track
standby track
To configure an interface so that the Hot Standby priority changes based on the availability of other
interfaces, use the standby track interface configuration command. To remove the tracking, use the no
form of this command.
standby [group-number] track interface-type interface-number [interface-priority]
no standby [group-number] track interface-type interface-number [interface-priority]
Syntax Description
Defaults
group-number
interface-type
interface-number
interface-priority
(Optional) Amount by which the Hot Standby priority for the router is
decremented (or incremented) when the interface goes down (or comes back
up). The default value is 10.
Command Modes
Interface configuration
Command History
Release
Modification
10.3
Usage Guidelines
This command ties the Hot Standby priority of the router to the availability of its interfaces. It is useful
for tracking interfaces that are not configured for the Hot Standby Router Protocol (HSRP).
When a tracked interface goes down, the Hot Standby priority decreases by 10. If an interface is not
tracked, its state changes do not affect the Hot Standby priority. For each interface configured for Hot
Standby, you can configure a separate list of interfaces to be tracked.
The optional interface-priority argument specifies by how much to decrement the Hot Standby priority
when a tracked interface goes down. When the tracked interface comes back up, the priority is
incremented by the same amount.
When multiple tracked interfaces are down, the decrements are cumulative whether configured with
interface-priority values or not.
A tracked interface is considered down if the IP address is disabled on that interface.
If HSRP is configured to track an interface, and that interface is physically removed as in the case of an
online insertion and removal (OIR) operation, then HSRP will regard the interface as always down.
Further, it will not be possible to remove the HSRP interface tracking configuration. To prevent this
problem, use the no standby track interface-type interface-number command before you physically
remove the interface.
IP1R-299
IP Services Commands
standby track
Use the no standby group-number track command to delete all tracking configuration for a group.
When group number 0 is used, no group number is written to NVRAM, providing backward
compatibility.
Examples
In the following example, Ethernet interface 1 tracks Ethernet interface 0 and serial interface 0. If one
or both of these two interfaces go down, the Hot Standby priority of the router decreases by 10. Because
the default Hot Standby priority is 100, the priority becomes 90 when one or both of the tracked
interfaces go down.
interface ethernet 1
ip address 198.92.72.37 255.255.255.240
no ip redirects
standby track ethernet 0
standby track serial 0
standby preempt
standby ip 198.92.72.46
Related Commands
Command
Description
show standby
standby preempt
standby priority
IP1R-300
IP Services Commands
standby use-bia
standby use-bia
To configure the Hot Standby Router Protocol (HSRP) to use the burned-in address of the interface as
its virtual MAC address, instead of the preassigned MAC address (on Ethernet and FDDI) or the
functional address (on Token Ring), use the standby use-bia interface configuration command. To
restore the default virtual MAC address, use the no form of this command.
standby use-bia [scope interface]
no standby use-bia
Syntax Description
scope interface
Defaults
HSRP uses the preassigned MAC address on Ethernet and FDDI, or the functional address on Token
Ring.
Command Modes
Interface configuration
Command History
Release
Modification
11.2
12.1
Usage Guidelines
(Optional) Specifies that this command is configured just for the subinterface on
which it was entered, instead of the major interface.
For an interface with this command configured, multiple standby group can be configured. Hosts on the
interface must have a default gateway configured. We recommend that you set the no ip proxy-arp
command on the interface. It is desirable to configure the standby use-bia command on a Token Ring
interface if there are devices that reject ARP replies with source hardware addresses set to a functional
address.
When HSRP runs on a multiple-ring, source-routed bridging environment and the HRSP routers reside
on different rings, configuring the standby use-bia command can prevent confusion about the routing
information field (RFI).
Without the scope interface keywords, the standby use-bia command applies to all subinterfaces on the
major interface. The standby use-bia command may not be configured both with and without the scope
interface keywords at the same time.
Examples
In the following example, the burned-in address of Token Ring interface 4/0 will be the virtual MAC
address mapped to the virtual IP address:
interface token4/0
standby use-bia
IP1R-301
IP Services Commands
start-forwarding-agent
start-forwarding-agent
To start the Forwarding Agent, use the start-forwarding-agent CASA-port configuration command.
start-forwarding-agent port-number [password [timeout]]
Syntax Description
Defaults
port-number
Port numbers on which the Forwarding Agent will listen for wildcards
broadcast from the services manager. This must match the port number
defined on the services manager.
password
timeout
Command Modes
CASA-port configuration
Command History
Release
Modification
12.0(5)T
Usage Guidelines
The Forwarding Agent must be started before you can configure any port information for the forwarding
agent.
Examples
The following example specifies that the forwarding agent will listen for wildcard and fixed affinities on
port 1637:
start-forwarding-agent 1637
Related Commands
Command
Description
forwarding-agent
Specifies the port on which the Forwarding Agent will listen for wildcard
and fixed affinities.
IP1R-302
IP Services Commands
transmit-interface
transmit-interface
To assign a transmit interface to a receive-only interface, use the transmit-interface interface
configuration command. To return to normal duplex Ethernet interfaces, use the no form of this
command.
transmit-interface type number
no transmit-interface
Syntax Description
type
number
Defaults
Disabled
Command Modes
Interface configuration
Command History
Release
Modification
10.0
Usage Guidelines
Examples
IP1R-303
IP Services Commands
transmit-interface
IP1R-304
IP1R-305
advertise
To control the installation of a static route to the Null0 interface for a virtual server address, use the
advertise SLB virtual server configuration command. To prevent the installation of a static route for the
virtual server IP address, use the no form of this command.
advertise
no advertise
Syntax Description
Defaults
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Usage Guidelines
By default, virtual server addresses are advertised. That is, static routes to the Null0 interface are
installed for the virtual server addresses.
Advertisement of this static route using the routing protocol requires that you configure redistribution
of static routes for the routing protocol.
Examples
The following example prevents advertisement of the IP address of the virtual server in routing protocol
updates:
ip slb vserver PUBLIC_HTTP
no advertise
Related Commands
Command
Description
IP1R-306
agent
To configure a Dynamic Feedback Protocol (DFP) agent, use the agent SLB DFP configuration
command. To remove an agent definition from the DFP configuration, use the no form of this command.
agent ip-address port [timeout [retry-count [retry-interval]]]
no agent ip-address port
Syntax Description
Defaults
ip-address
Agent IP address.
port
timeout
(Optional) Time period (in seconds) during which the DFP manager
must receive an update from the DFP agent. The default is 0 seconds,
which means there is no timeout.
retry-count
retry-interval
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Usage Guidelines
Examples
The following example configures a DFP agent on the DFP manager, sets the DFP password to Cookies
and the timeout to 360 seconds, changes the configuration mode to DFP configuration mode, sets the IP
address of the DFP agent to 10.1.1.1, and sets the port number of the DFP agent to 2221 (FTP):
ip slb dfp password Cookies 360
agent 10.1.1.1 2221
IP1R-307
Related Commands
Command
Description
ip slb dfp
IP1R-308
bindid
To configure a bind ID, use the bindid SLB server farm configuration command. To remove a bind ID
from the server farm configuration, use the no form of this command.
bindid [bind-id]
no bindid [bind-id]
Syntax Description
bind-id
Defaults
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Usage Guidelines
Examples
Related Commands
Command
Description
ip slb dfp
IP1R-309
clear ip slb
To clear IP IOS SLB connections or counters, use the clear ip slb privileged EXEC command.
clear ip slb {connections [serverfarm farm-name | vserver server-name] | counters}
Syntax Description
connections
serverfarm
(Optional) Clears the connection database for the server farm named.
farm-name
vserver
server-name
counters
Defaults
Command Modes
Privileged EXEC
Command History
Release
Modification
12.1(1)E
12.1(5)T
Examples
The following example clears the connection database of the server farm named FARM1:
Router# clear ip slb connections serverfarm FARM1
The following example clears the connection database of the virtual server named VSERVER1:
Router# clear ip slb connections vserver VSERVER1
Related Commands
Command
Description
IP1R-310
client
To define which clients are allowed to use the virtual server, use the client SLB virtual server
configuration command. You can use more than one client command to define more than one client. To
remove a client definition from the IOS SLB configuration, use the no form of this command.
client ip-address network-mask
no client ip-address network-mask
Syntax Description
Defaults
ip-address
network-mask
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Usage Guidelines
The network-mask value is applied to the source IP address of incoming connections. The result must
match the ip-address value for the client to be allowed to use the virtual server.
Examples
The following example allows only clients from 10.4.4.x access to the virtual server:
ip slb vserver PUBLIC_HTTP
client 10.4.4.0 255.255.255.0
Related
Commands
Command
Description
virtual
IP1R-311
Syntax Description
duration
Defaults
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Usage Guidelines
The delay timer allows out-of-sequence packets and final acknowledgments (ACKs) to be delivered after
a TCP connection ends.
Do not set this value to zero (0).
If you are configuring a delay timer for HTTP flows, choose a low number such as 5 seconds as a starting
point.
Examples
The following example specifies that the IOS SLB feature maintains TCP connection context for 30
seconds after a connection has terminated:
ip slb vserver PUBLIC_HTTP
delay 30
Related Commands
Command
Description
virtual
IP1R-312
faildetect
To specify the conditions that indicate a server failure, use the faildetect SLB real server configuration
command. To restore the default values that indicate a server failure, use the no form of this command.
faildetect numconns number-conns [numclients number-clients]
no faildetect
Syntax Description
Defaults
numconns
number-conns
numclients
number-clients
If you do not specify the faildetect command, the default value of the connection reassignment threshold
is 8.
If you do not specify the numclients keyword, the default value of the unique client failure threshold
is 2.
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
In the following example the connection reassignment threshold is set to 16 and, because the numclients
keyword is not configured, the threshold for unique client connection failure is set to the default value
8. The real server is considered to have failed when 8 unique clients have had connection failures and
there have been 16 connection reassignments.
ip slb serverfarm PUBLIC
real 10.10.1.1
faildetect numconns 16
Related Commands
Command
Description
real
IP1R-313
idle
To specify the minimum amount of time for which IOS SLB maintains connection information in the
absence of packet activity, use the idle virtual server configuration command. To restore the default idle
duration value, use the no form of this command.
idle duration
no idle
Syntax Description
duration
Defaults
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Usage Guidelines
Idle connection timer duration (in seconds). Valid values range from
10 to 65535. The default is 3600 seconds (1 hour).
TCP connections that do not send flows or keepalives before the idle timer expires are assumed to be
inactive and are reset (RST).
If you are configuring an idle timer for HTTP flows, choose a low number such as 120 seconds as a
starting point. A low number ensures that the IOS SLB connection database maintains a manageable size
if problems at the server, client, or network result in a large number of connections. However, do not
choose a value under 60 seconds; such a low value can reduce the efficiency of the IOS SLB feature.
Examples
The following example instructs the IOS SLB feature to maintain connection information for an idle
connection for 120 seconds:
ip slb vserver PUBLIC_HTTP
idle 120
Related Commands
Command
Description
virtual
IP1R-314
Syntax Description
Defaults
If you do not specify the inservice command, the real server is defined to IOS SLB but is not used.
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
The following example enables the real server for use by the IOS SLB feature:
ip slb serverfarm PUBLIC
real 10.10.1.1
inservice
Related Commands
Command
Description
real
IP1R-315
Syntax Description
standby
group-name
(Optional) Specifies the HSRP group name with which the IOS SLB
virtual server is associated.
Defaults
If you do not specify the inservice command, the virtual server is defined to IOS SLB but is not used.
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(1)E
12.1(5)T
Examples
The following example enables the real server for use by the IOS SLB feature:
ip slb vserver PUBLIC_HTTP
inservice
Related Commands
Command
Description
virtual
IP1R-316
ip slb dfp
To configure the Dynamic Feedback Protocol (DFP) and supply an optional password, use the ip slb dfp
global configuration command. To remove the DFP configuration, use the no form of this command.
ip slb dfp [password password [timeout]]
no ip slb dfp
Syntax Description
password
password
timeout
(Optional) Delay period (in seconds) during which both the old
password and the new password are accepted. The default value is
180 seconds.
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Usage Guidelines
The optional password, if configured, must match the password configured on the host agent.
The timeout option allows you to change the password without stopping messages between the DFP
agent and its manager. The default value is 180 seconds.
During the timeout, the agent sends packets with the old password (or null, if there is no old password),
and receives packets with either the old or new password. After the timeout expires, the agent sends and
receives packets only with the new password; received packets that use the old password are discarded.
If you are changing the password for an entire load-balanced environment, set a longer timeout. This
setting allows enough time for you to update the password on all agents and servers before the timeout
expires. It also prevents mismatches between agents and servers that have begun running the new
password and agents, and servers on which you have not yet changed the old password.
Examples
The following example configures DFP, sets the password to flounder, configures a timeout period of 60
seconds, and changes to DFP configuration mode:
ip slb dfp flounder 60
IP1R-317
Related Commands
Command
Description
agent
IP1R-318
ip slb serverfarm
To identify a server farm and enter SLB server farm configuration mode, use the ip slb serverfarm
global configuration command. To remove the server farm from the IOS SLB configuration, use the no
form of this command.
ip slb serverfarm serverfarm-name
no ip slb serverfarm serverfarm-name
Syntax Description
serverfarm-name
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
Character string used to identify the server farm. The character string
is limited to 15 characters.
Related Commands
Command
Description
real
IP1R-319
ip slb vserver
To identify a virtual server and enter SLB virtual server configuration mode, use the ip slb vserver
global configuration command. To remove a virtual server from the IOS SLB configuration, use the no
form of this command.
ip slb vserver virtserver-name
no ip slb vserver virtserver-name
Syntax Description
virtserver-name
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
Related Commands
Command
Description
serverfarm
IP1R-320
maxconns
To limit the number of active connections to the real server, use the maxconns SLB real server
configuration command. To restore the default of no limit, use the no form of this command.
maxconns maximum-number
no maxconns
Syntax Description
maximum-number
Defaults
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
The following example limits the real server to a maximum of 1000 simultaneous active connections:
ip slb serverfarm PUBLIC
real 10.10.1.1
maxconns 1000
Related Commands
Command
Description
real
IP1R-321
nat
To configure IOS SLB Network Address Translation (NAT) and specify a NAT mode, use the nat
SLB server farm configuration command. To remove a NAT configuration, use the no form of this
command.
nat server
no nat server
Syntax Description
server
Defaults
Command Modes
Command History
Release
Modification
12.1(1)E
12.1(5)T
Usage Guidelines
The no nat command is allowed only if the virtual server was removed from service with the
no inservice command.
Examples
The following example changes to IOS SLB server farm configuration mode and configures NAT mode
as server address translation on the server farm named FARM2:
ip slb serverfarm FARM2
nat server
Related Commands
Command
Description
ip slb serverfarm
real
IP1R-322
predictor
To specify the load-balancing algorithm for selecting a real server in the server farm, use the predictor
SLB server farm configuration command. To restore the default load-balancing algorithm of weighted
round robin, use the no form of this command.
predictor [roundrobin | leastconns]
no predictor
Syntax Description
roundrobin
(Optional) Use the weighted round robin algorithm for selecting the
real server to handle the next new connection for the server farm.
leastconns
Defaults
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
Related Commands
Command
Description
weight
Specifies the capacity of the real server, relative to other real servers
in the server farm.
IP1R-323
real
To identify a real server as a member of a server farm, use the real SLB server farm configuration
command. To remove the real server from the IOS SLB configuration, use the no form of this command.
real ip-address
no real ip-address
Syntax Description
ip-address
Defaults
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
The following example identifies a real server as a member of the server farm:
ip slb serverfarm PUBLIC
real 10.1.1.1
Related Commands
Command
Description
IP1R-324
reassign
To specify the threshold of consecutive unanswered synchronizations that, if exceeded, results in an
attempted connection to a different real server, use the reassign SLB real server configuration command.
To restore the default reassignment threshold, use the no form of this command.
reassign threshold
no reassign
Syntax Description
threshold
Defaults
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
Related Commands
Command
Description
real
IP1R-325
Syntax Description
retry-value
Defaults
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
The following example specifies that 120 seconds must elapse after the detection of a server failure
before a new connection is attempted:
ip slb serverfarm PUBLIC
real 10.10.1.1
retry 120
Related Commands
Command
Description
real
IP1R-326
serverfarm
To associate a real server farm with a virtual server, use the serverfarm SLB virtual server configuration
command. To remove the server farm association from the virtual server configuration, use the no form
of this command.
serverfarm serverfarm-name
no serverfarm
Syntax Description
serverfarm-name
Defaults
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
Name of a server farm that has already been defined using the ip slb
serverfarm command.
The following example shows how the ip slb vserver, virtual, and serverfarm commands are used to
associate the real server farm named PUBLIC with the virtual server named PUBLIC_HTTP:
ip slb vserver PUBLIC_HTTP
virtual 10.0.0.1 tcp www
serverfarm PUBLIC
Related Commands
Command
Description
virtual
IP1R-327
Syntax Description
vserver
virtserver-name
client
ip-address
detail
Defaults
If no options are specified, the command displays output for all active IOS SLB connections.
Command Modes
Privileged EXEC
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
IP1R-328
Table 31
Field
Description
vserver
Name of the virtual server whose connections are being monitored and
displayed. Information about each connection is displayed on a
separate line.
prot
client
real
state
IP1R-329
Syntax Description
agent
ip-address
port-number
detail
weights
Defaults
Command Modes
Privileged EXEC
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
(Default)
IP1R-330
www
UTC
www
UTC
Bind_ID 4 Weight 4
12/03/99
Bind_ID 5 Weight 5
12/03/99
Field
Description
Agent IP
Port
Timeout
Time period (in seconds) during which the DFP manager must receive
an update from the DFP agent. A value of 0 means there is no timeout.
Retry Count
Interval
IP1R-331
Syntax Description
vserver
virtserver-name
detail
Defaults
If no options are specified, the command displays information about all real servers.
Command Modes
Privileged EXEC
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
IP1R-332
Table 33
Field
Description
real
server farm
weight
Weight assigned to the real server. The weight identifies the capacity
of the real server, relative to other real servers in the server farm.
state
OPERATIONALFunctioning properly.
IP1R-333
Syntax
Description
name
serverfarm-name
detail
Defaults
Command Modes
Privileged EXEC
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
Field
Description
server farm
predictor
reals
bind id
IP1R-334
Syntax Description
Defaults
Command Modes
Privileged EXEC
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
Field
Description
Connections Created
Connections Established
Connections Destroyed
IP1R-335
Table 35
Connections Reassigned
Zombie Count
IP1R-336
Syntax
Description
client
ip-address
Defaults
If no options are specified, the command displays information about all virtual servers.
Command Modes
Privileged EXEC
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
The following example shows the entries in the IOS SLB sticky database:
router# show ip slb sticky
client
group
real
conns
ftp-cntrl
-------------------------------------------------------------10.10.2.12
4097
10.10.3.2
1
0
Field
Description
client
group
real
Real server used by all clients connecting with the client IP address
detailed on this line.
conns
ftp-cntrl
IP1R-337
Syntax
Description
name
virtserver-name
detail
Defaults
If no options are specified, the command displays information about all virtual servers.
Command Modes
Privileged EXEC
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
Field
Description
slb vserver
prot
virtual
state
conns
IP1R-338
sticky
To assign all connections from a client to the same real server, use the sticky virtual server configuration
command. To remove the client/server coupling, use the no form of this command.
sticky duration [group group-id]
no sticky
Syntax Description
Defaults
duration
group
group-id
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Usage Guidelines
The last real server that was used for a connection from a client is stored for the set duration seconds. If
a new connection from the client to the virtual server is initiated during that time, the same real server
that was used for the previous connection is chosen for the new connection. If two virtual servers are
placed in the same group, coincident connection requests for those services from the same IP address are
handled by the same real server.
Examples
The following example specifies that if a subsequent request from a client for a virtual server is made
within 60 seconds of the previous request, then the same real server is used for the connection. This
example also places the virtual server in group 10.
ip slb vserver VS1
sticky 60 group 10
IP1R-339
Related Commands
Command
Description
virtual
IP1R-340
synguard
To limit the rate of TCP SYNs handled by a virtual server to prevent an SYN flood Denial-of-Service
attack, use the synguard virtual server configuration command. To remove the threshold, use the no
form of this command.
synguard syn-count [interval]
no synguard
Syntax Description
Defaults
syn-count
interval
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
Related Commands
Command
Description
virtual
IP1R-341
virtual
To configure virtual server attributes, use the virtual virtual server configuration command. To remove
the attributes, use the no form of this command.
virtual ip-address {tcp | udp} port-number [service service-name]
no virtual
Syntax Description
ip-address
tcp
udp
port-number
(Optional) IOS SLB virtual port (the TCP or UDP port number or
port name). If specified, only the connections for the specified port
on the server are load balanced. The ports and the valid name or
number for the port-number argument are as follows:
Telnet: telnet 23
service-name
Defaults
Command Modes
IP1R-342
Command History
Usage Guidelines
Release
Modification
12.0(7)XE
12.1(5)T
The no virtual command is allowed only if the virtual server was removed from service by the
no inservice command.
For some applications, it is not feasible to configure all the virtual server TCP or UDP port numbers for
the IOS SLB feature. To support such applications, you can configure IOS SLB virtual servers to accept
flows destined for all ports. To configure an all-port virtual server, specify a port number of 0.
Note
Examples
In general, you should use port-bound virtual servers instead of all-port virtual servers. When you
use all-port virtual servers, flows can be passed to servers for which no application port exists. When
servers reject these flows, IOS SLB might fail the server and remove it from load balancing.
The following example specifies that the virtual server with the IP address 10.0.0.1 performs load
balancing for TCP connections for the port named www. The virtual server processes HTTP requests.
ip slb vserver PUBLIC_HTTP
virtual 10.0.0.1 tcp www
Related Commands
Command
Description
ip slb vserver
IP1R-343
weight
To specify the capacity of a real server relative to other real servers in the server farm, use the weight
real server configuration command. To restore the default weight value, use the no form of this
command.
weight weighting-value
no weight
Syntax Description
weighting-value
Defaults
Command Modes
Command History
Release
Modification
12.0(7)XE
12.1(5)T
Examples
The following example specifies the relative weighting values of three real servers as 16, 8 (by default),
and 24, respectively:
ip slb serverfarm PUBLIC
real 10.10.1.1
weight 16
inservice
exit
real 10.10.1.2
inservice
exit
real 10.10.1.3
weight 24
Related Commands
Command
Description
real
IP1R-344
Mobile IP Commands
Use the commands in this chapter to configure and monitor Mobile IP. For Mobile IP configuration
information and examples, refer to the Configuring Mobile IP chapter of the Cisco IOS IP
Configuration Guide.
IP1R-345
Mobile IP Commands
aaa authorization ipmobile
Syntax Description
radius
tacacs+
default
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
Mobile IP requires security associations for registration authentication. The security associations are
configured on the router or on a AAA server. This command is not needed for the former; but in the latter
case, this command authorizes Mobile IP to retrieve the security associations from the AAA server.
Once the authorization list is named, it can be used in other areas such as login. You can only use one
named authorization list; multiple named authorization lists are not suppported.
The aaa authorization ipmobile default group server-groupname command is the most commonly
used method to retrieve security associations from the AAA server.
Note
Examples
The AAA server does not authenticate the user. It stores the security association that is retrieved by the
router to authenticate registration.
The following example uses TACACS+ to retrieve security associations from the AAA server:
aaa new-model
aaa authorization ipmobile tacacs+
tacacs-server host 1.2.3.4
tacacs-server key mykey
ip mobile host 10.0.0.1 10.0.0.5 virtual-network 10.0.0.0 255.0.0.0 aaa
IP1R-346
Mobile IP Commands
aaa authorization ipmobile
The following example uses RADIUS as the default group to retrieve security associations from the
AAA server:
aaa new-model
aaa authentication login default enable
aaa authorization ipmobile default group radius
aaa session-id common
radius-server host 128.107.162.173 auth-port 1645 acct-port 1646
radius-server retransmit 3
radius-server key cisco
ip mobile host 10.0.0.1 10.0.0.5 virtual-network 10.0.0.0 255.0.0.0 aaa
Related Commands
Command
Description
aaa new-model
ip mobile host
radius-server host
radius-server key
Sets the authentication and encryption key for all RADIUS communications
between the router and the RADIUS daemon.
tacacs-server host
tacacs-server key
IP1R-347
Mobile IP Commands
clear ip mobile binding
Syntax Description
all
load
standby-group-name
ip-address
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
12.1(3)T
Usage Guidelines
all
load
standby-group-name
The home agent creates a mobility binding for each roaming mobile node. The mobility binding allows
the mobile node to exchange packets with the correspondent node. Associated with the mobility binding
is the tunnel to the visited network and a host route to forward packets destined for the mobile node.
There should be no need to clear the binding because it expires after lifetime is reached or when the
mobile node deregisters.
When the mobility binding is removed, the number of users on the tunnel is decremented and the host
route is removed from the routing table. The mobile node is not notified.
Use this command with care, because it may terminate any sessions used by the mobile node. After using
this command, the visitor will need to reregister to continue roaming.
Examples
The following example administratively stops mobile node 10.0.0.1 from roaming:
Router# clear ip mobile binding 10.0.0.1
Router# show ip mobile binding
Mobility Binding List:
Total 1
10.0.0.1:
Care-of Addr 68.0.0.31, Src Addr 68.0.0.31,
Lifetime granted 02:46:40 (10000), remaining 02:46:32
Flags SbdmGvt, Identification B750FAC4.C28F56A8,
Tunnel100 src 66.0.0.5 dest 68.0.0.31 reverse-allowed
Routing Options - (G)GRE
IP1R-348
Mobile IP Commands
clear ip mobile binding
Related Commands
Command
Description
IP1R-349
Mobile IP Commands
clear ip mobile secure
Syntax Description
host
lower
upper
empty
Load in only mobile nodes without security associations. Must be used with
the load keyword.
all
load
(Optional) Reload the security association from the AAA server after
security association has been cleared.
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
Security associations are required for registration authentication. They can be stored on an AAA server.
During registration, they may be stored locally after retrieval from the AAA server. The security
association on the router may become stale or out of date when the security association on the AAA
server changes.
This command clears security associations that have been downloaded from the AAA server.
Note
Examples
Security associations that are manually configured on the router or not stored on the router after retrieval
from the AAA server are not applicable.
In the following example, the AAA server has the security association for user 10.0.0.1 after registration:
Router# show ip mobile secure host 10.0.0.1
Security Associations (algorithm,mode,replay protection,key):
10.0.0.1:
SPI 300, MD5, Prefix-suffix, Timestamp +/- 7,
Key oldkey 1230552d39b7c1751f86bae5205ec0c8
IP1R-350
Mobile IP Commands
clear ip mobile secure
10.0.0.1:
SPI 300, MD5, Prefix-suffix, Timestamp +/- 7,
Key newkey 1230552d39b7c1751f86bae5205ec0c8
Related Commands
Command
Description
ip mobile secure
aaa-download
Specifies the mobility security associations for mobile host, visitor, home
agent, and foreign agent.
IP1R-351
Mobile IP Commands
clear ip mobile traffic
Syntax Description
undo
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
Mobile IP counters are accumulated during operation. They are useful for debugging and monitoring.
This command clears all Mobile IP counters. The undo keyword restores the counters (this is useful for
debugging). See the show ip mobile traffic command for a description of all counters.
Examples
The following example shows how the counters can be used for debugging:
Router# show ip mobile traffic
IP Mobility traffic:
Advertisements:
Solicitations received 0
Advertisements sent 0, response to solicitation 0
Home Agent Registrations:
Register 8, Deregister 0 requests
Register 7, Deregister 0 replied
Accepted 6, No simultaneous bindings 0
Denied 1, Ignored 1
Unspecified 0, Unknown HA 0
Administrative prohibited 0, No resource 0
Authentication failed MN 0, FA 0
Bad identification 1, Bad request form 0
.
.
Router# clear ip mobile traffic
Router# show ip mobile traffic
IP Mobility traffic:
Advertisements:
Solicitations received 0
Advertisements sent 0, response to solicitation 0
Home Agent Registrations:
Register 0, Deregister 0 requests
Register 0, Deregister 0 replied
Accepted 0, No simultaneous bindings 0
Denied 0, Ignored 0
Unspecified 0, Unknown HA 0
Administrative prohibited 0, No resource 0
Authentication failed MN 0, FA 0
Bad identification 0, Bad request form 0
IP1R-352
Mobile IP Commands
clear ip mobile traffic
Related Commands
Command
Description
IP1R-353
Mobile IP Commands
clear ip mobile visitor
Syntax Description
ip-address
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
The foreign agent creates a visitor entry for each accepted visitor. The visitor entry allows the mobile
node to receive packets while in a visited network. Associated with the visitor entry is the ARP entry for
the visitor. There should be no need to clear the entry because it expires after lifetime is reached or when
the mobile node deregisters.
When a visitor entry is removed, the number of users on the tunnel is decremented and the ARP entry is
removed from the ARP cache. The visitor is not notified.
Use this command with care because it may terminate any sessions used by the mobile node. After using
this command, the visitor will need to reregister to continue roaming.
Examples
Related Commands
Command
Description
show ip mobile visitor Displays the table containing the visitor list of the foreign agent.
IP1R-354
Mobile IP Commands
ip mobile foreign-agent
ip mobile foreign-agent
To enable foreign agent service, use the ip mobile foreign-agent global configuration command. To
disable this service, use the no form of this command.
ip mobile foreign-agent [care-of interface | reg-wait seconds]
no ip mobile foreign-agent [care-of interface | reg-wait seconds]
Syntax Description
care-of interface
(Optional) IP address of the interface. Sets the care-of address on the foreign
agent. Multiple care-of addresses can be configured.
reg-wait seconds
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
This command enables foreign agent service when at least one care-of address is configured. When no
care-of address exists, foreign agent service is disabled.
The foreign agent is responsible for relaying the registration request to the home agent, setting up tunnel
to the home agent, and forwarding packets to the mobile node. The show commands used to display
relevant information are shown in parentheses in the following paragraph.
When a registration request comes in, the foreign agent will ignore requests when foreign agent service
is not enabled on interface or no care-of address is advertised. If a security association exists for a
visiting mobile node, the visitor is authenticated (show ip mobile secure visitor command). The
registration bitflag is handled as described in Table 38 (show ip mobile interface command). The
foreign agent checks the validity of the request. If successful, the foreign agent relays the request to the
home agent, appending an FH authentication extension if a security association for the home agent
exists. The pending registration timer of 15 seconds is started (show ip mobile visitor pending
command). At most, five outstanding pending requests per mobile node are allowed. If a validity check
fails, the foreign agent sends a reply with error code to the mobile node (reply codes are listed in
Table 39). A security violation is logged when visiting mobile node authentication fails (show ip mobile
violation command). (Violation reasons are listed in Table 43.)
When a registration reply comes in, the home agent is authenticated (show ip mobile secure
home-agent command) if a security association exists for the home agent (IP source address or home
agent address in reply). The reply is relayed to the mobile node.
IP1R-355
Mobile IP Commands
ip mobile foreign-agent
When registration is accepted, the foreign agent creates or updates the visitor table, which contains the
expiration timer. If no binding existed before this registration, a virtual tunnel is created, a host route to
the mobile node via the interface (of the incoming request) is added to the routing table (show ip route
mobile command), and an ARP entry is added to avoid sending ARP requests for the visiting mobile
node. Visitor binding is removed (along with its associated host route, tunnel, and ARP entry) when the
registration lifetime expires or deregistration is accepted.
When registration is denied, the foreign agent will remove the request from the pending registration
table. The table and timers of the visitor will be unaffected.
When a packet destined for the mobile node arrives on the foreign agent, the foreign agent will
deencapsulates the packet and forwards it out its interface to the visiting mobile node, without sending
ARP requests.
The care-of address must be advertised by the foreign agent. This is used by the mobile node to register
with the home agent. The foreign agent and home agent use this address as the source and destination
point of tunnel, respectively. The foreign agent is not enabled until at least one care-of address is
available. The foreign agent will advertise on interfaces configured with the ip mobile foreign-service
command.
Only care-of addresses with interfaces that are up are considered available.
Table 38 lists foreign agent registration bitflags.
Table 38
Bit Set
Registration Request
reserved
Code
Reason
64
Reason unspecified.
65
Administratively prohibited.
66
Insufficient resource.
67
68
69
70
71
IP1R-356
Mobile IP Commands
ip mobile foreign-agent
Table 39
Examples
Code
Reason
72
73
74
80-95
The following example enables foreign agent service on interface Ethernet1, advertising 1.0.0.1 as the
care-of address:
ip mobile foreign-agent care-of Ethernet0
interface Ethernet0
ip address 1.0.0.1 255.0.0.0
interface Ethernet1
ip mobile foreign-service
Related Commands
Command
Description
ip mobile foreign-service
Displays the table containing the visitor list of the foreign agent.
IP1R-357
Mobile IP Commands
ip mobile foreign-service
ip mobile foreign-service
To enable foreign agent service on an interface if care-of addresses are configured, use the
ip mobile foreign-service interface configuration command. To disable this service, use the no form
of this command.
ip mobile foreign-service [home-access acl] [limit number] [registration-required]
no ip mobile foreign-service [home-access acl] [limit number] [registration-required]
Syntax Description
home-access acl
(Optional) Controls which home agent addresses mobile nodes can be used
to register. The access list can be a string or number from 1 to 99. You
cannot use this keyword when you enable foreign agent service on a
subinterface.
limit number
(Optional) Number of visitors allowed on interface. The Busy (B) bit will
be advertised when the number of registered visitors reach this limit. Range
is from 1 to 1000. Default is no limit. You cannot use this keyword when
you enable foreign agent service on a subinterface.
registration-required
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
Note
This command enables foreign agent service on the interface. The foreign agent (F) bit will be set in the
agent advertisement, which is appended to the IRDP router advertisement whenever the foreign agent or
home agent service is enabled on the interface.
The Registration-required bit only tells the visiting mobile node to register even if the visiting mobile
node is using a colocated care-of address. You must set up packet filters to enforce this. For example,
you could deny packets destined for port 434 from the interface of this foreign agent.
Table 40 lists the advertised bitflags.
IP1R-358
Mobile IP Commands
ip mobile foreign-service
Table 40
Examples
Bit Set
Service Advertisement
Set if the interface is the home link to the mobile host (group).
Never set.
Always set.
Never set.
reserved
Never set.
The following example enables foreign agent service for up to 100 visitors:
interface Ethernet 0
ip mobile foreign-service limit 100 registration-required
Related Commands
Command
Description
show ip mobile
interface
IP1R-359
Mobile IP Commands
ip mobile home-agent
ip mobile home-agent
To enable and control home agent services on the router, use the ip mobile home-agent global
configuration command. To disable these services, use the no form of this command.
ip mobile home-agent [address ip-address][broadcast] [care-of-access acl] [lifetime number]
[replay seconds] [reverse-tunnel-off] [roam-access acl] [suppress-unreachable]
no ip mobile home-agent [broadcast] [care-of-access acl] [lifetime number] [replay seconds]
[reverse-tunnel-off] [roam-access acl] [suppress-unreachable]
Syntax Description
address ip-address
(Optional) Specifies the IP address of the home agent. This option is only
applicable when home agent redundancy is used for virtual networks.
broadcast
care-of-access acl
lifetime number
(Optional) Specifies the global registration lifetime for a mobile node. Note
that this can be overridden by the individual mobile node configuration.
Range is from 3 to 65535 (infinity). Default is 36000 seconds (10 hours).
Registrations requesting a lifetime greater than this value will still be
accepted, but will use this lifetime value.
replay seconds
reverse-tunnel-off
roam-access acl
suppress-unreachable
Defaults
Disabled. Broadcasting is disabled by default. Reverse tunnel support is enabled by default. ICMP
Unreachable messages are sent by default.
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
IP1R-360
Mobile IP Commands
ip mobile home-agent
Usage Guidelines
This command enables and controls home agent services on the router. Changes to service take effect
immediately; however, broadcast and lifetime settings for previously registered mobile nodes are
unaffected. Tunnels are shared by mobile nodes registered with the same endpoints, so the
reverse-tunnel-off keyword also affects registered mobile nodes.
The home agent is responsible for processing registration requests from the mobile node and setting up
tunnels and routes to the care-of address. Packets to the mobile node are forwarded to the visited
network.
The home agent will forward broadcast packets to mobile nodes if they registered with the service.
However, heavy broadcast traffic utilizes the CPU of the router. The home agent can control where the
mobile nodes roam by the care-of-access parameter, and which mobile node is allowed to roam by the
roam-access parameter.
When a registration request comes in, the home agent will ignore requests when home agent service is
not enabled or the security association of the mobile node is not configured. The latter condition occurs
because the security association must be available for the MH authentication extension in the reply. If a
security association exists for the foreign agent (IP source address or care-of address in request), the
foreign agent is authenticated, and then the mobile node is authenticated. The Identification field is
verified to protect against replay attack. The home agent checks the validity of the request (see Table 41)
and sends a reply. (Replay codes are listed in Table 42.) A security violation is logged when foreign
agent authentication, MH authentication, or Identification verification fails. (The violation reasons are
listed in Table 43.)
After registration is accepted, the home agent creates or updates the mobility binding of the mobile node,
which contains the expiration timer. If no binding existed before this registration, a virtual tunnel is
created, a host route to the mobile node via the care-of address is added to the routing table, and
gratuitous ARPs are sent out. For deregistration, the host route is removed from the routing table, the
virtual tunnel interface is removed (if no mobile nodes are using it), and gratuitous ARPs are sent out if
the mobile node is back home. Mobility binding is removed (along with its associated host route and
tunnel) when registration lifetime expires or deregistration is accepted.
When the packet destined for the mobile node arrives on the home agent, the home agent encapsulates
the packet and tunnels it to the care-of address. If the Dont fragment bit is set in the packet, the outer
bit of the IP header is also set. This allows the Path MTU Discovery to set the MTU of the tunnel.
Subsequent packets greater than the MTU of the tunnel will be dropped and an ICMP datagram too big
message sent to the source. If the home agent loses the route to the tunnel endpoint, the host route to the
mobile node will be removed from the routing table until tunnel route is available. Packets destined for
the mobile node without a host route will be sent out the interface (home link) or to the virtual network
(see the description of suppress-unreachable keyword). For subnet-directed broadcasts to the home
link, the home agent will send a copy to all mobile nodes registered with the broadcast routing option.
Table 41 describes how the home agent treats registrations with various bits set when authentication and
identification are passed.
Table 41
Bit Set
Registration Reply
IP1R-361
Mobile IP Commands
ip mobile home-agent
Table 41
Bit Set
Registration Reply
reserved
Code
Reason
Accept.
128
Reason unspecified.
129
Administratively prohibited.
130
Insufficient resource.
131
132
133
134
136
137
139
Unsupported encapsulation.
Examples
Code
Reason
Bad authenticator.
Bad identifier.
Bad SPI.
Other.
The following example enables broadcast routing and specifies a global registration lifetime of
7200 seconds (2 hours):
ip mobile home-agent broadcast lifetime 7200
Related Commands
IP1R-362
Mobile IP Commands
ip mobile home-agent
Command
Description
IP1R-363
Mobile IP Commands
ip mobile home-agent resync-sa
Syntax Description
sec
Defaults
This command is off by default. The normal behavior of the home agent is to never requery the AAA
server for a new security association.
Command Modes
Global configuration
Command History
Release
Modification
12.2
Usage Guidelines
Specifies the time in which the home agent will wait to initiate a
resynchronization.
You must enable security association caching for the ip mobile home-agent resync-sa command to
work. Use the ip mobile host aaa load-sa global configuration command to enable caching of security
associations retrieved from a AAA server.
When a security association is downloaded for a mobile node from a AAA server, the security
association is time stamped. If the mobile node fails reregistration and the time interval since the security
association was cached is greater than sec seconds, the home agent will clear out the old security
association and requery the AAA server. If the time period is less than the sec value, the home agent will
not requery the AAA server for the security association of the mobile node.
The sec value represents the number of seconds the home agent will consider the downloaded security
association synchronized with the AAA server. After that time period, it is considered old and can be
replaced by a new security association from the AAA server.
This time-based resynchronization process helps prevent denial-of-service attacks on the AAA server
and provides a way to synchronize the home agent's cached security association entry when a change to
the security association for the mobile node is made at the AAA server and on the mobile node. By using
this process, once the mobile node fails reregistration with the old cached security association, the home
agent will clear the cache for that mobile node, and resynchronize with the AAA server.
IP1R-364
Mobile IP Commands
ip mobile home-agent resync-sa
Examples
In the following example, if a registration fails authentication, the home agent retrieves a new security
association from the AAA server if the existing security association was downloaded more than 10
seconds ago:
ip mobile home-agent resync-sa 10
Related Commands
Command
Description
ip mobile host
IP1R-365
Mobile IP Commands
ip mobile home-agent standby
Syntax Description
hsrp-group-name
virtual-network
address address
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(2)T
Usage Guidelines
Note
The virtual-network keyword specifies that the HSRP group supports virtual networks.
Redundant home agents must have identical Mobile IP configurations. You can use a standby group to
provide HA redundancy for either physical or virtual networks, but not both at the same time.
When Mobile IP standby is configured, the home agent can request mobility bindings from the peer
home agent. When Mobile IP standby is deconfigured, the home agent can remove mobility bindings.
Operation of home agent redundancy on physical and virtual networks is described as follows:
Examples
Physical NetworkOnly the active home agent will receive registrations on a physical network. It
updates the standby home agent. The standby home agent requests the mobility binding table from
the active home agent. When Mobile IP standby is deconfigured, the standby home agent removes
all bindings, but the active home agent keeps all bindings.
Virtual NetworkBoth active and standby home agents receive registrations if the loopback
interface is used; each will update the peer after accepting a registration. Otherwise, the active home
agent receives registrations. Both active and standby home agents request mobility binding tables
from each other. When Mobile IP standby is deconfigured, the standby or active home agent removes
all bindings.
IP1R-366
Mobile IP Commands
ip mobile home-agent standby
Related Commands
Command
Description
IP1R-367
Mobile IP Commands
ip mobile host
ip mobile host
To configure the mobile host or mobile node group, use the ip mobile host global configuration
command.
ip mobile host lower [upper] {interface name | virtual-network net mask} [aaa [load-sa]]
[care-of-access acl] [lifetime number]
no ip mobile host lower [upper] {interface name | virtual-network net mask} [aaa [load-sa]]
[care-of-access acl] [lifetime number]
Syntax Description
lower [upper]
interface name
virtual-network net mask The wireless mobile node resides in the virtual network created using the
ip mobile virtual-network command.
aaa
load-sa
care-of-access acl
lifetime number
(Optional) Lifetime (in seconds). The lifetime for each mobile node
(group) can be set to override the global value. Range is from 3 to 65535.
Defaults
No host is configured.
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
This command configures the mobile host or mobile node group (ranging from lower address to upper
address) to be supported by the home agent. These mobile nodes belong to the network on an interface
or a virtual network (via the ip mobile virtual-network command). The security association for each
mobile host must be configured using the ip mobile secure command or downloaded from an AAA
server. When using an AAA server, the router will attempt to download all security associations when
the command is entered. If no security associations are retrieved, retrieval will be attempted when a
registration request arrives or the clear ip mobile secure command is entered.
All hosts must have security associations for registration authentication. Mobile nodes can have more
than one security association. The memory consumption calculations shown in Table 44 are based on the
assumption of one security association per mobile node.
IP1R-368
Mobile IP Commands
ip mobile host
On the router
On the AAA server, retrieve security association each time registration comes in
Each method has advantages and disadvantages, which are described in Table 44.
Table 44
Storage Method
On the router
Advantage
Security association is in
router memory, resulting in
fast lookup.
Disadvantage
NVRAM of router is
limited, cannot store many
security associations. Each
security association
configuration takes about
80 bytes. For 125 KB
NVRAM, you can store
about 1500 security
associations on a home
agent.
IP1R-369
Mobile IP Commands
ip mobile host
Table 44
Storage Method
Advantage
Examples
Disadvantage
The following example configures a mobile node group to reside on virtual network 20.0.0.0 and store
its security associations on the AAA server:
ip mobile host 20.0.0.1 20.0.0.3 virtual-network 20.0.0.0 aaa
Related Commands
Command
Description
aaa authorization
ipmobile
ip mobile secure
aaa-download
Specifies the mobility security associations for mobile host, visitor, home
agent, and foreign agent.
IP1R-370
Mobile IP Commands
ip mobile prefix-length
ip mobile prefix-length
To append the prefix-length extension to the advertisement, use the ip mobile prefix-length interface
configuration command. To restore the default, use the no form of this command.
ip mobile prefix-length
no ip mobile prefix-length
Syntax Description
Defaults
Command Modes
Interface configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
The prefix-length extension is used for movement detection. When a mobile node registered with one
foreign agent receives an agent advertisement from another foreign agent, the mobile node uses the
prefix-length extension to determine whether the advertisements arrived on the same network. The
mobile node needs to register with the second foreign agent if it is on a different network. If the second
foreign agent is on the same network, reregistration is not necessary.
Examples
The following example appends the prefix-length extension to agent advertisements sent by a foreign
agent:
ip mobile prefix-length
Related Commands
Command
Description
show ip mobile
interface
IP1R-371
Mobile IP Commands
ip mobile registration-lifetime
ip mobile registration-lifetime
To set the registration lifetime value advertised, use the ip mobile registration-lifetime interface
configuration command.
ip mobile registration-lifetime seconds
Syntax Description
seconds
Defaults
36000 seconds
Command Modes
Interface configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
This command allows an administrator to control the advertised lifetime on the interface. The foreign
agent uses this command to control duration of registration. Visitors requesting longer lifetimes will be
denied.
Examples
The following example sets the registration lifetime to 10 minutes on interface Ethernet 1 and 1 hour on
interface Ethernet 2:
interface e1
ip mobile registration-lifetime 600
interface e2
ip mobile registration-lifetime 3600
Related Commands
Command
Description
show ip mobile
interface
IP1R-372
Mobile IP Commands
ip mobile secure aaa-download
Syntax Description
rate
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
SAs are downloaded from a AAA server on the first use. This command allows the home agent (HA) to
prepopulate an SA table.
Examples
Related Commands
Command
Description
ip mobile host
ip mobile proxy-host
ip mobile secure
foreign-agent
ip mobile secure
home-agent
ip mobile secure
mn-aaa
IP1R-373
Mobile IP Commands
ip mobile secure aaa-download
Command
Description
ip mobile secure
proxy-host
ip mobile secure
visitor
IP1R-374
Mobile IP Commands
ip mobile secure foreign-agent
Syntax Description
lower-address
inbound-spi
Note
outbound-spi
spi
Note
IP1R-375
Mobile IP Commands
ip mobile secure foreign-agent
replay timestamp
(Optional) Specifies the number of seconds that the router uses for replay
protection.
Note
algorithm
Note
Note
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
12.2
12.2(13)T
Usage Guidelines
The SA consists of an entity address, SPI, key, replay protection method, authentication algorithm, and
authentication algorithm mode (prefix-suffix).
On a FA, the SA of the visiting mobile host and the SA of the home agent (HA) are optional. Multiple
SAs for each entity can be configured.
The SA of a visiting mobile host on the MFAE and the SA of the HA on the FHAE are optional on the
FA as long as they are not specified on the other entity. Multiple SAs for each entity can be configured.
Note
NTP is not required for operation, but NTP can be used to synchronize time for all parties.
IP1R-376
Mobile IP Commands
ip mobile secure foreign-agent
Examples
The following example shows the configuration of SAs for an FA with an IP address of 209.165.200/254:
ip mobile secure foreign-agent 209.165.200/254 inbound-spi 203 outbound-spi 150 key
hex ffffffff
Related Commands
Command
Description
ip mobile host
ip mobile proxy-host
ip mobile secure
aaa-download
ip mobile secure
home-agent
ip mobile secure
mn-aaa
ip mobile secure
proxy-host
ip mobile secure
visitor
IP1R-377
Mobile IP Commands
ip mobile secure home-agent
Syntax Description
lower-address
inbound-spi
Note
outbound-spi
spi
Note
IP1R-378
Mobile IP Commands
ip mobile secure home-agent
replay timestamp
(Optional) Specifies the number of seconds that the router uses for replay
protection.
Note
algorithm
Note
Note
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
12.2
12.2(13)T
Usage Guidelines
The SA consists of an entity address, SPI, key, replay protection method, authentication algorithm, and
authentication algorithm mode (prefix-suffix).
The HA may have multiple SAs for each peer. The SPI specifies which SA to use for the peer and selects
the specific security parameters to be used to authenticate the peer.
On an HA, the SA of the mobile host is mandatory for mobile host authentication and allows the HA to
compute the MHAE for mobile host authentication. If desired, configure a foreign agent (FA) SA on your
HA.
IP1R-379
Mobile IP Commands
ip mobile secure home-agent
The mobile IP protocol automatically synchronizes the time stamp used by the mobile node (MN) in its
registration requests. If the MN registration request time stamp is outside the HA permitted replay
protection time interval, the HA will respond with the number of seconds by which the MN time stamp
is off relative to the HA clock. This allows the MN to adjust its time stamp and use synchronized time
stamps in subsequent registration attempts.
If you prefer that the MN first registration attempt always falls within the HA replay protection time
interval, use Network Time Protocol (NTP) to synchronize the MN and HA.
Note
Examples
NTP is not required for operation, but NTP can be used to synchronize time for all parties.
The following example shows the configuration of an SA for an HA with an IP address of 10.0.0.4:
ip mobile secure home-agent 10.0.0.4 spi 100 key hex ffffffff
Related Commands
Command
Description
ip mobile host
ip mobile proxy-host
ip mobile secure
aaa-download
ip mobile secure
foreign-agent
ip mobile secure
mn-aaa
ip mobile secure
proxy-host
ip mobile secure
visitor
IP1R-380
Mobile IP Commands
ip mobile secure host
Syntax Description
lower-address
nai
Note
inbound-spi
outbound-spi
spi
Note
IP1R-381
Mobile IP Commands
ip mobile secure host
replay timestamp
(Optional) Specifies the number of seconds that the router uses for replay
protection.
Note
algorithm
Note
Note
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
12.2
Usage Guidelines
12.2(2)XC
12.2(13)T
The SA consists of an entity address, SPI, key, replay protection method, authentication algorithm, and
authentication algorithm mode (prefix-suffix).
The SA of a visiting mobile host on the MFAE and the SA of the home agent (HA) on the FHAE are
optional as long as they are not specified on the other entity. Multiple SAs for each entity can be
configured.
The HMAC-MD5 authentication algorithm is mandatory for MHAE, MFAE, and FHAE.
Note
NTP is not required for operation, but NTP can be used to synchronize time for all parties.
IP1R-382
Mobile IP Commands
ip mobile secure host
Examples
Related Commands
Command
Description
ip mobile host
ip mobile proxy-host
ip mobile secure
aaa-download
ip mobile secure
foreign-agent
ip mobile secure
home-agent
ip mobile secure
mn-aaa
ip mobile secure
proxy-host
ip mobile secure
visitor
IP1R-383
Mobile IP Commands
ip mobile secure mn-aaa
Syntax Description
spi
algorithm md5 mode Message Digest 5 (MD5) authentication algorithm used during authentication
ppp-chap-style
by the Challenge-Handshake Authentication Protocol (CHAP).
Defaults
The home agent or foreign agent only accept the standard SPI value in the MN-AAA authentication
extension that specifes CHAP-style authentication using MD5. The standard value for the SPI is 2.
Command Modes
Global configuration
Command History
Release
Modification
12.2
Usage Guidelines
The SPI is the 4-byte index that selects the specific security parameters to be used to authenticate the
peer. The security parameters consist of the authentication algorithm and mode.
A mobile node configured to be authenticated via an MN-AAA authentication extension is required to
use an SPI value of 2 to indicate CHAP-style authentication using MD5 as specified by RFC 3012,
Mobile IPv4 Challenge/Response Extensions.
Some network implementations need the flexibility to allow an SPI value other than 2 even though the
mobile node is authenticated using CHAP. The ip mobile secure mn-aaa command maps new SPI
values in the MN-AAA extension of the registration message to the SPI value pre-defined by RFC 3012.
When a registration request arrives at the foreign agent or home agent with the MN-AAA extension
containing an SPI value specified by the ip mobile secure mn-aaa command, the foreign agent or home
agent will process it as if the value was 2 instead of rejecting the request.
IP1R-384
Mobile IP Commands
ip mobile secure mn-aaa
Use this command with caution because it is non-standard behavior. For example, different vendors
might use the same non-standard SPI to denote different authentication methods and this could affect
interoperability. In general, Cisco recommends the use of standard SPI values to be used in the MN-AAA
authentication extension by the mobile node.
Examples
In the following example, the foreign agent or home agent will process the registration request even
though the CHAP SPI value is not 2:
ip mobile secure mn-aaa spi 1234 algorithm md5 mode ppp-chap-style
IP1R-385
Mobile IP Commands
ip mobile secure proxy-host
Syntax Description
lower-address
nai
Note
inbound-spi
outbound-spi
spi
Note
IP1R-386
Mobile IP Commands
ip mobile secure proxy-host
replay timestamp
(Optional) Specifies the number of seconds that the router uses for replay
protection.
Note
algorithm
secondsTime that a router uses for replay protection. The range is from
plus or minus 255 seconds. The default is plus or minus 7 seconds.
The registration packet is considered not replayed if the time stamp
in the packet is within plus or minus the configured number of seconds
of the router clock.
Note
Note
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
12.2
Usage Guidelines
12.2(2)XC
12.2(13)T
12.3(4)T
The proxy-host keyword was added for Packet Data Serving Node (PDSN)
platforms only.
The SA consists of an entity address, SPI, key, replay protection method, authentication algorithm, and
authentication algorithm mode (prefix-suffix).
The HMAC-MD5 authentication algorithm is mandatory for MHAE, MFAE, and FHAE.
Note
The proxy-host keyword is available only on PDSN platforms that are running specific PDSN code
images; consult Cisco Feature Navigator for your Cisco IOS software release.
IP1R-387
Mobile IP Commands
ip mobile secure proxy-host
Note
Examples
NTP is not required for operation, but NTP can be used to synchronize time for all parties.
Related Commands
Command
Description
ip mobile host
ip mobile proxy-host
ip mobile secure
aaa-download
ip mobile secure
foreign-agent
ip mobile secure
home-agent
ip mobile secure
mn-aaa
ip mobile secure
visitor
ntp server
show ip mobile secure Displays the mobility SAs for a mobile host, mobile visitor, FA, or HA.
IP1R-388
Mobile IP Commands
ip mobile secure visitor
Syntax Description
lower-address
nai
Note
inbound-spi
outbound-spi
spi
Note
IP1R-389
Mobile IP Commands
ip mobile secure visitor
replay timestamp
(Optional) Specifies the number of seconds that the router uses for replay
protection.
Note
algorithm
Note
Note
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
12.2
Usage Guidelines
12.2(2)XC
12.2(13)T
The SA consists of an entity address, SPI, key, replay protection method, authentication algorithm, and
authentication algorithm mode (prefix-suffix).
The SA of a visiting mobile host on the MFAE and the SA of the home agent (HA) on the FHAE are
optional as long as they are not specified on the other entity. Multiple SAs for each entity can be
configured.
IP1R-390
Mobile IP Commands
ip mobile secure visitor
The Mobile IP protocol automatically synchronizes the time stamp used by the MN in its registration
requests. If the MN registration request time stamp is outside the visitor permitted replay protection time
interval, the visitor will respond with the number of seconds the MN time stamp is off relative to the
visitor clock. This allows the MN to adjust its time stamp and use synchronized time stamps in
subsequent registration attempts.
If you prefer that the MN first registration attempt always fall within the visitor replay protection time
interval, use Network Time Protocol (NTP) to synchronize the MN and visitor.
The HMAC-MD5 authentication algorithm is mandatory for MHAE, MFAE, and FHAE.
Note
Examples
NTP is not required for operation, but NTP can be used to synchronize time for all parties.
Related Commands
Command
Description
ip mobile host
ip mobile proxy-host
ip mobile secure
aaa-download
ip mobile secure
foreign-agent
ip mobile secure
home-agent
ip mobile secure
mn-aaa
ip mobile secure
proxy-host
ntp server
show ip mobile secure Displays the mobility SAs for a mobile host, mobile visitor, FA, or HA.
IP1R-391
Mobile IP Commands
ip mobile tunnel
ip mobile tunnel
To specify the settings of tunnels created by Mobile IP, use the ip mobile tunnel global configuration
command.
ip mobile tunnel {route-cache | path-mtu-discovery [age-timer {minutes | infinite}] |
nat {inside | outside}}
Syntax Description
Defaults
route-cache
path-mtu-discovery
Specifies when the tunnel MTU should expire if set by Path MTU
Discovery.
age-timer minutes
(Optional) Time interval in minutes after which the tunnel reestimates the
path MTU.
infinite
nat
inside
outside
Disabled.
If enabled, default value for the minutes argument is 10 minutes.
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
12.1(1)T
Usage Guidelines
nat
inside
outside
Path MTU Discovery is used by end stations to find a packet size that does not need fragmentation
between them. Tunnels must adjust their MTU to the smallest MTU interior to achieve this condition, as
described in RFC 2003.
The discovered tunnel MTU should be aged out periodically to possibly recover from a case where
suboptimum MTU existed at time of discovery. It is reset to the outgoing MTU of the interface.
Examples
The following example sets the discovered tunnel MTU to expire in 10 minutes (600 seconds):
ip mobile tunnel path-mtu-discovery age-timer 600
IP1R-392
Mobile IP Commands
ip mobile tunnel
Related Commands
Command
Description
IP1R-393
Mobile IP Commands
ip mobile virtual-network
ip mobile virtual-network
To define a virtual network, use the ip mobile virtual-network global configuration command. To
remove the virtual network, use the no form of this command.
ip mobile virtual-network net mask [address address]
no ip mobile virtual-network net mask
Syntax Description
net
mask
address address
Defaults
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
12.0(2)T
Usage Guidelines
Note
Examples
address
address
This command inserts the virtual network into the routing table to allow mobile nodes to use the virtual
network as their home network. The network is propagated when redistributed to other routing protocols.
You may need to include virtual networks when configuring the routing protocols. If this is the case, use
the redistribute mobile router configuration command to redistribute routes from one routing domain
to another.
The following example adds the virtual network 20.0.0.0 to the routing table and specifies that the home
agent IP address is configured on the loopback interface for that virtual network:
interface ethernet 0
ip addr 1.0.0.1 255.0.0.0
standby ip 1.0.0.10
standby name SanJoseHA
interface loopback 0
ip address 20.0.0.1 255.255.255.255
IP1R-394
Mobile IP Commands
ip mobile virtual-network
ip mobile home-agent
ip mobile virtual-network 20.0.0.0 255.255.0.0 20.0.0.1
ip mobile home-agent standby SanJoseHA virtual-network
ip mobile secure home-agent 1.0.0.2 spi 100 hex 00112233445566778899001122334455
Related Commands
Command
Description
ip mobile host
redistribute mobile
Redistributes routes from one routing domain into another routing domain.
IP1R-395
Mobile IP Commands
router mobile
router mobile
To enable Mobile IP on the router, use the router mobile global configuration command. To disable
Mobile IP, use the no form of this command.
router mobile
no router mobile
Syntax Description
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
Modification
12.0(1)T
Usage Guidelines
This command must be used in order to run Mobile IP on the router, as either a home agent or a foreign
agent. The process is started, and counters begin. Disabling Mobile IP removes all related configuration
commands, both global and interface.
Examples
Related Commands
Command
Description
Displays the parameters and current state of the active routing protocol
process.
show processes
IP1R-396
Mobile IP Commands
show ip mobile binding
Syntax Description
home-agent
address
summary
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
12.0(2)T
12.1(2)T
home-agent
address
Usage Guidelines
The home agent updates the mobility binding table in response to registration events from mobile nodes.
If the address argument is specified, bindings are shown for only that mobile node.
Examples
The following is sample output from the show ip mobile binding command:
Router# show ip mobile binding
Mobility Binding List:
Total 1
20.0.0.1:
Care-of Addr 68.0.0.31, Src Addr 68.0.0.31,
Lifetime granted 02:46:40 (10000), remaining 02:46:32
Flags SbdmGvt, Identification B750FAC4.C28F56A8,
Tunnel100 src 66.0.0.5 dest 68.0.0.31 reverse-allowed
Routing Options - (G)GRE
Field
Description
Total
<IP address>
Care-of Addr
IP1R-397
Mobile IP Commands
show ip mobile binding
Table 45
Field
Description
Src Addr
IP source address of the Registration Request as received by the home agent. Will
be either the colocated care-of address of a mobile node or an address of the
foreign agent.
Lifetime granted
The lifetime granted to the mobile node for this registration. Number of seconds
in parentheses.
Lifetime
remaining
The time remaining until the registration is expired. It has the same initial value as
lifetime granted, and is counted down by the home agent.
Flags
Registration flags sent by mobile node. Uppercase characters denote bit set. See
Table 41 for a description of each bit.
Identification
Identification used in that binding by the mobile node. This field has two purposes:
unique identifier for each request, and replay protection.
Tunnel
The tunnel used by the mobile node is characterized by the source and destination
addresses, and reverse-allowed or reverse-off for reverse tunnel. The default is
IPIP encapsulation, otherwise GRE will be displayed in the Routing Options field.
Routing Options
Routing options list all home agent-accepted services. For example, the V bit may
have been requested by the mobile node (shown in the Flags field), but the home
agent will not provide such service. Possible options are B (broadcast), D
(direct-to-mobile node), G (GRE), and T (reverse-tunnel).
IP1R-398
Mobile IP Commands
show ip mobile globals
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
This command shows the services provided by the home agent or foreign agent. Note the deviation from
RFC 2006: the foreign agent will not display busy or registration required information. Both are handled
on a per-interface basis (see the show ip mobile interface command in this chapter), not at the global
foreign agent level.
Examples
The following is sample output from the show ip mobile globals command:
Router# show ip mobile globals
IP Mobility global information:
Home Agent
Registration lifetime: 10:00:00 (36000 secs)
Broadcast enabled
Replay protection time: 7 secs
Reverse tunnel enabled
ICMP Unreachable enabled
Virtual networks
20.0.0.0/8
Foreign Agent is not enabled, no care-of address
0 interfaces providing service
Encapsulations supported: IPIP and GRE
Tunnel fast switching enabled
Discovered tunnel MTU aged out after 1:00:00
IP1R-399
Mobile IP Commands
show ip mobile globals
Field
Description
Home Agent
Registration
lifetime
Default lifetime for all mobile nodes. Number of seconds given in parentheses.
Roaming access list Determines which mobile nodes are allowed to roam. Displayed if defined.
Care-of access list
Broadcast
Reverse tunnel
ICMP Unreachable
Sends ICMP unreachable messages, which are enabled or disabled for virtual
network.
Virtual networks
Foreign Agent
Care-of addresses
advertised
Mobility Agent
Number of
See the show ip mobile interface command for more information on
interfaces providing advertising. Agent advertisements are sent when IRDP is enabled.
service
Encapsulations
supported
Tunnel fast
switching
Discovered tunnel
MTU
IP1R-400
Mobile IP Commands
show ip mobile host
Syntax Description
address
interface interface
network address
group
(Optional) All mobile node groups configured using the ip mobile host
command.
summary
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Examples
The following is sample output from the show ip mobile host command:
Router# show ip mobile host
20.0.0.1:
Allowed lifetime 10:00:00 (36000/default)
Roaming status -Unregistered-, Home link on virtual network 20.0.0.0/8
Accepted 0, Last time -neverOverall service time -neverDenied 0, Last time -neverLast code -never- (0)
Total violations 0
Tunnel to MN - pkts 0, bytes 0
Reverse tunnel from MN - pkts 0, bytes 0
Field
Description
<IP address>
Allowed lifetime
Allowed lifetime of the mobile node. By default, it is set to the global lifetime (ip
mobile home-agent lifetime command). Setting this lifetime will override global
value.
Roaming status
IP1R-401
Mobile IP Commands
show ip mobile host
Table 47
Field
Description
Home link
Accepted
Total number of service requests for the mobile node accepted by the home agent
(Code 0 + Code 1).
Last time
The time at which the most recent Registration Request was accepted by the home
agent for this mobile node.
Overall service
time
Overall service time that has accumulated for the mobile node since the home
agent last rebooted.
Denied
Total number of service requests for the mobile node denied by the home agent
(sum of all registrations denied with Code 128 through Code 159). See Table 41
for a list of codes.
Last time
The time at which the most recent Registration Request was denied by the home
agent for this mobile node.
Last code
The code indicating the reason why the most recent Registration Request for this
mobile node was rejected by the home agent.
Total violations
Tunnel to MN
Reverse tunnel
from MN
The following is sample output from the show ip mobile host group command for groups configured
with the ip mobile host command:
Router# show ip mobile host group
20.0.0.1 - 20.0.0.20:
Home link on virtual network 20.0.0.0 /8, Care-of ACL -noneSecurity associations on router, Allowed lifetime 10:00:00 (36000/default)
Related Commands
Field
Description
<IP address>
Home link
Care-of ACL
Security association
Allowed lifetime
Command
Description
show ip mobile
binding
IP1R-402
Mobile IP Commands
show ip mobile interface
Syntax Description
interface
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Examples
(Optional) IP address of mobile node. If not specified, all interfaces are shown.
The following is sample output from the show ip mobile interface command:
Router# show ip mobile interface
IP Mobility interface information:
IRDP disabled
Interface Ethernet3:
Prefix Length not advertised
Lifetime is 36000 seconds
Home Agent service provided
Field
Description
Interface
IRDP
Prefix Length
Lifetime
Registration required
Foreign agent requires registration even from those mobile nodes that
have acquired their own, colocated care-of address.
Busy
IP1R-403
Mobile IP Commands
show ip mobile interface
Table 49
Related Commands
Field
Description
Maximum number of
visitors allowed
Displayed if defined.
Command
Description
ip mobile foreign-agent
ip mobile host
ip mobile prefix-length
show ip irdp
IP1R-404
Mobile IP Commands
show ip mobile secure
Syntax Description
host
visitor
foreign-agent
home-agent
summary
address
IP address.
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
Examples
The following is sample output from the show ip mobile secure command:
Router# show ip mobile secure
Security Associations (algorithm,mode,replay protection,key):
20.0.0.6
SPI 300, MD5, Prefix-suffix, Timestamp +/- 7,
Key 00112233445566778899001122334455
Field
Description
20.0.0.6
IP address.
In/Out SPI
The SPI is the 4-byte opaque index within the Mobility Security
Association that selects the specific security parameters to be used to
authenticate the peer. Allows either SPI or In/Out SPI. The latter
specifies an inbound and outbound SPI pair. If an inbound SPI is received,
then outbound SPI will be used when a response is sent.
MD5
IP1R-405
Mobile IP Commands
show ip mobile secure
Table 50
Field
Description
Prefix-suffix
Authentication mode.
Timestamp
Key
The shared secret key for the security associations, in hexadecimal format.
IP1R-406
Mobile IP Commands
show ip mobile traffic
Syntax Description
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
Counters can be reset to zero using the clear ip mobile traffic command, which also allows you to undo
the reset.
Examples
The following is sample output from the show ip mobile traffic command:
Router# show ip mobile traffic
IP Mobility traffic:
Advertisements:
Solicitations received 0
Advertisements sent 0, response to solicitation 0
Home Agent Registrations:
Register 0, Deregister 0 requests
Register 0, Deregister 0 replied
Accepted 0, No simultaneous bindings 0
Denied 0, Ignored 0
Unspecified 0, Unknown HA 0
Administrative prohibited 0, No resource 0
Authentication failed MN 0, FA 0
Bad identification 0, Bad request form 0
Unavailable encap 0, reverse tunnel 0
Binding updates received 0, sent 0 total 0 fail 0
Binding update acks received 0, sent 0
Binding info request received 0, sent 0 total 0 fail 0
Binding info reply received 0 drop 0, sent 0 total 0 fail 0
Binding info reply acks received 0 drop 0, sent 0
Gratuitous 0, Proxy 0 ARPs sent
Foreign Agent Registrations:
Request in 0,
Forwarded 0, Denied 0, Ignored 0
Unspecified 0, HA unreachable 0
Administrative prohibited 0, No resource 0
Bad lifetime 0, Bad request form 0
Unavailable encapsulation 0, Compression 0
Unavailable reverse tunnel 0
Replies in 0
Forwarded 0, Bad 0, Ignored 0
Authentication failed MN 0, HA 0
IP1R-407
Mobile IP Commands
show ip mobile traffic
Field
Description
Solicitations
received
Advertisements
sent
response to
solicitation
Home Agent
Register requests
Deregister requests Total number of Registration Requests received by the home agent with a
lifetime of zero (requests to deregister).
Register replied
Deregister replied
Accepted
Total number of Registration Requests accepted by the home agent (Code 0).
No simultaneous
bindings
Denied
Ignored
Unspecified
Unknown HA
Administrative
prohibited
No resource
Authentication
failed MN
Authentication
failed FA
Bad identification
Unavailable encap
Unavailable reverse Total number of Registration Requests denied by the home agentreverse
tunnel
tunnel unavailable (Code 137).
IP1R-408
Mobile IP Commands
show ip mobile traffic
Table 51
Field
Description
Binding updates
A Mobile IP standby message sent from the active router to the standby router
when a registration request comes into the active router.
Binding update
acks
A Mobile IP standby message sent from the standby router to the active router
to acknowledge the reception of a binding update.
Binding info
request
A reply from the active router to the standby router that has part or all of the
binding table (depending on size).
An acknowledge message from the standby router to the active router that it has
received the binding info reply.
Gratuitous ARP
Total number of gratuitous ARPs sent by the home agent on behalf of mobile
nodes.
Total number of proxy ARPs sent by the home agent on behalf of mobile nodes.
Foreign Agent
Request in
Forwarded
Denied
Ignored
Unspecified
HA unreachable
Administrative
prohibited
No resource
Bad lifetime
Unavailable
encapsulation
Unavailable
compression
Unavailable reverse Total number of Registration Requests denied by the home agentreverse
tunnel
tunnel unavailable (Code 74).
Replies in
Forwarded
Total number of valid Registration Replies relayed to the mobile node by the
foreign agent.
IP1R-409
Mobile IP Commands
show ip mobile traffic
Table 51
Field
Description
Bad
Ignored
Authentication
failed MN
Authentication
failed HA
IP1R-410
Mobile IP Commands
show ip mobile tunnel
Syntax Description
interface
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
This command displays active tunnels created by Mobile IP. When no more users are on the tunnel, the
tunnel is released.
Examples
The following is sample output from the show ip mobile tunnel command:
Router# show ip mobile tunnel
Mobile Tunnels:
Tunnel0:
src 68.0.0.32, dest 68.0.0.48
encap IP/IP, mode reverse-allowed, tunnel-users 1
IP MTU 1480 bytes
HA created, fast switching enabled, ICMP unreachable enabled
0 packets input, 0 bytes, 0 drops
1591241 packets output, 1209738478 bytes
Field
Description
src
dest
encap
mode
tunnel-users
HA created
fast switching
Enabled or disabled.
IP1R-411
Mobile IP Commands
show ip mobile tunnel
Table 52
Related Commands
Field
Description
ICMP
unreachable
Enabled or disabled.
packets input
bytes
0 drops
Number of packets dropped. Packets are dropped when there are no visitors to
send to after the foreign agent deencapsulates incoming packets. This prevents
loops because the foreign agent will otherwise route the deencapsulated packets
back to the home agent.
packets output
bytes
Command
Description
IP1R-412
Mobile IP Commands
show ip mobile violation
Syntax Description
address
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
The most recent violation is saved for all the mobile nodes. A circular log holds up to 50 unknown
requesters, violators without security association. The oldest violations will be purged to make room for
new unknown requesters when the log limit is reached.
Security violation messages are logged at the informational level (see the logging global configuration
command). When logging is enabled to include this severity level, violation history can be displayed
using the show logging command.
Examples
The following is sample output from the show ip mobile violation command:
Router# show ip mobile violation
Security Violation Log:
Mobile Hosts:
20.0.0.1:
Violations: 1, Last time: 06/18/97 01:16:47
SPI: 300, Identification: B751B581.77FD0E40
Error Code: MN failed authentication (131), Reason: Bad authenticator (2)
Field
Description
20.0.0.1
Violations
Last time
SPI
SPI of the most recent security violation for this peer. If the security violation is
due to an identification mismatch, then this is the SPI from the Mobile-Home
Authentication Extension. If the security violation is due to an invalid
authenticator, then this is the SPI from the offending authentication extension. In
all other cases, it should be set to zero.
IP1R-413
Mobile IP Commands
show ip mobile violation
Table 53
Field
Description
Identification
Identification used in request or reply of the most recent security violation for this
peer.
Error Code
Error code in request or reply. See Table 51 for list of error codes.
Reason
Reason for the most recent security violation for this peer. Possible reasons are:
Bad authenticator
Bad identifier
Bad SPI
Other
IP1R-414
Mobile IP Commands
show ip mobile visitor
Syntax Description
pending
address
(Optional) IP address.
summary
Command Modes
EXEC
Command History
Release
Modification
12.0(1)T
Usage Guidelines
The foreign agent updates the table containing the visitor list of the foreign agent in response to
registration events from mobile nodes.
Examples
The following is sample output from the show ip mobile visitor command:
Router# show ip mobile visitor
Mobile Visitor List:
Total 1
20.0.0.1:
Interface Ethernet1/2, MAC addr 0060.837b.95ec
IP src 20.0.0.1, dest 67.0.0.31, UDP src port 434
HA addr 66.0.0.5, Identification B7510E60.64436B38
Lifetime 08:20:00 (30000) Remaining 08:19:16
Tunnel100 src 68.0.0.31, dest 66.0.0.5, reverse-allowed
Routing Options - (T)Reverse-tunnel
Field
Description
Total
20.0.0.1
Interface
MAC addr
IP src
IP1R-415
Mobile IP Commands
show ip mobile visitor
Table 54
Field
Description
IP dest
HA addr
Identification
Lifetime
Remaining
The number of seconds remaining until the registration is expired. It has the same
initial value as in the Lifetime field, and is counted down by the foreign agent.
Tunnel
The tunnel used by the mobile node is characterized by the source and destination
addresses, and reverse-allowed or reverse-off for reverse tunnel. The default is
IPIP encapsulation, otherwise GRE will be displayed in the Routing Options field.
Routing Options
Routing options list all foreign agent-accepted services, based on registration flags
sent by the mobile node. Possible options are:
(S) Mult-binding
(B) Broadcast
(D) Direct-to-MN
(M) MinIP
(G) GRE
(V) VJH-compress
(T) Reverse-tunnel
IP1R-416
Index
I N D E X
Symbols
<cr>
xvii
? command
accounting
IP1R-203
displaying
IP1R-250
displaying (example)
xvi
IP1R-251
logging
addresses
primary IP
IP1R-12
secondary IP
IP1R-346
IP1R-12
advertise command
IP1R-158
agent command
IP1R-197
IP1R-160
IP1R-171
IP1R-307
IP1R-306
IP1R-3
IP1R-2
access-list command
IP
extended
IP1R-180, IP1R-186
IP1R-174
IP1R-3
IP1R-3
IP1R-5
IP1R-175
IP1R-3
IP1R-5
access lists
IP1R-212
IP
extended
IP1R-160, IP1R-203
fragments
IP1R-197
time-based
bootfile command
IP1R-104
IP1R-203
IP1R-203, IP1R-236
IP1R-26, IP1R-32
IP1R-13
IP1R-171 to IP1R-173
violations, logging
IP1R-309
IP1R-201
IP1R-199
standard
bindid command
IP1R-13
broadcasts
IP
flooding
IP1R-28
IP1R-28
IP1R-158
IN-419
Index
xvii
default-router command
xx
IP1R-176
IP1R-7
IP1R-105
IP1R-106
dns-server
conventions
IP1R-350
IP1R-352
IP1R-354
IP1R-8
IP1R-10
IP1R-11
client command
IP1R-311
client-identifier
IP1R-109
client-identifier command
client-name
ordering
xi
xi
xi
IP1R-179
dynamic command
IP1R-113
IP1R-186
E
IP1R-110
IP
xix
IP1R-160
named dynamic
xvi
IP1R-186
xix
command syntax
displaying (example)
configurations, saving
xvii
xx
faildetect command
Feature Navigator
IN-420
IP1R-213
IP1R-109
conventions
viii
IP1R-113
commands
no form, using
v to vii
domain names
xi
Documentation CD-ROM
IP1R-110
client-name command
ix
online, accessing
IP1R-310
IP1R-112
feedback, providing
modules
IP1R-108
IP1R-112
documentation
IP1R-348
IP1R-180
dns-server command
IP1R-107
IP1R-178
IP1R-312
IP1R-177
IP1R-312
IP1R-6
IP1R-111
ix
IP1R-111
IP1R-313
Index
forwarding-agent command
fragment control
IP1R-196
idle command
xvi
IP1R-12
IP1R-314
help command
host command
commented
IP1R-26, IP1R-88
extended, creating
IP1R-73
fragments
IP1R-301
interfaces, tracking
IP1R-299
IP1R-287
IP1R-289
password, configuring
IP1R-293
HTTP
delay timer
IP1R-199
remark
IP1R-175, IP1R-240
time-based
IP1R-299
IP1R-287
IP1R-199
violations, accounting of
IP1R-203
IP1R-201, IP1R-236
IP1R-314
IP1R-158
accounting
access list violations, displaying
IP1R-312
IP1R-158
IP1R-171, IP1R-234
violations, logging
IP1R-299
IP1R-297
named
standard named
timers, setting
standard
IP1R-291
IP1R-186
IP1R-282
IP1R-291
preemption delay
IP1R-160, IP1R-197
IP1R-285, IP1R-287
preemption
IP1R-12
IP1R-197
MAC address
xvi
IP1R-175, IP1R-240
definition of extended
IP1R-115
burned-in address
IP1R-316
access lists
xvi
helper addresses, IP
IP1R-315
IP
idle timer
viii
IP1R-114
hardware platforms
priority
IP1R-116
IP1R-114
hardware-address command
enabling
IP1R-314
hardware address
IP1R-37
database, displaying
IP1R-250
IP1R-250
addresses
primary
secondary
IP1R-12
IP1R-12
broadcasts
IN-421
Index
flooding
IP1R-28
IP1R-28
IP1R-1
routing
enabling
ip domain-name command
IP1R-87
IP1R-25
IP1R-211
IP1R-30
speeding up flooding
ip access-list command
ip host command
IP1R-208
IP1R-14
IP1R-210
IP1R-120
IP1R-39
IP1R-355
IP1R-127
IP1R-128
IP1R-126
IP1R-130
IP1R-131
IP1R-132
IP1R-366
IP1R-371
IP1R-372
IP1R-373
IP1R-375
IP1R-129
IP1R-364
IP1R-368
IP1R-125
IP1R-360
IP1R-358
IP1R-122
IP1R-123
IP1R-217
ip mask-reply command
IP1R-37
IP1R-37
IP1R-15
IP1R-17
ip default-gateway command
IP1R-37
IP1R-117
ip broadcast-address command
ip classless command
IP1R-37
IP1R-12
IP1R-214
IP1R-215
IP1R-207
IP1R-32
IP1R-206
IP1R-30
IP1R-36
IP1R-209
IP1R-28
IP1R-35
ip hp-host command
IP1R-205
ip address command
ip helper-address command
IP1R-201
IP1R-203
ip accounting-list command
IP1R-26
IP1R-197
IP1R-199
ip accounting command
IP1R-212
IP1R-213
ip forward-protocol command
IP1R-30
ip access-group command
IP1R-378
IP1R-381
IP1R-384
IN-422
IP1R-24
IP1R-12
UDP datagrams
ip casa command
IP1R-23
IP1R-39
IP1R-19
IP1R-22
IP1R-75
local-area mobility
IP1R-136
ip directed-broadcast command
IP1R-12
IP1R-134,
IP1R-135
IP1R-386
Index
IP1R-392
IP1R-394
IP1R-44
IP1R-46, IP1R-49
IP1R-52
IP1R-230
IP1R-232
ip unnumbered command
IP1R-77, IP1R-79
ip unreachables command
IP1R-233
L
lease command
IP1R-59
absolute timeout
IP1R-62
IP1R-39
lock-and-key access
IP1R-61
IP1R-137
local-area mobility
IP1R-60
IP1R-231
IP1R-58
IP1R-161, IP1R-186
IP1R-63
IP1R-160, IP1R-186
IP1R-64
IP1R-229
IP1R-54
IP1R-56
ip netmask-format command
IP1R-41
IP1R-42
IP1R-228
IP1R-219
ip name-server command
ip nat command
IP1R-389
IP1R-65
IP1R-66
MAC addresses
IP1R-67
IP1R-287
IP1R-68
IP1R-58, IP1R-101
IP1R-69
maxconns command
IP1R-70
IP1R-71
IP1R-73
IP1R-220
ip routing command
IP1R-75
IP1R-317
IP1R-319
IP1R-320
ip source-route command
enabling
IP1R-76
IP1R-223
IP1R-225
IP1R-226
IP1R-42
IP1R-222
IP1R-199
IP1R-221
viii
modes
IP1R-74
ip redirects command
IP1R-321
IP1R-227
IP1R-44
IP1R-46, IP1R-49
IP1R-52
IP1R-92
translations
IN-423
Index
clearing
IP1R-8
displaying
IP1R-94
IP1R-392
IP1R-322
IP1R-65
option command
IP1R-138
netbios-name-server command
netmasks, definition
IP1R-138
IP1R-139
IP1R-58
parallel router
IP1R-140
next-server command
enabling
ix
IP1R-234
platforms, supported
Feature Navigator, identify using
IP1R-59
IP1R-60
predictor command
cache, clearing
dynamic entries
cache, displaying
xxi
IP1R-12
IP1R-10
prompts, system
IP1R-96
xvi
IP1R-65
holding time
IP1R-60
initiation, controlling
loop detection
Q
IP1R-71
network identifier
IP1R-66
IP1R-64
real command
IP1R-324
IP1R-325
release notes
IP1R-68
IP1R-59
server-only mode
remark command
IP1R-69
IP1R-67
reassign command
IP1R-61, IP1R-71
thresholds
xvi
IP1R-65
IP1R-67, IP1R-68
IP1R-240
IP1R-326
RFC
full text, obtaining
IP1R-70
IP1R-15
IP1R-62
IP1R-99
viii
IP1R-3
xxi
IP1R-323
IP1R-10
IN-424
IP1R-227
permit command
IP1R-61
authoritative response
security
IP1R-227
RFC 1191
IP1R-141
enabling
IP1R-13
IP1R-101
authentication
IP1R-142
IP1R-139
netbios-node-type command
access list
IP1R-3
xvi
Index
IP1R-26, IP1R-32
IP1R-229
IP1R-150
IP1R-231
IP1R-227
IP1R-77
IP1R-225
xvi
IP1R-396
IP1R-261
IP1R-87
IP1R-90
IP1R-91
IP1R-397
IP1R-399
IP1R-13
IP1R-401
S
secondary addresses, IP, using
IP1R-12
IP1R-405
IP1R-407
IP1R-411
selective acknowledgment,TCP
serverfarm command
IP1R-243
xx
IP1R-245
IP1R-247
IP1R-154
IP1R-328
IP1R-330
IP1R-82
IP1R-99
IP1R-262
IP1R-80
IP1R-332
IP1R-249
IP1R-250
IP1R-84
IP1R-337
IP1R-338
IP1R-263
IP1R-85
IP1R-253
IP1R-255
IP1R-256
IP1R-270
IP1R-275
IP1R-258
IP1R-145
IP1R-147
IP1R-148
named
IP1R-265
IP1R-267
IP1R-334
IP1R-335
IP1R-94
IP1R-96
IP1R-241
IP1R-415
IP1R-92
IP1R-144
IP1R-413
IP1R-229
IP1R-327
IP1R-403
security
IP1R-152
IP1R-277
IP1R-280
IP1R-199
IN-425
Index
numbered
IP1R-171
IP1R-282
IP1R-283
IP1R-285
IP1R-287
flooding
IP1R-289
speeding up flooding
IP1R-30
IP1R-30
UDP broadcasts
IP1R-290
IP1R-291
IP1R-293
DHCP
IP1R-297
IP1R-299
IP1R-301
start-forwarding-agent command
sticky command
virtual command
IP1R-302
IP1R-341
W
weight command
xvi
TCP
connection
connection-attempt time, setting
Path MTU Discovery, enabling
IP1R-230
IP1R-227
IP1R-1
IP1R-223
IP1R-222
IP1R-228
selective acknowledgment
time stamp
IP1R-229
IP1R-231
window size
IP1R-232
TCP/IP, description
IP1R-1
IP1R-101
IP1R-5
IP1R-231
transmit-interface command
IP1R-303
IN-426
IP1R-287
IP1R-12
description of
IP1R-342
IP1R-339
synguard command
IP1R-26, IP1R-32
IP1R-295
IP1R-26, IP1R-32
IP1R-344
xvi