Manual Cisco IOSXR PDF
Manual Cisco IOSXR PDF
Manual Cisco IOSXR PDF
Americas 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 527-0883
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 UCB's 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.
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network
topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional
and coincidental.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: http://
www.cisco.com/go/trademarks. Third-party trademarks mentioned 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. (1110R)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 iii
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
iv OL-28453-05
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 v
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
vi OL-28453-05
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 vii
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
viii OL-28453-05
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 ix
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
x OL-28453-05
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 xi
Contents
vrf 663
vrf(address-family) 664
vrf-group 666
vrf (description) 668
vrf (mhost) 670
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
xii OL-28453-05
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 xiii
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
xiv OL-28453-05
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 xv
Contents
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
xvi OL-28453-05
Preface
The Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series
Routercontains commands related to IP addresses and services features.
The preface contains the following sections:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 xvii
Preface
Obtaining Documentation and Submitting a Service Request
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
xviii OL-28453-05
Access List Commands
This module describes the Cisco IOS XR software commands used to configure IP Version 4 (IPv4) and IP
Version 6 (IPv6) access lists.
An access control list (ACL) consists of one or more access control entries (ACEs) that collectively define
the network traffic profile. This profile can then be referenced by Cisco IOS XR Software software features
such as traffic filtering, priority or custom queueing, and dynamic access control. Each ACL includes an
action element (permit or deny) and a filter element based on criteria such as source address, destination
address, protocol, and protocol-specific parameters.
For detailed information about ACL concepts, configuration tasks, and examples, refer to the Cisco IOS XR
IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series Router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 1
Access List Commands
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
2 OL-28453-05
Access List Commands
clear access-list ipv4
clear access-list ipv4 access-list name [ sequence-number | hardware { ingress | egress}] [interface type
interface-path-id][ location node-id | sequence number ]
Syntax Description access-list-name Name of a particular IPv4 access list. The name cannot contain a spaces or
quotation marks, but can include numbers.
sequence-number (Optional) Specific sequence number with which counters are cleared for an
access list. Range is 1 to 2147483646.
type Interface type. For more information, use the question mark (?) online help
function.
location node-id (Optional) Clears hardware resource counters from the designated node. The
node-id argument is entered in the rack/slot/module notation.
sequence number (Optional) Clears counters for an access list with a specific sequence number.
Range is 1 to 2147483646.
Command Default The default clears the specified IPv4 access list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 3
Access List Commands
clear access-list ipv4
Release Modification
Release 3.5.0 The interface keyword was added.
Usage Guidelines Use the clear access-list ipv4 command to clear counters for a specified configured access list. Use a sequence
number to clear counters for an access list with a specific sequence number.
Use the hardware keyword to clear counters for an access list that was enabled using the ipv4 access-group
command.
Use an asterisk ( *) in place of the access-list-name argument to clear all access lists.
Note An access list can be shared among multiple interfaces. Clearing hardware counters clears all counters for
all interfaces that use the specified access list in a given direction (ingress or egress).
Examples In the following example, counters for an access list named marketing are cleared:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
4 OL-28453-05
Access List Commands
clear access-list ipv4
Related Commands
Command Description
ipv4 access-group, on page 30 Filters incoming or outgoing IPv4 traffic on an
interface.
ipv4 access-list , on page 33 Defines an IPv4 access list and enters IPv4 access list
configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 5
Access List Commands
clear access-list ipv6
clear access-list ipv6 access-list-name [sequence-number| hardware {ingress| egress}] [interface type
interface-path-id] [location node-id| sequence number]
Syntax Description access-list-name Name of a particular IPv6 access list. The name cannot contain a spaces or
quotation marks, but can include numbers.
sequence-number (Optional) Specific sequence number for a particular access control entry
(ACE) with which counters are cleared for an access list. Range is 1 to
2147483644.
hardware (Optional) Identifies the access list as an access group for an interface.
type Optional) Interface type. For more information, use the question mark (?)
online help function.
location node-id (Optional) Clears counters for an access list enabled on a card interface. The
node-id argument is entered in the rack/slot/module notation.
sequence number (Optional) Specifies a specific sequence number that clears access list counters.
Range is 1 to 2147483644.
Command Default The default clears the specified IPv6 access list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
6 OL-28453-05
Access List Commands
clear access-list ipv6
Release Modification
Release 3.5.0 The interface keyword was added.
Usage Guidelines The clear access-list ipv6 command is similar to the clear access-list ipv4 command, except that it is
IPv6-specific.
Use the clear access-list ipv6 command to clear counters for a specified configured access list. Use a sequence
number to clear counters for an access list with a specific sequence number
Use thehardware keyword to clear counters for an access list that was enabled using the ipv6 access-group
command.
Use an asterisk (*) in place of the access-list-name argument to clear all access lists.
Note An access list can be shared among multiple interfaces. Clearing hardware counters clears all counters for
all interfaces that use the specified access list in a given direction (ingress or egress).
Examples In the following example, counters for an access list named marketing are cleared:
In the following example, counters for an access list named acl_hw_1 in the outbound direction are cleared:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 7
Access List Commands
clear access-list ipv6
Related Commands
Command Description
ipv6 access-list , on page 40 Defines an IPv6 access list and enters IPv6 access list
configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
8 OL-28453-05
Access List Commands
copy access-list ipv4
destination-acl Name of the destination access list where the contents of the source-acl
argument is copied.
Usage Guidelines Use the copy access-list ipv4 command to copy a configured access list. Use the source-acl argument to
specify the access list to be copied and the destination-acl argument to specify where to copy the contents
of the source access list. The destination-acl argument must be a unique name; if the destination-acl argument
name exists for an access list or prefix list, the access list is not copied. The copy access-list ipv4 command
checks that the source access list exists then checks the existing list names to prevent overwriting existing
access lists or prefix lists.
filesystem execute
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 9
Access List Commands
copy access-list ipv4
In the following example, copying the access list list-1 to list-3 is denied because a list-3 access list already
exists:
Related Commands
Command Description
ipv4 access-list , on page 33 Defines an IPv4 access list and enters IPv4 access list
configuration mode.
show access-lists ipv4 , on page 76 Displays the contents of all current IPv4 access lists.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
10 OL-28453-05
Access List Commands
copy access-list ipv6
destination-acl Destination access list where the contents of the source-acl argument is
copied.
Usage Guidelines Use the copy access-list ipv6 command to copy a configured access list. Use the source-acl argument to
specify the access list to be copied and the destination-acl argument to specify where to copy the contents of
the source access list. The destination-acl argument must be a unique name; if the destination-acl argument
name exists for an access list or prefix list, the access list is not copied. The copy access-list ipv6 command
checks that the source access list exists then checks the existing list names to prevent overwriting existing
access lists or prefix lists.
filesystem execute
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 11
Access List Commands
copy access-list ipv6
In this example, copying access list list-1 to list-3 is denied because a list-3 access list already exists:
Related Commands
Command Description
ipv6 access-list , on page 40 Defines an IPv6 access list and enters IPv6 access list
configuration mode.
show access-lists ipv6, on page 83 Displays the contents of all current IPv6 access lists.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
12 OL-28453-05
Access List Commands
deny (IPv4)
deny (IPv4)
To set conditions for an IPv4 access list, use the deny command in access list configuration mode. There are
two versions of the deny command: deny (source), and deny (protocol). To remove a condition from an
access list, use the no form of this command.
Syntax Description sequence-number (Optional) Number of the deny statement in the access list. This number determines
the order of the statements in the access list. The number can be from 1 to 2147483646.
(By default, the first statement is number 10, and the subsequent statements are
incremented by 10.) Use the resequence access-list command to change the number
of the first statement and increment subsequent statements of a configured access list.
source Number of the network or host from which the packet is being sent. There are three
alternative ways to specify the source:
• Use a 32-bit quantity in four-part dotted-decimal format.
• Use the any keyword as an abbreviation for a source and source-wildcard of
0.0.0.0 255.255.255.255.
• Use the host source combination as an abbreviation for a source and
source-wildcard of source 0.0.0.0.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 13
Access List Commands
deny (IPv4)
source-wildcard Wildcard bits to be applied to the source. There are three alternative ways to specify
the source wildcard:
• Use a 32-bit quantity in four-part dotted-decimal format. Place ones in the bit
positions you want to ignore.
• Use the any keyword as an abbreviation for a source and source-wildcard of
0.0.0.0 255.255.255.255.
• Use the host source combination as an abbreviation for a source and
source-wildcard of source 0.0.0.0.
protocol Name or number of an IP protocol. It can be one of the keywords ahp , esp , eigrp ,
gre , icmp , igmp , igrp , ip , ipinip , nos , ospf , pim , pcp , sctp , tcp , or udp
, or an integer from 0 to 255 representing an IP protocol number. To match any Internet
protocol (including ICMP, TCP, and UDP), use the ip keyword. ICMP, SCTP, and
TCP allow further qualifiers, which are described later in this table.
destination Number of the network or host to which the packet is being sent. There are three
alternative ways to specify the destination:
• Use a 32-bit quantity in four-part dotted-decimal format.
• Use the any keyword as an abbreviation for the destination and
destination-wildcard of 0.0.0.0 255.255.255.255.
• Use the host destination combination as an abbreviation for a destination and
destination-wildcard of destination 0.0.0.0.
destination-wildcard Wildcard bits to be applied to the destination. There are three alternative ways to specify
the destination wildcard:
• Use a 32-bit quantity in four-part dotted-decimal format. Place ones in the bit
positions you want to ignore.
• Use the any keyword as an abbreviation for a destination and
destination-wildcard of 0.0.0.0 255.255.255.255.
• Use the host destination combination as an abbreviation for a destination and
destination-wildcard of destination 0.0.0.0.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
14 OL-28453-05
Access List Commands
deny (IPv4)
precedence (Optional) Packets can be filtered by precedence level (as specified by a number from
precedence 0 to 7) or by the following names:
• routine –Match packets with routine precedence (0)
• priority –Match packets with priority precedence (1)
• immediate –Match packets with immediate precedence (2)
• flash –Match packets with flash precedence (3)
• flash-override –Match packets with flash override precedence (4)
• critical –Match packets with critical precedence (5)
• internet –Match packets with internetwork control precedence (6)
• network –Match packets with network control precedence (7)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 15
Access List Commands
deny (IPv4)
dscp dscp (Optional) Differentiated services code point (DSCP) provides quality of service control.
The values for dscp are as follows:
• 0—63–Differentiated services codepoint value
• af11–Match packets with AF11 dscp (001010)
• af12–Match packets with AF12 dscp (001100)
• af13–Match packets with AF13 dscp (001110)
• af21–Match packets with AF21 dscp (010010)
• af22–Match packets with AF22 dscp (010100)
• af23–Match packets with AF23 dscp (010110)
• af31–Match packets with AF31 dscp (011010)
• af32–Match packets with AF32 dscp (011100)
• af33–Match packets with AF33 dscp (011110)
• af41–Match packets with AF41 dscp (100010)
• af42—Match packets with AF42 dscp (100100)
• af43–Match packets with AF43 dscp (100110)
• cs1–Match packets with CS1(precedence 1) dscp (001000)
• cs2–Match packets with CS2(precedence 2) dscp (010000)
• cs3–Match packets with CS3(precedence 3) dscp (011000)
• cs4–Match packets with CS4(precedence 4) dscp (100000)
• cs5–Match packets with CS5(precedence 5) dscp (101000)
• cs6–Match packets with CS6(precedence 6) dscp (110000)
• cs7–Match packets with CS7(precedence 7) dscp (111000)
• default–Default DSCP (000000)
• ef–Match packets with EF dscp (101110)
fragments (Optional) Causes the software to examine fragments of IPv4 packets when applying
this access list entry. When this keyword is specified, fragments are subject to the access
list entry.
packet-length value (Optional) Packet length used to match only packets in the range of the length.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
16 OL-28453-05
Access List Commands
deny (IPv4)
log (Optional) Causes an informational logging message about the packet that matches the
entry to be sent to the console. (The level of messages logged to the console is controlled
by the logging console command.)
The message includes the access list number, whether the packet was permitted or
denied; the protocol, whether it was TCP, UDP, ICMP, or a number; and, if appropriate,
the source and destination addresses and source and destination port numbers. The
message is generated for the first packet that matches a flow, and then at 5-minute
intervals, including the number of packets permitted or denied in the prior 5-minute
interval.
log-input (Optional) Provides the same function as the log keyword, except that the logging
message also includes the input interface.
ttl value1 value2 (Optional) TTL value used for filtering. Range is 1 to 255.
If only value1 is specified, the match is against this value.
If both value1 and value2 are specified, the packet TTL is matched against the range
of TTLs between value1 and value2 .
icmp-type (Optional) ICMP message type for filtering ICMP packets. Range is from 0 to 255.
icmp-code (Optional) ICMP message code for filtering ICMP packets. Range is from 0 to 255.
igmp-type (Optional) IGMP message type (0 to 15) or message name for filtering IGMP packets,
as follows:
• dvmrp
• host-query
• host-report
• mtrace
• mtrace-response
• pim
• precedence
• trace
• v2-leave
• v2-report
• v3-report
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 17
Access List Commands
deny (IPv4)
operator (Optional) Operator is used to compare source or destination ports. Possible operands
are lt (less than), gt (greater than), eq (equal), neq (not equal), and range (inclusive
range).
If the operator is positioned after the source and source-wildcard values, it must match
the source port.
If the operator is positioned after the destination and destination-wildcard values, it
must match the destination port.
If the operator is positioned after the ttl keyword, it matches the TTL value.
The range operator requires two port numbers. All other operators require one port
number.
protocol-port Name of a TCP or UDP port. TCP and UDP port names are listed in the “Usage
Guidelines” section.
TCP port names can be used only when filtering TCP. UDP port names can be used
only when filtering UDP.
established (Optional) For the TCP protocol only: Indicates an established connection.
match-any (Optional) For the TCP protocol only: Filters on any combination of TCP flags.
match-all (Optional) For the TCP protocol only: Filters on all TCP flags.
+|- (Required) For the TCP protocol match-any , match-all : Prefix flag-name with +
or - . Use the + flag-name argument to match packets with the TCP flag set. Use the
- flag-name argument to match packets when the TCP flag is not set.
flag-name (Required) For the TCP protocol match-any , match-all . Flag names are: ack, fin,
psh, rst, syn.
Command Default There is no specific condition under which a packet is denied passing the IPv4 access list.
ICMP message generation is enabled by default.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
18 OL-28453-05
Access List Commands
deny (IPv4)
Release Modification
Release 3.3.0 The optional keywords match-any
and match-all were added for the
TCP protocol. The argument
flag-name was added for the TCP
protocol.
The match-any and match-all
keywords and the flag-name
argument are supported.
The optional keyword icmp-off
was added for the ICMP protocol.
Usage Guidelines Use the deny command following the ipv4 access-list command to specify conditions under which a packet
cannot pass the access list.
By default, the first statement in an access list is number 10, and the subsequent statements are incremented
by 10.
You can add permit, deny, or remark statements to an existing access list without retyping the entire list.
To add a new statement anywhere other than at the end of the list, create a new statement with an appropriate
entry number that falls between two existing entry numbers to indicate where it belongs.
If you want to add a statement between two consecutively numbered statements (for example, between lines
10 and 11), first use the resequence access-list command to renumber the first statement and increment the
entry number of each subsequent statement. The increment argument causes new, unused line numbers between
statements. Then add a new statement with the entry-number argument, specifying where it belongs in the
access list.
The following is a list of precedence names:
• critical
• flash
• flash-override
• immediate
• internet
• network
• priority
• routine
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 19
Access List Commands
deny (IPv4)
• 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
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
20 OL-28453-05
Access List Commands
deny (IPv4)
• redirect
• router-advertisement
• router-solicitation
• source-quench
• source-route-failed
• time-exceeded
• timestamp-reply
• timestamp-request
• traceroute
• ttl-exceeded
• unreachable
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. You can find port numbers corresponding to
these protocols by typing a ? in the place of a port number.
• bgp
• chargen
• cmd
• daytime
• discard
• domain
• echo
• exec
• finger
• ftp
• ftp-data
• gopher
• hostname
• ident
• irc
• klogin
• kshell
• login
• lpd
• nntp
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 21
Access List Commands
deny (IPv4)
• pim-auto-rp
• pop2
• pop3
• smtp
• sunrpc
• tacacs
• talk
• telnet
• time
• uucp
• whois
• www
The following UDP port names can be used instead of port numbers. Refer to the current Assigned Numbers
RFC to find a reference to these protocols. You can find port numbers corresponding to these protocols by
typing a ? in the place of a port number.
• biff
• bootpc
• bootps
• discard
• dnsix
• domain
• echo
• isakmp
• mobile-ip
• nameserver
• netbios-dgm
• netbios-ns
• netbios-ss
• ntp
• pim-auto-rp
• rip
• snmp
• snmptrap
• sunrpc
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
22 OL-28453-05
Access List Commands
deny (IPv4)
• syslog
• tacacs
• talk
• tftp
• time
• who
• xdmcp
Use the following flags in conjunction with the match-any and match-all keywords and the + and - signs
to select the flags to display:
• ack
• fin
• psh
• rst
• syn
For example, match-all + ack + syn displays TCP packets with both the ack and syn flags set, or match-any
+ ack - syn displays the TCP packets with the ack set or the syn not set.
Note If any ACE in an ACL contains ABF clause, this ACL cannot be applied at any non-zero compression
level.
Examples This example shows how to set a deny condition for an access list named Internet filter:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 23
Access List Commands
deny (IPv4)
Related Commands
Command Description
ipv4 access-group, on page 30 Filters incoming or outgoing IPv4 traffic on an
interface.
ipv4 access-list , on page 33 Defines an IPv4 access list and enters IPv4 access list
configuration mode.
permit (IPv4) , on page 49 Sets the permit conditions for an IPv4 access list
remark (IPv4) , on page 67 Inserts a helpful remark about an IPv4 access list
entry.
resequence access-list ipv4 , on page 71 Changes the starting entry number of the first
statement in an existing IPv4 access list, and the
number by which subsequent statements are
incremented.
show access-lists ipv4 , on page 76 Displays the contents of all current IPv4 access lists.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
24 OL-28453-05
Access List Commands
deny (IPv6)
deny (IPv6)
To set deny conditions for an IPv6 access list, use the deny command in IPv6 access list configuration mode.
To remove the deny conditions, use the no form of this command.
[sequence-number] deny protocol [operator {port | protocol-port}] [dscpvalue] [routing] [authen] [destopts]
[ fragments] [packet-length operator packet-length value ] [ log | log-input] [ttl operator ttl value ]
no sequence-number
Syntax Description sequence-number (Optional) Number of the deny statement in the access list. This number determines
the order of the statements in the access list. Range is 1 to 2147483646. (By default,
the first statement is number 10, and the subsequent statements are incremented by
10.) Use the resequence access-list command to change the number of the first
statement and increment subsequent statements of a configured access list.
protocol Name or number of an Internet protocol. It can be one of the keywords ahp , esp
, icmp , ipv6 , pcp , sctp , tcp , or udp , or an integer in the range from 0 to
255 representing an IPv6 protocol number.
source-ipv6-prefix / The source IPv6 network or class of networks about which to set deny conditions.
prefix-length This argument must be in the form documented in RFC 2373 where the address is
specified in hexadecimal using 16-bit values between colons.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 25
Access List Commands
deny (IPv6)
operator {port | (Optional) Operand that compares the source or destination ports of the specified
protocol-port} protocol. Operands are lt (less than), gt (greater than), eq (equal), neq (not equal),
and range (inclusive range).
If the operator is positioned after the source-ipv6-prefix / prefix-length argument,
it must match the source port.
If the operator is positioned after the destination-ipv6-prefix / prefix-length
argument, it must match the destination port.
The range operator requires two port numbers. All other operators require one port
number.
The port argument is the decimal number of a TCP or UDP port. Range is 0 to
65535. The protocol-port argument is the name of a TCP or UDP port. TCP port
names can be used only when filtering TCP. UDP port names can be used only
when filtering UDP.
destination-ipv6-prefix Destination IPv6 network or class of networks about which to set deny conditions.
/ prefix-length This argument must be in the form documented in RFC 2373 where the address is
specified in hexadecimal using 16-bit values between colons.
host Destination IPv6 host address about which to set deny conditions.
destination-ipv6-address This destination-ipv6-address argument must be in the form documented in RFC
2373 where the address is specified in hexadecimal using 16-bit values between
colons.
dscp value (Optional) Matches a differentiated services code point DSCP value against the
traffic class value in the Traffic Class field of each IPv6 packet header. Range is 0
to 63.
routing (Optional) Matches source-routed packets against the routing extension header
within each IPv6 packet header.
fragments (Optional) Matches non-initial fragmented packets where the fragment extension
header contains a nonzero fragment offset. The fragments keyword is an option
only if the operator [ port-number ] arguments are not specified.
packet-length value (Optional) Packet length used to match only packets in the range of the length.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
26 OL-28453-05
Access List Commands
deny (IPv6)
log (Optional) Causes an informational logging message about the packet that matches
the entry to be sent to the console. (The level of messages logged to the console is
controlled by the logging console command.)
The message includes the access list name and sequence number, whether the packet
was denied; the protocol, whether it was TCP, UDP, ICMP, or a number; and, if
appropriate, the source and destination addresses and source and destination port
numbers. The message is generated for the first packet that matches, and then at
5-minute intervals, including the number of packets denied in the prior 5-minute
interval.
log-input (Optional) Provides the same function as the log keyword, except that the logging
message also includes the input interface.
operator (Optional) Operand that compares the source or destination ports of the specified
protocol. Operands are lt (less than), gt (greater than), eq (equal), neq (not equal),
and range (inclusive range).
ttl value1 value2 (Optional) TTL value used for filtering. Range is 1 to 255.
If only value1 is specified, the match is against this value.
If both value1 and value2 are specified, the packet TTL is matched against the
range of TTLs between value1 and value2 .
icmp-type (Optional) ICMP message type for filtering ICMP packets. ICMP packets can be
filtered by ICMP message type. Range is 0 to 255.
icmp-code (Optional) ICMP message code for filtering ICMP packets. ICMP packets that are
filtered by ICMP message type can also be filtered by the ICMP message code.
Range is 0 to 255.
established (Optional) For the TCP protocol only: Indicates an established connection.
match-any (Optional) For the TCP protocol only: Filters on any combination of TCP flags.
match-all (Optional) For the TCP protocol only: Filters on all TCP flags.
+|- (Required) For the TCP protocol match-any , match-all : Prefix flag-name with
+ or - . Use the + flag-name argument to match packets with the TCP flag set.
Use the - flag-name argument to match packets when the TCP flag is not set.
flag-name (Required) For the TCP protocol match-any , match-all . Flag names are: ack,
fin, psh, rst, syn.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 27
Access List Commands
deny (IPv6)
Release 3.3.0 The optional keywords match-any and match-all were added for the TCP
protocol. The argument flag-name was added for the TCP protocol.
The match-any and match-all keywords and the flag-name argument are
supported.
The optional keyword icmp-off was added for the ICMP protocol.
Release 3.4.0 The optional keyword ttl and the associated arguments ttl value1, value2 and
operator, with range values, were added to the command.
Usage Guidelines The deny (IPv6) command is similar to the deny (IPv4) command, except that it is IPv6-specific.
Use the deny (IPv6) command following the ipv6 access-list command to define the conditions under which
a packet passes the access list.
Note If any ACE in an ACL contains ABF clause, this ACL cannot be applied at any non-zero compression
level.
Specifying ipv6 for the protocol argument matches against the IPv6 header of the packet.
By default, the first statement in an access list is number 10, and the subsequent statements are numbered in
increments of 10.
You can add permit, deny, or remark statements to an existing access list without retyping the entire list. To
add a new statement anywhere other than at the end of the list, create a new statement with an appropriate
entry number that falls between two existing entry numbers to indicate where it belongs.
Both the source-ipv6-prefix/prefix-length and destination-ipv6-prefix/prefix-length arguments are used for
traffic filtering (the source prefix filters traffic based upon the traffic source; the destination prefix filters
traffic based upon the traffic destination).
Note IPv6 prefix lists, not access lists, should be used for filtering routing protocol prefixes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
28 OL-28453-05
Access List Commands
deny (IPv6)
Examples The following example shows how to configure the IPv6 access list named toCISCO and applies the access
list to outbound traffic on Packet-over-SONET (POS) interface 0/2/0/2. Specifically, the first deny entry in
the list keeps all packets that have a destination TCP port number greater than 5000 from exiting out of POS
interface 0/2/0/2. The second deny entry in the list keeps all packets that have a source UDPo port number
less than 5000 from exiting out of POS interface 0/2/0/2. The second deny entry also logs all matches to the
console. The first permit entry in the list permits all ICMP packets to exit out of POS interface 0/2/0/2. The
second permit entry in the list permits all other traffic to exit out of POS interface 0/2/0/2. The second permit
entry is necessary because an implicit deny all condition is at the end of each IPv6 access list.
Related Commands
Command Description
ipv6 access-list , on page 40 Defines an IPv6 access list and enters IPv6 access list
configuration mode.
permit (IPv6) , on page 62 Sets permit conditions for an IPv6 access list.
remark (IPv6) , on page 69 Inserts a helpful remark about an IPv6 access list
entry.
resequence access-list ipv6 , on page 73 Changes the starting entry number of the first
statement in an existing IPv6 access list, and the
number by which subsequent statements are
incremented.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 29
Access List Commands
ipv4 access-group
ipv4 access-group
To control access to an interface, use the ipv4 access-group command in interface configuration mode. To
remove the specified access group, use the no form of this command.
Command Default The interface does not have an IPv4 access list applied to it.
Usage Guidelines Use the ipv4 access-group command to control access to an interface. To remove the specified access group,
use the no form of the command. Use the access-list-name argument to specify a particular IPv4 access list.
Use the ingress keyword to filter on inbound packets or theegress keyword to filter on outbound packets.
Use the hardware-count argument to enable hardware counters for the access group.
Permitted packets are counted only when hardware counters are enabled using the hardware-count argument.
Denied packets are counted whether hardware counters are enabled, or not.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
30 OL-28453-05
Access List Commands
ipv4 access-group
Filtering of MPLS packets through common ACL and interface ACL is not supported.
Note For packet filtering applications using the ipv4 access-group command, packet counters are maintained
in hardware for each direction. If an access group is used on multiple interfaces in the same direction, then
packets are counted for each interface that has the hardware-count argument enabled.
If the access list permits the addresses, the software continues to process the packet. If the access list denies
the address, the software discards the packet and returns an Internet Control Message Protocol (ICMP) host
unreachable message.
If the specified access list does not exist, all packets are passed.
By default, the unique or per-interface ACL statistics are disabled.
Examples The following example shows how to apply filters on packets inbound and outbound from interface 0/2/0/2:
The following example shows how to apply per-interface statistics in the hardware:
Related Commands
Command Description
clear access-list ipv4, on page 3 Resets the IPv4 access list match counters.
deny (IPv4) , on page 13 Sets the deny conditions for an ACE of an IPv4 access
list.
ipv4 access-list , on page 33 Defines an IPv4 access list and enters IPv4 access list
configuration mode.
permit (IPv4) , on page 49 Sets the permit conditions for an ACE of an IPv4
access list.
show access-lists ipv4 , on page 76 Displays the contents of all current IPv4 access lists.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 31
Access List Commands
ipv4 access-group
Command Description
show ipv4 interface Displays the usability status of interfaces configured
for IPv4.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
32 OL-28453-05
Access List Commands
ipv4 access-list
ipv4 access-list
To define an IPv4 access list by name, use the ipv4 access-list command in Global Configuration mode. To
remove all entries in an IPv4 access list, use the no form of this command.
Syntax Description name Name of the access list. Names cannot contain a space or quotation marks.
Usage Guidelines Use the ipv4 access-list command to configure an IPv4 access list. This command places the router in access
list configuration mode, in which the denied or permitted access conditions must be defined with the deny or
permit command.
Use the resequence access-list ipv4 command if you want to add a permit, deny, or remark statement
between consecutive entries in an existing IPv4 access list. Specify the first entry number (the base) and the
increment by which to separate the entry numbers of the statements. The software renumbers the existing
statements, thereby making room to add new statements with the unused entry numbers.
Use the ipv4 access-group command to apply the access list to an interface.
Examples This example shows how to define a standard access list named Internetfilter:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 33
Access List Commands
ipv4 access-list
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
34 OL-28453-05
Access List Commands
ipv4 access-list log-update rate
Syntax Description rate-number Rate at which IPv4 access hit logs are generated per second on the router.
Range is 1 to 1000.
Usage Guidelines The rate-number argument applies to all the IPv4 access-lists configured on the interfaces. That is, at any
given time there can be between 1 and 1000 log entries for the system.
Examples The following example shows how to configure a IPv4 access hit logging rate for the system:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 35
Access List Commands
ipv4 access-list log-update threshold
Syntax Description update-number Number of updates that are logged for every IPv4 access list configured on
the router. Range is 0 to 2147483647.
Command Default For IPv4 access lists, 2147483647 updates are logged.
Usage Guidelines IPv4 access list updates are logged at 5-minute intervals, following the first logged update. Configuring a
lower number of updates (a number lower than the default) is useful when more frequent update logging is
desired.
Examples This example shows how to configure a log threshold of ten updates for every IPv4 access list configured on
the router:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
36 OL-28453-05
Access List Commands
ipv4 access-list log-update threshold
Related Commands
Command Description
deny (IPv4) , on page 13 Sets the deny conditions for an IPv4 access list.
ipv4 access-list , on page 33 Defines an IPv4 access list and enters IPv4 access list
configuration mode.
permit (IPv4) , on page 49 Sets the permit conditions for an IPv4 access list
show access-lists ipv4 , on page 76 Displays the contents of all current IPv4 access lists.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 37
Access List Commands
ipv6 access-group
ipv6 access-group
To control access to an interface, use the ipv6 access-group command in interface configuration mode. To
remove the specified access group, use the no form of this command.
Syntax Description access-list-name Name of an IPv6 access list as specified by an ipv6 access-list
command.
Command Default The interface does not have an IPv6 access list applied to it.
Usage Guidelines The ipv6 access-group command is similar to the ipv4 access-group command, except that it is IPv6-specific.
Use the ipv6 access-group command to control access to an interface. To remove the specified access group,
use the no form of the command. Use the access-list-name to specify a particular IPv6 access list. Use
theingress keyword to filter on inbound packets or the egress keyword to filter on outbound packets.
Filtering of MPLS packets through common ACL and interface ACL is not supported.
Note For packet filtering applications using the ipv6 access-group command, packet counters are maintained
in hardware for each direction. If an access group is used on multiple interfaces in the same direction, then
packets are counted for each interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
38 OL-28453-05
Access List Commands
ipv6 access-group
If the access list permits the addresses, the software continues to process the packet. If the access list denies
the address, the software discards the packet and returns a rate-limited Internet Control Message Protocol
(ICMP) host unreachable message.
If the specified access list does not exist, all packets are passed.
By default, the unique or per-interface ACL statistics are disabled.
Examples This example shows how to apply filters on packets inbound and outbound from GigabitEthernet interface
0/2/0/2:
RP/0/0/CPU0:router(config)# interface gigabitethernet 0/2/0/2
RP/0/0/CPU0:router(config-if)# ipv6 access-group p-in-filter ingress
RP/0/0/CPU0:router(config-if)# ipv6 access-group p-out-filter egress
This example shows how to apply filters on packets inbound and outbound from GigabitEthernet interface
0/2/0/2:
RP/0/0/CPU0:router(config)# interface gigabitethernet 0/2/0/2
RP/0/0/CPU0:router(config-if)# ipv6 access-group p-in-filter ingress
RP/0/0/CPU0:router(config-if)# ipv6 access-group p-out-filter egress
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 39
Access List Commands
ipv6 access-list
ipv6 access-list
To define an IPv6 access list and to place the router in IPv6 access list configuration mode, use the ipv6
access-list command in interface configuration mode. To remove the access list, use the no form of this
command.
Syntax Description name Name of the IPv6 access list. Names cannot contain a space or quotation mark, or
begin with a numeric.
Usage Guidelines The ipv6 access-list command is similar to the ipv4 access-list command, except that it is IPv6-specific.
The IPv6 access lists are used for traffic filtering based on source and destination addresses, IPv6 option
headers, and optional, upper-layer protocol type information for finer granularity of control. IPv6 access lists
are defined by using the ipv6 access-list command in global configuration mode and their permit and deny
conditions are set by using the deny and permit commands in IPv6 access list configuration mode. Configuring
the ipv6 access-list command places the router in IPv6 access list configuration mode—the router prompt
changes to router (config-ipv6-acl)#. From IPv6 access list configuration mode, permit and deny conditions
can be set for the defined IPv6 access list.
See the “Examples” section for an example of a translated IPv6 access control list (ACL) configuration.
Note Every IPv6 access list has an implicit deny ipv6 any any statement as its last match condition. An IPv6
access list must contain at least one entry for the implicit deny ipv6 any any statement to take effect.
Note IPv6 prefix lists, not access lists, should be used for filtering routing protocol prefixes.
Use the ipv6 access-group interface configuration command with the access-list-name argument to apply an
IPv6 access list to an IPv6 interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
40 OL-28453-05
Access List Commands
ipv6 access-list
Note An IPv6 access list applied to an interface with the ipv6 access-group command filters traffic that is
forwarded, not originated, by the router.
Note Every IPv6 ACL has implicit permit icmp any any nd-na, permit icmp any any nd-ns, and deny ipv6
any any statements as its last match conditions. (The former two match conditions allow for ICMPv6
neighbor discovery.) An IPv6 ACL must contain at least one entry for the implicit deny ipv6 any any
statement to take effect.permit icmp any any nd-na permit icmp any any nd-ns deny ipv6 any any
deny ipv6 any any.
The IPv6 neighbor discovery process makes use of the IPv6 network layer service; therefore, by default, IPv6
ACLs implicitly allow IPv6 neighbor discovery packets to be sent and received on an interface. In IPv4, the
Address Resolution Protocol (ARP), which is equivalent to the IPv6 neighbor discovery process, makes use
of a separate data link layer protocol; therefore, by default, IPv4 ACLs implicitly allow ARP packets to be
sent and received on an interface.
Examples This example shows how to configure the IPv6 access list named list2 and applies the ACL to outbound traffic
on interface GigabitEthernet 0/2/0/2. Specifically, the first ACL entry keeps all packets from the network
fec0:0:0:2::/64 (packets that have the site-local prefix fec0:0:0:2 as the first 64 bits of their source IPv6 address)
from exiting out of interface GigabitEthernet 0/2/0/2. The second entry in the ACL permits all other traffic
to exit out of interface GigabitEthernet 0/2/0/2. The second entry is necessary because an implicit deny all
condition is at the end of each IPv6 ACL.
RP/0/0/CPU0:router(config)# ipv6 access-list list2
RP/0/0/CPU0:router(config-ipv6-acl)# 10 deny fec0:0:0:2::/64 any
RP/0/0/CPU0:router(config-ipv6-acl)# 20 permit any any
Note IPv6 is automatically configured as the protocol type in permit any any and deny any any statements
that are translated from global configuration mode to IPv6 access list configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 41
Access List Commands
ipv6 access-list
Note An IPv6 router does not forward to another network an IPv6 packet that has a link-local address as either
its source or destination address (and the source interface for the packet is different from the destination
interface for the packet).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
42 OL-28453-05
Access List Commands
ipv6 access-list log-update rate
Syntax Description rate-number Rate at which IPv6 access hit logs are generated per second on the router.
Range is 1 to 1000.
Usage Guidelines The rate-number argument applies to all the IPv6 access-lists configured on the interfaces. That is, at any
given time there can be between 1 and 1000 log entries for the system.
Examples This example shows how to configure a IPv6 access hit logging rate for the system:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 43
Access List Commands
ipv6 access-list log-update threshold
Syntax Description update-number Number of updates that are logged for every IPv6 access list configured on
the router. Range is 0 to 2147483647.
Command Default For IPv6 access lists, 350000 updates are logged.
Usage Guidelines The ipv6 access-list log-update threshold command is similar to the ipv4 access-list log-update threshold
command, except that it is IPv6-specific.
IPv6 access list updates are logged at 5-minute intervals, following the first logged update. Configuring a
lower number of updates (a number lower than the default) is useful when more frequent update logging is
desired.
Examples This example shows how to configure a log threshold of ten updates for every IPv6 access list configured on
the router:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
44 OL-28453-05
Access List Commands
ipv6 access-list maximum ace threshold
Syntax Description ace-number Maximum number of configurable ACEs allowed. Range is 50000 to 350000.
Command Default 50,000 ACEs are allowed for IPv6 access lists.
Usage Guidelines Use the ipv6 access-list maximum ace threshold command to set the maximum number of configurable
ACEs for IPv6 access lists. Out of resource (OOR) limits the number of ACEs that can be configured in the
system. When the maximum number of configurable ACEs is reached, configuration of new ACEs is rejected.
Examples This example shows how to set the maximum number of ACEs for IPv6 access lists to 75000:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 45
Access List Commands
ipv6 access-list maximum ace threshold
Related Commands
Command Description
show access-lists ipv6, on page 83 Displays the contents of all current IPv6 access lists.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
46 OL-28453-05
Access List Commands
ipv6 access-list maximum acl threshold
Syntax Description acl-number Maximum number of configurable ACLs allowed. Range is 1000 to 16000.
Usage Guidelines Use the ipv6 access-list maximum acl threshold command to set the maximum number of configurable IPv6
ACLs. Out of resource (OOR) limits the number of ACLs that can be configured in the system. When the
limit is reached, configuration of new ACLs is rejected.
Examples This example shows how to set the maximum number of configurable IPv6 ACLs to 1500:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 47
Access List Commands
ipv6 access-list maximum acl threshold
Related Commands
Command Description
show access-lists ipv6, on page 83 Displays the contents of all current IPv6 access lists.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
48 OL-28453-05
Access List Commands
permit (IPv4)
permit (IPv4)
To set conditions for an IPv4 access list, use the permit command in access list configuration mode. There
are two versions of the permit command: permit (source), and permit (protocol). To remove a condition
from an access list, use the no form of this command.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 49
Access List Commands
permit (IPv4)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
50 OL-28453-05
Access List Commands
permit (IPv4)
dscp dscp
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 51
Access List Commands
permit (IPv4)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
52 OL-28453-05
Access List Commands
permit (IPv4)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 53
Access List Commands
permit (IPv4)
ttl value [value1 ... value2] (Optional) TTL value used for
filtering. Range is 1 to 255.
If only value is specified, the
match is against this value.
If both value1 and value2 are
specified, the packet TTL is
matched against the range of TTLs
between value1 and value2 .
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
54 OL-28453-05
Access List Commands
permit (IPv4)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 55
Access List Commands
permit (IPv4)
Command Default There is no specific condition under which a packet is denied passing the IPv4 access list.
ICMP message generation is enabled by default.
Release 3.3.0 The optional keywords match-any and match-all were added for the TCP
protocol. The argument flag-name was added for the TCP protocol.
The match-any and match-all keywords and the flag-name argument are
supported.
The optional keyword icmp-off was added for the ICMP protocol.
Release 3.4.0 The optional keyword ttl and the associated arguments ttl value1, value2, and
operator, with range values, were added to the command.
Release 3.4.1 Both the default nexthop and nexthop keywords were added to support
ACL-based forwarding.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
56 OL-28453-05
Access List Commands
permit (IPv4)
Usage Guidelines Use the permit command following the ipv4 access-list command to specify conditions under which a packet
can pass the access list.
By default, the first statement in an access list is number 10, and the subsequent statements are incremented
by 10.
You can add permit, deny, or remark statements to an existing access list without retyping the entire list.
To add a new statement anywhere other than at the end of the list, create a new statement with an appropriate
entry number that falls between two existing entry numbers to indicate where it belongs.
If you want to add a statement between two consecutively numbered statements (for example, between lines
10 and 11), first use the resequence access-list command to renumber the first statement and increment the
entry number of each subsequent statement. The increment argument causes new, unused line numbers between
statements. Then add a new statement with the entry-number specifying where it belongs in the access list.
The following is a list of precedence names:
• critical
• flash
• flash-override
• immediate
• internet
• network
• priority
• routine
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 57
Access List Commands
permit (IPv4)
• 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
• router-advertisement
• router-solicitation
• source-quench
• source-route-failed
• time-exceeded
• timestamp-reply
• timestamp-request
• traceroute
• ttl-exceeded
• unreachable
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. You can find port numbers corresponding to
these protocols by typing a ? in the place of a port number.
• bgp
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
58 OL-28453-05
Access List Commands
permit (IPv4)
• chargen
• cmd
• daytime
• discard
• domain
• echo
• exec
• finger
• ftp
• ftp-data
• gopher
• hostname
• ident
• irc
• klogin
• kshell
• login
• lpd
• nntp
• pim-auto-rp
• pop2
• pop3
• smtp
• sunrpc
• tacacs
• talk
• telnet
• time
• uucp
• whois
• www
The following UDP port names can be used instead of port numbers. Refer to the current Assigned Numbers
RFC to find a reference to these protocols. You can find port numbers corresponding to these protocols by
typing a ? in the place of a port number.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 59
Access List Commands
permit (IPv4)
• biff
• bootpc
• bootps
• discard
• dnsix
• domain
• echo
• isakmp
• mobile-ip
• nameserver
• netbios-dgm
• netbios-ns
• netbios-ss
• ntp
• pim-auto-rp
• rip
• snmp
• snmptrap
• sunrpc
• syslog
• tacacs
• talk
• tftp
• time
• who
• xdmcp
Use the following flags in conjunction with the match-any and match-all keywords and the + and - signs to
select the flags to display:
• ack
• fin
• psh
• rst
• syn
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
60 OL-28453-05
Access List Commands
permit (IPv4)
For example, match-all +ack +syn displays TCP packets with both the ack and syn flags set, or match-any
+ack - syn displays the TCP packets with the ack set or the syn not set.
Examples The following example shows how to set a permit condition for an access list named Internetfilter:
Related Commands
Command Description
deny (IPv4) , on page 13 Sets the conditions for an IPv4
access list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 61
Access List Commands
permit (IPv6)
permit (IPv6)
To set permit conditions for an IPv6 access list, use the permit command in IPv6 access list configuration
mode. To remove the permit conditions, use the no form of this command.
no sequence-number
Syntax Description sequence-number (Optional) Number of the permit statement in the access list. This number
determines the order of the statements in the access list. Range is 1 to 2147483646.
(By default, the first statement is number 10, and the subsequent statements are
incremented by 10.) Use the resequence access-list command to change the
number of the first statement and increment subsequent statements of a configured
access list.
protocol Name or number of an Internet protocol. It can be one of the keywords ahp , esp
, icmp , ipv6 , pcp , sctp , tcp , or udp , or an integer in the range from 0 to
255 representing an IPv6 protocol number.
source-ipv6-prefix / Source IPv6 network or class of networks about which to set permit conditions.
prefix-length This argument must be in the form documented in RFC 2373 where the address is
specified in hexadecimal using 16-bit values between colons.
default (Optional) Specifies the default next hop for this entry.
If the default keyword is configured, ACL-based forwarding action is taken only
if the results of the PLU lookup for the destination of the packets determine a default
route; that is, no specified route is determined to the destination of the packet.
nexthop1, nexthop2, (Optional) Forwards the specified next hop for this entry.
nexthop3
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
62 OL-28453-05
Access List Commands
permit (IPv6)
host Source IPv6 host address about which to set permit conditions.
source-ipv6-address This source-ipv6-address argument must be in the form documented in RFC 2373
where the address is specified in hexadecimal using 16-bit values between colons.
operator {port | (Optional) Operand that compares the source or destination ports of the specified
protocol-port} protocol. Operands are lt (less than), gt (greater than), eq (equal), neq (not equal),
and range (inclusive range).
If the operator is positioned after the source-ipv6-prefix / prefix-length argument,
it must match the source port.
If the operator is positioned after the destination-ipv6-prefix / prefix-length
argument, it must match the destination port.
The range operator requires two port numbers. All other operators require one port
number.
The port argument is the decimal number of a TCP or UDP port. A port number
is a number from 0 to 65535. The protocol-port argument is the name of a TCP
or UDP port. TCP port names can be used only when filtering TCP. UDP port
names can be used only when filtering UDP.
destination-ipv6-prefix Destination IPv6 network or class of networks about which to set permit conditions.
/ prefix-length This argument must be in the form documented in RFC 2373 where the address is
specified in hexadecimal using 16-bit values between colons.
host Specifies the destination IPv6 host address about which to set permit conditions.
destination-ipv6-address This destination-ipv6-address argument must be in the form documented in RFC
2373 where the address is specified in hexadecimal using 16-bit values between
colons.
dscp value (Optional) Matches a differentiated services code point (DSCP) value against the
traffic class value in the Traffic Class field of each IPv6 packet header. Range is 0
to 63.
routing (Optional) Matches source-routed packets against the routing extension header
within each IPv6 packet header.
fragments (Optional) Matches non-initial fragmented packets where the fragment extension
header contains a nonzero fragment offset. The fragments keyword is an option
only if the operator [ port-number ] arguments are not specified.
packet-length value (Optional) Packet length used to match only packets in the range of the length.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 63
Access List Commands
permit (IPv6)
log (Optional) Causes an informational logging message about the packet that matches
the entry to be sent to the console. (The level of messages logged to the console is
controlled by the logging console command.)
The message includes the access list name and sequence number, whether the packet
was permitted; the protocol, whether it was TCP, UDP, ICMP, or a number; and,
if appropriate, the source and destination addresses and source and destination port
numbers. The message is generated for the first packet that matches, and then at
5-minute intervals, including the number of packets permitted in the prior 5-minute
interval.
log-input (Optional) Provides the same function as the log keyword, except that the logging
message also includes the input interface.
operator (Optional) Operand that compares the source or destination ports of the specified
protocol. Operands are lt (less than), gt (greater than), eq (equal), neq (not equal),
and range (inclusive range).
ttl value1 value2 (Optional) TTL value used for filtering. Range is 1 to 255.
If only value1 is specified, the match is against this value.
If both value1 and value2 are specified, the packet TTL is matched against the
range of TTLs between value1 and value2 .
icmp-type (Optional) ICMP message type for filtering ICMP packets. Range is from 0 to 255.
icmp-code (Optional) ICMP message code for filtering ICMP packets. Range is from 0 to 255.
established (Optional) For the TCP protocol only: Indicates an established connection.
match-any (Optional) For the TCP protocol only: Filters on any combination of TCP flags.
match-all (Optional) For the TCP protocol only: Filters on all TCP flags.
+ | - (Required) For the TCP protocol match-any , match-all : Prefix flag-name with
+ or - . Use the + flag-name argument to match packets with the TCP flag set.
Use the - flag-name argument to match packets when the TCP flag is not set.
flag-name (Required) For the TCP protocol match-any , match-all . Flag names are: ack,
fin, psh, rst, syn.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
64 OL-28453-05
Access List Commands
permit (IPv6)
Release 3.3.0 The optional keywords match-any and match-all were added for the TCP
protocol. The argument flag-name was added for the TCP protocol.
The match-any and match-all keywords and the flag-name argument are
supported .
The optional keyword icmp-off was added for the ICMP protocol.
Release 3.4.0 The optional keyword ttl and the associated arguments ttl value1, value2, and
operator, with range values, were added to the command.
Usage Guidelines The permit (IPv6) command is similar to the permit (IPv4) command, except that it is IPv6-specific.
Use the permit (IPv6) command following the ipv6 access-list command to define the conditions under which
a packet passes the access list.
Specifying ipv6 for the protocol argument matches against the IPv6 header of the packet.
By default, the first statement in an access list is number 10, and the subsequent statements are numbered in
increments of 10.
You can add permit, deny, or remark statements to an existing access list without retyping the entire list.
To add a new statement anywhere other than the end of the list, create a new statement with an appropriate
entry number that falls between two existing entry numbers to indicate where it belongs.
Both the source-ipv6-prefix/prefix-length and destination-ipv6-prefix/prefix-length arguments are used for
traffic filtering (the source prefix filters traffic based upon the traffic source; the destination prefix filters
traffic based upon the traffic destination).
Note IPv6 prefix lists, and not access lists, should be used for filtering routing protocol prefixes.
The fragments keyword is an option available only if the operator [port | protocol-port] arguments are not
specified.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 65
Access List Commands
permit (IPv6)
Examples This example shows how to configure the IPv6 access list named toCISCO and applies the access list to
outbound traffic on interface 0/2/0/2. Specifically, the first deny entry in the list keeps all packets that have
a destination TCP port number greater than 5000 from exiting out of interface 0/2/0/2. The second deny entry
in the list keeps all packets that have a source UDP port number less than 5000 from exiting out of
interface 0/2/0/2. The second deny entry also logs all matches to the console. The first permit entry in the list
permits all ICMP packets to exit out of interface 0/2/0/2. The second permit entry in the list permits all other
traffic to exit out of interface 0/2/0/2. The second permit entry is necessary because an implicit deny all
condition is at the end of each IPv6 access list.
Related Commands
Command Description
deny (IPv6) , on page 25 Sets deny conditions for an IPv6 access list.
ipv6 access-list , on page 40 Defines an IPv6 access list and enters IPv6 access list
configuration mode.
remark (IPv6) , on page 69 Inserts a helpful remark about an IPv6 access list
entry.
resequence access-list ipv6 , on page 73 Changes the starting entry number of the first
statement in an existing IPv6 access list, and the
number by which subsequent statements are
incremented.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
66 OL-28453-05
Access List Commands
remark (IPv4)
remark (IPv4)
To write a helpful comment (remark) for an entry in an IPv4 access list, use the remark command in IPv4
access list configuration mode. To remove the remark, use the no form of this command.
Syntax Description sequence-number (Optional) Number of the remark statement in the access list. This number
determines the order of the statements in the access list. Range is 1 to 2147483646.
(By default, the first statement is number 10; subsequent statements are incremented
by 10.)
remark Comment that describes the entry in the access list, up to 255 characters long.
Usage Guidelines Use the remark command to write a helpful comment for an entry in an IPv4 access list. To remove the
remark, use the no form of this command.
The remark can be up to 255 characters; anything longer is truncated.
If you know the sequence number of the remark you want to delete, you can remove it by entering the no
sequence-number command.
Use the resequence access-list ipv4 command if you want to add statements to an existing access list and the
sequence numbers of consecutive entries do not permit additional statements.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 67
Access List Commands
remark (IPv4)
Examples In the following example, the user1 subnet is not allowed to use outbound Telnet:
Related Commands
Command Description
deny (IPv4) , on page 13 Sets the deny conditions for an IPv4 access list.
ipv4 access-list , on page 33 Defines an IPv4 access list and enters IPv4 access list
configuration mode.
permit (IPv4) , on page 49 Sets the permit conditions for an IPv4 access list
resequence access-list ipv4 , on page 71 Changes the starting entry number of the first
statement in an existing IPv4 access list, and the
number by which subsequent statements are
incremented.
show access-lists ipv4 , on page 76 Displays the contents of all current IPv4 access lists.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
68 OL-28453-05
Access List Commands
remark (IPv6)
remark (IPv6)
To write a helpful comment (remark) for an entry in an IPv6 access list, use the remark command in IPv6
access list configuration mode. To remove the remark, use the no form of this command.
Syntax Description sequence-number (Optional) Number of the remark statement in the access list. This number
determines the order of the statements in the access list. Range is 1 to 2147483646.
(By default, the first statement is number 10, and the subsequent statements are
incremented by 10.)
remark Comment that describes the entry in the access list, up to 255 characters long.
Usage Guidelines The remark (IPv6) command is similar to the remark (IPv4) command, except that it is IPv6-specific.
Use the remark command to write a helpful comment for an entry in an IPv6 access list. To remove the
remark, use the no form of this command.
The remark can be up to 255 characters; anything longer is truncated.
If you know the sequence number of the remark you want to delete, you can remove it by entering the no
sequence-number command.
Use the resequence access-list ipv6 command if you want to add statements to an existing access list and the
sequence numbers of consecutive entries do not permit additional statements.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 69
Access List Commands
remark (IPv6)
Related Commands
Command Description
deny (IPv6) , on page 25 Sets the deny conditions for an IPv6 access list.
ipv6 access-list , on page 40 Defines an IPv6 access list and enters IPv6 access list
configuration mode.
permit (IPv6) , on page 62 Sets permit conditions for an IPv6 access list
resequence access-list ipv6 , on page 73 Changes the starting entry number of the first
statement in an existing IPv6 access list, and the
number by which subsequent statements are
incremented.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
70 OL-28453-05
Access List Commands
resequence access-list ipv4
base (Optional) Number of the first statement in the specified access list, which determines
its order in the access list. Maximum value is 2147483644. Default is 10.
increment (Optional) Number by which the base sequence number is incremented for subsequent
statements. Maximum value is 2147483644. Default is 10.
Usage Guidelines Use the resequence access-list ipv4 command to add a permit, deny, or remark statement between consecutive
entries in an existing IPv4 access list. Specify the first entry number (the base) and the increment by which
to separate the entry numbers of the statements. The software renumbers the existing statements, thereby
making room to add new statements with the unused entry numbers.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 71
Access List Commands
resequence access-list ipv4
You want to add additional entries in the access list. First you resequence the entries, renumbering the statements
starting with number 20 and an increment of 5, and then you have room for four additional statements between
each of the existing statements:
Related Commands
Command Description
deny (IPv4) , on page 13 Sets the deny conditions for an IPv4 access list.
ipv4 access-list , on page 33 Defines an IPv4 access list and enters IPv4 access list
configuration mode.
permit (IPv4) , on page 49 Sets the permit conditions for an IPv4 access list
remark (IPv4) , on page 67 Inserts a helpful remark about an IPv4 access list .
entry
show access-lists ipv4 , on page 76 Displays the contents of all current IPv4 access lists.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
72 OL-28453-05
Access List Commands
resequence access-list ipv6
base (Optional) Number of the first statement in the specified access list, which determines
its order in the access list. Maximum value is 2147483646. Default is 10.
increment (Optional) Number by which the base sequence number is incremented for subsequent
statements. Maximum value is 2147483644. Default is 10.
Usage Guidelines The resequence access-list ipv6 command is similar to the resequence access-list ipv4 command, except
that it is IPv6 specific.
Use the resequence access-list ipv6 command to add a permit, deny, or remark statement between consecutive
entries in an existing IPv6 access list. Specify the first entry number (the base) and the increment by which
to separate the entry numbers of the statements. The software renumbers the existing statements, thereby
making room to add new statements with the unused entry numbers.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 73
Access List Commands
resequence access-list ipv6
Examples In the following example, suppose you have an existing access list:
Related Commands
Command Description
deny (IPv6) , on page 25 Sets the deny conditions for an IPv6 access list.
ipv6 access-list , on page 40 Defines an IPv6 access list and enters IPv6 access list
configuration mode.
permit (IPv6) , on page 62 Set permit conditions for an IPv6 access list.
remark (IPv6) , on page 69 Inserts a helpful remark about an IPv6 access list
entry.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
74 OL-28453-05
Access List Commands
show access-lists afi-all
Examples This sample output is from the show access-lists afi-all command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 75
Access List Commands
show access-lists ipv4
show access-lists ipv4 [access-list-name hardware {ingress| egress} [interface type interface-path-id]
{sequence number| location node-id}| summary [ access-list-name ]| access-list-name [ sequence-number ]|
maximum [ detail interface type interface-path-id ] [usage pfilter { location node-id | all}]]
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
76 OL-28453-05
Access List Commands
show access-lists ipv4
Release 3.3.0 The optional keywords usage and pfilter were added.
Usage Guidelines Use the show access-lists ipv4 command to display the contents of all IPv4 access lists. To display the contents
of a specific IPv4 access list, use the name argument. Use the sequence-number argument to specify the
sequence number of the access list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 77
Access List Commands
show access-lists ipv4
Use the hardware , ingress or egress , and location keywords to display the access list hardware contents
and counters for all interfaces that use the specified access list in a given direction (ingress or egress). To
display the contents of a specific access list entry, use the sequence number keyword and argument. The
access group for an interface must be configured using the ipv4 access-group command for access list hardware
counters to be enabled.
Use the show access-lists ipv4 summary command to display a summary of all current IPv4 access lists. To
display a summary of a specific IPv4 access list, use the name argument.
Use the show access-lists ipv4 maximum detail command to display the OOR details for IPv4 access lists.
OOR limits the number of ACLs and ACEs that can be configured in the system. When the limit is reached,
configuration of new ACLs or ACEs is rejected.
Use the show access-list ipv4 usage command to display a summary of all interfaces and access lists
programmed on the specified line card.
Examples In the following example, the contents of all IPv4 access lists are displayed:
Field Description
hw matches Number of hardware matches.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
78 OL-28453-05
Access List Commands
show access-lists ipv4
Field Description
Sequence Number Each ACE sequence number is programmed into
hardware with all the fields that are corresponding to
the values set in ACE.
Per ace icmp If Per ace icmp is set to on in the hardware, ICMP is
unreachable, is rate-limited, and is generated. The
default is set to on.
In the following example, a summary of all IPv4 access lists are displayed:
ACL Summary:
Total ACLs configured: 3
Total ACEs configured: 11
This table describes the significant fields shown in the display.
Field Description
Total ACLs configured Number of configured IPv4 ACLs.
In the following example, the OOR details of the IPv4 access lists are displayed:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 79
Access List Commands
show access-lists ipv4
Field Description
Default max configurable acls Default maximum number of configurable IPv4 ACLs
allowed.
Default max configurable aces Default maximum number of configurable IPv4 ACEs
allowed.
Related Commands
Command Description
clear access-list ipv4, on page 3 Resets the IPv4 access list match counters.
deny (IPv4) , on page 13 Sets the deny conditions for an ACE of an IPv4 access
list.
ipv4 access-list , on page 33 Defines an IPv4 access list and enters IPv4 access list
configuration mode.
permit (IPv4) , on page 49 Sets the permit conditions for an ACE of an IPv4
access list.
remark (IPv4) , on page 67 Inserts a helpful remark about an IPv4 access list
entry.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
80 OL-28453-05
Access List Commands
show access-lists ipv4
Command Description
resequence access-list ipv4 , on page 71 Changes the starting entry number of the first
statement in an existing IPv4 access list, and the
number by which subsequent statements are
incremented.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 81
Access List Commands
show access-lists ipv4 standby
Syntax Description access-list name (Optional) Name of a particular IPv4 access list. The name cannot contain
spaces or quotation marks, but can include numbers.
summary (Optional) Displays a summary of all current IPv4 standby access lists.
Usage Guidelines Use the show access-lists ipv4 standby command to display the contents of current IPv4 standby access lists.
To display the contents of a specific IPv4 access list, use the name argument.
Use the show access-lists ipv4 standby summary command to display a summary of all standby IPv4 access
lists.
Examples In this example, the contents of all IPv4 access lists are displayed:
ACL Summary:
Total ACLs configured: 4
Total ACEs configured: 22
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
82 OL-28453-05
Access List Commands
show access-lists ipv6
show access-lists ipv6 [access-list-name hardware {ingress| egress} [interface type interface-path-id]
{sequence number| location node-id}| summary [ access-list-name ]| access-list-name [ sequence-number ]|
maximum [detail] [usage pfilter { location node-id | all}]]
Syntax Description access-list-name Name of a particular IPv6 access list. The name cannot contain a spaces or
quotation marks, but can include numbers.
sequence number (Optional) Sequence number of a particular IPv6 access list. Range is 1 to
2147483646.
type Interface type. For more information, use the question mark (?) online help
function.
location node-id Location of a particular IPv4 access list. The node-id argument is entered in
the rack/slot/module notation.
maximum Displays the current maximum number of configurable IPv6 access control
lists (ACLs) and access control entries (ACEs).
usage (Optional) Displays the usage of the access list on a given line card.
pfilter Displays the packet filtering usage for the specified line card.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 83
Access List Commands
show access-lists ipv6
Release 3.3.0 The optional keywords usage and pfilter were added.
Usage Guidelines The show access-lists ipv6 command is similar to the show access-lists ipv4 command, except that it is IPv6
specific.
Use the show access-lists ipv6 command to display the contents of all IPv6 access lists. To display the contents
of a specific IPv6 access list, use the name argument. Use the sequence-number argument to specify the
sequence number of the access list.
Use the hardware , ingress or egress, and location keywords to display the access list hardware contents
and counters for all interfaces that use the specified access list in a given direction (ingress or egress). To
display the contents of a specific access list entry, use the sequence number keyword and argument. The
access group for an interface must be configured using the ipv6 access-group command for access list hardware
counters to be enabled.
Use the show access-lists ipv6 summary command to display a summary of all current IPv6 access lists. To
display a summary of a specific IPv6 access list, use the name argument.
Use the show access-lists ipv6 maximum detail command to display the OOR details for IPv6 access lists.
OOR limits the number of ACLs and ACEs that can be configured in the system. When the limit is reached,
configuration of new ACLs or ACEs is rejected.
Use the show access-list ipv6 ipv4 usage command to display a summary of all interfaces and access lists
programmed on the specified line card.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
84 OL-28453-05
Access List Commands
show access-lists ipv6
Examples In the following example, the contents of all IPv6 access lists are displayed:
Field Description
hw matches Number of hardware matches.
ACL Summary:
Total ACLs configured: 3
Total ACEs configured: 11
This table describes the significant fields shown in the display.
Field Description
Total ACLs configured Number of configured IPv6 ACLs.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 85
Access List Commands
show access-lists ipv6
Field Description
Total ACEs configured Number of configured IPV6 ACEs.
In the following example, the OOR details of the IPv6 access lists are displayed:
Field Description
Default max configurable acls Default maximum number of configurable IPv6 ACLs
allowed.
Default max configurable aces Default maximum number of configurable IPv6 ACEs
allowed.
Related Commands
Command Description
copy access-list ipv6, on page 11 Copies an existing IPv6 access list.
deny (IPv6) , on page 25 Sets the deny conditions for an IPv6 access list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
86 OL-28453-05
Access List Commands
show access-lists ipv6
Command Description
ipv6 access-list , on page 40 Defines an IPv6 access list and enters IPv6 access list
configuration mode.
permit (IPv6) , on page 62 Set permit conditions for an IPv6 access list.
remark (IPv6) , on page 69 Inserts a helpful remark about an IPv6 access list
entry.
resequence access-list ipv6 , on page 73 Changes the starting entry number of the first
statement in an existing IPv4 access list, and the
number by which subsequent statements are
incremented.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 87
Access List Commands
show access-lists ipv6 standby
Syntax Description access-list name (Optional) Name of a particular IPv6 access list. The name cannot contain
spaces or quotation marks, but can include numbers.
summary (Optional) Displays a summary of all current IPv6 standby access lists.
Usage Guidelines Use the show access-lists ipv6 standby command to display the contents of current IPv6 standby access lists.
To display the contents of a specific IPv6 access list, use the name argument.
Use the show access-lists ipv6 standby summary command to display a summary of all standby IPv6 access
lists.
Examples In this example, the contents of all IPv6 standby access lists are displayed:
ACL Summary:
Total ACLs configured: 4
Total ACEs configured: 22
This table describes the significant fields shown in the display.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
88 OL-28453-05
Access List Commands
show access-lists ipv6 standby
Field Description
Total ACLs configured Number of configured standby IPv6 ACLs.
Related Commands
Command Description
copy access-list ipv6, on page 11 Copies an existing IPv6 access list.
ipv6 access-list , on page 40 Defines an IPv6 access list and enters IPv6 access list
configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 89
Access List Commands
show access-lists ipv6 standby
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
90 OL-28453-05
ARP Commands
This chapter describes the commands used to configure and monitor the Address Resolution Protocol (ARP
).
For detailed information about ARP concepts, configuration tasks, and examples, refer to the Cisco IOS XR
IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series Router.
• arp, page 92
• arp purge-delay, page 94
• arp timeout, page 95
• clear arp-cache, page 97
• local-proxy-arp, page 99
• proxy-arp, page 100
• show arp, page 102
• show arp traffic, page 105
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 91
ARP Commands
arp
arp
To add a permanent entry in the Address Resolution Protocol (ARP) cache, use the arp command in Global
Configuration mode. To remove an entry from the ARP cache, enter the no form of this command.
Syntax Description vrf (Optional) Specifies VPN routing and forwarding (VRF) instance.
ip-address IPv4 (network layer) address for which a permanent entry is added to the ARP
cache. Enter the IPv4 address in a four-part dotted-decimal format that corresponds
to the local data-link address (a 32-bit address).
hardware-address Hardware (data link layer) address that the IPv4 address is linked to. Enter the
local data-link address (a 48-bit address), such as 0800.0900.1834.
alias (Optional) Causes the software to respond to ARP requests as if it were the owner
of both the specified IP address and hardware address, whether proxy ARP is
enabled or not.
Release 3.3.0 The vrf keyword and vrf-name argument were added. The
encapsulation information was added.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
92 OL-28453-05
ARP Commands
arp
Usage Guidelines The 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.
Static entries are permanent entries that map a network layer address (IPv4 address) to a data-link layer address
(MAC address). If the alias keyword is specified when creating the entry, the interface to which the entry
is attached will act as if it is the owner of the specified addresses, that is, it will respond to ARP request packets
for this network layer address with the data link layer address in the entry.
The software does not respond to any ARP requests received for the specified IP address unless proxy ARP
is enabled on the interface on which the request is received. When proxy ARP is enabled, the software responds
to ARP requests with its own local interface hardware address.
To remove all nonstatic entries from the ARP cache, enter the clear arp-cache, on page 97 in EXEC mode.
Examples The following is an example of a static ARP entry for a typical Ethernet host:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# arp 192.168.7.19 0800.0900.1834 arpa
Related Commands
Command Description
clear arp-cache, on page 97 Deletes all dynamic entries from the ARP cache.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 93
ARP Commands
arp purge-delay
arp purge-delay
To delay purging Address Resolution Protocol (ARP) entries when an interface goes down, use the arp
purge-delay command in interface configuration mode. To turn off the purge delay feature, use the no form
of this command.
Syntax Description v alue Sets the purge delay time in seconds. Range is 1 to 65535.
Usage Guidelines Use the arp purge-delay command to delay purging ARP entries when an interface goes down. If the interface
comes up within the delay time, then the ARP entries are restored to prevent packet loss with Equal Cost
Multipath (ECMP) configured.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# interface MgmtEth 0/RP1/CPU0/0
RP/0/0/CPU0:router(config-if)# arp purge-delay 50
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
94 OL-28453-05
ARP Commands
arp timeout
arp timeout
To specify how long dynamic entries learned on an interface remain in the Address Resolution Protocol (ARP)
cache, enter the arp timeout command in interface configuration mode. To remove the arp timeout
command from the configuration file and restore the system to its default condition with respect to this
command, enter the no form of this command.
Syntax Description seconds Indicates the time, in seconds, for which an entry remains in the ARP cache. Range
is 30 to 4294967295.
Command Default Entries remain in the ARP cache for 14,400 seconds (4 hours).
Usage Guidelines This command is ignored when issued on interfaces that do not use ARP. Also, ARP entries that correspond
to the local interface or that are statically configured by the user never time out.
The arp timeout command applies only to the interface that is entered. When the timeout is changed for an
interface the change applies only to that interface.
The show interfaces command displays the ARP timeout value in hours:minutes:seconds, as follows:
Examples The following example shows how to set the ARP timeout to 3600 seconds to allow entries to time out more
quickly than the default:
RP/0/0/CPU0:router# configure
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 95
ARP Commands
arp timeout
Related Commands
Command Description
clear arp-cache, on page 97 Deletes all dynamic entries from the ARP cache.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
96 OL-28453-05
ARP Commands
clear arp-cache
clear arp-cache
To delete all dynamic entries from the Address Resolution Protocol (ARP) cache, clear the fast-switching
cache, and clear the IP route cache, use the clear arp-cache command in EXEC mode.
Syntax Description traffic (Optional) Deletes traffic statistics on the specified interface.
t ype Interface type. For more information, use the question mark (?) online help function.
interface- path-id Either a physical interface instance or a virtual interface instance as follows:
• Physical interface instance. Naming notation is rack/slot/module/port and a slash
between values is required as part of the notation.
◦rack: Chassis number of the rack.
◦slot: Physical slot number of the modular services card or line card.
◦module: Module number. A physical layer interface module (PLIM) is always
0.
◦port: Physical port number of the interface.
For more information about the syntax for the router, use the question mark (?) online
help function.
location node-id Clears the ARP entries for a specified location. The node-id argument is entered in the
rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 97
ARP Commands
clear arp-cache
Release Modification
Release 3.3.0 The location keyword and node-id argument were made
mandatory.
Usage Guidelines When issued without keywords or arguments, the clear arp-cache command clears all entries in the ARP
cache.
Examples The following example shows how to remove traffic statistic entries from the ARP cache that match the
specified interface:
The following example shows how to remove entries from the ARP cache that match the specified location:
Related Commands
Command Description
arp, on page 92 Adds a permanent entry in the ARP cache.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
98 OL-28453-05
ARP Commands
local-proxy-arp
local-proxy-arp
To enable local proxy Address Resolution Protocol (ARP) on an interface, enter the local-proxy-arp command
in interface configuration mode. To disable local proxy ARP on the interface, enter the no form of this
command.
local-proxy-arp
no local-proxy-arp
Usage Guidelines When local proxy ARP is enabled, the networking device responds to ARP requests that meet all the following
conditions:
• The target IP address in the ARP request, the IP address of the ARP source, and the IP address of the
interface on which the ARP request is received are on the same Layer 3 network.
• The next hop for the target IP address is through the same interface as the request is received.
Typically, local proxy ARP is used to resolve MAC addresses to IP addresses in the same Layer 3 network
such as, private VLANs that are Layer 2-separated. Local proxy ARP supports all types of interfaces supported
by ARP and unnumbered interfaces.
Using the no form of the command removes the specified command from the configuration file and restores
the system to its default condition with respect to the command.
Examples The following example shows how to enable local proxy ARP on TenGigE interface 0/0/0/0:
RP/0/0/CPU0:router#(config)# interface TenGigE 0/0/0/0
RP/0/0/CPU0:router#(config-if)# local-proxy-arp
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 99
ARP Commands
proxy-arp
proxy-arp
To enable proxy Address Resolution Protocol (ARP) on an interface, enter the proxy-arp command in interface
configuration mode. To disable proxy ARP on the interface, enter the no form of this command.
proxy-arp
no proxy-arp
Usage Guidelines When proxy ARP is disabled, the networking device responds to ARP requests received on an interface only
if one of the following conditions is met:
• The target IP address in the ARP request is the same as the interface IP address on which the request is
received.
• The target IP address in the ARP request has a statically configured ARP alias.
When proxy ARP is enabled, the networking device also responds to ARP requests that meet all of the following
conditions:
• The target IP address is not on the same physical network (LAN) on which the request is received.
• The networking device has one or more routes to the target IP address.
• All of the routes to the target IP address go through interfaces other than the one on which the request
is received.
Using the no form of the command removes the specified command from the configuration file and restores
the system to its default condition with respect to the command.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
100 OL-28453-05
ARP Commands
proxy-arp
Examples The following example shows how to enable proxy ARP on MgmtEth interface 0/RP1/CPU0/0:
RP/0/0/CPU0:router#(config)# interface MgmtEth 0/RP1/CPU0/0
RP/0/0/CPU0:router#(config-if)# proxy-arp
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 101
ARP Commands
show arp
show arp
To display the Address Resolution Protocol (ARP), enter the show arp command in EXEC mode.
show arp vrf vrf-name [traffic] [ip-address | hardware-address | interface-path-id] [traffic] location
node-id
Syntax Description vrf (Optional) Specifies VPN routing and forwarding (VRF) instance.
location node-id (Optional) Displays the ARP entry for a specific location. The node-id argument
is entered in the rack/slot/module notation.
hardware-address (Optional) The ARP entries that match the 48-bit MAC address are displayed.
interface- path-id Either a physical interface instance or a virtual interface instance as follows:
• Physical interface instance. Naming notation is rack/slot/module/port and a
slash between values is required as part of the notation.
◦rack: Chassis number of the rack.
◦slot: Physical slot number of the modular services card or line card.
◦module: Module number. A physical layer interface module (PLIM) is
always 0.
◦port: Physical port number of the interface.
For more information about the syntax for the router, use the question mark (?) online
help function.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
102 OL-28453-05
ARP Commands
show arp
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines ARP establishes correspondences between network addresses (an IP address, for example) and Ethernet
hardware addresses. A record of each correspondence is kept in a cache for a predetermined amount of time
and then discarded.
For show arp interface-type interface-instance form, the location node-id keyword and argument is mandatory
for Bundle and VLAN-on-Bundle interfaces to indicate which location the cache entries for the bundle should
be displayed. For physical interfaces, specifying the location node-id keyword and argument is optional since
the interface can only exist on one node.
Examples The following is sample output from the show arp command with no location specified:
-------------------------------------------------------------------------------
0/3/CPU0
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
0/2/CPU0
-------------------------------------------------------------------------------
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 103
ARP Commands
show arp
Related Commands
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
104 OL-28453-05
ARP Commands
show arp traffic
Syntax Description vrf (Optional) Specifies VPN routing and forwarding (VRF) instance.
interface- path-id (Optional) Either a physical interface instance or a virtual interface instance as follows:
• Physical interface instance. Naming notation is rack/slot/module/port and a slash
between values is required as part of the notation.
◦rack: Chassis number of the rack.
◦slot: Physical slot number of the modular services card or line card.
◦module: Module number. A physical layer interface module (PLIM) is always
0.
◦port: Physical port number of the interface.
For more information about the syntax for the router, use the question mark (?) online
help function.
location node-id (Optional) Displays the ARP entry for a specific location. The node-id argument is
entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 105
ARP Commands
show arp traffic
Usage Guidelines ARP establishes correspondences between network addresses (an IP address, for example) and Ethernet
hardware addresses. A record of each correspondence is kept in a cache for a predetermined amount of time
and then discarded.
For show arp traffic, interface-instance, the locationnode-id keyword and argument is mandatory for Bundle
and VLAN-on-Bundle interfaces to indicate which location the cache entries for the bundle should be displayed.
For physical interfaces, specifying the location node-id keyword and argument is optional since the interface
can only exist on one node.
Examples The following is sample output from the show arp traffic command:
ARP statistics:
Recv: 2691 requests, 91 replies
Sent: 67 requests, 2 replies (0 proxy, 1 gratuitous)
Resolve requests rcvd: 1
Resolve requests dropped: 0
Errors: 0 out of memory, 0 no buffers
ARP cache:
Total ARP entries in cache: 4
Dynamic: 3, Interface: 1, Standby: 0
Alias: 0, Static: 0
ARP statistics:
Recv: 0 requests, 1 replies
Sent: 0 requests, 2 replies (0 proxy, 2 gratuitous)
Resolve requests rcvd: 0
Resolve requests dropped: 0
Errors: 0 out of memory, 0 no buffers
ARP cache:
Total ARP entries in cache: 4
Dynamic: 1, Interface: 1, Static: 1
Alias: 1, Standby: 0
Related Commands
Command Description
arp, on page 92 Adds a permanent entry to the ARP cache.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
106 OL-28453-05
ARP Commands
show arp traffic
Command Description
clear arp-cache, on page 97 Deletes all dynamic entries from the ARP cache.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 107
ARP Commands
show arp traffic
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
108 OL-28453-05
Cisco Express Forwarding Commands
This chapter describes the commands used to configure and monitor Cisco Express Forwarding (CEF) on .
For detailed information about CEF concepts, configuration tasks, and examples, see Cisco IOS XR IP
Addresses and Services Configuration Guide.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 109
Cisco Express Forwarding Commands
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
110 OL-28453-05
Cisco Express Forwarding Commands
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 111
Cisco Express Forwarding Commands
cef load-balancing algorithm adjust
Syntax Description value This value is subject to a 'modulo' of 4 when applied on ASR 9000 Ethernet Line Card. For
example, if the value configured is 10, the actual adjust value applied on ASR 9000 Ethernet Line
Cards will be "10 mod 4" which is '2'. ASR 9000 Enhanced Ethernet Line Card will continue
using the same adjust value as configured. Range is from 0 to 31.
Note: the hash shift command changes the hash result that is computed by the ingress linecard.
This hash change affects both IPv4 and IPv6 for Equal Cost Multipath (ECMP) as well as the
Bundle Member selection when used as either a routed (sub)-interface or as attachment circuit
(AC) in L2VPN
Examples The following example shows how rotate bit count value to adjust the hash result:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# cef load-balancing algorithm adjust 2
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
112 OL-28453-05
Cisco Express Forwarding Commands
cef load-balancing fields
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 113
Cisco Express Forwarding Commands
cef load-balancing fields
Command Default When the router ID, source, and destination IP address fields are selected for load balancing, the default value
is L3.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
114 OL-28453-05
Cisco Express Forwarding Commands
cef load-balancing fields
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper task
IDs. If you suspect user group assignment is preventing you from using a command, contact your AAA
administrator for assistance.
You can undo only a Layer 4 configuration.
The existing 3-tuple hash provides good-balancing for packet flows with different Layer 3 information (for
example, source and destination IP addresses). However, this hash algorithm performs well for cases in which
different packet flows, which are identified by Layer 4 content, contain the same Layer 3 packet information.
For example, a network, which uses Port Address Translation (PAT) on one end of the network, distributes
traffic to a content provider on the other end of the network that supports redundant access using the same IP
address.
A new hash algorithm, which uses additional Layer 4 information from the Layer 3 packet, is needed to
provide improved load-balancing support in the system. On the Cisco IOS XR software, the 7-tuple hash
algorithm is implemented to provide improved load-balancing. The following inputs are processed:
• Layer 3 information
• Source IP address
• Destination IP address
• Protocol
• Layer 4 information
• Source port
• Destination port
• Router ID
• Slot Number:Rx UIDB Index
• Source IP address
• Destination IP address
• Router ID
Examples The following example shows how to configure Layer 3 and Layer 4 load-balancing for the hash algorithm
from the cef load-balancing fields command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 115
Cisco Express Forwarding Commands
cef load-balancing fields
The following example shows sample output that displays summary information for all locations from the
show cef summary command:
Router ID is 1.1.1.101
Load balancing: L4
Tableid 0xe0000000, Vrfid 0x60000000, Vrid 0x20000000, Flags 0x301
Vrfname default, Refcount 286202
286110 routes, 0 reresolve, 0 unresolved (0 old, 0 new), 20599920 bytes
11112 load sharing elements, 3012008 bytes, 297064 references
8 shared load sharing elements, 3008 bytes
11104 exclusive load sharing elements, 3009000 bytes
0 CEF route update drops, 2864666 revisions of existing leaves
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
0 prefixes with label imposition, 11032 prefixes with label information Adjacency Table
has 1 adjacency
1 incomplete adjacency
Load balancing: L4
Tableid 0xe0000000, Vrfid 0x60000000, Vrid 0x20000000, Flags 0x301
Vrfname default, Refcount 286202
286110 routes, 0 reresolve, 0 unresolved (0 old, 0 new), 20599920 bytes
11112 load sharing elements, 3012008 bytes, 297064 references
8 shared load sharing elements, 3008 bytes
11104 exclusive load sharing elements, 3009000 bytes
0 CEF route update drops, 2864666 revisions of existing leaves
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
0 prefixes with label imposition, 11032 prefixes with label information Adjacency Table
has 1 adjacency
1 incomplete adjacency
Load balancing: L4
Tableid 0xe0000000, Vrfid 0x60000000, Vrid 0x20000000, Flags 0x301
Vrfname default, Refcount 286228
286112 routes, 0 reresolve, 0 unresolved (0 old, 0 new), 20600064 bytes
11114 load sharing elements, 3590384 bytes, 297064 references
8 shared load sharing elements, 3424 bytes
11106 exclusive load sharing elements, 3586960 bytes
0 CEF route update drops, 4076380 revisions of existing leaves
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
0 prefixes with label imposition, 11032 prefixes with label information Adjacency Table
has 77 adjacencies
22 incomplete adjacencies
Load balancing: L4
Tableid 0xe0000000, Vrfid 0x60000000, Vrid 0x20000000, Flags 0x301
Vrfname default, Refcount 286202
286110 routes, 0 reresolve, 0 unresolved (0 old, 0 new), 20599920 bytes
11112 load sharing elements, 3012008 bytes, 297064 references
8 shared load sharing elements, 3008 bytes
11104 exclusive load sharing elements, 3009000 bytes
0 CEF route update drops, 2864666 revisions of existing leaves
Resolution Timer: 15s
0 prefixes modified in place
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
116 OL-28453-05
Cisco Express Forwarding Commands
cef load-balancing fields
Load balancing: L4
Tableid 0xe0000000, Vrfid 0x60000000, Vrid 0x20000000, Flags 0x301
Vrfname default, Refcount 286202
286110 routes, 0 reresolve, 0 unresolved (0 old, 0 new), 20599920 bytes
11112 load sharing elements, 3012008 bytes, 297064 references
8 shared load sharing elements, 3008 bytes
11104 exclusive load sharing elements, 3009000 bytes
0 CEF route update drops, 2864666 revisions of existing leaves
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
0 prefixes with label imposition, 11032 prefixes with label information Adjacency Table
has 1 adjacency
1 incomplete adjacency
Load balancing: L4
Tableid 0xe0000000, Vrfid 0x60000000, Vrid 0x20000000, Flags 0x301
Vrfname default, Refcount 286204
286110 routes, 0 reresolve, 0 unresolved (0 old, 0 new), 20599920 bytes
11111 load sharing elements, 3589556 bytes, 297062 references
7 shared load sharing elements, 3148 bytes
11104 exclusive load sharing elements, 3586408 bytes
0 CEF route update drops, 4076376 revisions of existing leaves
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
0 prefixes with label imposition, 11032 prefixes with label information Adjacency Table
has 21 adjacencies
12 incomplete adjacencies
Load balancing: L4
Tableid 0xe0000000, Vrfid 0x60000000, Vrid 0x20000000, Flags 0x301
Vrfname default, Refcount 286242
286122 routes, 0 reresolve, 0 unresolved (0 old, 0 new), 20600784 bytes
11124 load sharing elements, 3014696 bytes, 297064 references
8 shared load sharing elements, 3008 bytes
11116 exclusive load sharing elements, 3011688 bytes
0 CEF route update drops, 4075013 revisions of existing leaves
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
0 prefixes with label imposition, 11032 prefixes with label information Adjacency Table
has 15 adjacencies
1 incomplete adjacency
Related Commands
Command Description
show cef, on page 151 Displays information about packets forwarded by
Cisco Express Forwarding (CEF).
show cef summary, on page 159 Displays summary information for the Cisco Express
Forwarding (CEF) table.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 117
Cisco Express Forwarding Commands
cef load-balancing fields
Command Description
show cef ipv4 exact-route, on page 173 Displays an IPv4 Cisco Express Forwarding (CEF)
exact route.
show cef ipv4 summary, on page 190 Displays a summary of the IPv4 Cisco Express
Forwarding (CEF) table
show cef ipv6 exact-route, on page 207 Displays the path an IPv6 flow comprising a source
and destination address would take.
show cef ipv6 summary, on page 224 Displays a summary of the IPv6 Cisco Express
Forwarding (CEF) table.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
118 OL-28453-05
Cisco Express Forwarding Commands
clear adjacency statistics
clear adjacency statistics [ipv4 [nexthop ipv4-address]| mpls| ipv6] [interface-type interface-instance|
location node-id]
Syntax Description ipv4 (Optional) Clears only IPv4 adjacency packet and byte counter statistics.
nexthop ipv4-address (Optional) Clears adjacency statistics that are destined to the specified IPv4 nexthop.
interface-type (Optional) Interface type. For more information, use the question mark (?) online
help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
location node-id (Optional) Clears detailed adjacency statistics for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 119
Cisco Express Forwarding Commands
clear adjacency statistics
Usage Guidelines The clear adjacency statistics command is useful for troubleshooting network connection and forwarding
problems.
If you do not specify any of the optional keywords, all adjacency statistics are cleared for the node on which
the command is issued.
Related Commands
Command Description
show adjacency, on page 148 Displays the IPv4 CEF adjacency table.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
120 OL-28453-05
Cisco Express Forwarding Commands
clear cef ipv4 drops
Syntax Description location node-id Clears IPv4 packet drop counters for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command will clear
IPv4 CEF drop counters only for the node on which the command is issued.
Examples The following example displays sample output for the IPv4 Cisco Express Forwarding (CEF) table packet
drop counters, and clears IPv4 CEF drop counters for location 0/1/CPU0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 121
Cisco Express Forwarding Commands
clear cef ipv4 drops
Node: 0/1/CPU0
Clearing CEF Drop Statistics
Related Commands
Command Description
show cef ipv4 drops, on page 171 Displays IPv4 packet drop counters.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
122 OL-28453-05
Cisco Express Forwarding Commands
clear cef ipv4 exceptions
Syntax Description location node-id Clears IPv4 CEF exception packet counters for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command will clear IPv4
CEF exception packet counters for all nodes.
Examples The following example displays sample output for the IPv4 Cisco Express Forwarding (CEF) exception packet
counters, and clear s IPv4 CEF exception packets node 0/1/CPU0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 123
Cisco Express Forwarding Commands
clear cef ipv4 exceptions
Node: 0/1/CPU0
Clearing CEF Exception Statistics
Related Commands
Command Description
show cef ipv4 exceptions, on page 176 Displays IPv4 CEF exception packet counters.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
124 OL-28453-05
Cisco Express Forwarding Commands
clear cef ipv4 interface bgp-policy-statistics
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
Usage Guidelines This command is not supported on ASR 9000 Ethernet Line Cards. This command clears the Border Gateway
Protocol (BGP) policy accounting counters for the specified interface.
Examples The following example shows how to clear IPv4 CEF BGP policy statistics on a tenGigE interface:
RP/0/0/CPU0:router# clear cef ipv4 interface tenGigE 0/4/0/0 bgp-policy-statistics
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 125
Cisco Express Forwarding Commands
clear cef ipv4 interface bgp-policy-statistics
Related Commands
Command Description
show cef ipv4 interface bgp-policy-statistics, on page Displays IPv4 CEF BGP policy statistics.
183
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
126 OL-28453-05
Cisco Express Forwarding Commands
clear cef ipv4 interface rpf-statistics
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
location node-id (Optional) Clears IPv4 unicast reverse path forwarding (RPF) counters for the designated
node. The node-id argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 127
Cisco Express Forwarding Commands
clear cef ipv4 interface rpf-statistics
Usage Guidelines The clear cef ipv4 interface rpf-statistics command clears the unicast reverse path forwarding (RPF) counters
for the specified interface.
Examples The following example shows how to clear IPv4 CEF RPF statistics:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
128 OL-28453-05
Cisco Express Forwarding Commands
clear cef ipv6 drops
Syntax Description location node-id Clears IPv6 packet drop counters for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command clears IPv6
CEF drop counters for all nodes.
Examples The following example displays sample output for the IPv6 Cisco Express Forwarding (CEF) table packet
drop counters, and clears IPv6 CEF drop counters for location 0/1/CPU0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 129
Cisco Express Forwarding Commands
clear cef ipv6 drops
Node: 0/1/CPU0
Clearing CEF Drop Statistics
Related Commands
Command Description
show cef ipv6 drops, on page 204 Displays IPv6 packet drop counters.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
130 OL-28453-05
Cisco Express Forwarding Commands
clear cef ipv6 exceptions
Syntax Description location node-id Clears IPv6 CEF exception packet counters for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command clears IPv6
CEF exception packet counters for all nodes.
Examples The following example displays sample output for the IPv6 Cisco Express Forwarding (CEF) exception packet
counters, and clears the IPv6 CEF exception packets for location:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 131
Cisco Express Forwarding Commands
clear cef ipv6 exceptions
Receive packets : 0
Broadcast packets : 0
IP options packets : 0
TTL expired packets : 0
Fragmented packets : 0
Node: 0/6/CPU0
Slow encap packets : 0
Unsupported packets : 0
Redirect packets : 0
Receive packets : 0
Broadcast packets : 0
IP options packets : 0
TTL expired packets : 0
Fragmented packets : 0
Node: 0/0/CPU0
Slow encap packets : 0
Unsupported packets : 0
Redirect packets : 0
Receive packets : 0
Broadcast packets : 0
IP options packets : 0
TTL expired packets : 0
Fragmented packets : 0
Node: 0/0/CPU0
Slow encap packets : 0
Unsupported packets : 0
Redirect packets : 0
Receive packets : 0
Broadcast packets : 0
IP options packets : 0
TTL expired packets : 0
Fragmented packets : 0
Node: 0/1/CPU0
Clearing CEF Exception Statistics
Related Commands
Command Description
show cef ipv6 exceptions, on page 209 Displays IPv6 CEF exception packet counters.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
132 OL-28453-05
Cisco Express Forwarding Commands
clear cef ipv6 interface bgp-policy-statistics
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
Usage Guidelines The clear cef ipv6 interface bgp-policy-statistics command clears the Border Gateway Protocol (BGP)
policy accounting counters for the specified interface.
Examples The following example shows how to clear IPv6 CEF BGP policy statistics:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 133
Cisco Express Forwarding Commands
clear cef ipv6 interface rpf-statistics
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
location node-id (Optional) Clears IPv6 unicast reverse path forwarding (RPF) counters for the
designated node. The node-id argument is entered in the rack/slot/module notation.
Usage Guidelines The clear cef ipv6 interface rpf-statistics command clears the unicast reverse path forwarding (RPF)
counters for the specified interface.
Examples The following example shows how to clear IPv6 CEF RPF statistics:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
134 OL-28453-05
Cisco Express Forwarding Commands
ipv4 bgp policy accounting
Syntax Description input Enables BGP policy accounting policy on the ingress IPv4 unicast interface.
output Enables BGP policy accounting policy on the egress IPv4 unicast interface.
{destination-accounting When you specify the ingress or egress interface, you must specify one of
[source-accounting] | the following keywords:
source-accounting
[destination-accounting]} • destination-accounting —Enables accounting policy on the basis of
the destination address.
• source-accounting —Enables accounting policy on the basis of the
source address.
Usage Guidelines When you use the no form of the command, accounting is disabled for both the source and destination. To
change accounting on either the destination or source address, reconfigure the ipv4 bgp policy accounting
command specifying the destination-accounting or source-accounting keyword. In the following example,
you want BGP policy accounting disabled on the source address after enabling source and destination address
accounting earlier:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 135
Cisco Express Forwarding Commands
ipv4 bgp policy accounting
See the Cisco IOS XR Routing Configuration Guide for the Cisco XR 12000 Series Router for information
about configuring a BGP policy. BGP accounting policy is based on community lists, autonomous system
numbers, or autonomous system paths.
For BGP policy propagation to function, you must enable BGP.
To specify the accounting policy, the proper route policy configuration must be in place, matching specific
BGP attributes using the set traffic-index command. In BGP router configuration mode, use the table-policy
command to modify the accounting buckets when the IP routing table is updated with routes learned from
BGP. To display accounting policy information, use the show cef ipv4 interface bgp-policy-statistics , show
bgp policy, and show route bgp commands.
This command is not supported on ASR 9000 Ethernet Line Cards.
Examples The following example shows how to configure BGP policy accounting:
Related Commands
Command Description
route-policy (BGP) Defines a route policy. For more information, see
Cisco IOS XR Routing Command Reference for the
Cisco XR 12000 Series Router
show cef ipv4 interface bgp-policy-statistics, on page Displays IPv4 CEF BGP policy statistics.
183
show route Displays the current routes for BGP in the RIB. For
more information, see Cisco IOS XR Routing
Command Reference for the Cisco XR 12000 Series
Router
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
136 OL-28453-05
Cisco Express Forwarding Commands
ipv4 bgp policy accounting
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 137
Cisco Express Forwarding Commands
ipv4 bgp policy propagation
Syntax Description input Enables QPPB on the ingress IPv4 unicast interface.
qos-group Specifies that the QoS policy is based on the QoS group ID.
destination Specifies that the IP precedence bit or QoS group ID from the destination
address entry is used in the route table.
source Specifies that the IP precedence bit or QoS group ID from the source address
entry is used in the route table.
Usage Guidelines For the QPPB feature to work, you must enable BGP and CEF. In addition, the proper route-map configuration
must be in place to specify the IP precedence or QoS group ID (for example, set precedence command).
If you specify both source and destination on the interface, the software looks up the source address in the
routing table and classifies the packet based on the source address first; then the software looks up the
destination address in the routing table and reclassifies it based on the destination address.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
138 OL-28453-05
Cisco Express Forwarding Commands
ipv4 bgp policy propagation
Examples The following example shows how to enable QPPB on the GigabitEthernet interface:
The following example shows how to enable QPPB on the Packet-over-SONET/SDH (POS) interface:
Related Commands
Command Description
route-policy (BGP) Defines a route policy.
show cef ipv4 interface bgp-policy-statistics, on page Displays IPv4 CEF BGP policy statistics.
183
show route Displays the current routes for BGP in the RIB.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 139
Cisco Express Forwarding Commands
ipv4 verify unicast source reachable-via
Syntax Description any Enables loose unicast RPF checking. If loose unicast RPF is enabled, a packet is not
forwarded unless its source prefix exists in the routing table.
rx Enables strict unicast RPF checking. If strict unicast RPF is enabled, a packet is not
forwarded unless its source prefix exists in the routing table and the output interface
matches the interface on which the packet was received.
allow-default (Optional) Enables the matching of default routes. This option applies to both loose
and strict RPF.
allow-self-ping (Optional) Enables the router to ping out an interface.This option applies to both loose
and strict RPF.
Usage Guidelines Use the ipv4 verify unicast source reachable-via interface command to mitigate problems caused by
malformed or forged (spoofed) IP source addresses that pass through a router. Malformed or forged source
addresses can indicate denial-of-service (DoS) attacks based on source IP address spoofing.
When strict unicast RPF is enabled on an interface, the router examines all packets received on that interface.
The router checks to make sure that the source address appears in the routing table and matches the interface
on which the packet was received.
When loose unicast RPF is enabled on an interface, the router examines all packets received on that interface.
The router checks to make sure that the source address can be reached through any of the router interfaces.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
140 OL-28453-05
Cisco Express Forwarding Commands
ipv4 verify unicast source reachable-via
Examples This example shows how to configure strict RPF on gigabitethernet interface 0/1/0/0:
This example shows how to configure loose RPF on gigabitethernet interface 0/0/0/1:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 141
Cisco Express Forwarding Commands
ipv6 bgp policy accounting
Syntax Description input Enables BGP policy accounting policy on the ingress IPv6 unicast interface.
output Enables BGP policy accounting policy on the egress IPv6 unicast interface.
{destination-accounting When you specify the ingress or egress interface, you must specify one of
[source-accounting] | the following keywords:
source-accounting
[destination-accounting]} • destination-accounting —Enables accounting policy on the basis of
the destination address.
• source-accounting —Enables accounting policy on the basis of the
source address.
Usage Guidelines When you use the no form of the command, accounting is disabled for both the source and destination. To
change accounting on either the destination or source address, reconfigure the ipv6 bgp policy accounting
command, specifying the destination-accounting or source-accounting keyword. In the following example,
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
142 OL-28453-05
Cisco Express Forwarding Commands
ipv6 bgp policy accounting
you want BGP policy accounting disabled on the source address after enabling source and destination address
accounting earlier:
Examples The following example shows how to configure BGP policy accounting:
RP/0/
/
CPU0:router(config)# interface
pos
0/1/0/0
RP/0/
/
CPU0:router(config-if)# ipv6 bgp policy accounting output source-accounting
Related Commands
Command Description
route-policy (BGP) Defines a route policy. For more information, see
Cisco IOS XR Routing Command Reference for the
Cisco XR 12000 Series Router
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 143
Cisco Express Forwarding Commands
ipv6 bgp policy accounting
Command Description
show cef ipv6 interface bgp-policy-statistics, on page Displays IPv6 CEF BGP policy statistics.
215
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
144 OL-28453-05
Cisco Express Forwarding Commands
ipv6 verify unicast source reachable-via
Syntax Description any Enables loose unicast RPF checking. If loose unicast RPF is enabled, a packet is not
forwarded unless its source prefix exists in the routing table.
rx Enables strict unicast RPF checking. If strict unicast RPF is enabled, a packet is not
forwarded unless its source prefix exists in the routing table and the output interface
matches the interface on which the packet was received.
allow-default (Optional) Enables the matching of default routes. This option applies to both loose
and strict RPF.
allow-self-ping (Optional) Enables the router to ping out an interface. This option applies to both
loose and strict RPF.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 145
Cisco Express Forwarding Commands
ipv6 verify unicast source reachable-via
Examples The following example shows how to enable loose RPF checking on POS interface 0/1/0/0:
RP/0/0/CPU0:router(config)# interface pos 0/1/0/0
RP/0/0/CPU0:router(config-if)# ipv6 verify unicast source reachable-via any
The following example shows how to configure strict RPF on gigabitethernet interface 0/1/0/0:
The following example shows how to configure loose RPF on gigabitethernet interface 0/0/0/1 : .
Related Commands
Command Description
ipv4 verify unicast source reachable-via , on page Enables IPv4 unicast RPF checking.
140
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
146 OL-28453-05
Cisco Express Forwarding Commands
rp mgmtethernet forwarding
rp mgmtethernet forwarding
To enable switching from the line card to the route processor Management Ethernet interfaces, use the rp
mgmtethernet forwarding command in Global Configuration mode. To disable switching from the modular
services card to the route processor Management Ethernet interfaces, use the no form of this command.
rp mgmtethernet forwarding
no rp mgmtethernet forwarding
Usage Guidelines The rp mgmtethernet forwarding command needs LC reload to take effect.
Note If enabled, the RP CPU is used to forward packets because the RP does not have a packet processing
engine like the line cards.
Examples The following example shows how to enable switching from the modular services card to the RP Management
Ethernet interfaces:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 147
Cisco Express Forwarding Commands
show adjacency
show adjacency
To display Cisco Express Forwarding (CEF) adjacency table information, use the show adjacency command
in EXEC mode.
show adjacency [ipv4 [nexthop ipv4-address]| mpls| ipv6] [interface type interface-instance] [remote]
[detail] [location node-id]
nexthop ipv4-address (Optional) Displays adjacencies that are destined to the specified IPv4 nexthop.
interface-type (Optional) Interface type. For more information, use the question mark (?) online
help function.
For more information about the syntax for the router, use the question mark (?)
online help function.
location node-id (Optional) Displays detailed CEF information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
148 OL-28453-05
Cisco Express Forwarding Commands
show adjacency
Usage Guidelines This command is used to verify that an adjacency exists for a connected device, that the adjacency is valid,
and that the MAC header rewrite string is correct.
If you do not specify a node with the location keyword and node-id argument, this command displays the
CEF adjacency table for the node on which the command is issued.
Examples The following is sample output from show adjacency command with the location keyword specified:
Field Description
Interface Outgoing interface associated with the adjacency.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 149
Cisco Express Forwarding Commands
show adjacency
Field Description
Version Version number of the adjacency. Updated whenever
the adjacency is updated.
Related Commands
Command Description
clear adjacency statistics, on page 119 Clears the IPv4 CEF adjacency table.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
150 OL-28453-05
Cisco Express Forwarding Commands
show cef
show cef
To display information about packets forwarded by Cisco Express Forwarding (CEF), use the show cef
command in EXEC mode.
show cef [prefix [ mask ]] [hardware {egress| ingress}| detail] [location {node-id| all}]
Syntax Description prefix (Optional) Longest matching CEF entry for the specified IPv4 destination
prefix.
mask (Optional) Exact CEF entry for the specified IPv4 prefix and mask.
egress Displays information from the egress packet switch exchange (PSE) file.
ingress Displays information from the ingress packet switch exchange (PSE) file.
location node-id (Optional) Displays detailed CEF information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Command Default When the prefix is not explicitly specified, this command displays all the IPv4 prefixes that are present in
CEF. When not specified, the location defaults to the active Route Processor (RP) node.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 151
Cisco Express Forwarding Commands
show cef
Examples The following sample output shows the load information flag from the show cef command for both hardware
and ingress keywords:
Number of Mnodes: 2
Mnode 0 HW Location: 0x00080404 HW Value
[ 0x0081a600 00000000 00000000 00000000 ]
VPN Label 1 0
------------------------------------------------
HW Rx Adjacency 0 Detail:
------------------------------------------------
Rx Adj HW Address 0x02040280 (ADJ)
packets 0 bytes 0
HFA Bits 0x80 gp 16 mtu 9248 (Fabric MTU) TAG length 0
OI 0x409 (Tx uidb 0 PPindex 1033)
OutputQ 0 Output-port 0x0 local-outputq 0x8000
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
152 OL-28453-05
Cisco Express Forwarding Commands
show cef bgp-attribute
location node-id (Optional) Displays BGP information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Examples The following example shows how to use the show cef bgp-attribute command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 153
Cisco Express Forwarding Commands
show cef bgp-attribute
Field Description
BGP Attribute ID Displays the id assigned by BGP.
Next Hop AS Displays the AS that contains the BGP nexthop for
this prefix.
Related Commands
Command Description
show cef, on page 151 Displays information about packets forwarded by
Cisco Express Forwarding (CEF).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
154 OL-28453-05
Cisco Express Forwarding Commands
show cef external
show cef external [hardware {ingress | egress}] [prefix] {ifhandle | tunnel-id | client-name} {6vpe |
6pe-ipvpn | eos0-ldi | ip-reachability} [detail] [location node-id]
client-name Name of a particular client. The dependency information for the given client
name is displayed.
eos0-ldi Displays Multiprotocol Label Switching (MPLS) end of stack 0 (EOS0) load
balancing dependency information.
location node-id (Optional) Displays external client dependency information for the specified
node. The node-id argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 155
Cisco Express Forwarding Commands
show cef external
Release 3.5.0 This command was enhanced to show 6VPE external client
dependency.
Examples The following sample output is from the show cef external command:
IPV4:
-----
Client Name : l2fib_mgr (comp-id: 0x7e6d) (0x9f6f70fc)
Protocol : ipv4
Prefix : 3.3.3.3 (0x9f13d22c)
Gateway array : 9e8fb058 (0x201500/1)
Loadinfo : 9fbd41a8 (0x10181101/1)
Number of notifs : 1
Interest type : EOS0 LDI updates
Table Id : 0xe0000000
Cookie Value : 6c326669625f6d67720000000
State : resolved, cached plat context
Via : 16000/0
Added to pend list: Dec 13 11:08:37.920
Load distribution: 0 (refcount 1)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
156 OL-28453-05
Cisco Express Forwarding Commands
show cef external
IPV4:
-----
Client Name : l2fib_mgr (comp-id: 0x7e6d) (0x9f6f70fc)
Protocol : ipv4
Prefix : 100.100.100.2 (0x9f13d22c)
Gateway array : 9e8fb058 (0x201500/1)
Loadinfo : 9fbd41a8 (0x10181101/1)
Number of notifs : 2
Interest type : EOS0 LDI updates
Table Id : 0xe0000000
Cookie Value : 6c326669625f6d67720000000
State : resolved, cached plat context
Via : 16006/0
Added to pend list: Dec 13 11:21:23.037
Related Commands
Command Description
show cef, on page 151 Displays information about packets forwarded by
Cisco Express Forwarding (CEF).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 157
Cisco Express Forwarding Commands
show cef recursive-nexthop
Syntax Description hardware (Optional) Displays hardware information related to the recursive next hop.
location node-id (Optional) Displays recursive next-hop information for the specified node.
The node-id argument is entered in the rack/slot/module notation.
Related Commands
Command Description
show cef, on page 151 Displays information about packets forwarded by
Cisco Express Forwarding (CEF).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
158 OL-28453-05
Cisco Express Forwarding Commands
show cef summary
Syntax Description location node-id (Optional) Displays detailed CEF information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Command Default The show cef summary command assumes the IPv4 CEF table and the active RP node as the location.
Examples The following sample output is from the show cef summary command.
Router ID is 10.1.1.1
Load balancing: L3
Tableid 0xe0000000, Vrfid 0x60000000, Vrid 0x20000000, Flags 0x301
Vrfname default, Refcount 318
170 routes, 0 reresolve, 0 unresolved (0 old, 0 new), 12240 bytes
183 load sharing elements, 57292 bytes, 184 references
19 shared load sharing elements, 7036 bytes
164 exclusive load sharing elements, 50256 bytes
0 CEF route update drops, 10 revisions of existing leaves
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 159
Cisco Express Forwarding Commands
show cef summary
Field Description
Load balancing Current load-balancing mode. The default value is
L3.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
160 OL-28453-05
Cisco Express Forwarding Commands
show cef summary
Related Commands
Command Description
cef load-balancing fields, on page 113 Selects the hashing algorithm that is used for load
balancing during forwarding.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 161
Cisco Express Forwarding Commands
show cef ipv4
show cef [vrf vrf-name] ipv4 [prefix [ mask ]| interface-type interface-instance] [detail] [location node-id]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
prefix (Optional) Longest matching CEF entry for the specified IPv4 destination prefix.
mask (Optional) Exact CEF entry for the specified IPv4 prefix and mask.
interface-type (Optional) Interface type. For more information, use the question mark (?) online
help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
location node-id (Optional) Displays the IPv4 CEF table for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Command Default If the location is not specified, the command defaults to the active RP node.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
162 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Release 3.5.0 The sample output for the detail keyword is modified for a specific
prefix.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command displays the
CEF table on the node in which the command is issued. Otherwise, the command is effective on the node
specified by the location node-id keyword and argument.
Examples The following sample output is from the show cef ipv4 command:
Field Description
Prefix Prefix in the IPv4 CEF table.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 163
Cisco Express Forwarding Commands
show cef ipv4
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
164 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 adjacency
show cef [vrf vrf-name] ipv4 adjacency [interface-type interface-path-id] [location node-id] [detail] [discard]
[glean] [null] [punt] [remote] [protected]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
interface-type (Optional) Interface type. For more information, use the question mark (?) online
help function.
interface- path-id (Optional) Either a physical interface instance or a virtual interface instance:
• Physical interface instance. Naming notation is rack/slot/module/port and a
slash mark between values is required as part of the notation.
◦rack: Chassis number of the rack.
◦slot: Physical slot number of the line card.
◦module: Module number. A physical layer interface module (PLIM) is
always 0.
◦port: Physical port number of the interface.
For more information about the syntax for the router, use the question mark (?) online
help function.
location node-id (Optional) Displays detailed CEF information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
discard (Optional) Filters out and displays only the discarded adjacency information.
glean (Optional) Filters out and displays only the glean adjacency information.
null (Optional) Filters out and displays only the adjacency information.
punt (Optional) Filters out and displays only the punt adjacency information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 165
Cisco Express Forwarding Commands
show cef ipv4 adjacency
remote (Optional) Filters out and displays only the remote adjacency information.
protected (Optional) Filters out and displays only the IP-Fast Reroute (FRR) protected adjacency
information.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, the show cef ipv4 adjacency
command displays the CEF adjacency table for the node on which the command is issued.
Examples The following sample output is from show cef ipv4 adjacency command :
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
166 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 adjacency
Field Description
Interface Interface associated with the prefix.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 167
Cisco Express Forwarding Commands
show cef ipv4 adjacency hardware
show cef [vrf vrf-name] ipv4 adjacency hardware {egress| ingress} [detail| discard| drop| glean| location
node-id| null| punt| protected| remote]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
egress Displays information from the egress packet switch exchange (PSE) file.
ingress Displays information from the ingress packet switch exchange (PSE) file.
location node-id (Optional) Displays detailed CEF information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
protected (Optional) Filters out and displays only the IP-Fast Reroute (FRR) protected
adjacency information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
168 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 adjacency hardware
Release Modification
Release 3.6.0 The following enhancements were added:
• The TE flag value was added to the sample output for both ingress
and egress keywords to display the load information flag.
• The protected keyword was added for IP-FRR.
Examples The following sample output shows the load information flag from the show cef ipv4 adjacency hardware
command for the egress keyword:
RP/0/0/CPU0:router# show cef ipv4 adjacency hardware egress detail location 0/2/CPU0
TE Flags : 0x41
TLU3(temp) : 0x200b801
[HW: 0x00000001 0x20020000 0x08000000 0x00080000]
type : FWD
num. entries : 1
uidb index : 2
num. labels : 0
label : 0
encapsulation : unknown (0x8000000)
next ptr : 0x800
TLU4 : 0x3000800
Entry[0]
[HW: 0x00000080 0x0013c48f 0x880b05ea 0x00580000]
label : 0
num. labels : 0
local : 1
mtu : 1514
default sharq : 11
member link : 0
Te0/2/0/1 special 2
Interface: Te0/2/0/1 Type: glean
Interface Type: 0x1e, Base Flags: 0x4400
Dependent adj type: remote
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 169
Cisco Express Forwarding Commands
show cef ipv4 adjacency hardware
Table 14: show cef ipv4 adjacency hardware Command Field Descriptions
Field Description
Interface Interface associated with the prefix.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
170 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 drops
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
location node-id (Optional) Displays IPv4 CEF table packet drop counters for the designated
node. The node-id argument is entered in the rack/slot/module notation.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines A packet might be dropped from the IPv4 CEF table because of unresolved CEF entries, unsupported features,
absence of route information, absence of adjacency information, or an IP checksum error.
If you do not specify a node with the location keyword and node-id argument, this command displays IPv4
CEF packet drop counters for all nodes.
Examples The following is sample output from the show cef ipv4 drops for location command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 171
Cisco Express Forwarding Commands
show cef ipv4 drops
Field Description
Unresolved drops Drops due to unresolved routes.
Related Commands
Command Description
clear cef ipv4 drops, on page 121 Clears IPv4 CEF packet drop counters.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
172 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 exact-route
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance
information.
protocol protocol name (Optional) Displays the specified protocol for the route.
source-port source-port (Optional) Sets the UDP source port. The range is from 0 to 65535.
destination-port destination-port (Optional) Sets the UDP destination port. The range is from 0 to 65535.
type (Optional) Interface type. For more information, use the question mark
(?) online help function.
policy-class value (Optional) Displays the class for the policy-based tunnel selection. The
range for the tunnel policy class value is from 1 to 7.
location node-id (Optional) Displays the IPv4 CEF table for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 173
Cisco Express Forwarding Commands
show cef ipv4 exact-route
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Release 3.6.0 The following keywords were added so that the Layer 4 information can be
specified for the exact route:
• protocol
• source-port
• destination-port
• ingress-interface
Usage Guidelines If the Layer 4 information is enabled, the source-port, destination-port, protocol, and ingress-interface fields
are required. Otherwise, the output of the show cef ipv4 exact-route command is not correct.
Examples The following sample output is from the show cef ipv4 exact-route command:
Field Description
Prefix Prefix in the IPv4 CEF table .
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
174 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 exact-route
Related Commands
Command Description
cef load-balancing fields, on page 113 Selects the hashing algorithm that is used for load
balancing when forwarding.
show mpls forwarding exact-route Displays the path an MPLS flow that comprises a
source and destination address would take.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 175
Cisco Express Forwarding Commands
show cef ipv4 exceptions
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
location node-id (Optional) Displays CEF exception packet counters for the designated node.
The node-id argument is entered in the rack/slot/module notation.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines CEF exception packets are those packets that have been sent from the hardware to the software because they
require additional handling. The types of IPv4 CEF exception packets are displayed in the command’s output
and are defined.
If you do not specify a node with the location keyword and node-id argument, this command displays IPv4
CEF exception packet counters on all nodes.
Examples The following is sample output from the show cef ipv4 exceptions command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
176 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 exceptions
Field Description
Slow encap Number of packets requiring special processing
during encapsulation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 177
Cisco Express Forwarding Commands
show cef ipv4 exceptions
Related Commands
Command Description
clear cef ipv4 exceptions, on page 123 Clears IPv4 CEF exception packet counters.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
178 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 hardware
show cef [vrf vrf-name] ipv4 hardware {egress| ingress [detail| location node-id]}
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
egress Displays information from the egress packet switch exchange (PSE) file.
ingress Displays information from the ingress packet switch exchange (PSE) file.
location node-id (Optional) Displays detailed CEF information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 179
Cisco Express Forwarding Commands
show cef ipv4 interface
show cef [vrf vrf-name] ipv4 interface type interface-path-id [detail] [location node-id]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
detail (Optional) Displays detailed CEF information for all the interfaces on the node in which
the command is issued.
location node-id (Optional) Displays IPv4 CEF-related information for an interface. The node-id
argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
180 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 interface
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, the show cef ipv4 interface
rpf-statistics command displays the CEF-related information for the interface on the route processor.
Examples The following is sample output from the show cef ipv4 interface command:
Field Description
MgmtEth 0/0/CPU0/0 is up Status of the interface.
ICMP redirects are always sent or never sent Indicates whether ICMP4 redirect messages should
be sent. By default, ICMP redirect messages are
always sent.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 181
Cisco Express Forwarding Commands
show cef ipv4 interface
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
182 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 interface bgp-policy-statistics
show cef [vrf vrf-name] ipv4 interface type interface-path-id bgp-policy-statistics [location node-id]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
type Interface type. For more information, use the question mark (?) online help
function.
location node-id (Optional) Displays IPv4 CEF-related information for an interface. The node-id
argument is entered in the rack/slot/module notation.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines This command is not supported on ASR 9000 Ethernet Line Cards. This command displays all the configured
BGP policy counters for the specified interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 183
Cisco Express Forwarding Commands
show cef ipv4 interface bgp-policy-statistics
Examples The following is sample output from the show cef ipv4 interface bgp-policy-statistics command:
RP/0/0/CPU0:router# show cef ipv4 interface TenGigE 0/2/0/4 bgp-policy-statistics
TenGigE0/2/0/4 is up
Input BGP policy accounting on src IP address enabled
buckets packets bytes
0 184054 10157753
6 65688590 4204069760
7 65688590 4204069760
8 65688654 4204073856
9 65688656 4204073984
10 65688655 4204073920
30 32844290 1510837340
31 32844291 1510837386
32 32844294 1510837524
33 32844296 1510837616
34 32844298 1510837708
35 32844302 1510837892
36 32844302 1510837892
37 32844303 1510837938
38 32844305 1510838030
39 32844307 1510838122
Output BGP policy accounting on dst IP address enabled
buckets packets bytes
0 754 43878
Output BGP policy accounting on src IP address enabled
buckets packets bytes
0 857 51706
This table describes the significant fields shown in the display.
Table 19: show cef ipv4 interface bgp-policy-statistics Command Field Descriptions
Field Description
0/2/0/4 is up Status of the interface.
Input BGP policy accounting on src IP address Enabled BGP policy accounting features.
enabled
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
184 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 non-recursive
show cef [vrf vrf-name] ipv4 non-recursive [detail] [hardware {egress| ingress}] [interface-type
interface-instance] [location node-id]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
detail (Optional) Displays detailed information about nonrecursive prefix entries in the
IPv4 CEF table.
interface-type (Optional) Interface type. For more information, use the question mark (?) online
help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
location node-id (Optional) Displays the IPv4 nonrecursive prefix entries in the IPv4 CEF table for
the designated node. The node-id argument is entered in the rack/slot/module
notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 185
Cisco Express Forwarding Commands
show cef ipv4 non-recursive
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, the output displays the IPv4
CEF nonrecursive routes for the node on which the command is issued.
Examples The following is sample output from the show cef ipv4 non-recursive command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
186 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 non-recursive
10.0.0.0/24 receive
255.255.255.255/32 broadcast
This table describes the significant fields shown in the display.
Field Description
Prefix Nonrecursive prefixes detected on the node.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 187
Cisco Express Forwarding Commands
show cef ipv4 resource
show cef ipv4 resource [detail] [hardware {egress| ingress}] [location node-id]
Syntax Description detail (Optional) Displays detailed information resources listed in the IPv4 CEF table.
location node-id (Optional) Displays the IPv4 resource entries in the IPv4 CEF table for the
designated node. The node-id argument is entered in the rack/slot/module
notation.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, the output displays the IPv4
CEF nonrecursive routes for the node on which the command is issued.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
188 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 resource
Examples The following is sample output from the show cef ipv4 resource command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 189
Cisco Express Forwarding Commands
show cef ipv4 summary
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
location node-id (Optional) Displays a summary of the IPv4 CEF table for the designated node.
The node-id argument is entered in the rack/slot/module notation.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Release 3.6.0 The sample output was modified to display the load-balancing field
for either Layer 3 or Layer 4.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command displays a
summary of the IPv4 CEF table for the node on which the command is issued.
Examples The following sample output is from the show cef ipv4 summary command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
190 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 summary
0
.0.0.0
Load balancing: L3
Tableid 0xe0000000, Vrfid 0x60000000, Vrid 0x20000000, Flags 0x301
Vrfname default, Refcount 367
193 routes, 0 reresolve, 0 unresolved (0 old, 0 new), 13896 bytes
204 load sharing elements, 51904 bytes, 154 references
17 shared load sharing elements, 5536 bytes
187 exclusive load sharing elements, 46368 bytes
0 CEF route update drops, 175 revisions of existing leaves
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
16 prefixes with label imposition, 51 prefixes with label information
Adjacency Table has 44 adjacencies
1 incomplete adjacency
This table describes the significant fields shown in the display.
Field Description
Load balancing Current load-balancing mode. The default value is
L3.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 191
Cisco Express Forwarding Commands
show cef ipv4 summary
Field Description
revisions of existing leaves Number of updates to existing prefixes.
Related Commands
Command Description
bundle-hash Displays the path a bundle flow that comprises a
source and destination address would take.
cef load-balancing fields, on page 113 Selects the hashing algorithm that is used for load
balancing when forwarding.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
192 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv4 unresolved
show cef [vrf vrf-name] ipv4 unresolved [detail] [hardware {egress| ingress}] [location node-id]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
detail (Optional) Displays detailed information unresolved routes listed in the IPv4
CEF table.
location node-id (Optional) Displays the unresolved routes in the IPv4 CEF table for the
designated node. The node-id argument is entered in the rack/slot/module
notation.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Release 3.6.0 Both the detail and hardware keywords were added.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, the output displays the unresolved
routes for the node on which the command is issued.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 193
Cisco Express Forwarding Commands
show cef ipv4 unresolved
Examples The following is sample output from the show cef ipv4 unresolved command when an unresolved route is
detected:
Field Description
Prefix Prefix of the unresolved CEF.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
194 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance
information.
interface-type interface-number (Optional) IPv6 prefixes going through the specified next hop interface.
ipv6-prefix/prefix-length (Optional) Longest prefix entry in the CEF table matching the specified
IPv6 prefix and prefix length.
location node-id (Optional) Displays the IPv6 CEF table for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command displays the
IPv6 CEF table for the node on which the command is issued.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 195
Cisco Express Forwarding Commands
show cef ipv6
Examples The following sample output is from the show cef ipv6 command:
::/0
::/128
drop
::1/128
loopback
66::4/128
receive Loopback0
2222::/64
connected 0/4/0/0
2222::1/128
receive 0/4/0/0
3333::/64
connected 0/3/0/0
3333::2/128
receive 0/3/0/0
5656::2/128
recursive fe80::3031:48ff:fe53:5533, 0/3/0/0
7777::/64
connected 0/0/0/0
7777::2/128
receive 0/0/0/0
9999::1/128
recursive fe80::205:5fff:fe1d:7600, 0/4/0/0
ff00::/8
drop
ff02::1/128
receive
ff02::2/128
receive
ff02::5/128
receive
ff02::6/128
receive
ff02::1:ff00:0/104
receive
Field Description
drop Indicates that packets sent to the destination prefix
are dropped.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
196 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6
Field Description
recursive Indicates that the prefix is not directly connected but
is reachable through the next-hop prefix displayed.
The following sample output is from the show cef ipv6 with the detail keyword:
::/0
flags: source_rib
Loadinfo owner: <this route>
fast adj: glean
path 1:
flags :
next hop : ::
interface :
/0/0/0
::/128
flags: drop, source_fib
Loadinfo owner: <this route>
fast adj: drop
path 1:
flags :
next hop : ::
interface : <not specified>
::1/128
flags: loopback, source_fib
Loadinfo owner: <this route>
fast adj: loopback
path 1:
flags :
next hop : ::
interface : <not specified>
66::4/128
flags: receive, source_rib
Loadinfo owner: <this route>
fast adj: receive
path 1:
flags : point-to-point
next hop : ::
interface : Loopback0
This table describes the significant output fields shown in the display.
Field Description
flags: Properties of the indicated prefix.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 197
Cisco Express Forwarding Commands
show cef ipv6
Field Description
path 1: The following three items are displayed below path
1:
• flags–Properties of the path.
• next hop–Next-hop prefix if the packet is being
forwarded.
• interface–Next-hop interface if the packet is
being forwarded.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
198 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 adjacency
show cef [vrf vrf-name] ipv6 adjacency [interface-type interface-path-id] [location node-id] [detail] [discard]
[glean] [null] [punt] [remote]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
interface-type (Optional) Interface type. For more information, use the question mark (?) online
help function.
interface- path-id (Optional) Either a physical interface instance or a virtual interface instance:
• Physical interface instance. Naming notation is rack/slot/module/port and a
slash mark between values is required as part of the notation.
◦rack: Chassis number of the rack.
◦slot: Physical slot number of the line card.
◦module: Module number. A physical layer interface module (PLIM) is
always 0.
◦port: Physical port number of the interface.
For more information about the syntax for the router, use the question mark (?) online
help function.
location node-id (Optional) Displays detailed CEF information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
discard (Optional) Filters out and displays only the discarded adjacency information.
glean (Optional) Filters out and displays only the glean adjacency information.
null (Optional) Filters out and displays only the null adjacency information.
punt (Optional) Filters out and displays only the punt adjacency information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 199
Cisco Express Forwarding Commands
show cef ipv6 adjacency
remote (Optional) Filters out and displays only the remote adjacency information.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command displays the
CEF adjacency table for the node on which the command is issued.
Examples The following sample output is from the show cef ipv6 adjacency command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
200 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 adjacency
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 201
Cisco Express Forwarding Commands
show cef ipv6 adjacency hardware
show cef [vrf vrf-name] ipv6 adjacency hardware {egress| ingress} [detail| discard| drop| glean| location
node-id| null| punt| remote]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
egress Displays information from the egress packet switch exchange (PSE) file.
ingress Displays information from the ingress packet switch exchange (PSE) file.
location node-id (Optional) Displays detailed CEF information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
202 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 adjacency hardware
Examples The following sample output is from the show cef ipv6 adjacency hardware command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 203
Cisco Express Forwarding Commands
show cef ipv6 drops
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
location node-id (Optional) Displays IPv6 CEF table packet drop counters for the designated
node. The node-id argument is entered in the rack/slot/module notation.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines A packet might be dropped by the IPv6 CEF table because of unresolved CEF entries, unsupported features,
absence of route information, absence of adjacency information, or an IP checksum error.
If you do not specify a node with the location keyword and node-id argument, this command displays the
packet drops for all nodes.
Note Because no hardware forwarding occurs on the route processor (RP), no packet drop information is
displayed for that node.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
204 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 drops
Examples The following is sample output from the show cef ipv6 drops command:
Field Description
Line status down Packet drops due to the line protocol of the incoming
interface being down.
Packet sanity fail Packet drops due to the prefix failing the IPv6 sanity
test. The sanity test verifies that the IPv6 packet is
valid.
PLU set to drop Packet drops due the IPv6 destination prefix being
set to drop.
Unknown type, plu drop Packet drops due to the prefix being of an unknown
type.
Packet length errs Length specified in the header does not match the
actual length of the packet received.
TCAM src-comp err Packet drops due to source compression errors that
have occurred in the hardware.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 205
Cisco Express Forwarding Commands
show cef ipv6 drops
Field Description
Unresolved drops Drops due to unresolved routes.
Related Commands
Command Description
clear cef ipv6 drops, on page 129 Clears IPv6 CEF packet drop counters.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
206 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 exact-route
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance
information.
protocol protocol name (Optional) Displays the specified protocol for the route.
source-port source-port (Optional) Sets the UDP source port. The range is from 0 to 65535.
destination-port destination-port (Optional) Sets the UDP destination port. The range is from 0 to 65535.
type (Optional) Interface type. For more information, use the question mark
(?) online help function.
policy-class value (Optional) Displays the class for the policy-based tunnel selection. The
range for the tunnel policy class value is from 1 to 7.
location node-id (Optional) Displays the IPv6 CEF table for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 207
Cisco Express Forwarding Commands
show cef ipv6 exact-route
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Release 3.6.0 The following keywords were added so that the Layer 4 information can be
specified for the exact route:
• protocol
• source-port
• destination-port
• ingress-interface
Usage Guidelines If the Layer 4 information is enabled, the source-port, destination-port, protocol, and ingress-interface fields
are required. Otherwise, the output of the show cef ipv6 exact-route command is not correct.
Examples The following sample output is from the show cef ipv6 exact-route command:
Related Commands
Command Description
cef load-balancing fields, on page 113 Selects the hashing algorithm that is used for load
balancing when forwarding.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
208 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 exceptions
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
location node-id (Optional) Displays IPv6 CEF exception packet counters for the designated
node. The node-id argument is entered in the rack/slot/module notation.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines CEF exception packets are those packets that have been sent from the hardware to the software because they
require additional handling. The types of IPv6 CEF exception packets are displayed in the output of show cef
ipv6 exceptions.
If you do not specify a node with location keyword and node-id argument, this command displays IPv6 CEF
exception packet counters for all nodes.
Examples The following is sample output from the show cef ipv6 exceptions command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 209
Cisco Express Forwarding Commands
show cef ipv6 exceptions
Field Description
TTL err Packets sent to software for processing because the
packet header of the IPv6 prefix had a TTL7 error.
Link-local dst addr Packets sent to the software for processing because
the destination address of the IPv6 prefix is link local.
PLU entry set to punt Packets sent to software for processing because the
IPv6 prefix is set to punt.
Packet too big Packets sent to the software for processing because
the packet size exceeded the MTU8.
Related Commands
Command Description
clear cef ipv6 exceptions, on page 131 Clears IPv6 CEF exception packet counters.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
210 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 hardware
show cef [vrf vrf-name] ipv6 hardware {egress| ingress [detail| location node-id]}
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
egress Displays information from the egress packet switch exchange (PSE) file.
ingress Displays information from the ingress packet switch exchange (PSE) file.
location node-id (Optional) Displays detailed CEF information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Examples The following sample output displays the full details from the show cef ipv6 hardware command:
::/0, version 0, proxy default, default route handler, drop adjacency, internal
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 211
Cisco Express Forwarding Commands
show cef ipv6 hardware
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
212 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 interface
show cef [vrf vrf-name] ipv6 interface type interface-path-id [detail] [location node-id][rpf-drop]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
type Interface type. For more information, use the question mark (?) online help
function.
detail (Optional) Displays detailed CEF information for all the interfaces on the node
in which the command is issued.
location node-id (Optional) Displays IPv4 CEF-related information for an interface. The node-id
argument is entered in the rack/slot/module notation.
rpf-drop (Optional) Displays information about the drops due to IPv6 unicast RPF.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, the show cef ipv6 interface
command displays the CEF-related information for the interface on the route processor.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 213
Cisco Express Forwarding Commands
show cef ipv6 interface
Examples The following sample output is from the show cef ipv6 interface command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
214 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 interface bgp-policy-statistics
show cef [vrf vrf-name] ipv6 interface type interface-path-id bgp-policy-statistics [location node-id]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
type Interface type. For more information, use the question mark (?) online help
function.
location node-id (Optional) Displays detailed CEF information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Usage Guidelines The show cef ipv6 interface bgp-policy-statistics command displays all the configured BGP policy counters
for the specified interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 215
Cisco Express Forwarding Commands
show cef ipv6 interface bgp-policy-statistics
Examples The following sample output is from the show cef ipv6 interface bgp-policy-statistics command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
216 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 interface rpf-statistics
show cef [vrf vrf-name] ipv6 interface type interface-path-id rpf-statistics [location node-id]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
location node-id (Optional) Displays detailed CEF information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 217
Cisco Express Forwarding Commands
show cef ipv6 interface rpf-statistics
Examples The following sample output is from the show cef ipv6 interface rpf-statistics command:
RP/0/0/CPU0:router# show cef ipv6 interface POS 0/1/0/0 rpf-statistics
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
218 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 non-recursive
show cef [vrf vrf-name] ipv6 non-recursive [hardware {egress| ingress}] [detail] [location node-id]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
hardware (Optional) Displays Cisco Express Forwarding (CEF) IPv6 hardware status and
configuration information.
egress (Optional) Displays information from the egress packet switch exchange (PSE)
file.
ingress (Optional) Displays information from the ingress packet switch exchange (PSE)
file.
location node-id (Optional) Displays the nonrecursive prefix entries in the IPv6 CEF table for
the designated node. The node-id argument is entered in the rack/slot/module
notation.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Release 3.6.0 Both the hardware and detail keywords were added.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command displays the
nonrecursive routes for the node on which the command is issued.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 219
Cisco Express Forwarding Commands
show cef ipv6 non-recursive
Examples The following is sample output from the show cef ipv6 non-recursive command:
::/0
::/128
drop
::1/128
loopback
66::4/128
receive Loopback0
2222::/64
connected 0/4/0/0
2222::1/128
receive 0/4/0/0
3333::/64
connected 0/3/0/0
3333::2/128
receive 0/3/0/0
7777::/64
connected 0/0/0/0
7777::2/128
receive 0/0/0/0
ff00::/8
drop
ff02::1/128
receive
ff02::2/128
receive
ff02::5/128
receive
ff02::6/128
receive
ff02::1:ff00:0/104
receive
Field Description
drop Indicates that packets sent to the destination prefix
are dropped.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
220 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 non-recursive
Field Description
connected Indicates that the prefix points to a directly connected
next-hop interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 221
Cisco Express Forwarding Commands
show cef ipv6 resource
show cef ipv6 resource [detail] [hardware {egress| ingress}] [location node-id]
Syntax Description detail (Optional) Displays detailed information resources listed in the IPv6 CEF table.
hardware (Optional) Displays Cisco Express Forwarding (CEF) IPv6 hardware status and
configuration information.
egress (Optional) Displays information from the egress packet switch exchange (PSE)
file.
ingress (Optional) Displays information from the ingress packet switch exchange (PSE)
file.
location node-id (Optional) Displays the IPv6 resource entries in the IPv6 CEF table for the
designated node. The node-id argument is entered in the rack/slot/module
notation.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, the output displays the IPv6
CEF nonrecursive routes for the node on which the command is issued.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
222 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 resource
Examples The following is sample output from the show cef ipv6 resource command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 223
Cisco Express Forwarding Commands
show cef ipv6 summary
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
location node-id (Optional) Displays a summary of the IPv6 CEF table for the designated node.
The node-id argument is entered in the rack/slot/module notation.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Release 3.6.0 The sample output was modified to display the load-balancing field
for either Layer 3 or Layer 4.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command displays a
summary of the IPv6 CEF table for the node on which the command is issued.
Examples The following is sample output from the show cef ipv6 summary command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
224 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 summary
Load balancing: L3
Tableid 0xe0800000, Vrfid 0x60000000, Vrid 0x20000000, Flags 0x301
Vrfname default, Refcount 12
4 routes, 0 reresolve, 0 unresolved (0 old, 0 new), 288 bytes
0 load sharing elements, 0 bytes, 0 references
0 shared load sharing elements, 0 bytes
0 exclusive load sharing elements, 0 bytes
0 CEF route update drops, 0 revisions of existing leaves
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
0 prefixes with label imposition, 0 prefixes with label information
Adjacency Table has 44 adjacencies
1 incomplete adjacency
This table describes the significant fields shown in the display.
Field Description
Load balancing Current load-balancing mode. The default value is
L3.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 225
Cisco Express Forwarding Commands
show cef ipv6 summary
Related Commands
Command Description
bundle-hash Displays the path a bundle flow that comprises a
source and destination address would take. For more
information, see Cisco IOS XR Interface and
Hardware Component Command Reference for the
Cisco XR 12000 Series Router
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
226 OL-28453-05
Cisco Express Forwarding Commands
show cef ipv6 unresolved
show cef [vrf vrf-name] ipv6 unresolved [detail] [hardware {egress| ingress}] [location node-id]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
hardware egress (Optional) Displays Cisco Express Forwarding information from the egress
packet switch exchange ( CEF PSE ) IPv6 hardware status and configuration
information file .
egress ingress (Optional) Displays information from the egress ingress packet switch
exchange (PSE) file.
ingress detail (Optional) Displays information from the ingress packet switch exchange
(PSE) file full details .
location node-id (Optional) Displays the unresolved routes in the IPv6 CEF table for the
specified node. The node-id argument is entered in the rack/slot/module
notation.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command displays the
unresolved routes for the node on which the command is issued.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 227
Cisco Express Forwarding Commands
show cef ipv6 unresolved
Examples This following is sample output from show cef ipv6 unresolved command when an unresolved route is
detected:
9999::/64
unresolved
This table describes the significant fields shown in the display.
Field Description
xxxx::/xx Detected unresolved route.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
228 OL-28453-05
Cisco Express Forwarding Commands
show cef mpls adjacency
show cef mpls adjacency [interface-type interface-path-id] [detail| discard| drop| glean| null| punt| remote]
[location node-id]
Syntax Description interface-type (Optional) Interface type. For more information, use the question mark (?) online
help function.
interface- path-id (Optional) Either a physical interface instance or a virtual interface instance:
• Physical interface instance. Naming notation is rack/slot/module/port and a
slash mark between values is required as part of the notation.
◦rack: Chassis number of the rack.
◦slot: Physical slot number of the line card.
◦module: Module number. A physical layer interface module (PLIM) is
always 0.
◦port: Physical port number of the interface.
For more information about the syntax for the router, use the question mark (?) online
help function.
location node-id (Optional) Displays detailed CEF information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 229
Cisco Express Forwarding Commands
show cef mpls adjacency
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, the show cef mpls adjacency
command displays the MPLS adjacency table for the node in which the command is issued.
Examples This following is sample output from show cef mpls adjacency command:
Related Commands
Command Description
show cef mpls adjacency hardware, on page 232 Displays the Multiprotocol Label Switching (MPLS)
adjacency hardware status and configuration
information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
230 OL-28453-05
Cisco Express Forwarding Commands
show cef mpls adjacency
Command Description
show cef mpls interface, on page 234 Displays the Multiprotocol Label Switching (MPLS)
Cisco Express Forwarding (CEF)-related information
for an interface.
show cef mpls unresolved, on page 236 Displays the Multiprotocol Label Switching (MPLS)
unresolved routes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 231
Cisco Express Forwarding Commands
show cef mpls adjacency hardware
show cef mpls adjacency hardware {egress| ingress} [detail| discard| drop| glean| location node-id| null|
punt| remote]
Syntax Description egress Displays information from the egress packet switch exchange (PSE) file.
ingress Displays information from the ingress packet switch exchange (PSE) file.
location node-id (Optional) Displays detailed CEF information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
232 OL-28453-05
Cisco Express Forwarding Commands
show cef mpls adjacency hardware
Examples This following is sample output from show cef mpls adjacency hardware command:
Related Commands
Command Description
show cef mpls adjacency, on page 229 Displays the Multiprotocol Label Switching (MPLS)
adjacency table.
show cef mpls interface, on page 234 Displays the Multiprotocol Label Switching (MPLS)
Cisco Express Forwarding (CEF)-related information
for an interface.
show cef mpls unresolved, on page 236 Displays the Multiprotocol Label Switching (MPLS)
unresolved routes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 233
Cisco Express Forwarding Commands
show cef mpls interface
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
detail (Optional) Displays detailed CEF information for all the interfaces on the node in which
the command is issued.
location node-id (Optional) Displays IPv4 CEF-related information for an interface. The node-id argument
is entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
234 OL-28453-05
Cisco Express Forwarding Commands
show cef mpls interface
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, the show cef mpls interface
command displays the CEF-related information for the interface on the route processor.
Examples The following sample output is from the show cef mpls interface command:
Related Commands
Command Description
show cef mpls adjacency, on page 229 Displays the Multiprotocol Label Switching (MPLS)
adjacency table.
show cef mpls adjacency hardware, on page 232 Displays the Multiprotocol Label Switching (MPLS)
adjacency hardware status and configuration
information.
show cef mpls unresolved, on page 236 Displays the Multiprotocol Label Switching (MPLS)
unresolved routes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 235
Cisco Express Forwarding Commands
show cef mpls unresolved
Syntax Description detail (Optional) Displays detailed adjacency information, including Layer 2
information.
location node-id (Optional) Displays detailed CEF information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Examples The following sample output is from the show cef mpls unresolved command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
236 OL-28453-05
Cisco Express Forwarding Commands
show cef mpls unresolved
Field Description
Label/EOS MPLS forwarding label/End of Stack (EOS) bit.
Related Commands
Command Description
show cef mpls adjacency, on page 229 Displays the Multiprotocol Label Switching (MPLS)
adjacency table.
show cef mpls adjacency hardware, on page 232 Displays the Multiprotocol Label Switching (MPLS)
adjacency hardware status and configuration
information.
show cef mpls interface, on page 234 Displays the Multiprotocol Label Switching (MPLS)
Cisco Express Forwarding (CEF)-related information
for an interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 237
Cisco Express Forwarding Commands
show cef vrf
Usage Guidelines To display unresolved routes, you must use the unresolved keyword explicitly.
Examples This following is sample output from show cef vrf command when an unresolved route is detected:
Field Description
Prefix Prefix in the IPv4 CEF table.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
238 OL-28453-05
Cisco Express Forwarding Commands
show cef vrf
Field Description
Next Hop Next hop of the prefix.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 239
Cisco Express Forwarding Commands
show cef vrf
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
240 OL-28453-05
DHCP Commands
This chapter describes the Cisco IOS XR software commands used to configure and monitor Dynamic Host
Configuration Protocol (DHCP).
For detailed information about DHCP concepts, configuration tasks, and examples, refer to the Cisco IOS XR
IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series Router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 241
DHCP Commands
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
242 OL-28453-05
DHCP Commands
allow-hint
allow-hint
To allow the server to delegate a valid client-suggested prefix in the solicit and request messages, use the
allow-hint command in Dynamic Host Configuration Protocol (DHCP) IPv6 interface server configuration
mode. To disable the delegation of a valid client-suggested prefix, use the no form of the command.
allow-hint
no allow-hint
Usage Guidelines The allow-hint command enables the server to delegate a client-suggested prefix in the solicit and request
messages if the prefix in the associated local prefix pool is a valid prefix and it is not assigned to any other
solicit and request messages. Otherwise, the hint is ignored, and a prefix is delegated from the free list in the
pool.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# dhcp ipv6 interface pos 0/5/0/0 server
RP/0/0/CPU0:router(config-dhcpv6-if)# allow-hint
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 243
DHCP Commands
broadcast-flag policy check
Command Default Relay agent always broadcasts DHCP IPv4 packets to a client.
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# dhcp ipv4
RP/0/0/CPU0:router(config-dhcpv4)# profile client relay
RP/0/0/CPU0:router(config-dhcpv4-relay-profile)# broadcast-flag policy check
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
244 OL-28453-05
DHCP Commands
broadcast-flag policy check
Related Commands
Command Description
dhcp ipv4 , on page 253 Enables DHCP for IPv4 and enters
DHCP IPv4 configuration mode.
relay information option allow-untrusted , on page 294 Configures the DHCP component
to not drop BOOTREQUEST
messages that have the relay
information option set and the
giaddr set to zero.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 245
DHCP Commands
clear dhcp ipv6 binding
Usage Guidelines The clear ipv6 dhcp binding command is used as a server function.
A binding table entry on the DHCP for IPv6 server is automatically:
• Created whenever a prefix is delegated to a client from the configuration information pool
• Updated when the client renews, rebinds, or confirms the prefix delegation
• Deleted when the client releases all the prefixes in the binding voluntarily, all prefixes' valid lifetimes
have expired, or an administrator runs the clear ipv6 dhcp binding command.
If the clear ipv6 dhcp binding command is used with the optional ipv6-address argument specified, only
the binding for the specified client is deleted. If the clear ipv6 dhcp binding command is used without the
ipv6-address argument, then all automatic client bindings are deleted from the DHCP for IPv6 binding table.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
246 OL-28453-05
DHCP Commands
clear dhcp ipv6 binding
Examples The following example specifies DHCP for IPv6 binding database agent parameters:
Related Commands
Command Description
show dhcp ipv6 database , on page 308 Displays the DHCP for the IPv6 binding database
information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 247
DHCP Commands
database
database
To configure a Dynamic Host Configuration Protocol (DHCP) for IPv6 binding database agent, use the
database command in DHCP IPv6 configuration mode. To delete the database agent, use the no form of this
command.
Syntax Description agent-URL A Flash, NVRAM, FTP, TFTP, or Remote Copy Protocol (RCP) uniform
resource locator.
write-delay seconds (Optional) How often (in seconds) DHCP for IPv6 sends database updates.
The default is 300 seconds. The minimum write delay is 60 seconds.
timeout seconds (Optional) Length of time, in seconds, the router waits for a database transfer.
Usage Guidelines The database command specifies DHCP for IPv6 binding database agent parameters. The user may configure
multiple database agents.
The write-delay keyword specifies how often, in seconds, that DHCP sends database updates. By default,
DHCP for IPv6 server waits 300 seconds before sending any database changes.
The timeout keyword specifies how long, in seconds, the router waits for a database transfer. Infinity is
defined as 0 seconds, and transfers that exceed the timeout period are aborted. By default, the DHCP for IPv6
server waits 300 seconds before aborting a database transfer. When the system is going to reload, there is no
transfer timeout so that the binding table can be stored completely.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
248 OL-28453-05
DHCP Commands
database
Examples The following example specifies DHCP for IPv6 binding database agent parameters:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# dhcp ipv6
RP/0/0/CPU0:router(config-dhcpv6)# database tftp://10.0.0.1/dhcp-binding
Related Commands
Command Description
dhcp ipv6 , on page 264 Enables Dynamic Host Configuration Protocol
(DHCP) for IPv6 and enters DHCP IPv6 configuration
mode.
show dhcp ipv6 database , on page 308 Displays the DHCP for the IPv6 binding database
information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 249
DHCP Commands
destination (DHCP IPv6)
Syntax Description ipv6 address IPv6 address in the form documented in RFC 2373, where the address is specified in
address hexadecimal using 16-bit values between colons.
For more information about the syntax for the router, use the question mark (?) online
help function.
Command Default Relay function is disabled and there is no relay destination on the interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
250 OL-28453-05
DHCP Commands
destination (DHCP IPv6)
Usage Guidelines The destination command specifies a destination address to which client messages are forwarded and enables
DHCP for IPv6 relay service on the interface. When relay service is enabled on an interface, a DHCP for IPv6
message received on that interface is forwarded to all configured relay destinations. The incoming DHCP for
IPv6 message may have come from a client on that interface, or it may have been relayed by another relay
agent.
The relay destination can be a unicast address of a server or another relay agent, or it may be a multicast
address. There are the following two types of relay destination addresses:
• A link-scoped unicast or multicast IPv6 address, for which a user must specify an output interface
• A global unicast IPv6 address, for which a user can specify an output interface for this kind of address.
• A global or site-scope multicast IPv6 address, for which a user can specify an output interface for this
kind of address if 'mhost ipv6 default-interface' is specified.
If no output interface is configured for a destination, the output interface is determined by routing tables. In
this case, it is recommended that a unicast or multicast routing protocol be running on the router.
Multiple destinations can be configured on one interface, and multiple output interfaces can be configured
for one destination. When the relay agent relays messages to a multicast address, it sets the hop limit field in
the IPv6 packet header to 32.
Unspecified, loopback, and node-local multicast addresses are not acceptable as the relay destination. If any
one of them is configured, the message "Invalid destination address" is displayed.
Note that it is not necessary to enable the relay function on an interface for it to accept and forward an incoming
relay reply message from servers. By default, the relay function is disabled, and there is no relay destination
on an interface. The no form of the command removes a relay destination on an interface or deletes an output
interface for a destination. If all relay destinations are removed, the relay service is disabled on the interface.
The DHCP for IPv6 client, server, and relay functions is mutually exclusive on an interface. When one of
these functions is already enabled and a user tries to configure a different function on the same interface, one
of the following messages is displayed: “Interface is in DHCP client mode,” “Interface is in DHCP server
mode,” or “Interface is in DHCP relay mode.”
Related Commands
Command Description
interface (DHCP), on page 276 Enables DHCP for IPv6 on an interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 251
DHCP Commands
destination (DHCP IPv6)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
252 OL-28453-05
DHCP Commands
dhcp ipv4
dhcp ipv4
To enable Dynamic Host Configuration Protocol (DHCP) for IPv4 and to enter DHCP IPv4 configuration
mode, use the dhcp ipv4 command in Global Configuration mode. To disable DHCP for IPv4 and exit the
DHCP IPv4 configuration mode, use the no form of this command.
dhcp ipv4
no dhcp ipv4
Usage Guidelines Use the dhcp ipv4 command to enter DHCP IPv4 configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 253
DHCP Commands
show dhcp ipv4 client
Syntax Description interfaceName Displays the DHCP IPv4 address of the specified interface.
Usage Guidelines Use the show dhcp ipv4 client command to display the DHCP IPv4 for the specified client.
Examples The following example shows how to display DHCP IPv4 binding information:
RP/0/0/CPU0:ios#show dhcp ipv4 client
Mon May 6 16:35:32.581 UTC
RP/0/0/CPU0:ios#
RP/0/0/CPU0:ios#show dhcp ipv4 client binding ?
MgmtEth Ethernet/IEEE 802.3 interface(s)
detail Show detailed client binding information
| Output Modifiers
<cr>
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
254 OL-28453-05
DHCP Commands
show dhcp ipv4 client
-----------------------------------------------------
Client Interface name : MgmtEth0_0_CPU0_0
Client Interface handle : 0x1280
Client Interface VRF name : default
Client ChAddr : 000c.292f.950e
Client ID : MgmtEth0_0_CPU0_0
Client State : BOUND
Client IP Address (Dhcp) : 192.168.190.130
Client IP Address Mask : 255.255.255.0
Client Lease Time Allocated : 1800 secs (00:30:00)
Client Lease Time Remaining : 1664 secs (00:27:44)
Client Selected Server Addr : 192.168.190.254
-----------------------------------------------------
RP/0/0/CPU0:ios#
RP/0/0/CPU0:ios#show dhcp ipv4 client binding detail ?
MgmtEth Ethernet/IEEE 802.3 interface(s)
debug Show detailed debug level client binding information
| Output Modifiers
<cr>
RP/0/0/CPU0:ios#show dhcp ipv4 client detail debug
Mon May 6 16:36:43.836 UTC
-----------------------------------------------------
Client Interface name : MgmtEth0_0_CPU0_0
Client Interface handle : 0x1280
Client Interface VRF name : default
Client ChAddr : 000c.292f.950e
Client ID : MgmtEth0_0_CPU0_0
Client State : BOUND
Client IP Address (Dhcp) : 192.168.190.130
Client IP Address Mask : 255.255.255.0
Client Lease Time Allocated : 1800 secs (00:30:00)
Client Lease Time Remaining : 1617 secs (00:26:57)
Client Selected Server Addr : 192.168.190.254
Client Interface VRF id : 0x60000000
Client Interface VRF Table id : 0xe0000000
Client XID : 0xa7f
Client Timers Running : 0x2 (T1_RENEW_TIMER)
Client Renew Time Allocated : 900 secs (00:15:00)
Client Renew Time Adjusted : 900 secs (00:15:00)
Client Rebind Time Allocated : 1575 secs (00:26:15)
Client Rebind Time Adjusted : 1575 secs (00:26:15)
Client Checkpoint object id : 0x80002fd8
Client IPv4 MA configured : TRUE
-----------------------------------------------------
RP/0/0/CPU0:ios#
RP/0/0/CPU0:ios#show dhcp ipv4 client mgmtEth 0/0/CPU0/0
Mon May 6 16:49:54.382 UTC
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 255
DHCP Commands
show dhcp ipv4 client statistics
Syntax Description interfaceName Displays the DHCP IPv4 statistical information of the specified interface.
Usage Guidelines Use the show dhcp ipv4 client statistics command to display the DHCP IPv4 statistical information for the
specified client.
Examples The following example shows how to display the DHCP IPv4 statistics information:
-----------------------------------------------------
Client Interface name : MgmtEth0_0_CPU0_0
Client State : BOUND
-----------------------------------------------------
TOTAL STATISTICS
-----------------------------------------------------
DISCOVERS SENT : 1
OFFERS SENT : 1
OFFERS RECEIVED : 1
ACKS RECEIVED : 1
RELEASE SENT : 1
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
256 OL-28453-05
DHCP Commands
show dhcp ipv4 client statistics
RESYNC SENT TO IM : 1
IPV4_MA CFG SENT : 1
IPV4_MA CFG SUCCESS : 1
INIT TIMER STARTED : x
T1-RENEW TIMER STARTED : x
T2_REBIND TIMER STARTED : x
LEASE TIMER STARTED : x
INIT TIMER STOPPED : x
T1-RENEW TIMER STOPPED : x
T2_REBIND TIMER STOPPED : x
LEASE TIMER STOPPED : x
-----------------------------------------------------
ERROR COUNTERS
-----------------------------------------------------
OFFERS IGNORED : 1
ACK IGNORED : 1
DECLINE SENT : 1
NACK RECEIVED : 1
INVALID OFFERS RECEIVED : 1
INVALID ACKS RECEIVED : 1
IPV4_MA CFG FAILED : 0
IPV4_MA CFG FAILED REASON : "..."
IM RESYNC ERROR REASON : "..."
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 257
DHCP Commands
clear dhcp ipv4 client
Syntax Description interfaceName Clears and restarts the DHCP IPv4 information of the specified interface.
Usage Guidelines Use the clear dhcp ipv4 client command to clear the DHCP client binding information for the specified
interface.
Examples The following example shows how to clear the DHCP client binding information:
RP/0/0/CPU0:ios#clear dhcp ipv4 client mgmtEth 0/0/CPU0/0
Fri Jun 6 08:24:14.558 UTC
RP/0/0/CPU0:ios#show dhcp ipv4 client
Fri Jun 6 08:24:17.377 UTC
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
258 OL-28453-05
DHCP Commands
clear dhcp ipv4 client
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 259
DHCP Commands
clear dhcp ipv4 client statistics
statistics Clears DHCP IPv4 statistical information for the specified interface.
Usage Guidelines Use the clear dhcp ipv4 client statistics command to clear the DHCP client binding statistics information
for the specified interface.
Examples The following example shows how to clear the DHCP client binding statistics information:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
260 OL-28453-05
DHCP Commands
clear dhcp ipv4 client statistics
show dhcp ipv4 client, on page 254 Displays DHCP IPv4 client information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 261
DHCP Commands
show tech support dhcp ipv4 client
Syntax Description show-tech-options Displays the DHCP IPv4 client show tech-support options.
Usage Guidelines Use the show tech-support dhcp ipv4 client command to retrieve the DHCP show-tech options for the
specified interface.
Examples The following example shows how to clear the DHCP client binding statistics information:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
262 OL-28453-05
DHCP Commands
show tech support dhcp ipv4 client
Directory of disk0:
show dhcp ipv4 client statistics, on page 256 Displays the statistics of the DHCP client.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 263
DHCP Commands
dhcp ipv6
dhcp ipv6
To enable Dynamic Host Configuration Protocol (DHCP) for IPv6 and to enter DHCP IPv6 configuration
mode, use the dhcp ipv6 command in Global Configuration mode. To disable the DHCP for IPv6, use the no
form of this command.
dhcp ipv6
no dhcp ipv6
Usage Guidelines
Related Commands
Command Description
database, on page 248 Configures a Dynamic Host Configuration Protocol
(DHCP) for IPv6 binding database agent.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
264 OL-28453-05
DHCP Commands
dhcp ipv6
Command Description
pool (DHCP IPv6), on page 284 Configures a Dynamic Host Configuration Protocol
(DHCP) for the IPv6 server configuration information
pool and enters DHCP for IPv6 pool configuration
mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 265
DHCP Commands
distance
distance
To specify an administrative distance for Dynamic Host Configuration Protocol (DHCP) for IPv6 Prefix
Delegation, use the distance command in DHCP IPv6 configuration mode. To delete an administrative
distance, use the no form of this command.
Syntax Description administrative distanc e User defined distance. The range is 1 to 255.
Examples The following is an example of setting the DHCP administrative distance to 200 using the distance command:
Related Commands
Command Description
dhcp ipv6 , on page 264 Enables Dynamic Host Configuration Protocol
(DHCP) for IPv6 and enters DHCP IPv6 configuration
mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
266 OL-28453-05
DHCP Commands
distance
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 267
DHCP Commands
dns-server
dns-server
To specify the Domain Name System (DNS) IPv6 servers available to a Dynamic Host Configuration Protocol
(DHCP) for IPv6 client, use the dns-server command in an appropriate configuration mode. To remove the
DNS server list, use the no form of this command.
dns-server ipv6-address
no dns-server ipv6-address
Command Default When a DHCP for IPv6 pool is first created, no DNS IPv6 servers are configured.
Command Modes
Usage Guidelines Multiple Domain Name System (DNS) server addresses can be configured by issuing this command multiple
times. New addresses do not overwrite old addresses.
Examples This is an example of setting the DNS server name using the dns-server command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
268 OL-28453-05
DHCP Commands
domain-name (DHCP IPv6 pool)
domain-name domain
no domain-name
Syntax Description domain Specifies the domain name string to be used by the client.
Command Default When a DHCP for IPv6 pool is first created, no domain name for clients is configured.
Usage Guidelines Multiple Domain Name System (DNS) domain names can be configured by issuing the domain-name
command multiple times. The new domain name does not overwrite existing domain names.
The domain name is defined in DHCP IPv6 server profile and DHCP IPv6 server profile class configuration.
If the same parameters are defined in the class scope, then the values defined in the class scope takes precedence.
Examples This is an example of how to configure a DHCP IPv6 domain name using the domain-name command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 269
DHCP Commands
duid
duid
To define the Dynamic Host Configuration Protocol (DHCP) the unique identification (DUID) on a specified
device, use the duid command in DHCP IPv6 configuration mode. To delete an administrative distance, use
the no form of this command.
Syntax Description duid name IPv6 DHCP unique identifier (DUID) in hex format. The length of DUID word
should be even.
Usage Guidelines Use the duid command to configure the DHCP unique identifier on a specified device. Use the no form of
this command to restore the default.
Examples The following is an example of how to create an IPv6 DHCP unique identifier (DUID) of
0002000000090CC084D303000912 using the duid command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
270 OL-28453-05
DHCP Commands
duid
Related Commands
Command Description
dhcp ipv6 , on page 264 Enables Dynamic Host Configuration Protocol
(DHCP) for IPv6 and enters DHCP IPv6 configuration
mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 271
DHCP Commands
giaddr policy
giaddr policy
To configure how Dynamic Host Configuration Protocol (DHCP) IPv4 Relay processes BOOTREQUEST
packets that already contain a nonzero giaddr attribute, use the giaddr policy command in DHCP IPv4 profile
relay configuration submode. To restore the default giaddr policy, use the no form of this command.
Syntax Description replace Replaces the existing giaddr value with a value that it generates.
drop Drops the packet that has an existing nonzero giaddr value.
Command Default DHCP IPv4 relay retains the existing nonzero giaddr value in the DHCP IPv4 packet received from a client
value.
Usage Guidelines The giaddr policy command affects only the packets that are received from a DHCP IPv4 client that have a
nonzero giaddr attribute.
Examples The following example shows how to use the giaddr policy command:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# dhcp ipv4
RP/0/0/CPU0:router(config-dhcpv4)# profile client relay
RP/0/0/CPU0:router(config-dhcpv4-relay-profile)# giaddr policy drop
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
272 OL-28453-05
DHCP Commands
giaddr policy
Related Commands
Command Description
dhcp ipv4 , on page 253 Enables DHCP for IPv4 and enters DHCP IPv4
configuration mode.
helper-address , on page 274 Configures the DHCP relay agent to relay packets to
a specific DHCP Server.
relay information check , on page 290 Configures a DHCP server to validate the relay agent
information option in forwarded BOOTREPLY
messages.
relay information option , on page 292 Enables the system to insert a DHCP relay agent
information option in forwarded BOOTREQUEST
messages to a DHCP server.
relay information option allow-untrusted , on page Configures the DHCP component to not drop
294 BOOTREQUEST messages that have the relay
information option set and the giaddr set to zero.
relay information policy , on page 296 Configures how a relay agent processes
BOOTREQUEST messages that already contain a
relay information option.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 273
DHCP Commands
helper-address
helper-address
To configure the Dynamic Host Configuration Protocol (DHCP) IPv4 relay agent to relay DHCP packets to
a specific DHCP server, use the helper-address command in an appropriate configuration mode. Use the no
form of this command to clear the address.
address IPv4 and Pv6 address in four part, dotted decimal format.
giaddr gateway-address (Optional) Specifies the gateway address to use in packets relayed to server.
This keyword is applicable for IPv4 helper address.
Command Modes
Related Commands
Command Description
dhcp ipv4 , on page 253 Enables Dynamic Host
Configuration Protocol (DHCP) for
IPv4 and enters DHCP IPv4
configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
274 OL-28453-05
DHCP Commands
helper-address
Command Description
interface (relay profile), on page 277 Specifies a relay profile on an
interface.
relay information option allow-untrusted , on page 294 Configures the DHCP component
to not drop BOOTREQUEST
messages that have the relay
information option set and the
giaddr set to zero.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 275
DHCP Commands
interface (DHCP)
interface (DHCP)
To enable Dynamic Host Configuration Protocol (DHCP) for IPv4 on an interface, use the interface command
in the appropriate configuration mode. To disable DHCPv4 on an interface, use the no form of the command.
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
server Enables service on the specified interface using the pool for prefix delegation.
Examples
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
276 OL-28453-05
DHCP Commands
interface (relay profile)
Syntax Description interface-type Interface type. For more information, use the question mark (?) online help
function.
Examples The following example shows how to configure a relay profile on an interface:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# dhcp ipv4
RP/0/0/CPU0:router(config-dhcpv4)# interface pos 0/1/4/1
RP/0/0/CPU0:router(config-dhcpv4)# interface pos 0/1/4/1 relay profile client
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 277
DHCP Commands
interface (relay profile)
Related Commands
Command Description
broadcast-flag policy check , on page 244 Configures a relay agent to only broadcast DHCP
IPv4 BOOTREPLY messages to a client, if the DHCP
IPv4 broadcast flag is set in the DHCP IPv4 header.
helper-address , on page 274 Configures the DHCP relay agent to relay packets to
a specific DHCP Server.
relay information check , on page 290 Configures a DHCP server to validate the relay agent
information option in forwarded BOOTREPLY
messages.
relay information option , on page 292 Enables the system to insert a DHCP relay agent
information option in forwarded BOOTREQUEST
messages to a DHCP server.
relay information option allow-untrusted , on page Configures the DHCP component to not drop
294 BOOTREQUEST messages that have the relay
information option set and the giaddr set to zero.
relay information policy , on page 296 Configures how a relay agent processes
BOOTREQUEST messages that already contain a
relay information option.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
278 OL-28453-05
DHCP Commands
pd (prefix-delegation - DHCP IPv6 pool)
/prefix-length Length of the IPv6 prefix. A decimal value that indicates how many of the high-order
contiguous bits of the address comprise the prefix (the network portion of the address).
client-DUID The DHCP unique identifier (DUID) of the client to which the prefix is delegated.
iaid iaid (Optional) Identity association identifier (IAID), which uniquely identifies an IAPD on the
client.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 279
DHCP Commands
pd (prefix-delegation - DHCP IPv6 pool)
lifetime (Optional) Sets a length of time during which the requesting router is allowed to use the
prefix. The following values can be used:
• valid-seconds—Length of time, in seconds, that the prefix remains valid for the
requesting router to use.
• valid-seconds preferred-seconds—Length of time, in seconds, that the prefix remains
valid for the requesting router to use, plus the length of time after which client should
re-check that it still has the prefix.
• at—Absolute point in time where the prefix is no longer valid and no longer preferred.
• preferred-seconds—Length of time, in seconds, that the prefix remains preferred for
the requesting router to use.
• infinite—Unlimited lifetime. This value can be used in place of valid-seconds or
preferred-seconds value.
• valid-month valid-date valid-year valid-time—Fixed duration of time for hosts to
remember router advertisements. The format used can be oct 24 2003 11:45 or 24 oct
2003 11:45.
• preferred-month preferred-date preferred-year preferred-time—Fixed duration of time
for hosts to remember router advertisements. The format used can be oct 24 2003
11:45 or 24 oct 2003 11:45.
• at valid-timestamp—Absolute point in time (rather than duration) for the
valid-timestamp.The prefix is valid up to valid-timestamp.
• at valid-timestamp preferred-timestamp—Absolute point in time (rather than duration)
for the valid-timestamp and preferred time-stamp. The client should confirm that it
has the prefix after preferred-timestamp; however, the time-stamp is still valid up to
valid-timestamp.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
280 OL-28453-05
DHCP Commands
pd (prefix-delegation - DHCP IPv6 pool)
Examples The following is an example of the pd command in DHCP IPv6 pool configuration mode:
Related Commands
Command Description
pool (DHCP IPv6), on page 284 Configures a Dynamic Host Configuration Protocol
(DHCP) for the IPv6 server configuration information
pool and enters DHCP for IPv6 pool configuration
mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 281
DHCP Commands
pd (prefix-delegation - DHCP IPv6 interface)
/prefix-length Length of the IPv6 prefix. A decimal value that indicates how many of the high-order
contiguous bits of the address comprise the prefix (the network portion of the address).
lifetime (Optional) Sets a length of time over which the requesting router is allowed to use the prefix.
The following values can be used:
• valid-lifetime—The length of time, in seconds, that the prefix remains valid for the
requesting router to use.
• at—Specifies absolute points in time where the prefix is no longer valid and no longer
preferred.
• infinite—Indicates an unlimited lifetime.
• preferred-lifetime—The length of time, in seconds, that the prefix remains preferred
for the requesting router to use.
• valid-month valid-date valid-year valid-time—A fixed duration of time for hosts to
remember router advertisements. The format used can be oct 24 2003 11:45 or 24 oct
2003 11:45.
• preferred-month preferred-date preferred-year preferred-time—A fixed duration of
time for hosts to remember router advertisements. The format used can be oct 24 2003
11:45 or 24 oct 2003 11:45.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
282 OL-28453-05
DHCP Commands
pd (prefix-delegation - DHCP IPv6 interface)
Examples The following is an example of the pd command in DHCP IPv6 pool configuration mode:
RP/0/0/CPU0:router(config)# dhcp ipv6
RP/0/0/CPU0:router(config-dhcpv6)# pool pool1
RP/0/0/CPU0:router(config-dhcpv6-pool)# exit
RP/0/0/CPU0:router(config-dhcpv6)# interface POS 0/5/0/0 server
RP/0/0/CPU0:router(config-dhcpv6-if)# pd 2001:420:10::/48
RP/0/0/CPU0:router(config-dhcpv6-if)# pool pool1
Related Commands
Command Description
interface (DHCP), on page 276 Enables DHCP for IPv6 on an interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 283
DHCP Commands
pool (DHCP IPv6)
pool poolname
no pool poolname
Syntax Description poolname User-defined name for the local prefix pool. The pool name can be a symbolic string
(such as “Engineering”) or an integer (such as 0).
Usage Guidelines Use the pool command to create a DHCP for IPv6 server configuration information pool. When the pool
command is enabled, the configuration mode changes to DHCP for IPv6 pool configuration mode. In this
mode, the administrator can configure pool parameters, such as prefixes to be delegated and Domain Name
System (DNS) servers.
Once the DHCP for IPv6 configuration information pool has been created, use the server command to associate
the pool with a server on an interface.
Examples The following example show how to enter pool configuration mode using the pool command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
284 OL-28453-05
DHCP Commands
pool (DHCP IPv6)
Related Commands
Command Description
dhcp ipv6 , on page 264 Enables Dynamic Host Configuration Protocol
(DHCP) for IPv6 and enters DHCP IPv6 configuration
mode.
show dhcp ipv6 pool, on page 312 Displays DHCP for IPv6 configuration information
pool information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 285
DHCP Commands
preference
preference
To configure the preference value, use the preference command in DHCP IPv6 interface server configuration
mode. To disable the preference value, use the no form of the command.
Syntax Description preference value Preference value carried in the preference option in the advertise message
sent by the server. The range is from 0 to 255.
Usage Guidelines The preference command configures a preference value. If the preference value is configured and it is not 0,
the server adds a preference option to carry the preference value for the advertise message to a client to affect
the selection of a server by client.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
286 OL-28453-05
DHCP Commands
profile relay
profile relay
To configure a relay profile for the Dynamic Host Configuration Protocol (DHCP) IPv4 component and to
enter the profile relay mode, use the profile relay command in DHCP IPv4 configuration mode. To disable
this feature and exit the profile relay mode, use the no form of this command.
Syntax Description profile name Name that uniquely identifies the relay profile.
Examples The following example shows how to use the profile relay command:
Related Commands
Command Description
broadcast-flag policy check , on page 244 Configures a relay agent to only broadcast DHCP
IPv4 BOOTREPLY messages to a client, if the DHCP
IPv4 broadcast flag is set in the DHCP IPv4 header.
dhcp ipv4 , on page 253 Enables DHCP for IPv4 and enters DHCP IPv4
configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 287
DHCP Commands
profile relay
Command Description
giaddr policy, on page 272 Configures how a relay agent processes
BOOTREQUEST messages that already contain a
nonzero giaddr attribute.
helper-address , on page 274 Configures the DHCP relay agent to relay packets to
a specific DHCP Server.
relay information check , on page 290 Configures a DHCP server to validate the relay agent
information option in forwarded BOOTREPLY
messages.
relay information option , on page 292 Enables the system to insert a DHCP relay agent
information option in forwarded BOOTREQUEST
messages to a DHCP server.
relay information option allow-untrusted , on page Configures the DHCP component to not drop
294 BOOTREQUEST messages that have the relay
information option set and the giaddr set to zero.
relay information policy , on page 296 Configures how a relay agent processes
BOOTREQUEST messages that already contain a
relay information option.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
288 OL-28453-05
DHCP Commands
rapid-commit
rapid-commit
To enable clients that specify the Rapid Commit option in their Solicit messages to receive immediate address
assignment Reply messages, use the rapid-commit command in Dynamic Host Configuration Protocol
(DHCP) IPv6 interface server mode. To disable DHCP for IPv6 service on an interface, use the no form of
this command.
rapid-commit
no rapid-commit
Usage Guidelines The rapid-commit command enables or disables rapid commit. If enabled, the DHCPv6 server uses the
two-message exchange for prefix delegation and other configuration. If a client has included a rapid commit
option in the solicit message and rapid-commit is enabled for the server, the server responds to the solicit
message with a reply message. If rapid-commit is not enabled, then normal four-message exchange is done
even if the clients specifies the rapid commit option.
Related Commands
Command Description
interface (DHCP), on page 276 Enables DHCP for IPv6 on an interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 289
DHCP Commands
relay information check
Examples This example shows how to use the relay information check command:
RP/0/0/CPU0:router#config
RP/0/0/CPU0:router(config)# dhcp ipv4
RP/0/0/CPU0:router(config-dhcpv4)# profile client relay
RP/0/0/CPU0:router(config-dhcpv4-relay-profile)# relay information check
Related Commands
Command Description
dhcp ipv4 , on page 253 Enables DHCP for IPv4 and enters
DHCP IPv4 configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
290 OL-28453-05
DHCP Commands
relay information check
Command Description
helper-address , on page 274 Configures the DHCP relay agent
to relay packets to a specific DHCP
Server.
relay information option allow-untrusted , on page 294 Configures the DHCP component
to not drop BOOTREQUEST
messages that have the relay
information option set and the
giaddr set to zero.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 291
DHCP Commands
relay information option
Usage Guidelines The relay information option command automatically adds the circuit identifier suboption and the remote
ID suboption to the DHCP relay agent information option.
The relay information option command enables a DHCP server to identify the user (for example, cable
access router) sending the request and initiate appropriate action based on this information. By default, DHCP
does not insert relay information.
If the information option command is enabled, DHCP snooping mode does not set the giaddr field in the
DHCP packet.
The upstream DHCP server or DHCP relay interface must be configured to accept this type of packet using
the relay information option allow-untrusted configuration. This configuration prevents the server or relay
from dropping the DHCP message.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
292 OL-28453-05
DHCP Commands
relay information option
Examples This example shows how to use the relay information option command:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# dhcp ipv4
RP/0/0/CPU0:router(config-dhcpv4)# profile client relay
RP/0/0/CPU0:router(config-dhcpv4-relay-profile)# relay information option
Related Commands
Command Description
dhcp ipv4 , on page 253 Enables DHCP for IPv4 and enters
DHCP IPv4 configuration mode.
relay information option allow-untrusted , on page 294 Configures the DHCP component
to not drop BOOTREQUEST
messages that have the relay
information option set and the
giaddr set to zero.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 293
DHCP Commands
relay information option allow-untrusted
Command Default The packet is dropped if the relay information is set and the giaddr is set to zero.
Usage Guidelines According to RFC 3046, relay agents (and servers) receiving a DHCP packet from an untrusted circuit with
giaddr set to zero but with a relay agent information option already present in the packet shall discard the
packet and increment an error count. This configuration prevents the server or relay from dropping the DHCP
message.
Examples This example shows how to use the relay information option allow-untrusted command:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# dhcp ipv4
RP/0/0/CPU0:router(config-dhcpv4)# profile client relay
RP/0/0/CPU0:router(config-dhcpv4-relay-profile)# relay information option allow-untrusted
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
294 OL-28453-05
DHCP Commands
relay information option allow-untrusted
Related Commands
Command Description
dhcp ipv4 , on page 253 Enables DHCP for IPv4 and enters
DHCP IPv4 configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 295
DHCP Commands
relay information policy
Syntax Description drop Directs the DHCP IPv4 Relay to discard BOOTREQUEST packets with the existing relay
information option.
keep Directs the DHCP IPv4 Relay not to discard a BOOTREQUEST packet that is received
with an existing relay information option and to keep the existing relay information option
value.
Command Default The DHCP IPv4 Relay does not discard a BOOTREQUEST packet that has an existing relay information
option. The option and the existing relay information option value is replaced.
Usage Guidelines
Examples This is sample output from executing the relay information policy command:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# dhcp ipv4
RP/0/0/CPU0:router(config-dhcpv4)# profile client relay
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
296 OL-28453-05
DHCP Commands
relay information policy
Related Commands
Command Description
dhcp ipv4 , on page 253 Enables DHCP for IPv4 and enters DHCP IPv4
configuration mode.
helper-address , on page 274 Configures the DHCP relay agent to relay packets
to a specific DHCP Server.
relay information check , on page 290 Configures a DHCP server to validate the relay agent
information option in forwarded BOOTREPLY
messages.
relay information option , on page 292 Enables the system to insert a DHCP relay agent
information option in forwarded BOOTREQUEST
messages to a DHCP server.
relay information option allow-untrusted , on page Configures the DHCP component to not drop
294 BOOTREQUEST messages that have the relay
information option set and the giaddr set to zero.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 297
DHCP Commands
secure-arp
secure-arp
To allow DHCP to add an ARP cache entry when DHCP assigns an IP address to a client in IP subscriber
sessions, use the secure-arp command in DHCP IPv4 profile proxy configuration or DHCP IPv4 server profile
mode. To disallow DHCP to add an ARP cache entry when DHCP assigns an IP address to a client, use the
no form of this command.
secure-arp
no secure-arp
Usage Guidelines In standalone DHCP sessions, the DHCP server adds an ARP entry when it assigns an IP address to a client.
However, for IP subscriber sessions, DHCP server does not add an ARP entry. Although ARP establishes
correspondences between network addresses, an untrusted device can spoof IP an address not assigned to it
posing a security threat for IP subscriber sessions.
Secure ARP allows DHCP to add an ARP cache entry when DHCP assigns an IP address to a client in IP
subscriber sessions. This is to prevent untrusted devices from spoofing IP addresses not assigned to them.
Secure ARP is disabled by default.
Examples This examples shows how to allow DHCP to add an ARP cache entry when DHCP assigns an IP address to
a client using the secure-arp command in DHCP IPv4 server profile configuration:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# dhcp ipv4
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
298 OL-28453-05
DHCP Commands
secure-arp
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 299
DHCP Commands
show dhcp ipv4 relay profile
Usage Guidelines This command displays the relay profiles created for DHCP IPv4.
Examples The following is sample output from the show dhcp ipv4 relay profile command:
Related Commands
Command Description
show dhcp ipv4 relay profile name, on page 301 Displays Dynamic Host Configuration Protocol
(DHCP) relay agent status, specific to a relay profile.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
300 OL-28453-05
DHCP Commands
show dhcp ipv4 relay profile name
Syntax Description name (Optional) Name that uniquely identifies the relay profile.
Command Default If name is not specified, displays a list of configured DHCP profile names.
No default behavior or values
Examples The following is sample output from the show dhcp ipv4 relay profile name command:
Helper Addresses:
10.10.10.1, vrf default
Information Option: Disabled
Information Option Allow Untrusted: Disabled
Information Option Policy: Replace
Information Option Check: Disabled
Giaddr Policy: Keep
Broadcast-flag Policy: Ignore
VRF References:
default
Interface References:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 301
DHCP Commands
show dhcp ipv4 relay profile name
FINT0_0_CPU0
MgmtEth0_0_CPU0_0
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
302 OL-28453-05
DHCP Commands
show dhcp ipv4 relay statistics
Syntax Description vrf vrf-name (Optional) Name that uniquely identifies the VRF.
default (Optional) Displays the relay statistics information for the default VRF.
Examples The following is sample output from the show dhcp ipv4 relay statistics command when none of the optional
keywords or arguments are used command :
Bridge | RX | TX | DR |
---------------------------------------------------------------------------------------
default | 0 | 0 | 0 |
The following is sample output from the show dhcp ipv4 relay statistics command using the vrf and default
keywords:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 303
DHCP Commands
show dhcp ipv4 relay statistics
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
304 OL-28453-05
DHCP Commands
show dhcp ipv6
Examples The following is sample output from the show dhcp ipv6 command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 305
DHCP Commands
show dhcp ipv6 binding
Syntax Description ipv6-address (optional) IPv6 address. The ipv6-address argument must be in the form documented
in RFC 2373, where the address is specified in hexadecimal using 16-bit values
between colons.
Usage Guidelines The show dhcp ipv6 binding command displays all automatic client bindings from the DHCP for IPv6 server
binding table if the ipv6-address argument is not specified. When the ipv6-address argument is specified,
only the binding for the specified client is displayed.
Examples The following is sample output from the show dhcp ipv6 binding displaying all automatic client bindings
from the DHCPv6 database. The ipv6 address argument is not specified:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
306 OL-28453-05
DHCP Commands
show dhcp ipv6 binding
Prefix: 3FFE:C00:C18:1::/72
preferred lifetime 240, valid lifetime 54321
expires at Nov 09 2002 02:02 AM (54246 seconds)
Prefix: 3FFE:C00:C18:2::/72
preferred lifetime 300, valid lifetime 54333
expires at Nov 09 2002 02:03 AM (54258 seconds)
Prefix: 3FFE:C00:C18:3::/72
preferred lifetime 280, valid lifetime 51111
expires at Nov 09 2002 01:09 AM (51036 seconds)
This table describes the significant fields shown in the display.
Field Description
DUID DHCP IPv6 unique identifier
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 307
DHCP Commands
show dhcp ipv6 database
Usage Guidelines Each permanent storage to which the binding database is saved is called the database agent. An agent can be
configured using the dhcp ipv6 database command. Supported database agents include FTP and TFTP
servers, RCP, Flash file system, and NVRAM.
The show dhcp ipv6 database command displays DHCP for IPv6 binding database agent information. If the
agent-URL argument is specified, only the specified agent is displayed. If the agent-URL argument is not
specified, all database agents are shown.
Examples This is a sample output from the show dhcp ipv6 database command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
308 OL-28453-05
DHCP Commands
show dhcp ipv6 database
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 309
DHCP Commands
show dhcp ipv6 interface
Syntax Description interface-type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
Usage Guidelines If no interfaces are specified, all interfaces on which DHCP for IPv6 (client or server) is enabled are shown.
If an interface is specified, only information about the specified interface is displayed.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
310 OL-28453-05
DHCP Commands
show dhcp ipv6 interface
Examples The following is sample output from the show dhcp ipv6 interface command when an interface is not
specified:
RP/0/0/CPU0:router
# show dhcp ipv6 interface
Field Description
POS 0/5/0/0 is in server/relay mode Displays whether the specified interface is in server
or relay mode.
Hint from client Displays whether the allow-hint has been enabled on
the interface.
Related Commands
Command Description
interface (DHCP), on page 276 Enables DHCP for IPv6 on an interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 311
DHCP Commands
show dhcp ipv6 pool
Syntax Description pool-name (Optional) User-defined name for the local prefix pool. The pool name can be a
symbolic string (such as "Engineering") or an integer (such as 0).
Usage Guidelines Use the dhcp ipv6 pool command to create a configuration information pool, and use the dhcp ipv6 server
command to associate the configuration information pool with a server on an interface.
The show dhcp ipv6 pool command displays DHCP for IPv6 configuration information pool information. If
the poolname argument is specified, only information on the specified pool is displayed. If the poolname
argument is not specified, all pools are shown.
Examples The following is sample output from the show dhcp ipv6 pool command. If pool-name is not specified, all
pools are shown; otherwise, only the named pool is displayed.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
312 OL-28453-05
DHCP Commands
show dhcp ipv6 pool
Prefix: 3FFE:C00:C18:1::/72
preferred lifetime 240, valid lifetime 54321
Prefix: 3FFE:C00:C18:2::/72
preferred lifetime 300, valid lifetime 54333
Prefix: 3FFE:C00:C18:3::/72
preferred lifetime 280, valid lifetime 51111
DNS server: 1001::1
DNS server: 1001::2
Domain name: domain1.net
Domain name: domain2.net
Domain name: domain3.net
Active clients: 2
This table describes the significant fields shown in the display.
Field Description
DHCPv6 pool The name of the pool.
preferred lifetime, valid lifetime Lifetimes associated with the prefix statically assigned
to the specified client.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 313
DHCP Commands
sip address
sip address
To configure a Session Initiation Protocol (SIP) server IPv6 address to be returned in the SIP server's IPv6
address list option to clients, use the sip address command in Dynamic Host Configuration Protocol (DHCP)
IPv6 pool configuration mode. To disable this feature, use the no form of this command.
Syntax Description ipv6-address IPv6 address. The ipv6-address argument must be in the form documented in
RFC 2373, where the address is specified in hexadecimal using 16-bit values between
colons.
Usage Guidelines For the Dynamic Host Configuration Protocol (DHCP) for IPv6 server to obtain prefixes from RADIUS
servers, the user must also configure the authorization, authentication, and accounting (AAA) client and PPP
on the router. For information on how to configure the AAA client and PPP, see the “Implementing ADSL
and Deploying Dial Access for IPv6” module of the Cisco IOS XR System Security Command Reference.
The sip address command configures a SIP server IPv6 address to be returned in the SIP server's IPv6 address
list option to clients. To configure multiple SIP server addresses, issue this command multiple times. The new
addresses do not overwrite old ones.
Examples The following example shows how to configure the SIP address using the sip-address command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
314 OL-28453-05
DHCP Commands
sip address
Related Commands
Command Description
pool (DHCP IPv6), on page 284 Configures a Dynamic Host Configuration Protocol
(DHCP) for the IPv6 server configuration information
pool and enters DHCP for IPv6 pool configuration
mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 315
DHCP Commands
sip domain-name
sip domain-name
To configure a Session Initiation Protocol (SIP) server domain name to be returned in the SIP server's domain
name list option to clients, use the sip domain-name command in Dynamic Host Configuration Protocol
(DHCP) IPv6 pool configuration mode. To disable this feature, use the no form of this command.
Syntax Description domain-name Domain name for a DHCP for IPv6 client.
Usage Guidelines For the Dynamic Host Configuration Protocol (DHCP) for IPv6 server to obtain prefixes from RADIUS
servers, the user must also configure the authorization, authentication, and accounting (AAA) client and PPP
on the router. For information on how to configure the AAA client and PPP, see the “Implementing ADSL
and Deploying Dial Access for IPv6” module of the Cisco IOS XR System Security Command Reference.
The sip domain-name command configures a SIP server domain name to be returned in the SIP server's
domain name list option to clients. To configure multiple SIP server domain names, issue this command
multiple times. The new domain names do not overwrite old ones.
Examples The following example shows how to configure the SIP address using the sip domain-name command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
316 OL-28453-05
DHCP Commands
sip domain-name
Related Commands
Command Description
pool (DHCP IPv6), on page 284 Configures a Dynamic Host Configuration Protocol
(DHCP) for the IPv6 server configuration information
pool and enters DHCP for IPv6 pool configuration
mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 317
DHCP Commands
vrf (relay profile)
Examples The following example shows how to set the relay profile for all VRFs:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# dhcp ipv4
RP/0/0/CPU0:router(config-dhcpv4)# vrf all
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
318 OL-28453-05
DHCP Commands
vrf (relay profile)
Related Commands
Command Description
dhcp ipv4 , on page 253 Enables DHCP for IPv4 and enters DHCP IPv4
configuration mode.
helper-address , on page 274 Configures the DHCP relay agent to relay packets to
a specific DHCP Server.
relay information check , on page 290 Configures a DHCP server to validate the relay agent
information option in forwarded BOOTREPLY
messages.
relay information option , on page 292 Enables the system to insert a DHCP relay agent
information option in forwarded BOOTREQUEST
messages to a DHCP server.
relay information option allow-untrusted , on page Configures the DHCP component to not drop
294 BOOTREQUEST messages that have the relay
information option set and the giaddr set to zero.
relay information policy , on page 296 Configures how a relay agent processes
BOOTREQUEST messages that already contain a
relay information option.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 319
DHCP Commands
vrf (relay profile)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
320 OL-28453-05
Host Services and Applications Commands
This chapter describes the commands used to configure and monitor host services and applications, such as
Domain Name System (DNS), Telnet, File Transfer Protocol (FTP), and Trivial File Transfer Protocol
(TFTP), and Remote Copy Protocol (RCP).
For detailed information about host services and applications concepts, configuration tasks, and examples,
refer to the Cisco IOS XR IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series
Router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 321
Host Services and Applications Commands
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
322 OL-28453-05
Host Services and Applications Commands
cinetd rate-limit
cinetd rate-limit
To configure the rate limit at which service requests are accepted by Cisco inetd (Cinetd), use the cinetd
rate-limit command in Global Configuration mode. To restore the default, use the no form of this command.
Syntax Description value Number of service requests that are accepted per second. Range is 1 to 100. Default
is 1.
Usage Guidelines Any service request that exceeds the rate limit is rejected. The rate limit is applied to individual applications.
Examples The following example shows the cinetd rate-limit being set to 10:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# cinetd rate-limit 10
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 323
Host Services and Applications Commands
clear host
clear host
To delete temporary entries from the hostname-to-address cache, use the clear host command in EXEC mode.
Usage Guidelines The dynamic host entries in the cache are cleared.
The temporary entries in the cache are cleared; the permanent entries that were entered with the domain ipv4
host, on page 328 or the domain ipv6 host, on page 329 command are not cleared.
By default, no static mapping is configured.
Examples The following example shows how to clear all temporary entries from the hostname-and-address cache:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
324 OL-28453-05
Host Services and Applications Commands
clear host
Related Commands
Command Description
domain ipv4 host, on page 328 Defines a static IPv4 hostname-to-address mapping
in the host cache.
domain ipv6 host, on page 329 Defines a static IPv6 hostname-to-address mapping
in the host cache.
show hosts, on page 363 Displays the default domain name, the style of name
lookup service, a list of name server hosts, and the
cached list of hostnames and addresses.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 325
Host Services and Applications Commands
destination address(ipsla)
destination address(ipsla)
To configure the address of the destination device, use the destination address command in the ipsla echo
configuration mode. To restore the default, use the no form of this command.
Examples This example shows how to configure 10.10.10.20 as the destination address of a device.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# ipsla
RP/0/0/CPU0:router(config-ipsla)# operation 500
RP/0/0/CPU0:router(config-ipsla-op)# type icmp echo
RP/0/0/CPU0:router(config-ipsla-echo)# timeout 5000
RP/0/0/CPU0:router(config-ipsla-echo)# destination address 10.10.10.20
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
326 OL-28453-05
Host Services and Applications Commands
destination address(ipsla)
Related Commands
Command Description
source address(ipsla), on page 366 Configures the address of the source device
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 327
Host Services and Applications Commands
domain ipv4 host
Syntax Description host-name Name of the host. The first character can be either a letter or a number.
Usage Guidelines The first character can be either a letter or a number. If you use a number, the operations you can perform
(such as ping) are limited.
Examples The following example shows how to define two IPv4 static mappings:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
328 OL-28453-05
Host Services and Applications Commands
domain ipv6 host
Syntax Description host-name Name of the host. The first character can be either a letter or a number.
Command Default No static mapping is configured. IPv6 address prefixes are not enabled.
Usage Guidelines The first character can be either a letter or a number. If you use a number, the operations you can perform
(such as ping) are limited.
Examples The following example shows how to define two IPv6 static mappings:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 329
Host Services and Applications Commands
domain list
domain list
To define a list of default domain names to complete unqualified hostnames, use the domain list command
in Global Configuration mode. To delete a name from a list, use the no form of this command.
Syntax Description domain-name Domain name. Do not include the initial period that separates an unqualified
name from the domain name.
Usage Guidelines If there is no domain list, the domain name that you specified with the domain name (IPAddr), on page 334
command is used to complete unqualified hostnames. If there is a domain list, the default domain name is not
used. The domain list command is similar to the domain name (IPAddr), on page 334 command, except that
you can use the domain list command to define a list of domains, each to be tried in turn.
Examples The following example shows how to add several domain names to a list:
The following example shows how to add a name to and then delete a name from the list:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
330 OL-28453-05
Host Services and Applications Commands
domain list
Related Commands
Command Description
domain name (IPAddr), on page 334 Defines a default domain name to complete
unqualified hostnames (names without a
dotted-decimal domain name).
show hosts, on page 363 Displays the default domain name, the style of name
lookup service, a list of name server hosts, and the
cached list of hostnames and addresses.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 331
Host Services and Applications Commands
domain lookup disable
Usage Guidelines Using the no command removes the specified command from the configuration file and restores the system
to its default condition. The no form of this command is not stored in the configuration file.
Examples The following example shows how to enable the IP DNS-based hostname-to-address translation:
Related Commands
Command Description
domain name (IPAddr), on page 334 Defines a default domain name to complete
unqualified hostnames (names without a
dotted-decimal domain name).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
332 OL-28453-05
Host Services and Applications Commands
domain lookup disable
Command Description
domain name-server, on page 336 Specifies the address of one or more name servers to
use for name and address resolution.
show hosts, on page 363 Displays the default domain name, the style of name
lookup service, a list of name server hosts, and the
cached list of hostnames and addresses.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 333
Host Services and Applications Commands
domain name (IPAddr)
Syntax Description domain-name Default domain name used to complete unqualified hostnames. Do not include
the initial period that separates an unqualified name from the domain name.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper task
IDs. If you suspect user group assignment is preventing you from using a command, contact your AAA
administrator for assistance.
If a hostname does not contain a domain name, then a dot and the domain name configured by the domain
name command are appended to the hostname before it is added to the host table.
If no domain name is configured by the domain name command and the user provides only the hostname,
then the request is not looked up.
Related Commands
Command Description
domain list, on page 330 Defines a list of default domain names to complete
unqualified hostnames.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
334 OL-28453-05
Host Services and Applications Commands
domain name (IPAddr)
Command Description
domain name-server, on page 336 Specifies the address of one or more name servers to
use for name and address resolution.
show hosts, on page 363 Displays the default domain name, the style of name
lookup service, a list of name server hosts, and the
cached list of hostnames and addresses.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 335
Host Services and Applications Commands
domain name-server
domain name-server
To specify the address of one or more name servers to use for name and address resolution, use the domain
name-server command in Global Configuration mode. To remove the address specified, use the no form of
this command.
Command Default If no name server address is specified, the default name server is 255.255.255.255. IPv4 and IPv6 address
prefixes are not enabled.
Usage Guidelines You can enter up to six addresses, but only one for each command.
If no name server address is specified, the default name server is 255.255.255.255 so that the DNS lookup
can be broadcast to the local network segment. If a DNS server is in the local network, it replies. If not, there
might be a server that knows how to forward the DNS request to the correct DNS server.
Examples The following example shows how to specify host 192.168.1.111 as the primary name server and host
192.168.1.2 as the secondary server:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
336 OL-28453-05
Host Services and Applications Commands
domain name-server
Related Commands
Command Description
domain lookup disable, on page 332 Disables the domain lookup.
domain name (IPAddr), on page 334 Defines a default domain name to complete
unqualified hostnames (names without a
dotted-decimal domain name).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 337
Host Services and Applications Commands
ftp client anonymous-password
Usage Guidelines The ftp client anonymous-password command is File Transfer Protocol (FTP) server dependent.
Examples The following example shows how to set the anonymous password to xxxx:
Related Commands
Command Description
ftp client passive, on page 340 Configures the software to use only passive File
Transfer Protocol (FTP) connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
338 OL-28453-05
Host Services and Applications Commands
ftp client anonymous-password
Command Description
ftp client password, on page 342 Specifies the password for the File Transfer Protocol
(FTP) connections.
ftp client source-interface, on page 344 Specifies the source IP address for File Transfer
Protocol (FTP) connections.
ftp client username, on page 346 Specifies the username for File Transfer Protocol
(FTP) connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 339
Host Services and Applications Commands
ftp client passive
Usage Guidelines Using the ftp client passive command allows you to make only passive-mode FTP connections. To specify
the source IP address for FTP connections, use the ftp client source-interface command.
Examples The following example shows how to configure the networking device to use only passive FTP connections:
Related Commands
Command Description
ftp client anonymous-password, on page 338 Assigns a password for anonymous users.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
340 OL-28453-05
Host Services and Applications Commands
ftp client passive
Command Description
ftp client password, on page 342 Specifies the password for the File Transfer Protocol
(FTP) connections.
ftp client source-interface, on page 344 Specifies the source IP address for File Transfer
Protocol (FTP) connections.
ftp client username, on page 346 Specifies the username for File Transfer Protocol
(FTP) connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 341
Host Services and Applications Commands
ftp client password
ftp client password {clear-text-password| clear clear-text password| encrypted encrypted-text password}
no ftp client password {clear-text-password| clear clear-text password| encrypted encrypted-text password}
Examples The following example shows how to specify the password for the File Transfer Protocol (FTP) connections:
Related Commands
Command Description
ftp client anonymous-password, on page 338 Assigns a password for anonymous users.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
342 OL-28453-05
Host Services and Applications Commands
ftp client password
Command Description
ftp client passive, on page 340 Configures the software to use only passive File
Transfer Protocol (FTP) connections.
ftp client source-interface, on page 344 Specifies the source IP address for File Transfer
Protocol (FTP) connections.
ftp client username, on page 346 Specifies the username for File Transfer Protocol
(FTP) connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 343
Host Services and Applications Commands
ftp client source-interface
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
Command Default The FTP source address is the IP address of the interface used by the FTP packets to leave the networking
device.
Usage Guidelines Use this command to set the same source address for all FTP connections. To configure the software to use
only passive FTP connections, use the ftp client passive command.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
344 OL-28453-05
Host Services and Applications Commands
ftp client source-interface
Examples The following example shows how to configure the IP address associated with Packet over Sonet (POS)interface
0/1/2/1 as the source address on all FTP packets, regardless of which interface is actually used to send the
packet:
Related Commands
Command Description
ftp client anonymous-password, on page 338 Assigns a password for anonymous users.
ftp client passive, on page 340 Configures the software to use only passive File
Transfer Protocol (FTP) connections.
ftp client password, on page 342 Specifies the password for the File Transfer Protocol
(FTP) connections.
ftp client username, on page 346 Specifies the username for File Transfer Protocol
(FTP) connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 345
Host Services and Applications Commands
ftp client username
Examples The following example shows how to specify the username for FTP connections:
Related Commands
Command Description
ftp client anonymous-password, on page 338 Assigns a password for anonymous users.
ftp client passive, on page 340 Configures the software to use only passive File
Transfer Protocol (FTP) connections.
ftp client password, on page 342 Specifies the password for the File Transfer Protocol
(FTP) connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
346 OL-28453-05
Host Services and Applications Commands
ftp client username
Command Description
ftp client source-interface, on page 344 Specifies the source IP address for File Transfer
Protocol (FTP) connections
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 347
Host Services and Applications Commands
logging source-interface vrf
Command Default If vrf-name is not specified, the source interface is configured for the default VRF.
Usage Guidelines Normally, a syslog message contains the IPv4 or IPv6 address of the interface used to exit the router. The
logging source-interface command configures the syslog packets to contain the IPv4 or IPv6 address of a
particular interface for a VRF, regardless of which interface the packet uses to exit the router.
Examples This example shows how to configure interface loopback 0 to be the logging source interface for VRF vrf1.
RP/0/0/CPU0:router#logging source-interface loopback 0 vrf vrf1
RP/0/0/CPU0:router#logging source-interface loopback 1 vrf default
This sample output shows a logging source interface that is correctly configured for the VRF.
RP/0/0/CPU0:router#show running configuration logging
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
348 OL-28453-05
Host Services and Applications Commands
logging source-interface vrf
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 349
Host Services and Applications Commands
ping (network)
ping (network)
To check host reachability and network connectivity on IP networks, use the ping command in EXEC mode.
ping [ipv4| ipv6| vrf vrf-name] [host-name| ip-address] [count number] [size number] [source {ip-address|
type number}] [timeout seconds] [pattern number] [type number] [priority number] [verbose] [donnotfrag]
[validate] [sweep]
type number (Optional) Sets the type of service. Range is 0 to 255. Available when
the ipv4 keyword is specified.
priority number (Optional) Sets the packet priority. Range is 0 to 15. Available when the
ipv6 keyword is specified.
donnotfrag (Optional) Sets the Don’t Fragment (DF) bit in the IP header.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
350 OL-28453-05
Host Services and Applications Commands
ping (network)
Release 3.3.0 The vrf keyword and vrf-name argument were added. A range was
added for the size keyword.
Usage Guidelines The default value for the ping command refers only to the target IP address. No default value is available for
the target IP address.
The ping program sends an echo request packet to an address and then waits for a reply. Ping output can help
you evaluate path-to-host reliability, delays over the path, and whether the host can be reached or is functioning.
If you enter the command without specifying either a hostname or an IP address, the system prompts you to
specify the target IP address and several other command parameters. After specifying the target IP address,
you can specify alternate values for the remaining parameters or accept the displayed default for each parameter.
If the system cannot map an address for a hostname, it returns an “%Unrecognized host or address, or protocol
not running” error message.
To abnormally terminate a ping session, enter the escape sequence, which is, by default, Ctrl-C. Simultaneously
press and release the Ctrl and C keys.
This table describes the test characters sent by the ping facility.
Character Description
! Each exclamation point indicates receipt of a reply.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 351
Host Services and Applications Commands
ping (network)
Character Description
M Fragmentation is needed, but the “don’t fragment” bit
in the IP header is set. When this bit is set, the IP layer
does not fragment the packet and returns an Internet
Control Message Protocol (ICMP) error message to
the source if the packet size is larger than the
maximum transmission size. When this bit is not set,
the IP layer fragments the packet to forward it to the
next hop.
Examples Although the precise dialog varies somewhat between IPv4 and IPv6, all are similar to the ping session, using
default values shown in the following output:
RP/0/0/CPU0:router# ping
Protocol [ipv4]:
Target IP address: 10.0.0.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands? [no]: yes
Source address or interface: 10.0.0.2
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]: yes
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes? [no]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.25.58.21, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/11/49 ms
If you enter a hostname or an address on the same line as the ping command, the command performs the
default actions appropriate for the protocol type of that hostname or address, as shown in the following output:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
352 OL-28453-05
Host Services and Applications Commands
ping bulk (network)
Usage Guidelines You must hit the Enter button and then specify one destination address per line.
Maximum number of destinations you can specify in the cli or batch mode is 2000.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 353
Host Services and Applications Commands
ping bulk (network)
Examples The following example shows how to ping many hosts by the input via CLI method:
Please enter input via CLI with one destination per line and when done Ctrl-D/(exit)
to initiate pings:
1: vrf myvrf1 10.2.1.16
2:
Starting pings...
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.2.1.16, vrf is myvrf1, timeout is 2
seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 5/7/9 ms
Please enter input via CLI with one destination per line:
vrf myvrf1 1.1.1.1
vrf myvrf2 2.2.2.2
vrf myvrf1 myvrf1.cisco.com
vrf myvrf2 myvrf2.cisco.com
Starting pings...
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 1.1.1.1, vrf is myvrf1:
!
Success rate is 100 percent (1/1), round-trip min/avg/max = 1/1/1 ms
Sending 2, 100-byte ICMP Echos to 2.2.2.2, vrf is myvrf2:
!!
Success rate is 100 percent (2/2), round-trip min/avg/max = 1/1/1 ms
Sending 1, 100-byte ICMP Echos to 1.1.1.1, vrf is myvrf1:
!
Success rate is 100 percent (1/1), round-trip min/avg/max = 1/4/1 ms
Sending 2, 100-byte ICMP Echos to 2.2.2.2, vrf is myvrf2:
!!
Success rate is 100 percent (2/2), round-trip min/avg/max = 1/3/1 ms
Related Commands
Command Description
ping (network), on page 350 Checks host reachability and network connectivity
on IP networks.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
354 OL-28453-05
Host Services and Applications Commands
rcp client source-interface
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
Command Default The rcp source address is the IP address of the interface used by the rcp packets to leave the networking device.
Usage Guidelines Use the rcp client source-interface command to set the IP address of an interface as the source for all rcp
connections. To configure the remote username to be used when a remote copy using rcp is requested, use
the rcp client username command.
Examples The following example shows how to set the IP address for Packet-over-SONET (POS) interface 1/0/2/1 as
the source address for rcp connections:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 355
Host Services and Applications Commands
rcp client source-interface
Related Commands
Command Description
rcp client username, on page 357 Configures the remote username to be used when a
remote copy using rcp is requested.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
356 OL-28453-05
Host Services and Applications Commands
rcp client username
Syntax Description username Name of the remote user on the rcp server. This name is used for rcp copy requests. If
the rcp server has a directory structure, all files and images to be copied are searched for
or written relative to the directory in the remote user account.
Command Default If you do not issue this command, the software sends the remote username associated with the current tty
process, if that name is valid, for rcp copy commands. For example, if the user is connected to the networking
device through Telnet and the user was authenticated through the username command, the software sends
that username as the remote username.
If the username for the current tty process is not valid, the software sends the hostname as the remote username.
For rcp boot commands, the software sends the network server hostname by default.
Note For Cisco, tty lines are commonly used for access services. The concept of tty originated with UNIX. For
UNIX systems, each physical device is represented in the file system. Terminals are called tty devices (tty
stands for teletype, the original UNIX terminal).
Usage Guidelines The rcp protocol requires that a client send the remote username on an rcp request to the network server. Use
the rcp client username command to specify the remote username to be sent to the network server for an rcp
copy request. If the network server has a directory structure, as do UNIX systems, all files and images to be
copied are searched for or written relative to the directory in the remote user account. To specify a source
address for rcp connections, use the rcp client source-interface command.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 357
Host Services and Applications Commands
rcp client username
Note The remote username must be associated with an account on the destination server.
Examples The following example shows how to configure the remote username to netadmin1:
Related Commands
Command Description
rcp client source-interface, on page 355 Specifies the source IP address for rcp connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
358 OL-28453-05
Host Services and Applications Commands
scp
scp
To securely transfer a file from a local directory to a remote directory or from a remote directory to a local
directory, use the scp command in EXEC mode.
Usage Guidelines Secure Copy Protocol (SCP) is a file transfer protocol which provides a secure and authenticated method for
transferring files. SCP relies on SSHv2 to transfer files from a remote location to a local location or from
local location to a remote location.
Use the scp command to copy a file from the local device to a destination device or from a destination device
to the local device.
Using SCP, you can only transfer individual files. You cannot transfer a file from a remote device to another
remote device.
SSH server process must be running on the remote device.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 359
Host Services and Applications Commands
scp
Examples The following example shows how to copy a file using the scp command from a local directory to a remote
directory:
RP/0/0/CPU0:router# scp /usr/file1.txt root@209.165.200.1:/root/file3.txt
Connecting to 209.165.200.1...
Password:
Transferred 553065 Bytes
553065 bytes copied in 0 sec (7576232)bytes/sec
The following example shows how to copy a file using the scp command from a remote directory to a local
directory:
RP/0/0/CPU0:router# scp root@209.165.200.1:/root/file4.txt /usr/file.txt
Connecting to 209.165.200.1...
Password:
Transferred 553065 Bytes
553065 bytes copied in 0 sec (7576232)bytes/sec
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
360 OL-28453-05
Host Services and Applications Commands
show cinetd services
Examples The following is sample is output from the show cinetd services command:
Family Service Proto Port ACL max_cnt curr_cnt wait Program Option
============================================================================
v4 telnet tcp 23 unlimited 0 nowait telnet
v4 tftp udp 69 unlimited 0 wait tftpd disk0
This table describes the significant fields shown in the display.
Field Description
Family Version of the network layer (IPv4 or IPv6).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 361
Host Services and Applications Commands
show cinetd services
Field Description
Proto Transport protocol used by the service (tcp or udp).
ACL Access list used to limit the service from some hosts.
Related Commands
Command Description
telnet server, on page 376 Enables Telnet services on a networking device.
tftp server, on page 381 Enables or disables the TFTP server or a feature
running on the TFTP server.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
362 OL-28453-05
Host Services and Applications 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 hostnames and addresses, use the show hosts command in EXEC mode.
Syntax Description host-name (Optional) Name of the host about which to display information. If omitted, all
entries in the local cache are displayed.
Command Default Unicast address prefixes are the default when IPv4 address prefixes are configured.
Examples The following is sample output from the show hosts command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 363
Host Services and Applications Commands
show hosts
Field Description
Default domain Default domain used to complete the unqualified
hostnames.
Host Hostname.
Related Commands
Command Description
clear host, on page 324 Deletes entries from the host-name-and-address cache.
domain list, on page 330 Defines a list of default domain names to complete
unqualified hostnames.
domain name (IPAddr), on page 334 Defines a default domain name to complete
unqualified hostnames (names without a
dotted-decimal domain name).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
364 OL-28453-05
Host Services and Applications Commands
show hosts
Command Description
domain name-server, on page 336 Specifies the address of one or more name servers to
use for name and address resolution.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 365
Host Services and Applications Commands
source address(ipsla)
source address(ipsla)
To configure the address of the source device, use the source address command in the ipsla echo configuration
mode. To restore the default, use the no form of this command.
Examples This example shows how to configure 10.10.10.5 as the source address of a device.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# ipsla
RP/0/0/CPU0:router(config-ipsla)# operation 500
RP/0/0/CPU0:router(config-ipsla-op)# type icmp echo
RP/0/0/CPU0:router(config-ipsla-echo)# timeout 5000
RP/0/0/CPU0:router(config-ipsla-echo)# source address 10.10.10.5
Related Commands
Command Description
destination address(ipsla), on page 326 Configures the address of the destination device
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
366 OL-28453-05
Host Services and Applications Commands
source address(ipsla)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 367
Host Services and Applications Commands
telnet
telnet
To log in to a host that supports Telnet, use the telnet command in EXEC mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
368 OL-28453-05
Host Services and Applications Commands
telnet
Usage Guidelines If the Telnet server is enabled, you should be able to start a Telnet session as long as you have a valid username
and password.
This table lists the supported Telnet connection options.
Option Description
/stream Turns on stream processing, which enables a raw TCP
stream with no Telnet control sequences. A stream
connection does not process Telnet options and can
be appropriate for connections to ports running
UNIX-to-UNIX copy program (UUCP) and other
non-Telnet protocols.
To display a list of the available hosts, use the show hosts command. To display the status of all TCP
connections, use the show tcp command.
The software assigns a logical name to each connection, and several commands use these names to identify
connections. The logical name is the same as the hostname, unless that name is already in use or you change
the connection name with the name-connection EXEC command. If the name is already in use, the software
assigns a null name to the connection.
The Telnet software supports special Telnet commands in the form of Telnet sequences that map generic
terminal control functions to operating system-specific functions. To issue a special Telnet command, enter
the escape sequence and then a command character. The default escape sequence is Ctrl-^ (press and hold the
Control and Shift keys and the 6 key). You can enter the command character as you hold down Ctrl or with
Ctrl released; you can use either uppercase or lowercase letters. Table 40: Special Telnet Escape Sequences,
on page 369 lists the special Telnet escape sequences.
9
Escape Sequence Purpose
Ctrl-^ c Interrupt Process (IP).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 369
Host Services and Applications Commands
telnet
At any time during an active Telnet session, you can list the Telnet commands by pressing the escape sequence
keys followed by a question mark at the system prompt:
ctrl-^?
A sample of this list follows. In this sample output, the first caret (^) symbol represents the Control key, and
the second caret represents Shift-6 on your keyboard:
RP/0/0/CPU0:router# ^^?
Examples The following example shows how to establish a Telnet session to a remote host named host1:
Related Commands
Command Description
aaa authentication login default local Sets AAA authentication at login. For more
information, see Cisco IOS XR System Management
Command Reference for the Cisco XR 12000 Series
Router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
370 OL-28453-05
Host Services and Applications Commands
telnet
Command Description
terminal length Sets the number of lines on the current terminal screen
for the current session. For more information, see
Cisco IOS XR System Management Command
Reference for the Cisco XR 12000 Series Router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 371
Host Services and Applications Commands
telnet client source-interface
type Interface type. For more information, use the question mark (?) online help function.
Command Default The IP address of the best route to the destination is used as the source IP address.
Usage Guidelines Use the telnet client source-interface command to set the IP address of an interface as the source for all
Telnet connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
372 OL-28453-05
Host Services and Applications Commands
telnet client source-interface
Examples The following example shows how to set the IP address for Packet-over-SONET (POS) interface 1/0/2/1 as
the source address for Telnet connections:
Related Commands
Command Description
telnet server, on page 376 Enables Telnet services on a networking device.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 373
Host Services and Applications Commands
telnet dscp
telnet dscp
To define the differentiated services code point (DSCP) value and IPv4 precedence to specifically set the
quality-of-service (QoS) marking for Telnet traffic on a networking device, use the telnet dscp command in
Global Configuration mode. To disable DSCP, use the no form of this command.
Syntax Description vrf (Optional) Specifies a VPN routing and forwarding (VRF) instance.
dscp-value Value for DSCP. The range is from 0 to 63. The default value is 0.
Command Default If DSCP is disabled or not configured, the following default values are listed:
• The default value for the server 16.
• The default value for the client is 0.
Usage Guidelines IPv4 is the supported protocol for defining a DSCP value for locally originated Telnet traffic.
DSCP can impact both server and client behavior of the specific VRF.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
374 OL-28453-05
Host Services and Applications Commands
telnet dscp
Examples The following example shows how to define the DSCP value and IPv4 precedence:
Related Commands
Command Description
telnet, on page 368 Logs in to a host that supports Telnet.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 375
Host Services and Applications Commands
telnet server
telnet server
To enable Telnet services on a networking device, use the telnet server command in Global Configuration
mode. To disable Telnet services, use the no form of this command.
telnet [vrf {vrf-name| default}] {ipv4| ipv6} server max-servers {no-limit| limit} [access-list list-name]
no telnet [vrf {vrf-name| default}] {ipv4| ipv6} server max-servers {no-limit| limit} [access-list list-name]
Syntax Description vrf (Optional) Specifies VPN routing and forwarding (VRF) instance.
Release 3.4.0 The vrf and default keywords and vrf-name argument were
added.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
376 OL-28453-05
Host Services and Applications Commands
telnet server
Usage Guidelines Disable Telnet services to prevent inbound Telnet connections from being accepted into a networking device
using the telnet command. After Telnet services are disabled, no new inbound connections are accepted, and
the Cisco Internet services daemon (Cinetd) stops listening on the Telnet port.
Enable Telnet services by setting the max-servers keyword to a value of one or greater. This allows inbound
Telnet connections into a networking device.
This command affects only inbound Telnet connections to a networking device. Outgoing Telnet connections
can be made regardless of whether Telnet services are enabled.
Using the no form of the command disables the telnet connection and restores the system to its default condition.
Note Before establishing communications with the router through a telnet session, configure the telnet server
and vty-pool functions (see System Management Command Reference Guide, System Management
Configuration Guide, and IP Addresses and Services Configuration Guide).
Examples The following example shows how to enable Telnet services for one server:
Related Commands
Command Description
telnet, on page 368 Logs in to a host that supports Telnet.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 377
Host Services and Applications Commands
telnet transparent
telnet transparent
To send a Carriage Return (CR) as a CR-NULL rather than a Carriage Return-Line Feed (CR-LF) for virtual
terminal sessions, use the telnet transparent command in line template submode. To remove the telnet
transparent command from the configuration file and restore the system to its default condition, use the no
form of this command.
telnet transparent
no telnet transparent
Usage Guidelines The telnet transparent command is useful for coping with different interpretations of end-of-line handling
in the Telnet protocol specification.
Examples The following example shows how to configure the vty line to operate in Telnet transparent mode so that
when the carriage return key is pressed the system sends the signal as a CR-NULL key combination rather
than a CR-LF key combination:
Related Commands
Command Description
telnet, on page 368 Logs in to a host that supports Telnet.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
378 OL-28453-05
Host Services and Applications Commands
tftp client source-interface
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
Command Default The IP address of the best route to the destination is used as the source IP address.
Usage Guidelines Use the tftp client source-interface command to set the IP address of an interface as the source for all TFTP
connections.
Examples The following example shows how to set the IP address for Packet-over-SONET (POS) interface 1/0/2/1 as
the source address for TFTP connections:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 379
Host Services and Applications Commands
tftp client source-interface
Related Commands
Command Description
tftp server, on page 381 Enables or disables the TFTP server or a feature
running on the TFTP server.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
380 OL-28453-05
Host Services and Applications Commands
tftp server
tftp server
To enable or disable the TFTP server or a feature running on the TFTP server, use the tftp server command
in Global Configuration mode. To restore the system to its default condition, use the no form of this command.
tftp {ipv4| ipv6} server homedir tftp-home-directory [max-servers [number| no-limit]] [access-list name]
no tftp {ipv4| ipv6} server homedir tftp-home-directory [max-servers [number| no-limit]] [access-list
name]
max-servers number (Optional) Sets the maximum number of concurrent TFTP servers.
The range is from 1 to 2147483647.
access-list name (Optional) Specifies the name of the access list associated with the
TFTP server.
Command Default The TFTP server is disabled by default. When not specified, the default value for the max-servers keyword
is unlimited.
Release 3.6.0 The no-limit keyword was added for the max-servers keyword.
Usage Guidelines Using the no form of the tftp server command removes the specified command from the configuration file
and restores the system to its default condition. The no form of the command is not stored in the configuration
file.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 381
Host Services and Applications Commands
tftp server
Examples The following example shows that the TFTP server is enabled for the access list named test:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
382 OL-28453-05
Host Services and Applications Commands
traceroute
traceroute
To discover the routes that packets actually take when traveling to their destination across an IP network, use
the traceroute command in EXEC mode.
traceroute [ipv4| ipv6| vrf vrf-name] [host-name| ip-address] [source ip-address-name] [numeric] [timeout
seconds] [probe count] [minttl seconds] [maxttl seconds] [port number] [priority number] [verbose]
priority number (Optional) Packet priority. Range is 0 to 15. Available when the ipv6
keyword is specified.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 383
Host Services and Applications Commands
traceroute
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines The default value for the traceroute command refers only to the destination. No default value is available for
the destination address.
The traceroute command works by taking advantage of the error messages generated by networking devices
when a datagram exceeds its time-to-live (TTL) value.
The traceroute command starts by sending probe datagrams with a TTL value of 1, which causes the first
networking device to discard the probe datagram and send back an error message. The traceroute command
sends several probes at each TTL level and displays the round-trip time for each.
The traceroute command sends out one probe at a time. Each outgoing packet may result in one or two error
messages. A “time-exceeded” error message indicates that an intermediate networking device has seen and
discarded the probe. A “destination-unreachable” error message indicates that the destination node has received
the probe and discarded it because it could not deliver the packet. If the timer goes off before a response comes
in, the traceroute command prints an asterisk (*).
The traceroute command terminates when the destination responds, when the maximum TTL is exceeded,
or when the user interrupts the trace with the escape sequence, which is, by default, Ctrl-C. Simultaneously
press and release the Ctrl and C keys.
To use nondefault parameters and invoke an extended traceroute test, enter the command without a host-name
or ip- address argument. You are stepped through a dialog to select the desired parameter values for the
traceroute test.
Because of how IP is implemented on various networking devices, the IP traceroute command may behave
in unexpected ways.
Not all destinations respond correctly to a probe message by sending back an “ICMP port unreachable” message.
A long sequence of TTL levels with only asterisks, terminating only when the maximum TTL has been reached,
may indicate this problem.
There is a known problem with the way some hosts handle an “ICMP TTL exceeded” message. Some hosts
generate an “ICMP” message, but they reuse the TTL of the incoming packet. Because this value is zero, the
ICMP packets do not succeed in returning. When you trace the path to such a host, you may see a set of TTL
values with asterisks (*). Eventually the TTL is raised high enough that the “ICMP” message can get back.
For example, if the host is six hops away, traceroute times out on responses 6 through 11.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
384 OL-28453-05
Host Services and Applications Commands
traceroute
Examples The following output shows a sample traceroute session when a destination hostname has been specified:
traceroute# traceroute
Protocol [ipv4]:
Target IP address: ena-view3
Source address: 10.0.58.29
Numeric display? [no]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Character Description
xx msec For each node, the round-trip time in milliseconds for
the specified number of probes.
H Host unreachable.
N Network unreachable.
P Protocol unreachable.
Q Source quench.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 385
Host Services and Applications Commands
traceroute
Character Description
U Port unreachable.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
386 OL-28453-05
HSRP Commands
This chapter describes the Cisco IOS XR software commands used to configure and monitor the Hot Standby
Router Protocol (HSRP).
For detailed information about HSRP concepts, configuration tasks, and examples, refer to the Cisco IOS XR
IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series Router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 387
HSRP Commands
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
388 OL-28453-05
HSRP Commands
address (hsrp)
address (hsrp)
To enable hot standby protocol for IP, use the address (hsrp) command in the HSRP group submode. To
disable hot standby protocol for IP, use the no form of this command.
Examples This example shows how to enable a group to learn the primary virtual IPv4 address from received HSRP
control packets:
(applicable for Cisco IOS XR Releases 4.2.x and below)
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1
RP/0/0/CPU0:router(config-hsrp-gp)# address learn
RP/0/0/CPU0:router(config-hsrp-gp)#
RP/0/0/CPU0:router# configure
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 389
HSRP Commands
address (hsrp)
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Related Commands
Command Description
address secondary (hsrp), on page 399 Configures the secondary virtual IPv4 address for a
virtual router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
390 OL-28453-05
HSRP Commands
address global (HSRP)
Examples This example shows how to add a global virtual IPv6 address for the HSRP group:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv6
RP/0/0/CPU0:router(config-hsrp-address-family)# hsrp 3
RP/0/0/CPU0:router(config-hsrp-virtual-router)# address global 4000::1000
RP/0/0/CPU0:router(config-hsrp-virtual-router)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 391
HSRP Commands
address global (HSRP)
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
392 OL-28453-05
HSRP Commands
address global slave (HSRP)
Examples This example shows how to add a global virtual IPv6 address for the slave group:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv6
RP/0/0/CPU0:router(config-hsrp-address-family)# hsrp 3 slave
RP/0/0/CPU0:router(config-hsrp-virtual-router)# address global 4000::1000
RP/0/0/CPU0:router(config-hsrp-virtual-router)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 393
HSRP Commands
address global slave (HSRP)
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
394 OL-28453-05
HSRP Commands
address linklocal(HSRP)
address linklocal(HSRP)
To either configure the virtual link-local IPv6 address for the HSRP group or to specify that the virtual
link-local IPv6 address should be enabled and calculated automatically from the virtual router virtual Media
Access Control (MAC) address, use the address linklocal command in the HSRP group submode, under the
IPv6 address-family. To deconfigure the virtual link-local IPv6 address forthe HSRP group, use the no form
of this command.
Usage Guidelines When you configure HSRP for IPv6, you must also configure the linklocal IPv6 address using either the
ipv6-address argument or the autoconfig keyword. If you configure only the global IPv6 address and commit
the changes using the commit keyword, the router does not accept the configuration and displays an error
message.
Examples This example shows how to autoconfigure the HSRP IPv6 link-local address:
RP/0/0/CPU0:router#configure
RP/0/0/CPU0:router(config)#router hsrp
RP/0/0/CPU0:router(config-hsrp)#interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)#address-family ipv6
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 395
HSRP Commands
address linklocal(HSRP)
RP/0/0/CPU0:router(config-hsrp-address-family)#hsrp 3 version 2
RP/0/0/CPU0:router(config-hsrp-virtual-router)#address linklocal autoconfig
RP/0/0/CPU0:router(config-hsrp-virtual-router)#
This example shows how to configure the virtual link-local IPv6 address for the HSRP group:
RP/0/0/CPU0:router#configure
RP/0/0/CPU0:router(config)#router hsrp
RP/0/0/CPU0:router(config-hsrp)#interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)#address-family ipv6
RP/0/0/CPU0:router(config-hsrp-address-family)#hsrp 3
RP/0/0/CPU0:router(config-hsrp-virtual-router)#address linklocal FE80::260:3EFF:FE11:6770
RP/0/0/CPU0:router(config-hsrp-virtual-router)#
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
396 OL-28453-05
HSRP Commands
address linklocal (HSRP)
Usage Guidelines When you configure HSRP for IPv6, you must also configure the linklocal IPv6 address using either the
ipv6-address argument or the autoconfig keyword. If you configure only the global IPv6 address and commit
the changes using the commit keyword, the router does not accept the configuration and displays an error
message.
Examples This example shows how to autoconfigure the HSRP IPv6 link-local address:
RP/0/0/CPU0:router#configure
RP/0/0/CPU0:router(config)#router hsrp
RP/0/0/CPU0:router(config-hsrp)#interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)#address-family ipv6
RP/0/0/CPU0:router(config-hsrp-address-family)#hsrp 3 slave
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 397
HSRP Commands
address linklocal (HSRP)
This example shows how to configure the virtual link-local IPv6 address for the slave group:
RP/0/0/CPU0:router#configure
RP/0/0/CPU0:router(config)#router hsrp
RP/0/0/CPU0:router(config-hsrp)#interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)#address-family ipv6
RP/0/0/CPU0:router(config-hsrp-address-family)#hsrp 3 slave
RP/0/0/CPU0:router(config-hsrp-virtual-router)#address linklocal FE80::260:3EFF:FE11:6770
RP/0/0/CPU0:router(config-hsrp-virtual-router)#
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
398 OL-28453-05
HSRP Commands
address secondary (hsrp)
Examples This example shows how to set the secondary virtual IPv4 address for the virtual router:
(applicable for Cisco IOS XR Releases 4.2.x and below)
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 3
RP/0/0/CPU0:router(config-hsrp-gp)# address 10.20.30.1 secondary
RP/0/0/CPU0:router(config-hsrp-gp)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 399
HSRP Commands
address secondary (hsrp)
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Related Commands
Command Description
address (hsrp), on page 389 Enables hot standby protocol for IP.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
400 OL-28453-05
HSRP Commands
authentication (hsrp)
authentication (hsrp)
To configure an authentication string for the Hot Standby Router Protocol (HSRP), use the hsrp authentication
command in HSRP group submode. To delete an authentication string, use the no form of this command.
authentication string
no authentication [ string ]
Syntax Description string Authentication string. It can be up to eight characters long. The default is 'cisco'.
Usage Guidelines The authentication string is sent unencrypted in all HSRP messages. The same authentication string must be
configured on all routers and access servers on a LAN to ensure interoperation. Authentication mismatch
prevents a device from learning the designated Hot Standby IP address and the Hot Standby timer values from
other routers configured with HSRP.
The hsrp authentication command is available for version 1 groups only
Examples This example shows how to configure “company1” as the authentication string required to allow Hot Standby
routers in group 1 on tenGigE interface 0/4/0/4 to interoperate:
(applicable for Cisco IOS XR Releases 4.2.x and below)
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1
RP/0/0/CPU0:router(config-hsrp-gp)# authentication company1
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 401
HSRP Commands
authentication (hsrp)
RP/0/0/CPU0:router(config-hsrp-gp)#
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1 version 1
RP/0/0/CPU0:router(config-hsrp-gp)# authentication company1
RP/0/0/CPU0:router(config-hsrp-gp)#
Note The version keyword is available only if IPv4 address-family is selected. By default, version is set to 2
for IPv6 address families.
Related Commands
Command Description
show hsrp, on page 441 Displays HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
402 OL-28453-05
HSRP Commands
bfd fast-detect (hsrp)
Syntax Description peer ipv4 ipv4-address (Optional) BFD peer interface IPv4 address.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 403
HSRP Commands
bfd fast-detect (hsrp)
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1 version 2
RP/0/0/CPU0:router(config-hsrp-gp)# bfd fast-detect
RP/0/0/CPU0:router(config-hsrp-gp)#
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Related Commands
Command Description
hsrp bfd multiplier, on page 413 Configures the multiplier value for BFD.
hsrp bfd minimum-interval, on page 411 Configures the BFD minimum interval to be used for
all HSRP BFD sessions on a given interface
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
404 OL-28453-05
HSRP Commands
clear hsrp statistics
Examples This sample output is from the clear hsrp statistics command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 405
HSRP Commands
clear hsrp statistics
Related Commands
Command Description
show hsrp, on page 441 Displays HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
406 OL-28453-05
HSRP Commands
hsrp authentication
hsrp authentication
To configure an authentication string for the Hot Standby Router Protocol (HSRP), use the hsrp authentication
command in HSRP interface configuration mode. To delete an authentication string, use the no form of this
command.
Syntax Description group-number (Optional) Group number on the interface to which this authentication string
applies. Default is 0.
string Authentication string. It can be up to eight characters long. The default is 'cisco'.
Release 4.2.0 This command has been deprecated. This command was replaced with
the authentication hsrp command.
Usage Guidelines The authentication string is sent unencrypted in all HSRP messages. The same authentication string must be
configured on all routers and access servers on a LAN to ensure interoperation. Authentication mismatch
prevents a device from learning the designated Hot Standby IP address and the Hot Standby timer values from
other routers configured with HSRP.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 407
HSRP Commands
hsrp authentication
Examples This example shows how to configure “company1” as the authentication string required to allow Hot Standby
routers in group 1 on Ten Gigabit Ethernet interface 0/2/0/1 to interoperate:
Related Commands
Command Description
show hsrp, on page 441 Displays HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
408 OL-28453-05
HSRP Commands
hsrp bfd fast-detect
Syntax Description group number (Optional) HSRP group number. Range is 0 to 255.
Release 4.2.0 This command has been deprecated. This command was replaced with
the bfd fast-detect (hsrp) command.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 409
HSRP Commands
hsrp bfd fast-detect
Related Commands
Command Description
hsrp bfd multiplier, on page 413 Configures the multiplier value for BFD.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
410 OL-28453-05
HSRP Commands
hsrp bfd minimum-interval
Usage Guidelines Minimum interval determines the frequency of sending BFD packets to BFD peers. It is the time between
successive BFD packets sent for the session. Minimum interval is defined in milliseconds. The configured
minimum interval applies to all BFD sessions on the interface.
Examples The following example shows how to configure a minimum interval of 100 milliseconds:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 411
HSRP Commands
hsrp bfd minimum-interval
Related Commands
Command Description
hsrp bfd fast-detect, on page 409 Enables BFD fast-detection on a HSRP interface.
hsrp bfd multiplier, on page 413 Configures the multiplier value for BFD.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
412 OL-28453-05
HSRP Commands
hsrp bfd multiplier
Syntax Description multiplier Specifies the BFD multiplier value. Range is 2 to 50.
Usage Guidelines The multiplier value specifies the number of consecutive BFD packets that, if not received as expected, cause
a BFD session to go down. The BFD multiplier applies to all configured BFD sessions on the interface.
Examples The following example shows how to configure a BFD multiplier with multiplier value of 10:
Related Commands
Command Description
hsrp bfd fast-detect, on page 409 Enables BFD fast-detection on a HSRP interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 413
HSRP Commands
hsrp bfd multiplier
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
414 OL-28453-05
HSRP Commands
hsrp delay
hsrp delay
To configure the activation delay for the Hot Standby Router Protocol (HSRP), use the hsrp delay command
in HSRP interface configuration mode. To delete the activation delay, use the no form of this command.
Syntax Description minimum value Sets the minimum delay in seconds for every interface up event. Range
is 0 to 10000.
reload value Sets the reload delay in seconds for first interface up event. Range is 0
to 10000.
Usage Guidelines The hsrp delay command delays the start of the HSRP finite state machine (FSM) on an interface up event
to ensure that the interface is ready to pass traffic. This ensures that there are no mistaken state changes due
to loss of hello packets. The minimum delay is applied on all interface up events and the reload delay is applied
on the first interface event.
The values of zero must be explicitly configured to turn this feature off.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 415
HSRP Commands
hsrp delay
Examples The following example shows how to configure a minimum delay of 10 seconds with a reload delay of 100
seconds:
Related Commands
Command Description
show hsrp, on page 441 Displays HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
416 OL-28453-05
HSRP Commands
hsrp ipv4
hsrp ipv4
To activate the Hot Standby Router Protocol (HSRP), use the hsrp ipv4 command in HSRP interface
configuration mode. To disable HSRP, use the no form of this command.
Syntax Description group-number (Optional) Group number on the interface for which HSRP is being activated.
Range is 0 to 255. Default is 0.
secondary (Optional) Indicates that the IP address is a secondary Hot Standby router interface.
Useful on interfaces with primary and secondary addresses; you can configure
primary and secondary HSRP addresses.
Usage Guidelines The hsrp ipv4 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 virtual address
is learned from the active router. For HSRP to elect a designated router, at least one router in the Hot Standby
group must have been configured with, or must 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 hsrp ipv4 command is enabled on an interface, the handling of proxy Address Resolution Protocol
(ARP) requests is changed (unless proxy ARP was disabled). If the Hot Standby state group has been configured
with or has learned the designated address, the proxy ARP requests are answered using the MAC address of
the Hot Standby group. Otherwise, proxy ARP responses are suppressed.
Configuring secondary Hot Standby router IP addresses is necessary when the interface has secondary IP
addresses configured and redundancy must be provided for the networks of these addresses also.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 417
HSRP Commands
hsrp ipv4
A primary address must be configured before a secondary address. Likewise, a secondary address must be
unconfigured before unconfiguring a primary address. All IP addresses can be unconfigured using the no
hsrp ipv4 command.
Examples The following example shows how to activate HSRP for group 1 on tenGigE interface 0/2/0/1. The IP address
used by the Hot Standby group is learned using HSRP.
Related Commands
Command Description
hsrp redirects, on page 425 Configures ICMP redirect messages to be sent when
the HSRP is configured on an interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
418 OL-28453-05
HSRP Commands
hsrp mac-address
hsrp mac-address
To specify a virtual MAC address for the Hot Standby Router Protocol (HSRP), use the hsrp mac-address
command in HSRP interface configuration mode. To revert to the standard virtual MAC address
(0000.0C07.ACn), use the no form of this command.
Syntax Description group-number (Optional) Group number on the interface for which HSRP is being
activated. Default is 0.
Release 4.2.0 This command has been deprecated. This command was replaced with
the mac-address hsrp command.
Usage Guidelines The hsrp mac-address command is not recommended except for IBM networking environments in which
first-hop redundancy is based on being able to use a virtual MAC address and in which you cannot change
the first-hop addresses in the PCs that are connected to an Ethernet switch.
HSRP is used to help end stations locate the first-hop gateway for IP routing. The end stations are configured
with a default gateway. However, HSRP can provide first-hop redundancy for other protocols. Some protocols,
such as Advanced Peer-to-Peer Networking (APPN), use the MAC address to identify the first-hop for routing
purposes. In this case, it is often necessary to specify the virtual MAC address; the virtual IP address is
unimportant for these protocols.
Use the hsrp mac-address command to specify the virtual MAC address. The MAC address specified is
used as the virtual MAC address when the router is active. This command is intended for certain APPN
configurations.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 419
HSRP Commands
hsrp mac-address
This table shows the parallel terms between APPN and IP.
APPN IP
end node host
Note In an APPN network, an end node is typically configured with the MAC address of the adjacent network
node. Use the hsrp 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 command
to configure the virtual MAC address is as follows:
Related Commands
Command Description
hsrp use-bia, on page 431 Configures HSRP to use the burned-in address of the
interface as its virtual MAC address, instead of the
preassigned MAC address.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
420 OL-28453-05
HSRP Commands
hsrp preempt
hsrp preempt
To configure Hot Standby Router Protocol (HSRP) preemption and preemption delay, use the hsrp preempt
command in HSRP interface configuration mode. To restore the default values, use the no form of this
command.
Syntax Description group-number (Optional) Group number on the interface to which the other arguments in this
command apply. Default is 0.
delay seconds (Optional) Time in seconds. The seconds argument causes the local router to
postpone taking over the active role for the specified preempt delay seconds value.
Range is 0 to 3600 seconds (1 hour). Default is 0 seconds (no delay).
Release 4.2.0 This command has been deprecated. This command was replaced with
the preempt hsrp command.
Usage Guidelines When the hsrp preempt command is configured, the local router should attempt to assume control as the
active router if it has a hot standby priority higher than the current active router. If the hsrp preempt command
is not configured, the local router assumes control as the active router only if no other router is currently in
the active state.
When a router first comes up, it does not have a complete routing table. If HSRP is configured to preempt,
the local HSRP group may become the active router, yet it is unable to provide adequate routing services.
This problem can be solved by configuring a delay before the preempting router actually preempts the currently
active router.
The preempt delay seconds value does not apply if there is no router currently in the active state. In this case,
the local router becomes active after the appropriate timeouts (see the hsrp timers command), regardless of
the preempt delay seconds value.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 421
HSRP Commands
hsrp preempt
Examples In the following example, the router waits for 300 seconds (5 minutes) after having determined that it should
preempt before attempting to preempt the active router. The router might become the active router in a shorter
span of time despite the configured delay if no active router is present. Only preempting the active router is
delayed.
Related Commands
Command Description
hsrp priority, on page 423 Configures HSRP priority.
hsrp track, on page 429 Configures an interface so that the Hot Standby
priority changes based on the availability of other
interfaces.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
422 OL-28453-05
HSRP Commands
hsrp priority
hsrp priority
To configure Hot Standby Router Protocol (HSRP) priority, use the hsrp priority command in HSRP interface
configuration mode. To restore the default values, use the no form of this command.
Syntax Description group-number (Optional) Group number on the interface to which the priority applies. Default
is 0.
priority Priority value that prioritizes a potential Hot Standby router. Range is 1 to 255.
Default is 100.
Release 4.2.0 This command has been deprecated. This command was replaced with
the preempt hsrp command.
Usage Guidelines The assigned priority is used to help select the active and standby routers. Assuming that preemption is enabled,
the router with the highest priority becomes the designated active router. In case of ties, the interface IP
addresses are compared, and the interface with the higher IP address has priority.
The priority of the device can change dynamically if an interface is configured with the hsrp track command
and another interface on the device goes down.
If preemption is not enabled, the router may not become active even though it might have a higher priority
than other HSRP routers.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 423
HSRP Commands
hsrp priority
Related Commands
Command Description
hsrp preempt, on page 421 Configures HSRP preemption and preemption delay.
hsrp track, on page 429 Configures an interface so that the Hot Standby
priority changes based on the availability of other
interfaces.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
424 OL-28453-05
HSRP Commands
hsrp redirects
hsrp redirects
To configure Internet Control Message Protocol (ICMP) redirect messages to be sent when the Hot Standby
Router Protocol (HSRP) is configured on an interface, use the hsrp redirects command in HSRP interface
configuration mode. To revert to the default, which is that ICMP messages are enabled, use the no form of
this command.
Syntax Description disable Disables the filtering of ICMP redirect messages on interfaces configured with
HSRP.
Usage Guidelines The hsrp redirects command can be configured on a per-interface basis. When HSRP is first configured on
an interface, the setting for that interface inherits the global value. With the hsrp redirects command is
enabled, ICMP redirects messages are filtered by replacing the real IP address in the next-hop address of the
redirect packet with a virtual IP address if it is known to HSRP.
Examples The following example shows how to allow HSRP to filter redirect messages on tenGigE interface 0/2/0/1:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 425
HSRP Commands
hsrp redirects
Related Commands
Command Description
show hsrp, on page 441 Displays HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
426 OL-28453-05
HSRP Commands
hsrp timers
hsrp 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 hsrp timers command in HSRP interface configuration mode. To restore
the timers to their default values, use the no form of this command.
Syntax Description group-number (Optional) Group number on the interface to which the timers apply.
Default is 0.
msec hold-milliseconds Time in milliseconds before the active or standby router is declared to
be down. Range is 100 to 3000 milliseconds.
Release 4.2.0 This command has been deprecated. This command was replaced with
the timers (hsrp) command.
Usage Guidelines Nonactive routers learn timer values from the active router, unless millisecond timer values are being used.
If millisecond timer values are being used, all routers must be configured with the millisecond timer values.
This rule applies if either the hello time or the hold time is specified in milliseconds.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 427
HSRP Commands
hsrp timers
The timers configured on the active router always override any other timer settings. All routers in a Hot
Standby group should use the same timer values. Normally, the hold time is greater than or equal to three
times the hello time (holdtime > 3 * hellotime).
You must specify either the hello-seconds argument or the msec keyword and hello-milliseconds argument,
depending on whether you want the hello time in seconds or milliseconds. You must also specify either the
hold-seconds argument or msec keyword and hold-milliseconds argument, depending on whether you want
the hold time in seconds or milliseconds.
Examples The following example shows how to set, for group number 1 on Ten Gigabit Ethernet interface 0/2/0/1, the
time between hello packets to 5 seconds and the time after which a router is considered to be down to
15 seconds. The configured timer values are used only if the router is active (or before they have been learned).
The following example shows how to set, for group number 1 on Ten Gigabit Ethernet interface 0/2/0/1, the
time between hello packets to 200 milliseconds and the time after which a router is considered to be down to
1000 milliseconds. The configured timer values are always used because milliseconds have been specified.
Related Commands
Command Description
show hsrp, on page 441 Displays HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
428 OL-28453-05
HSRP Commands
hsrp track
hsrp track
To configure an interface so that the Hot Standby priority changes on the basis of the availability of other
interfaces, use the hsrp track command in HSRP interface configuration mode. To remove the tracking, use
the no form of this command.
Syntax Description group-number (Optional) Group number on the interface to which the tracking applies. Default
is 0.
type Interface type. For more information, use the question mark (?) online help
function.
priority-decrement (Optional) Amount by which the Hot Standby priority for the router is decremented
(or incremented) when the interface goes down (or comes back up). Range is 1
to 255.
Release 4.2.0 This command has been deprecated. This command was replaced with
the track (hsrp)command.
Usage Guidelines The hsrp track 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). Only IP
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 429
HSRP Commands
hsrp track
interfaces are tracked. A tracked interface is up if IP on that interface is up. Otherwise, the tracked interface
is down.
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 group configured for Hot Standby, you can
configure a separate list of interfaces to be tracked.
The optional priority-decrement 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 and priority-decrement values have been configured, these
configured priority decrements are cumulative. If tracked interfaces are down, but none of them were configured
with priority decrements, the default decrement is 10 and it is cumulative.
The hsrp preempt command must be used in conjunction with this command on all routers in the group
whenever the best available router should be used to forward packets. If the hsrp preempt command is not
used, then the active router stays active, regardless of the current priorities of the other HSRP routers.
Examples In the following example, Ten Gigabit Ethernet interface 0/2/0/1 tracks interface 0/1/0/1 and 0/3/0/1. 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 of the tracked interfaces goes down
and the priority becomes 80 when both go down.
Related Commands
Command Description
hsrp preempt, on page 421 Configures HSRP preemption and preemption delay.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
430 OL-28453-05
HSRP Commands
hsrp use-bia
hsrp 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 or the functional address, use the hsrp use-bia
command in HSRP interface configuration mode. To restore the default virtual MAC address, use the no form
of this command.
hsrp use-bia
no hsrp use-bia
Usage Guidelines It is desirable to configure the hsrp use-bia command on an interface if there are devices that reject Address
Resolution Protocol (ARP) replies with source hardware addresses set to a functional address.
Examples In the following example, the burned-in address of tenGigE interface 0/2/0/1 will be the virtual MAC address
mapped to the virtual IP address for all Hot Standby groups configured on tenGigE interface 0/1/0/1:
Related Commands
Command Description
hsrp mac-address, on page 419 Specifies a virtual MAC address for HSRP.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 431
HSRP Commands
interface (HSRP)
interface (HSRP)
To enable Hot Standby Router Protocol (HSRP) interface configuration command mode, use the interface
command in router configuration mode. To terminate interface mode, use the no form of this command.
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
Usage Guidelines All the commands used to configure HSRP are used in HSRP interface configuration mode.
Examples The following example show how to enable HSRP interface configuration mode on tenGigE 0/2/0/1:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
432 OL-28453-05
HSRP Commands
interface (HSRP)
Related Commands
Command Description
router hsrp, on page 438 Enables HSRP.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 433
HSRP Commands
preempt (hsrp)
preempt (hsrp)
To configure Hot Standby Router Protocol (HSRP) preemption and preemption delay, use the hsrp preempt
command in HSRP group submode. To restore the default values, use the no form of this command.
Syntax Description delay seconds (Optional) Time in seconds. The seconds argument causes the local router to
postpone the taking over the active role for the specified preempt delay seconds
value. Range is from 0 to 3600 (1 hour). Default is 0 (no delay).
Usage Guidelines When the hsrp preempt command is configured, the local router should attempt to assume control as the
active router, if it has a hot standby priority higher than the current active router. If the hsrp preempt command
is not configured, the local router assumes control as the active router only if no other router is currently in
the active state.
When a router first comes up, it does not have a complete routing table. If HSRP is configured to preempt,
the local HSRP group may become the active router, yet it is unable to provide adequate routing services.
This problem can be solved by configuring a delay before the preempting router actually preempts the currently
active router.
The preempt delay seconds value does not apply if there is no router currently in the active state. In this case,
the local router becomes active after the appropriate timeouts (see the hsrp timers command), regardless of
the preempt delay seconds value.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
434 OL-28453-05
HSRP Commands
preempt (hsrp)
Examples This example, the router waits for 300 seconds (5 minutes) after having determined that it should preempt
before attempting to preempt the active router. The router might become the active router in a shorter span
of time despite the configured delay, if no active router is present. Only preempting the active router is delayed.
(applicable for Cisco IOS XR Releases 4.2.x and below)
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1
RP/0/0/CPU0:router(config-hsrp-gp)# preempt delay 300
RP/0/0/CPU0:router(config-hsrp-gp)#
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1 version 2
RP/0/0/CPU0:router(config-hsrp-gp)# preempt delay 300
RP/0/0/CPU0:router(config-hsrp-gp)#
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Related Commands
Command Description
hsrp priority, on page 423 Configures HSRP priority.
hsrp track, on page 429 Configures an interface so that the Hot Standby
priority changes based on the availability of other
interfaces.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 435
HSRP Commands
priority (hsrp)
priority (hsrp)
To configure Hot Standby Router Protocol (HSRP) priority, use the priority command in HSRP group
submode. To restore the default values, use the no form of this command.
priority priority
no priority priority
Syntax Description priority Priority value that prioritizes a potential Hot Standby router. Range is from 1 to
255. Default is 100.
Usage Guidelines The assigned priority is used to help select the active and standby routers. Assuming that preemption is enabled,
the router with the highest priority becomes the designated active router. In case of ties, the interface IP
addresses are compared, and the interface with the higher IP address has priority.
The priority of the device can change dynamically if an interface is configured with the hsrp track command
and another interface on the device goes down.
If preemption is not enabled, the router may not become active even though it might have a higher priority
than other HSRP routers.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
436 OL-28453-05
HSRP Commands
priority (hsrp)
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1 version 2
RP/0/0/CPU0:router(config-hsrp-gp)# priority 120
RP/0/0/CPU0:router(config-hsrp-gp)#
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Related Commands
Command Description
hsrp preempt, on page 421 Configures HSRP preemption and preemption delay.
hsrp track, on page 429 Configures an interface so that the Hot Standby
priority changes based on the availability of other
interfaces.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 437
HSRP Commands
router hsrp
router hsrp
To enable the Hot Standby Router Protocol (HSRP), use the router hsrp command in Global Configuration
mode. To disable HSRP, use the no form of this command.
router hsrp
no router hsrp
Usage Guidelines HSRP configuration commands must be configured in the HSRP interface configuration mode.
Examples The following example shows how to configure an HSRP redundancy process that contains a virtual router
group 1 on Ten Gigabit Ethernet 0/2/0/1:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
438 OL-28453-05
HSRP Commands
session name
session name
To configure an HSRP session name, use the session name command in the HSRP group submode. To
deconfigure an HSRP session name, use the no form of this command.
name name
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 439
HSRP Commands
session name
RP/0/0/CPU0:router(config-hsrp-gp)#
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Related Commands
Command Description
hsrp mac-address, on page 419 Configures a virtual MAC address for the Hot
Standby Router Protocol (HSRP).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
440 OL-28453-05
HSRP Commands
show hsrp
show hsrp
To display Hot Standby Router Protocol (HSRP) information, use the show hsrp command in EXEC mode
mode.
Syntax Description interfaceinterface-type Interface type. For more information, use the question mark (?) online help function.
group-number (Optional) Group number on the interface for which output is displayed.
brief (Optional) A single line of output summarizes each standby group. The brief keyword
is the default if detail is not specified.
detail (Optional) This keyword has the same effect as not specifying brief; more output
is provided.
(Optional) After this vertical bar (|), specify one of these output modifiers and a
keyword from the output:
• begin —Begins the output from the word that you specify.
• exclude —Excludes lines that match the word that you specify.
• include —Includes lines that match the word that you specify.
Command Default By default, a single line of output summarizing each standby group is displayed.
Usage Guidelines Use the show hsrp command to display HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 441
HSRP Commands
show hsrp
If you want to specify a value for the group-number argument, you must also specify an interface type and
number.
Examples This is sample output from the show hsrp detail command:
0/4/0/0 - Group 1
Local state is Active, priority 100
Hellotime 3 sec holdtime 10 sec
Next hello sent in 0.539
Minimum delay 1 sec, reload delay 5 sec
BFD enabled: state none, interval 15 ms multiplier 3
Hot standby IP address is 4.0.0.100 configured
Active router is local
Standby router is unknown expired
Standby virtual mac address is 0000.0c07.ac01
2 state changes, last state change 00:05:20
This table describes the significant fields shown in the display.
Field Description
TenGigE E0/2/0/4 Interface type and number and Hot Standby group
number for the interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
442 OL-28453-05
HSRP Commands
show hsrp
Field Description
Hellotime Current time (in seconds) between sending of hello
packets, learned dynamically from the hello packets
received from the active Hot Standby router.
Next hello sent in Time in which the software will send the next hello
packet (in hours:minutes:seconds).
Hot standby IP address is configured IP address of the current Hot Standby router. The
word “configured” indicates that this address is known
through the hsrp ip command. Otherwise, the
address was learned dynamically through HSRP hello
packets from other routers that do have the HSRP IP
address configured.
Standby virtual mac address is MAC address associated with the standby group
address.
state changes Number of times the router changed the standby state.
Tracking interface states for List of interfaces that are being tracked and their
corresponding states. Based on the hsrp track
command.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 443
HSRP Commands
show hsrp
Related Commands
Command Description
hsrp authentication, on page 407 Configures an authentication string for HSRP.
hsrp mac-address, on page 419 Specifies a virtual MAC address for HSRP.
hsrp preempt, on page 421 Configures HSRP preemption and preemption delay.
hsrp timers, on page 427 Configures the time between hello packets and the
time before other routers declare the active Hot
Standby or standby router to be down.
hsrp track, on page 429 Configures an interface so that the Hot Standby
priority changes based on the availability of other
interfaces.
hsrp use-bia, on page 431 Configures HSRP to use the burned-in address of the
interface as its virtual MAC address, instead of the
preassigned MAC address.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
444 OL-28453-05
HSRP Commands
show hsrp bfd
Examples This example shows Hot Standby Router Protocol (HSRP) bfd information across all interfaces.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 445
HSRP Commands
show hsrp bfd
This example shows Hot Standby Router Protocol (HSRP) bfd information for the 0/3/0/2 interface.
Related Commands
Command Description
show hsrp, on page 441 Displays HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
446 OL-28453-05
HSRP Commands
show hsrp mgo
Examples This example shows Hot Standby Router Protocol (HSRP) mgo information for interface HSRP3.
HSRP3
Primary group Bundle-Ether1.1 IPv4 group 1
State is Active
Slave groups:
Interface Grp
Bundle-Ether1.2 2
Bundle-Ether1.3 3
Bundle-Ether1.4 4
Bundle-Ether1.5 5
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 447
HSRP Commands
show hsrp mgo
This example shows Hot Standby Router Protocol (HSRP) mgo information across all interfaces in a brief
format.
Related Commands
Command Description
show hsrp, on page 441 Displays HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
448 OL-28453-05
HSRP Commands
show hsrp statistics
Examples This sample output is from the show hsrp statistics command:
Packets Sent: 12
Hello: 7
Resign: 0
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 449
HSRP Commands
show hsrp statistics
Coup: 2
Adver: 3
Related Commands
Command Description
show hsrp, on page 441 Displays HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
450 OL-28453-05
HSRP Commands
show hsrp summary
Examples This sample output is from the show hsrp summary command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 451
HSRP Commands
show hsrp summary
Related Commands
Command Description
show hsrp, on page 441 Displays HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
452 OL-28453-05
HSRP Commands
slave follow
slave follow
To instruct the slave group to inherit its state from a specified group, use the slave follow command in HSRP
slave submode.
follow mgo-session-name
Syntax Description mgo-session-name Name of the MGO session from which the slave group will inherit the
state.
Examples This example shows how to instruct the slave group to inherit its state from a specified group.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp slave
RP/0/0/CPU0:router(config-hsrp-slave)# follow m1
Related Commands
Command Description
slave virtual mac address, on page 459 Configures the virtual MAC address for the slave
group.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 453
HSRP Commands
slave follow
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
454 OL-28453-05
HSRP Commands
slave primary virtual IPv4 address
address ip-address
Examples This example shows how to configure the primary virtual IPv4 address for the slave group.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp slave
RP/0/0/CPU0:router(config-hsrp-slave)# address 10.2.1.4
Related Commands
Command Description
slave follow, on page 453 Instructs the slave group to inherit its state from a
specified group.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 455
HSRP Commands
slave primary virtual IPv4 address
Command Description
slave virtual mac address, on page 459 Configures the virtual MAC address for the slave
group.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
456 OL-28453-05
HSRP Commands
slave secondary virtual IPv4 address
Examples This example shows how to configure the secondary virtual IPv4 address for the slave group.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp slave
RP/0/0/CPU0:router(config-hsrp-slave)# address 10.2.1.4 secondary
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 457
HSRP Commands
slave secondary virtual IPv4 address
Related Commands
Command Description
slave follow, on page 453 Instructs the slave group to inherit its state from a
specified group.
slave virtual mac address, on page 459 Configures the virtual MAC address for the slave
group.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
458 OL-28453-05
HSRP Commands
slave virtual mac address
mac-address address
Examples This example shows how to configure the virtual MAC address for the slave group.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp slave
RP/0/0/CPU0:router(config-hsrp-slave)# mac-address 10.2.4
Related Commands
Command Description
slave follow, on page 453 Instructs the slave group to inherit its state from a
specified group.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 459
HSRP Commands
slave virtual mac address
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
460 OL-28453-05
HSRP Commands
timers (hsrp)
timers (hsrp)
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 hsrp timers command in HSRP group submode. To restore the timers
to their default values, use the no form of this command.
Syntax Description hello-seconds Hello interval in seconds. Range is from 1 to 255. Default is 3.
msec hold-milliseconds Time in milliseconds before the active or standby router is declared to
be down. Range is from 100 to 3000.
Command Default The default hello-seconds is 3. (If the msec keyword is specified, there is no default value.)
The default hold-seconds is 10. (If the msec keyword is specified, there is no default value.)
Usage Guidelines Nonactive routers learn timer values from the active router, unless millisecond timer values are being used.
If millisecond timer values are being used, all routers must be configured with the millisecond timer values.
This rule applies if either the hello time or the hold time is specified in milliseconds.
The timers configured on the active router always override any other timer settings. All routers in a Hot
Standby group should use the same timer values. Normally, the hold time is greater than or equal to three
times the hello time (holdtime > 3 * hellotime).
You must specify either the hello-seconds argument or the msec keyword and hello-milliseconds argument,
depending on whether you want the hello time in seconds or milliseconds. You must also specify either the
hold-seconds argument or msec keyword and hold-milliseconds argument, depending on whether you want
the hold time in seconds or milliseconds.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 461
HSRP Commands
timers (hsrp)
Examples This example shows how to set, for group number 1 on Ten Gigabit Ethernet interface 0/2/0/1, the time
between hello packets to 5 seconds and the time after which a router is considered to be down to 15 seconds.
The configured timer values are used only if the router is active (or before they have been learned).
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1
RP/0/0/CPU0:router(config-hsrp-gp)# timers 5 15
RP/0/0/CPU0:router(config-hsrp-gp)#
This example shows how to set, for group number 1 on Ten Gigabit Ethernet interface 0/2/0/1, the time
between hello packets to 200 milliseconds and the time after which a router is considered to be down to
1000 milliseconds. The configured timer values are always used because milliseconds have been specified.
(applicable for Cisco IOS XR Releases 4.2.x and below)
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1
RP/0/0/CPU0:router(config-hsrp-gp)# timers msec 200 msec 1000
RP/0/0/CPU0:router(config-hsrp-gp)#
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1 version 2
RP/0/0/CPU0:router(config-hsrp-gp)# timers msec 200 msec 1000
RP/0/0/CPU0:router(config-hsrp-gp)#
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Related Commands
Command Description
show hsrp, on page 441 Displays HSRP information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
462 OL-28453-05
HSRP Commands
track (hsrp)
track (hsrp)
To configure an interface so that the Hot Standby priority changes on the basis of the availability of other
interfaces, use the hsrp track command in HSRP group submode. To remove the tracking, use the no form
of this command.
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
priority-decrement (Optional) Amount by which the Hot Standby priority for the router is decremented
(or incremented) when the interface goes down (or comes back up). Range is 1 to
255.
Usage Guidelines The hsrp track 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). Only IP
interfaces are tracked. A tracked interface is up if IP on that interface is up. Otherwise, the tracked interface
is down.
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 group configured for Hot Standby, you can
configure a separate list of interfaces to be tracked.
The optional priority-decrement 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.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 463
HSRP Commands
track (hsrp)
When multiple tracked interfaces are down and priority-decrement values have been configured, these
configured priority decrements are cumulative. If tracked interfaces are down, but none of them were configured
with priority decrements, the default decrement is 10 and it is cumulative.
The hsrp preempt command must be used in conjunction with this command on all routers in the group
whenever the best available router should be used to forward packets. If the hsrp preempt command is not
used, then the active router stays active, regardless of the current priorities of the other HSRP routers.
Examples This example shows how to configure an interface so that the Hot Standby priority changes on the basis of
the availability of other interfaces.
(applicable for Cisco IOS XR Releases 4.2.x and below)
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1
RP/0/0/CPU0:router(config-hsrp-gp)# track tenGigE 0/4/0/4 2
RP/0/0/CPU0:router(config-hsrp-gp)#
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1 version 2
RP/0/0/CPU0:router(config-hsrp-gp)# track tenGigE 0/4/0/4 2
RP/0/0/CPU0:router(config-hsrp-gp)#
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Related Commands
Command Description
hsrp preempt, on page 421 Configures HSRP preemption and preemption delay.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
464 OL-28453-05
HSRP Commands
track(object)
track(object)
To enable tracking of a named object with the specified decrement, use the track (object) command in HSRP
group submode. To remove the tracking, use the no form of this command.
Syntax Description object name Object tracking. Name of the object to be tracked.
priority-decrement (Optional) Amount by which the Hot Standby priority for the router is
decremented (or incremented) when the interface goes down (or comes back
up). Range is 1 to 255.
Examples This example shows how to configure object tracking under the HSRP group submode.
(applicable for Cisco IOS XR Releases 4.2.x and below)
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1
RP/0/0/CPU0:router(config-hsrp-gp)# track object t1 2
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 465
HSRP Commands
track(object)
RP/0/0/CPU0:router(config-hsrp-gp)#
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router hsrp
RP/0/0/CPU0:router(config-hsrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-hsrp-ipv4)# hsrp 1 version 2
RP/0/0/CPU0:router(config-hsrp-gp)# track object t1 2
RP/0/0/CPU0:router(config-hsrp-gp)#
Note • The version keyword is available only if IPv4 address-family is selected. By default, version is set
to 2 for IPv6 address families.
• HSRP version 2 provides an extended group range of 0-4095.
Related Commands
Command Description
hsrp preempt, on page 421 Configures HSRP preemption and preemption delay.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
466 OL-28453-05
LPTS Commands
This chapter describes the Cisco IOS XR software commands used to monitor Local Packet Transport
Services (LPTS ).
For detailed information about LPTS concepts, configuration tasks, and examples, refer to the Cisco IOS XR
IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series Router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 467
LPTS Commands
clear lpts ifib statistics
Syntax Description location node-id (Optional) Clears the IFIB statistics for the designated node. The node-id
argument is entered in standard rack/slot/module notation.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, the clear lpts ifib statistics
command clears the IFIB statistics for the node on which the command is run.
Examples The following example shows how to clear the IFIB statistics for the RP:
Related Commands
Command Description
show lpts ifib statistics, on page 497 Displays the LPTS IFIB statistics.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
468 OL-28453-05
LPTS Commands
clear lpts pifib hardware statistics
Syntax Description location node-id Clears the Pre-IFIB hardware statistics for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command clears the
Pre-IFIB hardware statistics for the node on which the command is run.
Examples
Related Commands
Command Description
show lpts pifib hardware police, on page 514 Displays the policer configuration value set.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 469
LPTS Commands
clear lpts pifib statistics
Syntax Description location node-id Clears the Pre-IFIB statistics for the designated node. The node-id argument
is entered in the rack/slot/module notation.
Usage Guidelines If you do not specify a node with the location keyword and node-id argument, this command clears the
Pre-IFIB statistics for the node on which the command is run.
Examples The following example shows how to clear the Pre-IFIB statistics for the RP:
Related Commands
Command Description
show lpts pifib statistics, on page 519 Displays the LPTS PIFIB statistics.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
470 OL-28453-05
LPTS Commands
flow (LPTS)
flow (LPTS)
To configure the policer for the Local Packet Transport Services (LPTS) flow type, use the flow command
in pifib policer global configuration mode or pifib policer per-node configuration mode. To disable this feature,
use the no form of this command.
rate rate Specifies the rate in packets per seconds (PPS). The range is from 0 to
4294967295.
Command Default The default behavior is to load the policer values from the static configuration file that is platform dependant.
Usage Guidelines The table lists the supported flow types and the parameters that are used to define a policer.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 471
LPTS Commands
flow (LPTS)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
472 OL-28453-05
LPTS Commands
flow (LPTS)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 473
LPTS Commands
flow (LPTS)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
474 OL-28453-05
LPTS Commands
flow (LPTS)
Examples The following example shows how to configure the LPTS policer for the bgp-known flow type for all line
cards:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# lpts pifib hardware police
RP/0/0/CPU0:router(config-pifib-policer-global)# flow bgp-known rate 20000
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 475
LPTS Commands
flow (LPTS)
The following example shows how to configure LPTS policer for the Intermediate System-to-Intermediate
System (IS-IS)-known flow type for a specific line card:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:routerconfig)# lpts pifib hardware police location 0/2/CPU0
RP/0/0/CPU0:router(config-pifib-policer-per-node)# flow isis-known rate 22222
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
476 OL-28453-05
LPTS Commands
lpts pifib hardware police
flow flow-type rate rate LPTS flow type and the policer rate in packets
per second (PPS).
Release 4.2.0 New flow types such as dns, radius, tacacs, ntp known, rsvp known and
pim multicast known flow types were added.
Examples This example shows how to configure the lpts pifib hardware police command for all line cards:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 477
LPTS Commands
lpts pifib hardware police
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# lpts pifib hardware police location 0/2/CPU0 flow dns rate 10
This example shows how to configure the TOS precedence for the 0/2/CPU0 location using the lpts pifib
hardware police command:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# lpts pifib hardware police location 0/2/CPU0 flow telnet default
precedence 5 3 6
Related Commands
Command Description
flow (LPTS), on page 471 Configures the policer for the LPTS flow type.
show lpts pifib hardware police, on page 514 Displays the policer configuration value set.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
478 OL-28453-05
LPTS Commands
show lpts bindings
show lpts bindings [location node-id] [client-id {clnl| ipsec| ipv4-io| ipv6-io| mpa| tcp| test| udp| raw}]
[brief] [vrf vrf-name]
Syntax Description location node-id (Optional) Displays information for the specified node. The node-id argument is
entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 479
LPTS Commands
show lpts bindings
Usage Guidelines The show lpts bindings command displays the Local Packet Transport Services (LPTS) bindings (requests
to receive traffic of a particular type). Bindings are aggregated into flows by the LPTS Port Arbitrator; flows
are then programmed into the Internal Forwarding Information Base (IFIB) and Pre-IFIB to direct packets to
applications.
If you specify the optional client-id keyword and type of client, only bindings from that client are shown. If
you specify the optional location keyword and node-id argument, only bindings from clients on that node are
displayed.
Examples The following sample output is from the show lpts bindings command, displaying bindings for all client ID
types:
------------------------------------------
Location :0/1/CPU0
Client ID :IPV4_IO
Cookie :0x00000001
Clnt Flags :
Layer 3 :IPV4
Layer 4 :ICMP
Local Addr :any
Remote Addr:any
Local Port :any
Remote Port:any
Filters :Type / Intf or Pkt Type / Source Addr / Location
INCLUDE_TYPE / type 8
INCLUDE_TYPE / type 13
INCLUDE_TYPE / type 17
------------------------------------------
Location :0/2/CPU0
Client ID :IPV4_IO
Cookie :0x00000001
Clnt Flags :
Layer 3 :IPV4
Layer 4 :ICMP
Local Addr :any
Remote Addr:any
Local Port :any
Remote Port:any
Filters :Type / Intf or Pkt Type / Source Addr / Location
INCLUDE_TYPE / type 8
INCLUDE_TYPE / type 13
INCLUDE_TYPE / type 17
------------------------------------------
Location :0/RP1/CPU0
Client ID :TCP
Cookie :0x4826f1f8
Clnt Flags :REUSEPORT
Layer 3 :IPV4
Layer 4 :TCP
Local Addr :any
Remote Addr:any
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
480 OL-28453-05
LPTS Commands
show lpts bindings
Local Port :7
Remote Port:any
------------------------------------------
Location :0/RP1/CPU0
Client ID :TCP
Cookie :0x4826fa0c
Clnt Flags :REUSEPORT
Layer 3 :IPV4
Layer 4 :TCP
Local Addr :any
Remote Addr:any
Local Port :9
Remote Port:any
------------------------------------------
Location :0/RP1/CPU0
Client ID :TCP
Cookie :0x482700d0
Clnt Flags :REUSEPORT
Layer 3 :IPV4
Layer 4 :TCP
Local Addr :any
Remote Addr:any
Local Port :19
Remote Port:any
------------------------------------------
Location :0/RP1/CPU0
Client ID :IPV4_IO
Cookie :0x00000001
Clnt Flags :
Layer 3 :IPV4
Layer 4 :ICMP
Local Addr :any
Remote Addr:any
Local Port :any
Remote Port:any
Filters :Type / Intf or Pkt Type / Source Addr / Location
INCLUDE_TYPE / type 8
INCLUDE_TYPE / type 13
INCLUDE_TYPE / type 17
This table describes the significant fields shown in the display.
Field Description
Location Node location, in the format of rack/slot/module.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 481
LPTS Commands
show lpts bindings
Field Description
Local Port Local (destination) TCP or UDP port, or ICMP/IGMP
packet type, or IPsec SPI.
The following sample output is from the show lpts bindings brief command:
Field Description
Location Node location, in the format of rack/slot/module.
Related Commands
Command Description
show lpts clients, on page 484 Displays the client information for the Port Arbitrator.
show lpts flows, on page 486 Displays information about LPTS flows.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
482 OL-28453-05
LPTS Commands
show lpts bindings
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 483
LPTS Commands
show lpts clients
Syntax Description times (Optional) Displays information about binding request rates and service times.
Command Modes
Usage Guidelines The show lpts clients command displays the clients connected to the local packet transport services (LPTS)
port arbitrator (PA).
Examples The following sample output is from the show lpts clients command:
Field Description
Clid LPTS client ID.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
484 OL-28453-05
LPTS Commands
show lpts clients
Field Description
Loc Node location, in the format rack/slot/module.
The following sample output is from the show lpts clients times command. The output shows samples for
the last 30 seconds, 1 minute, 5 minutes, 10 minutes, and a total (if nonzero). The number of transactions,
number of updates, and the minimum/average/maximum time in milliseconds to process each transaction is
shown.
Related Commands
Command Description
show lpts bindings, on page 479 Displays the binding information in the port arbitrator.
show lpts flows, on page 486 Displays information about LPTS flows.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 485
LPTS Commands
show lpts flows
Usage Guidelines The show lpts flows command is used to display LPTS flows, which are aggregations of identical binding
requests from multiple clients and are used to program the LPTS Internal Forwarding Information Base (IFIB)
and Pre-IFIB.
Examples The following sample output is from the show lpts flows command:
------------------------------------------
L3-proto : IPV4(2)
L4-proto : ICMP(1)
VRF-ID : * (000000000)
Local-IP : any
Remote-IP : any
Pkt-Type : 8
Remote-Port : any
Interface : any (0x0)
Flow-type : ICMP-local
Min-TTL : 0
Slice : RAWIP4_FM
Flags : 0x20 (in Pre-IFIB)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
486 OL-28453-05
LPTS Commands
show lpts flows
Location : (drop)
Element References
location / count / scope
* / 3 / LOCAL
Field Description
L3-proto Layer 3 protocol (IPv4, IPv6, CLNL).
Flags
• Has FGID: delivered to multiple destinations
• No IFIB entry: IFIB entry suppressed
• Retrying FGID allocation
• In Pre-IFIB: entry is in Pre-IFIB as well
• Deliver to one: if multiple bindings, will deliver
to only one
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 487
LPTS Commands
show lpts flows
Field Description
Element References
• location: rack/slot/module of client.
• count: number of clients at that location.
• scope: binding scope (LR:Logical Router,
LOCAL:Local)
The following sample output is from the show lpts flows brief command:
Field Description
L3 Layer 3 protocol (IPv4, IPv6, CLNL).
L4 Layer 4 protocol.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
488 OL-28453-05
LPTS Commands
show lpts flows
Related Commands
Command Description
show lpts bindings, on page 479 Displays the binding information in the port arbitrator.
show lpts clients, on page 484 Displays the client information for the port arbitrator.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 489
LPTS Commands
show lpts ifib
show lpts ifib [entry] [type {bgp4| bgp6| isis| mcast4| mcast6| ospf-mc4| ospf-mc6| ospf4| ospf6| raw4|
raw6| tcp4| tcp6| udp4| udp6}| all] [brief [statistics]] [slices] [times] [location node-id]
location node-id (Optional) Specifies the location of the Flow Manager. The node-id argument is
entered in the rack/slot/module notation.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
490 OL-28453-05
LPTS Commands
show lpts ifib
Usage Guidelines Use this command to display detailed information about the entries in an IFIB slice. This command is useful
for debugging problems with delivering packets to applications.
When the statistics keyword is used, detailed statistics are displayed for packet count, number of entries in
each slice, and a total entries count.
Examples The following sample output is from the show lpts ifib command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 491
LPTS Commands
show lpts ifib
Field Description
VRF-ID VPN routing and forwarding (VRF) identification
(vrfid) number.
O/S/P/R/L/I/Y
• O: Opcode (DELIVER, DROP, or
REASSEMBLE
• S: Stats counter
• P: Packet forwarding priority (LO, MED, or
HIGH)
• R: Rate limit (LO, MED, or HIGH)
• L: Listener tag (IPv4_STACK, IPv6_STACK,
or CLNL_STACK)
• I: Local-interest flag (0 or 1)
• Y: TCP SYN flag (0 or 1)
Deliver List
• (drop)—Drop packet
• rack/slot/module—Deliver to single destination
• [0xNNNN]—Deliver to multiple destinations
(platform-dependent format)
The following sample output is from the show lpts ifib brief command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
492 OL-28453-05
LPTS Commands
show lpts ifib
The following sample output is from the show lpts ifib brief statistics command:
Related Commands
Command Description
show lpts ifib slices, on page 494 Displays IFIB slice information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 493
LPTS Commands
show lpts ifib slices
show lpts ifib slices [type {bgp4| bgp6| isis| mcast4| mcast6| ospf-mc4| ospf-mc6| ospf4| ospf6| raw4|
raw6| tcp4| tcp6| udp4| udp6}] [all] [statistics] [times]
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
494 OL-28453-05
LPTS Commands
show lpts ifib slices
Usage Guidelines Use the show lpts ifib slices command when troubleshooting IFIB entries and slice assignments. This command
is especially useful when troubleshooting problems with delivering packets to applications.
Examples The following sample output is from the show lpts ifib slices command:
The following sample output is from the show lpts ifib slices times command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 495
LPTS Commands
show lpts ifib slices
The following sample output is from the show lpts ifib slices statistics command:
Table 51: show lpts ifib slices statistics Command Field Descriptions
Field Description
Slice Slice number.
Related Commands
Command Description
show lpts ifib , on page 490 Displays entries in the IFIB.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
496 OL-28453-05
LPTS Commands
show lpts ifib statistics
Syntax Description location node-id (Optional) Displays IFIB statistics for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Examples The following sample output is from the show lpts ifib statistics command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 497
LPTS Commands
show lpts ifib statistics
Field Description
Packets in Packets presented to the LPTS decaps node in netio.
Packets delivered locally without lookups Packets previously resolved on a LC delivered directly
to L3.
Note The sample output is an example only and displays only those fields showing a value. No display exists
for nonzero values. This command may show other values depending on your router configuration.
Related Commands
Command Description
show lpts ifib , on page 490 Displays the entries in an IFIB slice.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
498 OL-28453-05
LPTS Commands
show lpts ifib times
Syntax Description location node-id (Optional) Displays IFIB update transaction times for the designated node.
The node-id argument is entered in the rack/slot/module notation.
Examples The following sample output is from the show lpts ifib times command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 499
LPTS Commands
show lpts ifib times
Field Description
Slice Slice number.
Related Commands
Command Description
show lpts ifib , on page 490 Displays detailed information about entries in an IFIB
slice.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
500 OL-28453-05
LPTS Commands
show lpts mpa groups
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online help
function.
Usage Guidelines The show lpts mpa groups command is used to aggregate information about the multicast groups joined on
a specified interface. This command also displays the filter mode and source list associated with the groups
joined on a specified interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 501
LPTS Commands
show lpts mpa groups
network read
Examples The following sample output is from the show lpts mpa groups command:
Field Description
Includes Displays the number of sockets that have set up an
INCLUDE mode filter for that group and if there are
any source-specific filters.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
502 OL-28453-05
LPTS Commands
show lpts pifib
show lpts pifib [entry] [hardware {entry | police}[type {isis | ipv4 | ipv6}{frag | ixmp | mcast | tcp | udp
| ipsec | raw | all}[entry] brief [statistics][location node-id]
ipv4 IPv4 sub Pre-IFIB type. Possible values include frag , ixmp , mcast , tcp
, udp , ipsec , and raw .
ipv6 IPv6 sub Pre-IFIB type. Possible values include frag , icmp , ixmp , mcast
, tcp , udp , ipsec, and raw .
icmp IPv4 or IPv6 IXMP and Internet Group Management Protocol (IGMP).
ixmp IPv4 or IPv6 IXMP (ICMP and Internet Group Management Protocol [IGMP]).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 503
LPTS Commands
show lpts pifib
location node-id (Optional) The node-id argument is entered in the rack/slot/module notation
(for example, 0/7/CPU0).
Usage Guidelines Use the show lpts pifib command with the brief keyword to perform the following functions:
• Display entries of all or part of a Pre-IFIB.
• Display a short description of each entry in the LPTS Pre-IFIB, optionally displaying packet counts for
each entry.
Note These statistics are used only for packets that are processed by a line card, route
processor, or distributed route processor.
Pre-IFIB statistics for packets processed by line card hardware are counted separately.
Examples The following is sample output for the show lpts pifib command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
504 OL-28453-05
LPTS Commands
show lpts pifib
The following is sample output for the show lpts pifib type command using the ipv4 and tcp keywords.
0/CPU0
Accepts/Drops : 0/0
Is Stale : 0
----------------------------------------------------
The following is sample output from the show lpts pifib entry brief command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 505
LPTS Commands
show lpts pifib
The following sample output is from the show lpts pifib entry brief statistics command:
------------------------
statistics:
This table describes the significant fields shown in the display for the show lpts pifib brief statistics command.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
506 OL-28453-05
LPTS Commands
show lpts pifib
Field Description
Type Hardware entry type.
Local, Remote Address. Port Indicates local address (in the form of local port and
type) and remote address (remote port).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 507
LPTS Commands
show lpts pifib hardware context
Syntax Description location node-id (Optional) Displays pre-Internal Forwarding Information Base (IFIB) information
for the designated node. The node-id argument is entered in the rack/slot/module
notation.
Examples The following sample output is from the show lpts pifib hardware context command with the location
keyword:
Node: 0/1/CPU0:
----------------------------------------
ACL ID for block 0: 3
Batching mode: No batching
TCAM Mgr ready: Yes
Mstats Mgr ready: Yes
Metro Driver ready: Yes
Resource sync: Yes
Sweep invoked: Yes
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
508 OL-28453-05
LPTS Commands
show lpts pifib hardware context
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 509
LPTS Commands
show lpts pifib hardware entry
show lpts pifib hardware entry [type {ipv4| ipv6| isis}] [start-index number num-entries number] [brief|
statistics] [location {all| node_id}]
Syntax Description type (Optional) Specifies the hardware entry type. Enter one of the following
types:
• ipv4 —Specifies IPv4 entries.
• ipv6 —Specifies IPv6 entries.
• isis —Specifies ISIS entries.
statistics (Optional) Displays hardware entry accept or drop statistics for each
summary entry.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
510 OL-28453-05
LPTS Commands
show lpts pifib hardware entry
Examples The following sample output is from the show lpts pifib hardware entry command with the location
keyword:
Node: 0/0/CPU0:
----------------------------------------
M - Fabric Multicast;
L - Listener Tag; T - Min TTL;
F - Flow Type;
DestNode - Destination Node;
DestAddr - Destination Fabric queue;
SID - Stream ID;
Po - Policer; Ct - Stats Counter;
Lp - Lookup priority; Sp - Storage Priority;
Ar - Average rate limit; Bu - Burst;
HAr - Hardware Average rate limit; HBu - Hardware Burst;
Cir - Committed Information rate in HAL
Rsp - Relative sorting position;
Rtp - Relative TCAM position;
na - Not Applicable or Not Available
----------------------------------------------------
VRF ID : any
Destination IP : any
Source IP : any
Is Fragment : 0
Interface : any
M/L/T/F : 0/ISIS_FM/0/ISIS-default
DestNode : 48
DestAddr : 48
SID : 9
L4 Protocol : -
Source port : any
Destination Port : any
Ct : 0xd84da
Accepted/Dropped : 0/0
Lp/Sp : 0/0
# of TCAM entries : 1
HPo/HAr/HBu/Cir : 1879638/2000pps/2000ms/2000pps
State : Entry in TCAM
Rsp/Rtp : 0/2
Node: 0/1/CPU0:
----------------------------------------
V - Vital; M - Fabric Multicast;
C - Moose Congestion Flag; L - Listener Tag; T - Min TTL;
F - Flow Type;
DestNode - Destination Node;
DestAddr - Destination Fabric Address;
Sq - Ingress Shaping Queue; Dq - Destination Queue;
Po - Policer; Ct - Stats Counter;
Lp - Lookup priority; Sp - Storage Priority;
Ar - Average rate limit; Bu - Burst;
Rsp - Relative sorting position;
----------------------------------------------------
L4 Protocol : any
VRF ID : any
Source IP : any
Port/Type : any
Source Port : any
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 511
LPTS Commands
show lpts pifib hardware entry
Is Fragment : 1
Is SYN : any
Interface : any
V/M/C/L/T/F : 0/0/0/IPv4_REASS/0/Fragment
DestNode : Local
DestAddr : Punt
Sq/Dq/Ct : 4/na/0x24400
Accepted/Dropped : 0/0
Lp/Sp : 0/0
# of TCAM entries : 1
Po/Ar/Bu : 101/1000pps/100ms
State : Entry in TCAM
Rsp/Rtp : 0/0
----------------------------------------------------
This table describes the significant fields shown in the display.
Table 56: show lpts pifib hardware entry Command Field Descriptions
Field Description
L4 Protocol Layer 4 protocol of the entry.
V/M/C/L/T/F
• V—vital
• M—fabric multicast
• C—moose congestion flag
• L—listener tag
• T—minimum time-to-live
• F—flow type
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
512 OL-28453-05
LPTS Commands
show lpts pifib hardware entry
Field Description
Sq/Dq/Ct
• Sq—Ingress Shaping Queue
• Dq—Destination Queue
• Ct—Stats Counter.
10
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 513
LPTS Commands
show lpts pifib hardware police
Syntax Description location node-id (Optional) Displays pre-Internal Forwarding Information Base (IFIB) information
for the designated node. The node-id argument is entered in the rack/slot/module
notation.
Command Default If no policer is configured, the default value is the configured rate.
Examples This sample output is from the show lpts pifib hardware police command with the location keyword for
0/2/CPU0:
-------------------------------------------------------------
Node 0/2/CPU0:
-------------------------------------------------------------
Burst = 100ms for all flow types
-------------------------------------------------------------
FlowType Policer Type Cur. Rate Def. Rate Accepted Dropped
---------------------- ------- ------- --------- --------- ---------- ---------
unconfigured-default 100 Static 500 500 0 0
Fragment 106 Static 1000 1000 0 0
OSPF-mc-known 107 Static 20000 20000 0 0
OSPF-mc-default 111 Static 5000 5000 0 0
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
514 OL-28453-05
LPTS Commands
show lpts pifib hardware police
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 515
LPTS Commands
show lpts pifib hardware police
------------------------
statistics:
Packets accepted by deleted entries: 0
Packets dropped by deleted entries: 0
Run out of statistics counter errors: 0
Table 57: show lpts pifib hardware police Command Field Descriptions
FIeld Description
FlowType Type of flow that is binding between a tuple and a
destination.
Related Commands
Command Description
flow (LPTS), on page 471 Configures the policer for the LPTS flow type.
lpts pifib hardware police, on page 477 Configures the ingress policers and enters pifib policer
global configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
516 OL-28453-05
LPTS Commands
show lpts pifib hardware usage
show lpts pifib hardware usage [type {ipv4| ipv6| isis}] [location {node-id| all}]
Syntax Description type (Optional) Specifies the hardware entry type. Enter one of the following types:
• ipv4 —Specifies IPv4 entries.
• ipv6 —Specifies IPv6 entries.
• isis —Specifies ISIS entries.
location node-id (Optional) Displays pre-Internal Forwarding Information Base (IFIB) information
for the designated node. The node-id argument is entered in the rack/slot/module
notation.
Command Default Without the optional parameters, the show lpts pifib hardware usage command displays a brief summary
of hardware entry information.
Examples The following sample output is from the show lpts pifib hardware usage command with the location
keyword:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 517
LPTS Commands
show lpts pifib hardware usage
Table 58: show lpts pifib hardware usage Command Field Descriptions
Field Description
Type Type of pre-IFIB entry.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
518 OL-28453-05
LPTS Commands
show lpts pifib statistics
Syntax Description location node-id (Optional) Displays Pre-IFIB statistics for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Examples The following sample output is from the show lpts pifib statistics command:
Field Description
Packets into Pre-IFIB Packets presented for pre-IFIB lookups.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 519
LPTS Commands
show lpts pifib statistics
Field Description
Lookups Packets looked up.
Related Commands
Command Description
show lpts pifib , on page 503 Displays information about pre-IFIB entries.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
520 OL-28453-05
LPTS Commands
show lpts port-arbitrator statistics
Examples The following sample output is from the show lpts port-arbitrator statistics command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 521
LPTS Commands
show lpts vrf
Examples The following sample output is from the show lpts vrf command:
VRF-ID VRF-NAME
0x00000000 *
0x60000000 default
This table describes the significant fields shown in the display.
Field Description
VRF-ID VPN routing and forwarding (VRF) identification
(vrfid) number.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
522 OL-28453-05
Network Stack IPv4 and IPv6 Commands
This chapter describes the commands available on the Cisco IOS XR software to configure and monitor
features related to IP Version 4 (IPv4) and IP Version 6 (IPv6).
For detailed information about network stack concepts, configuration tasks, and examples, refer to the
Cisco IOS XR IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series Router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 523
Network Stack IPv4 and IPv6 Commands
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
524 OL-28453-05
Network Stack IPv4 and IPv6 Commands
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 525
Network Stack IPv4 and IPv6 Commands
clear ipv6 duplicate address
Syntax Description interface-type (Optional) Interface type. For more information, use the question mark (?) online
help function.
Command Modes
Usage Guidelines If none of the optional keywords is specified, the command iterates through all the duplicate addresses and
retriggers a DAD request for each of these addresses.
IPv6 execute
Examples The following example shows how to use the clear ipv6 duplicate address command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
526 OL-28453-05
Network Stack IPv4 and IPv6 Commands
clear ipv6 neighbors
Syntax Description location node-id (Optional) The designated node. The node-id argument is entered in the
rack/slot/module notation.
Command Modes
Usage Guidelines If the location option is specified, only the neighbor entries specified in the location node-id keyword and
argument are cleared.
IPv6 execute
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 527
Network Stack IPv4 and IPv6 Commands
clear ipv6 neighbors
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
528 OL-28453-05
Network Stack IPv4 and IPv6 Commands
icmp ipv4 rate-limit unreachable
Syntax Description DF (Optional) Limits the rate at which ICMP destination unreachable messages are sent
when code 4 fragmentation is needed and data fragmentation is (DF) set, as specified
in the IP header of the ICMP destination unreachable message.
milliseconds Time period (in milliseconds) between the sending of ICMP destination unreachable
messages. Range is 1 to 4294967295.
Command Default The default value is one ICMP destination unreachable message every 500 milliseconds.
Command Modes
Usage Guidelines The Cisco IOS XR softwaremaintains 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 icmp ipv4 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.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 529
Network Stack IPv4 and IPv6 Commands
icmp ipv4 rate-limit unreachable
Examples The following example shows how to set the time interval for the ICMP destination unreachable message to
be generated at a minimum interval of 10 ms:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
530 OL-28453-05
Network Stack IPv4 and IPv6 Commands
icmp source
icmp source
To select the appropriate source IP address to be inserted in the ICMP response packets for generating exception
packets (ICMP responses to packets that cannot be forwarded), use the icmp source command. To discard
an IP address inserted in the ICMP response packets, use the no form of this command.
Usage Guidelines The rfc keyword selects a source address that conforms to RFC 1812. RFC 1812 states that when generating
an ICMP packet, the source address must be one of the addresses on the outgoing physical interface. If such
an address is not available, selection may resort to the global router ID.
The vrf keyword selects a source address relevant to the VRF, in which the packet is interpreted.
Examples The following example shows how to use the icmp sourcecommand:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 531
Network Stack IPv4 and IPv6 Commands
ipv4 address (network)
mask Mask for the associated IP subnet. The network mask can be specified in either of
two ways:
• The network mask can be a four-part dotted decimal address. For example,
255.0.0.0 indicates that each bit equal to 1 means the corresponding address
bit belongs to the network address.
• The network mask can be indicated as a slash (/) and number. For example,
/8 indicates that the first 8 bits of the mask are ones, and the corresponding
bits of the address are network address.
secondary (Optional) Specifies that the configured address is a secondary IPv4 address. If this
keyword is omitted, the configured address is the primary IPv4 address.
route-tag (Optional) Specifies that the configured address has a route tag to be associated
with it.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
532 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv4 address (network)
Usage Guidelines An interface can have one primary IPv4 address and multiple secondary IPv4 addresses. Packets generated
by the software always use the primary IPv4 address. Therefore, all networking devices on a segment should
share the same primary network number.
Note The same IPv4 address configured on two different interfaces causes an error message to display that
indicates the conflict. The interface located in the highest rack, slot, module, instance, and port is disabled.
Hosts can determine subnet masks using the IPv4 Internet Control Message Protocol (ICMP) mask request
message. Networking devices respond to this request with an ICMP mask reply message.
You can disable IPv4 processing on a particular interface by removing its IPv4 address with the no ipv4
address command. If the software detects another host using one of its IPv4 addresses, it will display 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 that the system never generates datagrams other than
routing updates with secondary source addresses. IPv4 broadcasts and Address Resolution Protocol (ARP)
requests are handled properly, as are interface routes in the IP routing table.
Secondary IPv4 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 to have 300 host addresses.
Using secondary IPv4 addresses on the networking devices allows you to have two logical subnets using
one physical subnet.
• 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 there are many subnets on that segment.
The route-tag feature attaches a tag to all IPv4 addresses. The tag is propagated from the Management Agents
(MA) to the Address Repository Managers (RPM) to routing protocols, thus enabling the user to control the
redistribution of connected routes by looking at the route tags via RPL scripts.
Examples The following example shows how to set 192.168.1.27 as the primary address and 192.168.7.17 and
192.168.8.17 as the secondary addresses on interface 0/1/1/0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 533
Network Stack IPv4 and IPv6 Commands
ipv4 address (network)
Related Commands
Command Description
show ipv4 interface , on page 621 Lists a summary of IPv4 information and status for
the interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
534 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv4 assembler max-packets
Syntax Description percentage value Percentage of total packets available in the system. The range is from
1 to 50.
Command Modes
Examples The following example shows how to configure the maximum number of packets for the assembly queue:
Related Commands
Command Description
ipv4 assembler timeout, on page 536 Configures the number of seconds an assembly queue
can hold before a timeout occurs.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 535
Network Stack IPv4 and IPv6 Commands
ipv4 assembler timeout
Syntax Description seconds Number of seconds an assembly queue can hold before a timeout occurs. The
range is from 1 to 120.
Command Modes
Examples The following example shows how to configure an assembly queue before a timeout occurs:
Related Commands
Command Description
ipv4 assembler max-packets, on page 535 Configures the maximum number of packets that are
allowed in assembly queues.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
536 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv4 conflict-policy
ipv4 conflict-policy
To enable IP Address Repository Manager (IPARM) conflict resolution, use the ipv4 conflict-policy command
in Global Configuration mode. To disable the IPARM conflict resolution, use the no form of the command.
Syntax Description highest-ip Keeps the highest ip address in the conflict set.
static Keeps the existing interface running across new address configurations.
Command Default The precedence rule adopted is loopback > physical > other virtual interfaces. Within virtual interfaces, there
is an alphabetical preference, for example, loopback1 > loopback2 and bundle-ether > bundle-pos > tunnel.
Among physical interfaces, the lower rack or slot takes control.
Command Modes
Usage Guidelines Use ipv4 conflict-policy command to set an IPARM policy that resolves a conflict in the configured addresses.
The policy tells IPARM what address to select from the addresses in conflict. The policy then forces the
address in conflict to become inactive.
Examples The following example shows how to enable the static policy for conflict resolution:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 537
Network Stack IPv4 and IPv6 Commands
ipv4 conflict-policy
Related Commands
Command Description
show arm conflicts, on page 606 Displays the IPv4 or IPv6 address conflict
information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
538 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv4 directed-broadcast
ipv4 directed-broadcast
To enable forwarding of IPv4 directed broadcasts on an interface, use the ipv4 directed-broadcast command
in interface configuration mode. To disable forwarding of IPv4 directed broadcast on an interface, use the no
form of this command.
ipv4 directed-broadcast
no ipv4 directed-broadcast
Usage Guidelines A directed broadcast is a packet sent to a specific network. IPv4 directed broadcasts are dropped and not
forwarded. Dropping IPv4 directed broadcasts makes routers less susceptible to denial-of-service (DoS)
attacks.
Examples The following example shows how to enable the forwarding of IPv4 directed broadcasts on interface 0/1/1/0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 539
Network Stack IPv4 and IPv6 Commands
ipv4 directed-broadcast
Related Commands
Command Description
ipv4 unnumbered (point-to-point), on page 548 Enables IP processing on a point-to-point interface
without assigning an explicit IP address to the
interface.
show ipv4 interface , on page 621 Lists a summary of IPv4 information and status for
the interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
540 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv4 helper-address
ipv4 helper-address
To configure the address to which the software forwards User Datagram Protocol (UDP) broadcasts, received
on an interface, use the ipv4 helper-address command in interface configuration mode. To remove an IPv4
helper address, use the no form of this command.
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
destination-address Destination broadcast or host address to be used when UDP broadcasts are
forwarded. There can be more than one helper address per interface.
Command Default IPv4 helper addresses are disabled. Default VRF is assumed if the VRF is not specified.
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines Use this command with the forward-protocol udp command in global configuration mode, which specifies
by port number the broadcast packets that are forwarded. UDP is enabled by default for well-known ports.
The ipv4 helper-address command specifies the destination to which the UDP packets are forwarded.
One common application that requires IPv4 helper addresses is Dynamic Host Configuration Protocol (DHCP),
which 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 an IPv4 helper address on the networking device
interface physically closest to the client. The IPv4 helper address should specify the address of the DHCP
server. If you have multiple servers, you can configure one IPv4 helper address for each server. Because
BOOTP packets are forwarded by default, DHCP information can now be forwarded by the networking device.
The DHCP server now receives broadcasts from the DHCP clients.
A DHCP relay profile must be configured to perform DHCP Relay. The ip helper-address command is used
to forward broadcast UDP (non-DHCP) packets.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 541
Network Stack IPv4 and IPv6 Commands
ipv4 helper-address
Note To configure the address to which the software forwards BOOTP broadcasts, use the helper-address
command in the DHCP IPv4 profile relay configuration submode. For more information, see the
helper-address command in the DHCP Commands chapter.
Examples The following example shows how to specify that all UDP broadcast packets received on POSinterface 0/1/1/0
are forwarded to 192.168.1.0:
Related Commands
Command Description
forward-protocol udp Specifies which ports the networking device forwards
to when forwarding broadcast packets.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
542 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv4 mask-reply
ipv4 mask-reply
To enable the Cisco IOS XR softwareto respond to IPv4 Internet Control Message Protocol (ICMP) mask
requests by sending ICMP mask reply messages, use the ipv4 mask-reply command in interface configuration
mode. To restore the default, use the no form of this command.
ipv4 mask-reply
no ipv4 mask-reply
Usage Guidelines This command enables the Cisco IOS XR softwareto respond to IPv4 ICMP mask requests by sending ICMP
mask reply messages.
Examples The following example enables the sending of ICMP mask reply messages on POSinterface 0/1/1/0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 543
Network Stack IPv4 and IPv6 Commands
ipv4 mtu
ipv4 mtu
To set the maximum transmission unit (MTU) size of IPv4 packets sent on an interface, use the ipv4 mtu
command in an appropriate configuration mode. To restore the default MTU size, use the no form of this
command.
Syntax Description bytes MTU in bytes. Range is 68 to 65535 bytes for IPv4 packets. The maximum MTU size
that can be set on an interface depends on the interface medium.
Command Default If no MTU size is configured for IPv4 packets sent on an interface, the interface derives the MTU from the
Layer 2 MTU.
Usage Guidelines The maximum MTU size that can be set on an interface depends on the interface medium. If the Layer 2 MTU
is smaller than the Layer 3 MTU, the Cisco IOS XR software uses the Layer 2 MTU value for the Layer 3
MTU. Conversely, if the Layer 3 MTU is smaller than the Layer 2 MTU, the software uses Layer 3 MTU
value. In other words the Cisco IOS XR software uses the lower of the two values for the MTU.
All devices on a physical medium must have the same protocol MTU to operate.
For releases R4.2.0 onward, to enter the dynamic template configuration mode, run the dynamic-template
command in the Global Configuration mode.
Note Changing the MTU value (with the mtu interface configuration command) can affect the IPv4 MTU value.
If the current IPv4 MTU value is the same as the MTU value, and you change the MTU value, the IPv4
MTU value will be modified automatically to match the new MTU. However, the reverse is not true;
changing the IPv4 MTU value has no effect on the value for the mtu command.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
544 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv4 mtu
Examples For releases prior to R4.2.0, this example shows how to set the maximum IPv4 packet size for POS interface
0/1/1/0 to 300 bytes:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# dynamic-template type ppp p1
RP/0/0/CPU0:router(config-dynamic-template-type)# ipv4 mtu 300
Related Commands
Command Description
show ipv4 interface , on page 621 Displays the MTU status of interfaces configured for
IPv4.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 545
Network Stack IPv4 and IPv6 Commands
ipv4 redirects
ipv4 redirects
To enable the sending of IPv4 Internet Control Message Protocol (ICMP) redirect messages if the software
is forced to resend a packet through the same interface on which it was received, use the ipv4 redirects
command in interface configuration mode. To restore the default, use the no form of this command.
ipv4 redirects
no ipv4 redirects
Command Default ICMP redirect messages are disabled by default on the interface unless the Hot Standby Router Protocol
(HSRP) is configured.
Usage Guidelines ICMP redirect messages are disabled by default on the interface unless the Hot Standby Router Protocol
(HSRP) is configured.
Examples The following example shows how to disable the sending of ICMP IPv4 redirect messages on POS interface
0/1/1/0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
546 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv4 source-route
ipv4 source-route
To allow the processing of any IPv4 datagrams containing a source-route header option, use the ipv4
source-route command in Global Configuration mode. To have the software discard any IP datagram that
contains a source-route option, use the no form of this command.
ipv4 source-route
no ipv4 source-route
Command Default The software discards any IPv4 datagrams containing a source-route header option.
Command Modes
Usage Guidelines By default, any IPv4 datagram which contains a source-route header option is discarded.
Examples The following example shows how to allow the processing of any IPv4 datagrams containing a source-route
header option:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 547
Network Stack IPv4 and IPv6 Commands
ipv4 unnumbered (point-to-point)
Syntax Description interface-type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
Command Default IPv4 processing on a point-to-point interface is disabled unless an IPv4 address is assigned explicitly to that
interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
548 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv4 unnumbered (point-to-point)
Usage Guidelines For releases R4.2.0 onward, to enter the dynamic template configuration mode, run the dynamic-template
command in the Global Configuration mode.
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 IPv4 packet. It also uses the IPv4 address of the specified
interface in determining which routing processes are sending updates over the unnumbered interface.
Restrictions include the following:
• Packet-over-SONET (POS) interfaces using High-Level Data Link Control (HDLC), PPP, and tunnel
interfaces can be unnumbered.
• 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 interface-type and interface-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 POS interface, you should
configure the POS interface as unnumbered. This strategy allows you to conform to RFC 1195, which states
that IP addresses are not required on each interface.
Examples For releases prior to R4.2.0, this example shows how the GigabitEthernet interface 0/1/1/0 is assigned the
loopback interface address 5:
RP/0/0/CPU0:router(config)# interface loopback 5
RP/0/0/CPU0:router(config-if)# ipv4 address 192.168.6.6 255.255.255.0
RP/0/0/CPU0:router(config)# interface gigabitethernet 0/1/1/0
RP/0/0/CPU0:router(config-if)# ipv4 unnumbered loopback 5
For releases R4.2.0 onward, this example shows how the Bundle-Ether interface is assigned address 100.10
in the dynamic template configuration mode:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# dynamic-template type ppp p1
RP/0/0/CPU0:router(config-dynamic-template-type)# ipv4 unnumbered Bundle-Ether100.10
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 549
Network Stack IPv4 and IPv6 Commands
ipv4 unreachables disable
Usage Guidelines If the software receives a nonbroadcast packet destined for itself that uses a protocol it does not recognize, it
sends an ICMP protocol 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 a number of ICMP unreachable messages.
For releases R4.2.0 onward, to enter the dynamic template configuration mode, run the dynamic-template
command in the Global Configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
550 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv4 unreachables disable
Examples For releases prior to R4.2.0, this example shows how to disable the generation of ICMP unreachable messages
on POSinterface 0/1/1/0:
RP/0/0/CPU0:router(config)# interface POS 0/1/1/0
RP/0/0/CPU0:router(config-if)# ipv4 unreachables disable
For releases R4.2.0 onward, this example shows how to disable the generation of ICMP unreachable messages
on dynamic template configuration mode:
RP/0/0/CPU0:router(config)# dynamic-template type ppp foo
RP/0/0/CPU0:router(config-dynamic-template-type)# ipv4 unreachables disable
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 551
Network Stack IPv4 and IPv6 Commands
ipv4 virtual address
Syntax Description vrf vrf-name (Optional) Configures the virtual address on a per VPN routing and forwarding (VRF)
basis for the management interfaces The vrf-name argument specifies the name of
the VRF.
ipv4 address Virtual IPv4 address and the mask that is to be unconfigured.
mask Mask for the associated IP subnet. The network mask can be specified in either of
two ways:
• The network mask can be a four-part dotted-decimal address. For example,
255.0.0.0 indicates that each bit equal to 1 means the corresponding address bit
belongs to the network address.
• The network mask can be indicated as a slash ( / ) and number. For example,
/8 indicates that the first 8 bits of the mask are ones, and the corresponding bits
of the address are network address. A slash between numbers is required as part
of the notation.
use-as-src-addr Enables the virtual address to be used as the default SRC address on sourced packets.
Command Modes
Usage Guidelines Configuring an IPv4 virtual address enables you to access the router from a single virtual address with a
management network. An IPv4 virtual address persists across route processor (RP) failover situations.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
552 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv4 virtual address
Configuring an IPv4 virtual address enables you to access a dual RP router from a single address without
prior knowledge of which RP is active. An IPv4 virtual address persists across RP failovers. For this to happen,
the virtual IPv4 address must share a common IPv4 subnet with a Management Ethernet interface on both
RPs. On a Cisco XR 12000 router, in which each RP has multiple Management Ethernet interfaces (two on
PRP-1 or three on PRP-2), the virtual IPv4 address maps to whichever Management Ethernet interface on the
active RP with which it shares a common IP subnet.
If you disable the ipv4 virtual address command with the vrf keyword, the virtual IP address is unconfigured
for the corresponding VRF or for the default if no VRF is specified. This results in the removal of the entry
for the virtual IP address in the VRF table and in the ARP cache.
The default VRF is chosen when no VRF is specified. The virtual IP address is activated on a management
interface that is attached to a default VRF.
The use-as-src-addr keyword eliminates the need for configuring a loopback interface as the source interface
(that is, update source) for management applications. When an update source is not configured, management
applications allow the transport processes (TCP, UDP, raw_ip) to pick a suitable source address. The transport
processes, in turn, consult the FIB to do so. If a Management Ethernet's IP address is picked as the source
address and if the use-as-src-addr keyword is configured, then the transport processes replace the Management
Ethernet's IP address with a relevant virtual IP address. This functionality works across RP switchovers.
Examples The following example shows how to define an IPv4 virtual address:
The following example show how to configure the virtual IP addresses for management interfaces on a per
VRF basis:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 553
Network Stack IPv4 and IPv6 Commands
ipv6 address
ipv6 address
To configure an IPv6 address for an interface and enable IPv6 processing on the interface using an EUI-64
interface ID in the low-order 64 bits of the address, use the ipv6 address command in interface configuration
mode. To remove the address from the interface, use the no form of this command.
/ prefix-length The length of the IPv6 prefix. A decimal value that indicates how many of the
high-order contiguous bits of the address compose the prefix (the network portion
of the address). A slash (/) must precede the decimal value.
eui-64 (Optional) Specifies an interface ID in the low-order 64 bits of the IPv6 address.
route-tag (Optional) Specifies that the configured address has a route tag to be associated
with it.
Usage Guidelines If the value specified for the / prefix-length argument is greater than 64 bits, the prefix bits have precedence
over the interface ID.
Using the no ipv6 address command without arguments removes all manually configured IPv6 addresses
from an interface.
If the Cisco IOS XR software detects another host using one of its IPv6 addresses, it displays an error message
on the console.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
554 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 address
The route-tag feature attaches a tag to all IPv6 addresses. The tag is propagated from the Management Agents
(MA) to the Address Repository Managers (RPM) to routing protocols, thus enabling the user to control the
redistribution of connected routes by looking at the route tags via RPL scripts.
Examples The following example assigns IPv6 address 2001:0DB8:0:1::/64 to POS interface 0/1/1/0 and specifies an
EUI-64 interface ID in the low-order 64 bits of the address:
Related Commands
Command Description
ipv6 address link-local, on page 556 Configures an IPv6 link-local address for an interface
and enables IPv6 processing on the interface.
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 555
Network Stack IPv4 and IPv6 Commands
ipv6 address link-local
link-local Specifies a link-local address. The ipv6-address value specified with this
command overrides the link-local address that is automatically generated for
the interface.
route-tag (Optional) Specifies that the configured address has a route-tag to be associated
with it.
Usage Guidelines If the Cisco IOS XR software detects another host using one of its IPv6 addresses, the software displays an
error message on the console.
The system automatically generates a link-local address for an interface when IPv6 processing is enabled on
the interface, typically when an IPv6 address is configured on the interface. To manually specify a link-local
address to be used by an interface, use the ipv6 address link-local command.
A double colon may be used as part of the ipv6-address argument when consecutive 16-bit values are denoted
as zero. You can configure multiple IPv6 addresses per interfaces, but only one link-local address.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
556 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 address link-local
Examples The following example shows how to assign FE80::260:3EFF:FE11:6770 as the link-local address for POS
interface 0/1/1/0:
Related Commands
Command Description
ipv6 address, on page 554 Configures an IPv6 address and enables IPv6
processing on an interface using an EUI-64 interface
ID in the low-order 64 bits of the address.
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 557
Network Stack IPv4 and IPv6 Commands
ipv6 assembler
ipv6 assembler
To configure the maximum number of packets that are allowed in assembly queues or to configure the number
of seconds an assembly queue will hold before timeout , use the ipv6 assembler command in the appropriate
configuration mode. To disable this feature, use the no form of this command.
Examples The following example shows how to configure the maximum number of packets that are allowed in assembly
queues:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# ipv6 assembler max-packets 100
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
558 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 assembler
Related Commands
Command Description
ipv4 assembler max-packets, on page 535 Configures the maximum number of packets that are
allowed in assembly queues
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 559
Network Stack IPv4 and IPv6 Commands
ipv6 conflict-policy
ipv6 conflict-policy
To enable IP Address Repository Manager (IPARM) conflict resolution, use the ipv6 conflict-policy command
in Global Configuration mode mode. To disable the IPARM conflict resolution, use the no form of the
command.
Syntax Description highest-ip Keeps the highest IP address in the conflict set.
static Keeps the existing interface running across new address configurations.
Command Modes
Examples The following example shows how to enable the longest prefix policy for conflict resolution:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
560 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 enable
ipv6 enable
To enable IPv6 processing on an interface that has not been configured with an explicit IPv6 address, use the
ipv6 enable command in an appropriate configuration mode. To disable IPv6 processing on an interface that
has not been configured with an explicit IPv6 address, use the no form of this command.
ipv6 enable
no ipv6 enable
Usage Guidelines The ipv6 enable command automatically configures an IPv6 link-local unicast address on the interface while
also enabling the interface for IPv6 processing. The no ipv6 enable command does not disable IPv6 processing
on an interface that is configured with an explicit IPv6 address.
Examples This example (not applicable for BNG) shows how to enable IPv6 processing on POS interface 0/1/1/0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 561
Network Stack IPv4 and IPv6 Commands
ipv6 enable
Related Commands
Command Description
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
562 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 hop-limit
ipv6 hop-limit
To configure the maximum number of hops used in router advertisements and all IPv6 packets that are
originated by the router, use the ipv6 hop-limit command in Global Configuration mode mode. To return the
hop limit to its default value, use the no form of this command.
Command Modes
Examples The following example shows how to configure a maximum number of 15 hops for router advertisements and
all IPv6 packets that are originated from the router:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 563
Network Stack IPv4 and IPv6 Commands
ipv6 icmp error-interval
Syntax Description milliseconds Time interval (in milliseconds) between tokens being placed in the bucket.
Range is 0 to 2147483647.
bucketsize (Optional) The maximum number of tokens stored in the bucket. The acceptable
range is 1 to 200 with a default of 10 tokens.
Command Default ICMP rate limiting is enabled by default. To disable ICMP rate limiting, set the interval to zero.
milliseconds : 100 milliseconds
bucketsize : 10 tokens
Command Modes
Usage Guidelines Use the ipv6 icmp error-interval command in Global Configuration mode mode to limit the rate at which
IPv6 ICMP error messages are sent for each node. A token bucket algorithm is used with one token representing
one IPv6 ICMP error message. Tokens are placed in the virtual bucket at a specified interval until the maximum
number of tokens allowed in the bucket is reached.
The milliseconds argument specifies the time interval between tokens being placed in the bucket. The optional
bucketsize argument is used to define the maximum number of tokens stored in the bucket. Tokens are removed
from the bucket when IPv6 ICMP error messages are sent, which means that if the bucketsize argument is set
to 20, a rapid succession of 20 IPv6 ICMP error messages can be sent. When the bucket is empty of tokens,
IPv6 ICMP error messages are not sent until a new token is placed in the bucket.
Use the show ipv6 traffic EXEC command to display IPv6 ICMP rate-limited counters.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
564 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 icmp error-interval
Task ID Operations
network read, write
Examples The following example shows an interval of 50 milliseconds and a bucket size of 20 tokens being configured
for IPv6 ICMP error messages:
Related Commands
Command Description
show ipv6 neighbors , on page 640 Displays IPv6 neighbors discovery cache information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 565
Network Stack IPv4 and IPv6 Commands
ipv6 mtu
ipv6 mtu
To set the maximum transmission unit (MTU) size of IPv6 packets sent on an interface, use the ipv6 mtu
command in an appropriate configuration mode. To restore the default MTU size, use the no form of this
command.
Syntax Description bytes MTU in bytes. Range is 1280 to 65535 for IPv6 packets. The maximum MTU size that
can be set on an interface depends on the interface medium.
Command Default If no MTU size is configured for IPv6 packets sent on an interface, the interface derives the MTU from the
Layer 2 MTU.
Usage Guidelines If an IPv6 packet exceeds the MTU set for the interface, only the source router of the packet can fragment it.
The maximum MTU size that can be set on an interface depends on the interface medium. If the Layer 2 MTU
is smaller than the Layer 3 MTU, the Cisco IOS XR software uses the Layer 2 MTU value for the Layer 3
MTU. Conversely, If the Layer 3 MTU is smaller than the Layer 2 MTU, the software uses Layer 3 MTU
value. In other words the Cisco IOS XR software uses the lower of the two values for the MTU.
All devices on a physical medium must have the same protocol MTU to operate.
Note Changing the MTU value (with the mtu interface configuration command) can affect the IPv6 MTU value.
If the current IPv6 MTU value is the same as the MTU value, and you change the MTU value, the IPv6
MTU value will be modified automatically to match the new MTU. However, the reverse is not true;
changing the IPv6 MTU value has no effect on the value for the mtu command.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
566 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 mtu
Examples This example (not applicable for BNG) shows how to set the maximum IPv6 packet size for POS interface
0/1/1/0 to 1350 bytes:
Related Commands
Command Description
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 567
Network Stack IPv4 and IPv6 Commands
ipv6 nd dad attempts
Syntax Description value Number of neighbor solicitation messages. Range is 0 to 600. Configuring a value of 0
disables duplicate address detection processing on the specified interface; a value of 1
configures a single transmission without follow-up transmissions.
Command Default Duplicate address detection on unicast IPv6 addresses with the sending of one neighbor solicitation message
is enabled. The default is one message.
Usage Guidelines Duplicate address detection verifies the uniqueness of new unicast IPv6 addresses before the addresses are
assigned to interfaces (the new addresses remain in a tentative state while duplicate address detection is
performed). Duplicate address detection uses neighbor solicitation messages to verify the uniqueness of unicast
IPv6 addresses.
The DupAddrDetectTransmits node configuration variable (as specified in RFC 2462, IPv6 Stateless Address
Autoconfiguration) is used to automatically determine the number of consecutive neighbor solicitation messages
that are sent on an interface while duplicate address detection is performed on a tentative unicast IPv6 address.
The interval between the sending of duplicate address detection neighbor solicitation messages (the duplicate
address detection timeout interval) is specified by the neighbor discovery-related variable RetransTimer (as
specified in RFC 2461, Neighbor Discovery for IP Version 6 [IPv6]), which is used to determine the time
between retransmissions of neighbor solicitation messages to a neighbor when the address is being resolved
or when the reachability of a neighbor is being probed. This is the same management variable used to specify
the interval for neighbor solicitation messages during address resolution and neighbor unreachability detection.
Use the ipv6 nd ns-interval command to configure the interval between neighbor solicitation messages that
are sent during duplicate address detection.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
568 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 nd dad attempts
Duplicate address detection is suspended on interfaces that are administratively down. While an interface is
administratively down, the unicast IPv6 addresses assigned to the interface are set to a pending state. Duplicate
address detection is automatically restarted on an interface when the interface returns to being administratively
up.
Note An interface returning to administratively up restarts duplicate address detection for all of the unicast IPv6
addresses on the interface. While duplicate address detection is performed on the link-local address of an
interface, the state for the other IPv6 addresses is still set to tentative. When duplicate address detection
is completed on the link-local address, duplicate address detection is performed on the remaining IPv6
addresses.
When duplicate address detection identifies a duplicate address, the state of the address is set to duplicate and
the address is not used. If the duplicate address is the link-local address of the interface, the processing of
IPv6 packets is disabled on the interface and an error message similar to the following is issued:
If the duplicate address is a global address of the interface, the address is not used and an error message similar
to the following is issued:
All configuration commands associated with the duplicate address remain as configured while the state of the
address is set to duplicate.
If the link-local address for an interface changes, duplicate address detection is performed on the new link-local
address and all of the other IPv6 address associated with the interface are regenerated (duplicate address
detection is performed only on the new link-local address).
Duplicate address detection is performed on all multicast-enabled IPv6 interfaces, including the following
interface types:
• Cisco High-Level Data Link Control (HDLC)
• Ethernet, FastEthernet, and GigabitEthernet
• PPP
Examples This example (not applicable for BNG) shows how to set the number of consecutive neighbor solicitation
messages for interface 0/2/0/1 to 1 and then display the state (tentative or duplicate) of the unicast IPv6 address
configured for an interface:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# interface POS 0/2/0/1
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 569
Network Stack IPv4 and IPv6 Commands
ipv6 nd dad attempts
For BNG, this example shows how to display the state (tentative or duplicate) of the unicast IPv6 address on
the dynamic template configuration mode:
Related Commands
Command Description
ipv6 nd ns-interval , on page 573 Configures the interval between IPv6 neighbor
solicitation transmissions on an interface.
show ipv6 interface , on page 630 (Not applicable for BNG) Displays the usability status
of interfaces configured for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
570 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 nd managed-config-flag
ipv6 nd managed-config-flag
To set the managed address configuration flag in IPv6 router advertisements, use the ipv6 nd
managed-config-flag command in an appropriate configuration mode. To clear the flag from IPv6 router
advertisements, use the no form of this command.
ipv6 nd managed-config-flag
no ipv6 nd managed-config-flag
Command Default The managed address configuration flag is not set in IPv6 router advertisements.
Usage Guidelines Setting the managed address configuration flag in IPv6 router advertisements indicates to attached hosts
whether they should use stateful autoconfiguration to obtain addresses. If the flag is set, the attached hosts
should use stateful autoconfiguration to obtain addresses. If the flag is not set, the attached hosts should not
use stateful autoconfiguration to obtain addresses.
Hosts may use stateful and stateless address autoconfiguration simultaneously.
Examples This example (not applicable for BNG) shows how to configure the managed address configuration flag in
IPv6 router advertisements on POS interface 0/1/1/0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 571
Network Stack IPv4 and IPv6 Commands
ipv6 nd managed-config-flag
For BNG, this example shows how to configure the managed address configuration flag in IPv6 router
advertisements on dynamic template configuration mode:
Related Commands
Command Description
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
572 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 nd ns-interval
ipv6 nd ns-interval
To configure the interval between IPv6 neighbor solicitation retransmissions on an interface, use the ipv6 nd
ns-interval command in an appropriate configuration mode. To restore the default interval, use the no form
of this command.
Syntax Description milliseconds Interval (in milliseconds) between IPv6 neighbor solicit transmissions. Range
is 1000 to 3600000.
Command Default 0 milliseconds (unspecified) is advertised in router advertisements, and the value 1000 is used for the neighbor
discovery activity of the router itself.
Usage Guidelines This value is included in all IPv6 router advertisements sent out from this interface. Very short intervals are
not recommended in normal IPv6 operation. When a nondefault value is configured, the configured time is
both advertised and used by the router itself.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 573
Network Stack IPv4 and IPv6 Commands
ipv6 nd ns-interval
Examples This example (not applicable for BNG) configures an IPv6 neighbor solicit transmission interval of 9000
milliseconds for POS interface 0/1/1/0:
Related Commands
Command Description
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
574 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 nd other-config-flag
ipv6 nd other-config-flag
To set the other stateful configuration flag in IPv6 router advertisements, use the ipv6 nd other-config-flag
command in an appropriate configuration mode. To clear the flag from IPv6 router advertisements, use the
no form of this command.
ipv6 nd other-config-flag
no ipv6 nd other-config-flag
Command Default The other stateful configuration flag is not set in IPv6 router advertisements.
Usage Guidelines The setting of the other stateful configuration flag in IPv6 router advertisements indicates to attached hosts
how they can obtain autoconfiguration information other than addresses. If the flag is set, the attached hosts
should use stateful autoconfiguration to obtain the other (nonaddress) information.
Note If the managed address configuration flag is set using the ipv6 nd managed-config-flag command, then
an attached host can use stateful autoconfiguration to obtain the other (nonaddress) information regardless
of the setting of the other stateful configuration flag.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 575
Network Stack IPv4 and IPv6 Commands
ipv6 nd other-config-flag
Examples This example (not applicable for BNG) configures the “other stateful configuration” flag in IPv6 router
advertisements on POS interface 0/1/1/0:
Related Commands
Command Description
ipv6 nd managed-config-flag , on page 571 Sets the managed address configuration flag in IPv6
router advertisements.
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
576 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 nd prefix
ipv6 nd prefix
To configure how IPv6 prefixes are advertised in IPv6 router advertisements, use the ipv6 nd prefix command
in interface configuration mode. To advertise a prefix with default parameter values, use the no form of this
command. To prevent a prefix (or prefixes) from being advertised, use the no- advertisekeyword.
ipv6 nd prefix {ipv6prefix/prefix-length | default [valid life | at| infinite| no-adv| no-autoconfig| off-link]}
no ipv6 nd prefix {ipv6prefix/prefix-length | default [valid life | at| infinite| no-adv| no-autoconfig| off-link]}
Syntax Description ipv6-prefix The IPv6 network number to include in router advertisements.
This keyword must be in the form documented in RFC 2373 where the address is
specified in hexadecimal using 16-bit values between colons.
/prefix-length The length of the IPv6 prefix. A decimal value that indicates how many of the
high-order contiguous bits of the address compose the prefix (the network portion
of the address). A slash (/) must precede the decimal value.
valid-lifetime The amount of time (in seconds) that the specified IPv6 prefix is advertised as
being valid.
at The date and time at which the lifetime and preference expire. The prefix is valid
until this specified date and time are reached. Dates are expressed in the form
date-valid-expire month-valid-expire hh:mm-valid-expire date-prefer-expire
month-prefer-expire hh:mm-prefer-expire.
no-autoconfig Indicates to hosts on the local link that the specified prefix cannot be used for IPv6
autoconfiguration.
off-link Indicates that the specified prefix is assigned to the link. Nodes sending traffic to
such addresses that contain the specified prefix consider the destination to be
locally reachable on the link. This prefix should not be used for onlink
determination.
Command Default All prefixes configured on interfaces that originate IPv6 router advertisements are advertised with a valid
lifetime of 2592000 seconds (30 days) and a preferred lifetime of 604800 seconds (7 days), and with both the
“onlink” and “autoconfig” flags set.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 577
Network Stack IPv4 and IPv6 Commands
ipv6 nd prefix
Usage Guidelines This command allows control over the individual parameters per prefix, including whether or not the prefix
should be advertised.
To control how prefixes are advertised, use the ipv6 nd prefix command. By default, prefixes configured as
addresses on an interface using the ipv6 address command are advertised with default values. If you configure
prefixes for advertisement using the ipv6 nd prefix command, only the specified prefixes are advertised with
the configured values, all other prefixes are advertised with default values.
The default keyword can be used to set default parameters for all prefixes.
A date can be set to specify the expiration of a prefix. The valid and preferred lifetimes are counted down in
real time. When the expiration date is reached, the prefix is no longer advertised.
When onlink is “on” (by default), the specified prefix is assigned to the link. Nodes sending traffic to such
addresses that contain the specified prefix consider the destination to be locally reachable on the link.
When autoconfig is “on” (by default), it indicates to hosts on the local link that the specified prefix can be
used for IPv6 autoconfiguration.
Examples The following example includes the IPv6 prefix 2001:0DB8::/35 in router advertisements sent out POS
interface 0/1/0/0 with a valid lifetime of 1000 seconds and a preferred lifetime of 900 seconds:
Related Commands
Command Description
ipv6 address, on page 554 Configures an IPv6 address and enables IPv6
processing on an interface using an EUI-64 interface
ID in the low-order 64 bits of the address.
ipv6 address link-local, on page 556 Configures an IPv6 link-local address for an interface
and enables IPv6 processing on the interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
578 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 nd prefix
Command Description
ipv6 nd managed-config-flag , on page 571 Sets the managed address configuration flag in IPv6
router advertisements.
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 579
Network Stack IPv4 and IPv6 Commands
ipv6 nd ra-interval
ipv6 nd ra-interval
To configure the interval between IPv6 router advertisement transmissions on an interface, use the ipv6 nd
ra-interval command in an appropriate configuration mode. To restore the default interval, use the no form
of this command.
Syntax Description seconds The interval (in seconds) between IPv6 router advertisement transmissions.
Usage Guidelines The interval between transmissions should be less than or equal to the IPv6 router advertisement lifetime if
the router is configured as a default router by using the ipv6 nd ra-lifetime command. To prevent
synchronization with other IPv6 nodes, randomly adjust the actual value used to within 20 percent of the
specified value.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
580 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 nd ra-interval
Examples This example (not applicable for BNG) configures an IPv6 router advertisement interval of 201 seconds on
POS interface 0/1/1/0:
Related Commands
Command Description
ipv6 nd ra-lifetime , on page 582 Configures the lifetime of an IPv6 router
advertisement.
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 581
Network Stack IPv4 and IPv6 Commands
ipv6 nd ra-lifetime
ipv6 nd ra-lifetime
To configure the router lifetime value in IPv6 router advertisements on an interface, use the ipv6 nd ra-lifetime
command in an appropriate configuration mode. To restore the default lifetime, use the no form of this
command.
Syntax Description seconds The validity (in seconds) of this router as a default router on this interface.
Usage Guidelines The router lifetime value is included in all IPv6 router advertisements sent out the interface. The value indicates
the usefulness of the router as a default router on this interface. Setting the value to 0 indicates that the router
should not be considered a default router on this interface. The router lifetime value can be set to a nonzero
value to indicate that it should be considered a default router on this interface. The nonzero value for the router
lifetime value should not be less than the router advertisement interval.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
582 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 nd ra-lifetime
Examples This example (not applicable for BNG) configures an IPv6 router advertisement lifetime of 1801 seconds on
POS interface 0/1/1/0:
For BNG, this example configures an IPv6 router advertisement lifetime of 1801 seconds in the dynamic
template configuration mode:
Related Commands
Command Description
ipv6 nd ra-interval , on page 580 Configures the interval between IPv6 router
advertisement transmissions on an interface.
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 583
Network Stack IPv4 and IPv6 Commands
ipv6 nd reachable-time
ipv6 nd reachable-time
To configure the amount of time that a remote IPv6 node is considered reachable after some reachability
confirmation event has occurred, use the ipv6 nd reachable-time command in an appropriate configuration
mode. To restore the default time, use the no form of this command.
Syntax Description milliseconds The amount of time (in milliseconds) that a remote IPv6 node is considered
reachable. The range is from 0 to 3600000.
Command Default 0 milliseconds (unspecified) is advertised in router advertisements and 30000 (30 seconds) is used for the
neighbor discovery activity of the router itself.
Release 3.6.0 The range value was added for the milliseconds argument.
Usage Guidelines The configured time enables the router to detect unavailable neighbors. Shorter configured times enable the
router to detect unavailable neighbors more quickly; however, shorter times consume more IPv6 network
bandwidth and processing resources in all IPv6 network devices. Very short configured times are not
recommended in normal IPv6 operation.
The configured time is included in all router advertisements sent out of an interface so that nodes on the same
link use the same time value. A value of 0 indicates that the configured time is unspecified by this router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
584 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 nd reachable-time
Examples This example (not applicable for BNG) shows how to configure an IPv6 reachable time of 1,700,000
milliseconds for POS interface 0/1/1/0:
For BNG, this example shows how to configure an IPv6 reachable time of 1,700,000 milliseconds in the
dynamic template configuration mode:
Related Commands
Command Description
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 585
Network Stack IPv4 and IPv6 Commands
ipv6 nd redirects
ipv6 nd redirects
To send Internet Control Message Protocol (ICMP) redirect messages, use the ipv6 nd redirects command
in interface configuration mode. To restore the system default, use the no form of this command.
ipv6 nd redirects
no ipv6 nd redirects
Examples The following example shows how to redirect IPv6 nd-directed broadcasts on POS interface 0/2/0/2:
Related Commands
Command Description
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
586 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 nd scavenge-timeout
ipv6 nd scavenge-timeout
To set the lifetime for neighbor entries in the stale state, use the ipv6 nd scavenge-timeout command in
Global Configuration mode mode. To disable this feature, use the no form of this command.
Command Modes
Usage Guidelines When the scavenge-timer for a neighbor entry expires, the entry is cleared.
Examples The following example shows how to set the lifetime for the neighbor entry:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 587
Network Stack IPv4 and IPv6 Commands
ipv6 nd suppress-ra
ipv6 nd suppress-ra
To suppress IPv6 router advertisement transmissions on a LAN interface, use the ipv6 nd suppress-ra
command in an appropriate configuration mode. To reenable the sending of IPv6 router advertisement
transmissions on a LAN interface, use the no form of this command.
ipv6 nd suppress-ra
no ipv6 nd suppress-ra
Command Default IPv6 router advertisements are automatically sent on other types of interlaces if IPv6 unicast routing is enabled
on the interfaces. IPv6 router advertisements are not sent on other types of interfaces.
Usage Guidelines Use the no ipv6 nd suppress-ra command to enable the sending of IPv6 router advertisement transmissions
on non-LAN interface types (for example, serial or tunnel interfaces).
Examples This example (not applicable for BNG) shows how to suppress IPv6 router advertisements on POS interface
0/1/1/0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
588 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 nd suppress-ra
For BNG, this example shows how to suppress IPv6 router advertisements in the dynamic template configuration
mode:
Related Commands
Command Description
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 589
Network Stack IPv4 and IPv6 Commands
ipv6 neighbor
ipv6 neighbor
To configure a static entry in the IPv6 neighbor discovery cache, use the ipv6 neighbor command in Global
Configuration mode mode. To remove a static IPv6 entry from the IPv6 neighbors discovery cache, use the
no form of this command.
Syntax Description ipv6-address The IPv6 address that corresponds to the local data-link address.
This argument must be in the form documented in RFC 2373 where the address is
specified in hexadecimal using 16-bit values between colons.
interface-type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
Command Default Static entries are not configured in the IPv6 neighbor discovery cache.
Command Modes
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
590 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 neighbor
Usage Guidelines The ipv6 neighbor command is similar to the arp (global) command.
If an entry for the specified IPv6 address already exists in the neighbor discovery cache—learned through the
IPv6 neighbor discovery process—the entry is automatically converted to a static entry.
Use the show ipv6 neighbors command to display static entries in the IPv6 neighbors discovery cache. A
static entry in the IPv6 neighbor discovery cache has one state: reach (reachable)—The interface for this entry
is up. If the interface for the entry is down, the show ipv6 neighbors command does not show the entry.
Note Reachability detection is not applied to static entries in the IPv6 neighbor discovery cache; therefore, the
descriptions for the reach (reachable) state are different for dynamic and static cache entries. See the show
ipv6 neighbors command for a description of the reach (reachable) state for dynamic cache entries.
The clear ipv6 neighbors command deletes all entries in the IPv6 neighbors discovery cache, except static
entries. The no ipv6 neighbor command deletes a specified static entry from the neighbor discovery cache;
the command does not remove dynamic entries—learned from the IPv6 neighbor discovery process—from
the cache. Disabling IPv6 on an interface by using the no ipv6 enable or the no ipv6 unnumbered command
deletes all IPv6 neighbor discovery cache entries configured for that interface, except static entries (the state
of the entry changes to reach [reachable]).
Static entries in the IPv6 neighbor discovery cache are not modified by the neighbor discovery process.
Note Static entries for IPv6 neighbors can be configured only on IPv6-enabled LAN and ATM LAN Emulation
interfaces.
Examples The following example shows how to configure a static entry in the IPv6 neighbor discovery cache for a
neighbor with the IPv6 address 2001:0DB8::45A and link-layer address 0002.7D1A.9472 on ethernet interface
0/ 0/CPU0/0:
Related Commands
Command Description
clear ipv6 neighbors , on page 527 Deletes all entries in the IPv6 neighbors discovery
cache, except static entries.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 591
Network Stack IPv4 and IPv6 Commands
ipv6 neighbor
Command Description
ipv6 enable , on page 561 Disables IPv6 processing on an interface that has not
been configured with an explicit IPv6 address.
show ipv6 neighbors , on page 640 Displays IPv6 neighbors discovery cache information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
592 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 source-route
ipv6 source-route
To enable processing of the IPv6 type source (type 0) routing header, use the ipv6 source-route command
in Global Configuration mode mode. To disable the processing of this IPv6 extension header, use the no form
of this command.
ipv6 source-route
no ipv6 source-route
Command Default The no version of the ipv6 source-route command is the default.
Command Modes
Usage Guidelines The no ipv6 source-route command (which is the default) prevents hosts from performing source routing
using your routers. When the no ipv6 source-route command is configured and the router receives a packet
with a type 0 source routing header, the router drops the packet and sends an IPv6 ICMP error message back
to the source and logs an appropriate debug message.
Examples The following example shows how to allow the processing of any IPv6 datagrams containing a source-route
header option:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# ipv6 source-route
RP/0/0/CPU0:router(config)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 593
Network Stack IPv4 and IPv6 Commands
ipv6 source-route
Related Commands
Command Description
ipv4 source-route, on page 547 Allow the processing of any IPv4 datagrams
containing a source-route header option.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
594 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 unreachables disable
Usage Guidelines If the software receives a nonbroadcast packet destined for itself that uses a protocol it does not recognize, it
sends an ICMP protocol 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 a number of ICMP unreachable messages.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 595
Network Stack IPv4 and IPv6 Commands
ipv6 unreachables disable
Examples This example (not applicable for BNG) shows how to disable the generation of ICMP unreachable messages
on POS interface 0/6/0/0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
596 OL-28453-05
Network Stack IPv4 and IPv6 Commands
ipv6 virtual address
Syntax Description vrf vrf-name (Optional) Configures the virtual address on a per VPN routing and forwarding
(VRF) basis for the management interfaces The vrf-name argument specifies
the name of the VRF.
prefix-length The length of the IPv6 prefix. A decimal value that indicates how many of the
high-order contiguous bits of the address comprise the prefix (the network
portion of the address). A slash mark must precede the decimal value.
use-as-src-addr Enables the virtual address to be used as the default SRC address on sourced
packets.
Command Modes
Usage Guidelines Configuring an IPv6 virtual address enables you to access the router from a single virtual address with a
management network. An IPv6 virtual address persists across route processor (RP) failover situations.
Configuring an IPv6 virtual address enables you to access a dual RP router from a single address without
prior knowledge of which RP is active. An IPv6 virtual address persists across RP failovers. For this to happen,
the virtual IPv6 address must share a common IPv6 subnet with a Management Ethernet interface on both
RPs.
If you disable the ipv6 virtual address command with the vrf keyword, the virtual IP address is unconfigured
for the corresponding VRF or for the default if no VRF is specified. This results in the removal of the entry
for the virtual IP address in the VRF table and in the ARP cache.
The default VRF is chosen when no VRF is specified. The virtual IP address is activated on a management
interface that is attached to a default VRF.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 597
Network Stack IPv4 and IPv6 Commands
ipv6 virtual address
The use-as-src-addr keyword eliminates the need for configuring a loopback interface as the source interface
(that is, update source) for management applications. When an update source is not configured, management
applications allow the transport processes (TCP, UDP, raw_ip) to pick a suitable source address. The transport
processes, in turn, consult the FIB to do so. If a Management Ethernet's IP address is picked as the source
address and if the use-as-src-addr keyword is configured, then the transport processes replace the Management
Ethernet's IP address with a relevant virtual IP address. This functionality works across RP switchovers.
Examples The following example shows how to define an IPv6 virtual address:
The following example shows how to configure the virtual IP addresses for management interfaces on a per
VRF basis:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
598 OL-28453-05
Network Stack IPv4 and IPv6 Commands
local pool
local pool
To create one or more local address pools from which IP addresses are assigned when a peer connects, use
the local pool command in Global Configuration mode. To restore the default behavior, use the no form of
this command.
Syntax Description vrf Specifies that a VRF name will be given. If is parameter is missing, the default
VRF is assumed.
vrf_name Specifies the name of the VRF to which the addresses of the pool belongs. If
no name is given, the default VRF is assumed.
default Creates a default local IPv4 address pool that is used if no other pool is named.
first-ip-address Specifies the first address in an IPv4 address range. If high-IP-address is not
specified, the address range is considered to have only one address.
last-ip-address (Optional) Specifies the last address in an IPv4 address range. If high-IP-address
is not specified, the address range is considered to have only one address.
Command Default Special default pool if VRF is not specified. By default, this functionality is disabled.
Usage Guidelines Use this command to create local address pools to use in assigning IP addresses when a peer connects. You
can also add range of IP addresses to an existing pool. If no pool name is specified, the pool with the name
"default" is used.
The optional vrf keyword and associated vrf name allows the association of an IPv4 address pool with a named
VRF. Any IPv4 address pool created without the vrf keyword automatically becomes a member of a default
VRF. An IPv4 address pool name can be associated with only one VRF. Subsequent use of the same pool
name, within a pool group, is treated as an extension of that pool, and any attempt to associate an existing
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 599
Network Stack IPv4 and IPv6 Commands
local pool
local IPv4 address pool name with a different VRF is rejected. Therefore, each use of a pool name is an implicit
selection of the associated VRF.
Note To reduce the chances of inadvertent generation of duplicate addresses, the system allows creation of the
default pool only in the default VRF.
All IPv4 address pools within a VRF are checked to prevent overlapping addresses; however, addresses may
overlap across different VRFs.
Examples The following example creates a local IPv4 address pool named “pool2,” which contains all IPv4 addresses
in the range 172.16.23.0 to 172.16.23.255:
Note It is good practice to precede local pool definitions with a no form of the command to remove any existing
pool, because the specification of an existing pool name is taken as a request to extend that pool with the
new IPv4 addresses. To extend the pool, the no form of the command is not applicable.
The following example configures multiple ranges of IPv4 addresses into one pool:
The following examples show how to configure two pool groups and IPv4 address pools in the base system
group:
In this example:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
600 OL-28453-05
Network Stack IPv4 and IPv6 Commands
local pool
Note IPv4 address 10.1.1.1 overlaps in vrfs grp1, grp2 and the default vrf . There is no overlap within any vrf
that includes the default vrf.
The VPN requires a configuration that selects the proper vrf by selecting the proper pool based on remote
user data. Each user in a given VPN can select an address space using the pool and associated vrf appropriate
for that VPN. Duplicate addresses in other VPNs (other vrfs) are not a concern, because the address space of
a VPN is specific to that VPN. In the example, a user in VRF vpn1 is associated with a combination of the
pools p1_vpn1, p2_vpn1, and p3_vpn1, and is allocated addresses from that address space. Addresses are
returned to the same pool from which they were allocated.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 601
Network Stack IPv4 and IPv6 Commands
remote-route-filtering
remote-route-filtering
To disable remote route filtering on a vrf for SVD core-facing cards, use the remote-route-filtering command
in the VRF configuration mode. To enable remote route filtering, use the no form of this command.
remote-route-filtering disable
no remote-route-filtering disable
Examples This example shows how to disable remote route filtering on a vrf for SVD core-facing cards, using the
remote-route-filtering command:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# vrf vrf-1
RP/0/0/CPU0:router(config-vrf)# remote-route-filtering disable
RP/0/0/CPU0:router(config-vrf)#
Related Commands
Command Description
vrf, on page 663 Configures a VRF instance for a routing protocol.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
602 OL-28453-05
Network Stack IPv4 and IPv6 Commands
remote-route-filtering
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 603
Network Stack IPv4 and IPv6 Commands
selective-vrf-download
selective-vrf-download
To download locally significant tables on a customer-facing card, or to disable selective VRF download, use
the selective-vrf-download command in Global Configuration mode. To disable this feature, use the no form
of this command.
vrf-group group-name Downloads tables corresponding to the vrfs of the specified vrf-group.
Command Default If selective VRF download is supported by the router, then, by default, selective-vrf-download is enabled.
Examples This example shows how to download locally-significant routes on a customer facing router, using the
selective-vrf-download command:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# selective-vrf-download location 0/2/CPU0 vrf-group group1
RP/0/0/CPU0:router(config-svd)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
604 OL-28453-05
Network Stack IPv4 and IPv6 Commands
selective-vrf-download
This example shows how to disable selective VRF download, using the selective-vrf-download command:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# selective-vrf-download disable
RP/0/0/CPU0:router(config-svd)#
Related Commands
Command Description
vrf, on page 663 Configures a VRF instance for a routing protocol.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 605
Network Stack IPv4 and IPv6 Commands
show arm conflicts
show arm {ipv4| ipv6} [vrf vrf-name] conflicts [address| override| unnumbered]
Command Modes
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines Use the show arm conflicts command to display information about IPv4 or IPv6 address conflicts. You can
use address conflict information to identify misconfigured IPv4 or IPv6 addresses.
Conflict information is displayed for interfaces that are forced down and for interfaces that are up.
Issuing the show arm conflicts command without specifying any optional keywords displays the output
generated from both the address and unnumbered keywords.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
606 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show arm conflicts
Examples The following sample output is from the show arm ipv4 conflicts command:
F Forced down
| Down interface & addr Up interface & addr
The following is sample output from the show arm ipv4 conflicts command with the address keyword:
F Forced down
| Down interface & addr Up interface & addr
The following is sample output from the show arm ipv4 conflicts command with the unnumbered keyword:
Field Description
Forced down Legend defining a symbol that may appear in the
output for this command.
Down interface & addr Forced down interface name, type, and address.
Forced down interface Unnumbered interfaces that are in conflict and forced
down.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 607
Network Stack IPv4 and IPv6 Commands
show arm database
show arm {ipv4| ipv6} [vrf {vrf-name}] database [interface type interface-path-id| network prefix/length]
interface Displays the IPv4 or IPv6 address configured on the specified interface.
type Interface type. For more information, use the question mark (?) online help
function.
prefix / length Network prefix and mask. A slash (/) must precede the specified mask. The
range is from 0 to 128.
Command Modes
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
608 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show arm database
Usage Guidelines The show arm database command should be used to display information in the IP ARM database. Database
information is displayed with the IPv4 or IPv6 address, interface type and name, and producer information.
Examples The following is sample output from the show arm database command:
|U = Unnumbered
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 609
Network Stack IPv4 and IPv6 Commands
show arm database
Field Description
Primary Primary IP address.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
610 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show arm router-ids
Command Modes
Usage Guidelines Use the show arm router-ids command with the ipv4 keyword to display the selected router ID information
for the router.
Examples The following is sample output from the show arm router-ids command:
Router-ID Interface
10.10.10.10 Loopback0
Field Description
Router-ID Router identification.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 611
Network Stack IPv4 and IPv6 Commands
show arm router-ids
Field Description
Interface Interface identification.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
612 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show arm registrations producers
Command Modes
Usage Guidelines Use the show arm registrations producers command to display information on producers of IP ARM
registrations. Registration information is displayed with the ID.
Examples The following is sample output from the show arm registrations producers command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 613
Network Stack IPv4 and IPv6 Commands
show arm registrations producers
Field Description
Id An identifier used by the IP Address ARM (IP ARM)
to keep track of the producer of the IP address.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
614 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show arm summary
Command Modes
Usage Guidelines Use the show arm summary command to display a summary of the number of producers, address conflicts,
and unnumbered interface conflicts in the router.
Examples The following is sample output from the show arm summary command:
IPv4 Producers : 5
IPv4 Router id consumers : 7
IPv4 address conflicts : 2
IPv4 unnumbered interface conflicts : 1
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 615
Network Stack IPv4 and IPv6 Commands
show arm summary
Field Description
IPv4 Producers Number of IPv4 producers on the router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
616 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show arm vrf-summary
Command Modes
Usage Guidelines Use the show arm vrf-summary command to display information about an IPv4 VPN routing and forwarding
instance.
Examples The following example is output from the show arm vrf-summary command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 617
Network Stack IPv4 and IPv6 Commands
show arm vrf-summary
Field Description
VRF IDs VPN routing and forwarding (VRF) identification
(vrfid) number.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
618 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show clns statistics
Command Modes
Examples The following is sample output from the show clns statistics command:
CLNS Statistics:
Last counter clear: 2868 seconds ago
Total number of packets sent: 0
Total number of packets received: 0
Send packets dropped, buffer overflow: 0
Send packets dropped, out of memory: 0
Send packets dropped, other: 0
Receive socket max queue size: 0
Class Overflow/Max Rate Limit/Max
IIH 0/0 0/0
LSP 0/0 0/0
SNP 0/0 0/0
OTHER 0/0 0/0
Total 0 0
This table describes the significant fields shown in the display.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 619
Network Stack IPv4 and IPv6 Commands
show clns statistics
Field Description
Class Indicates the packet type. Packets types are as follows:
• IIH—Intermediate
System-to-Intermediate-System hello packets
• lsp—Link state packets
• snp—Sequence number packets
• other
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
620 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv4 interface
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
brief (Optional) Displays the primary IPv4 addresses configured on the router’s interfaces
and their protocol and line states.
summary (Optional) Displays the number of interfaces on the router that are assigned, unassigned,
or unnumbered.
Command Default If VRF is not specified, the software displays the default VRF.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 621
Network Stack IPv4 and IPv6 Commands
show ipv4 interface
Release 3.3.0 The vrf keyword and vrf-name argument were added.
Usage Guidelines The show ipv4 interface command provides output similar to the show ipv6 interface command, except that
it is IPv4-specific.
The interface name will be displayed only if the name belongs to the VRF instance. If the vrf-name is not
specified then the interface instance will be displayed only if the interface belongs to the default VRF.
network read
Examples This is the sample output of the show ipv4 interface command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
622 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv4 interface
Field Description
Loopback0 is Up If the interface hardware is usable, the interface is
marked “Up.” For an interface to be usable, both the
interface hardware and line protocol must be up.
Multicast reserved groups joined Indicates the multicast groups this interface belongs
to.
Outgoing access list Indicates whether the interface has an outgoing access
list set.
Inbound access list Indicates whether the interface has an incoming access
list set.
Internet protocol processing disabled Indicates an IPv4 address has not been configured on
the interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 623
Network Stack IPv4 and IPv6 Commands
show ipv4 interface
Related Commands
Command Description
show ipv6 interface , on page 630 Displays the usability status of interfaces configured
for IPv6.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
624 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show local pool
show {local| other_pool_types} pool [vrf vrf_name] {ipv4| ipv6} {default| poolname}
vrf Specifies that a VRF name will be given. If is parameter is missing, the default
VRF is assumed.
vrf_name Specifies the name of the VRF to which the addresses of the pool belongs. If
no name is given, the default VRF is assumed.
default Creates a default local IPv4 address pool that is used if no other pool is named.
network read
Examples The following is sample output from the show ipv4 local pool with a poolname of P1:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 625
Network Stack IPv4 and IPv6 Commands
show local pool
P1 172.30.228.11172.30.228.1660
Available addresses:
172.30.228.11
172.30.228.12
172.30.228.13
172.30.228.14
172.30.228.15
172.30.228.16
Inuse addresses:
None
Field Description
Pool Name of the pool.
Related Commands
Command Description
local pool, on page 599 Creates one or more local address pools from which
IP addresses are assigned when a peer connects.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
626 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv4 traffic
Syntax Description brief (Optional) Displays only IPv4 and Internet Control Message Protocol version 4
(ICMPv4) traffic.
Command Modes
Usage Guidelines The show ipv4 traffic command provides output similar to the show ipv6 traffic command, except that it is
IPv4-specific.
network read
Examples This is the sample output of the show ipv4 traffic command:
IP statistics:
Rcvd: 16372 total, 16372 local destination
0 format errors, 0 bad hop count
0 unknown protocol, 0 not a gateway
0 security failures, 0 bad source, 0 bad header
0 with options, 0 bad, 0 unknown
Opts: 0 end, 0 nop, 0 basic security, 0 extended security
0 strict source rt, 0 loose source rt, 0 record rt
0 stream ID, 0 timestamp, 0 alert, 0 cipso
Frags: 0 reassembled, 0 timeouts, 0 couldn't reassemble
0 fragmented, 0 fragment count
Bcast: 0 sent, 0 received
Mcast: 0 sent, 0 received
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 627
Network Stack IPv4 and IPv6 Commands
show ipv4 traffic
ICMP statistics:
Sent: 0 admin unreachable, 0 network unreachable
0 host unreachable, 0 protocol unreachable
0 port unreachable, 0 fragment unreachable
0 time to live exceeded, 0 reassembly ttl exceeded
5 echo request, 0 echo reply
0 mask request, 0 mask reply
0 parameter error, 0 redirects
5 total
Rcvd: 0 admin unreachable, 0 network unreachable
2 host unreachable, 0 protocol unreachable
0 port unreachable, 0 fragment unreachable
0 time to live exceeded, 0 reassembly ttl exceeded
0 echo request, 5 echo reply
0 mask request, 0 mask reply
0 redirect, 0 parameter error
0 source quench, 0 timestamp, 0 timestamp reply
0 router advertisement, 0 router solicitation
7 total, 0 checksum errors, 0 unknown
UDP statistics:
16365 packets input, 16367 packets output
0 checksum errors, 0 no port
0 forwarded broadcasts
TCP statistics:
0 packets input, 0 packets output
0 checksum errors, 0 no port
Field Description
bad hop count Occurs when a packet is discarded because its TTL14
field was decremented to zero.
encapsulation failed Usually indicates that the router had no ARP request
entry and therefore did not send a datagram.
IP statistics Rcvd total Indicates the total number of local destination and
other packets received in the software plane. It does
not account for the IP packets forwarded or discarded
in hardware.
14 TTL = time-to-live
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
628 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv4 traffic
Related Commands
Command Description
show ipv6 traffic , on page 647 Displays statistics about IPv6 traffic.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 629
Network Stack IPv4 and IPv6 Commands
show ipv6 interface
show ipv6 [vrf vrf-name] interface [summary | [type interface-path-id][brief [link-local | global]]]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
brief (Optional) Displays the primary IPv6 addresses configured on the router interfaces
and their protocol and line states.
summary (Optional) Displays the number of interfaces on the router that are assigned,
unassigned, or unnumbered.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
630 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv6 interface
Release 3.5.0 The following modifications are listed for the show ipv6 interface
command:
• The command syntax was modified to be similar to the show ipv4
interface command.
• The sample output was modified.
Release 5.1.2 The link-local and global keywords were added to the command.
Usage Guidelines The show ipv6 interface command provides output similar to the show ipv4 interface command, except that
it is IPv6-specific.
Use the link-local or global keywords along with the brief keyword to view the link local or global IPv6
addresses.
Examples This is the sample output of the show ipv6 interface command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 631
Network Stack IPv4 and IPv6 Commands
show ipv6 interface
Field Description
POS0/3/0/0 is Shutdown, line protocol is Down Indicates whether the interface hardware is currently
active (whether line signal is present) and whether it
has been taken down by an administrator. If the
interface hardware is usable, the interface is marked
“Up.” For an interface to be usable, both the interface
hardware and line protocol must be up.
line protocol is Up (or down) Indicates whether the software processes that handle
the line protocol consider the line usable (that is,
whether keepalives are successful). If the interface
can provide two-way communication, the line
protocol is marked “Up.” For an interface to be usable,
both the interface hardware and line protocol must
be up.
IPv6 is enabled, stalled, disabled (stalled and disabled Indicates that IPv6 is enabled, stalled, or disabled on
are not shown in sample output) the interface. If IPv6 is enabled, the interface is
marked “enabled.” If duplicate address detection
processing identified the link-local address of the
interface as being a duplicate address, the processing
of IPv6 packets is disabled on the interface and the
interface is marked “stalled.” If IPv6 is not enabled,
the interface is marked “disabled.”
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
632 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv6 interface
Field Description
ICMP redirects State of Internet Control Message Protocol (ICMP)
IPv6 redirect messages on the interface (the sending
of the messages is enabled or disabled).
Examples This is the sample output of the show ipv6 interface brief link-local command:
RP/0/0/CPU0:router#show ipv6 interface brief link-local
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 633
Network Stack IPv4 and IPv6 Commands
show ipv6 interface
This is the sample output of the show ipv6 vrf vrf-name interface type interface-path-id brief link-local
command:
RP/0/0/CPU0:router#show ipv6 vrf vrf1 interface gigabitEthernet 0/0/0/2 brief link-local
Related Commands
Command Description
show ipv4 interface , on page 621 Displays the usability status of interfaces configured
for IPv4.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
634 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv6 interface
show ipv6 [vrf vrf-name] interface [summary | [type interface-path-id][brief [link-local | global]]]
Syntax Description vrf (Optional) Displays VPN routing and forwarding (VRF) instance information.
type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
brief (Optional) Displays the primary IPv6 addresses configured on the router interfaces
and their protocol and line states.
summary (Optional) Displays the number of interfaces on the router that are assigned,
unassigned, or unnumbered.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 635
Network Stack IPv4 and IPv6 Commands
show ipv6 interface
Release 3.5.0 The following modifications are listed for the show ipv6 interface
command:
• The command syntax was modified to be similar to the show ipv4
interface command.
• The sample output was modified.
Release 5.1.2 The link-local and global keywords were added to the command.
Usage Guidelines The show ipv6 interface command provides output similar to the show ipv4 interface command, except that
it is IPv6-specific.
Use the link-local or global keywords along with the brief keyword to view the link local or global IPv6
addresses.
Examples This is the sample output of the show ipv6 interface command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
636 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv6 interface
Field Description
POS0/3/0/0 is Shutdown, line protocol is Down Indicates whether the interface hardware is currently
active (whether line signal is present) and whether it
has been taken down by an administrator. If the
interface hardware is usable, the interface is marked
“Up.” For an interface to be usable, both the interface
hardware and line protocol must be up.
line protocol is Up (or down) Indicates whether the software processes that handle
the line protocol consider the line usable (that is,
whether keepalives are successful). If the interface
can provide two-way communication, the line
protocol is marked “Up.” For an interface to be usable,
both the interface hardware and line protocol must
be up.
IPv6 is enabled, stalled, disabled (stalled and disabled Indicates that IPv6 is enabled, stalled, or disabled on
are not shown in sample output) the interface. If IPv6 is enabled, the interface is
marked “enabled.” If duplicate address detection
processing identified the link-local address of the
interface as being a duplicate address, the processing
of IPv6 packets is disabled on the interface and the
interface is marked “stalled.” If IPv6 is not enabled,
the interface is marked “disabled.”
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 637
Network Stack IPv4 and IPv6 Commands
show ipv6 interface
Field Description
ICMP redirects State of Internet Control Message Protocol (ICMP)
IPv6 redirect messages on the interface (the sending
of the messages is enabled or disabled).
Examples This is the sample output of the show ipv6 interface brief link-local command:
RP/0/0/CPU0:router#show ipv6 interface brief link-local
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
638 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv6 interface
This is the sample output of the show ipv6 vrf vrf-name interface type interface-path-id brief link-local
command:
RP/0/0/CPU0:router#show ipv6 vrf vrf1 interface gigabitEthernet 0/0/0/2 brief link-local
Related Commands
Command Description
show ipv4 interface , on page 621 Displays the usability status of interfaces configured
for IPv4.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 639
Network Stack IPv4 and IPv6 Commands
show ipv6 neighbors
Syntax Description type Interface type. For more information, use the question mark (?) online help
function.
location node-id (Optional) Designates a node. The node-id argument is entered in the
rack/slot/module notation.
Command Modes
Usage Guidelines When the interface-type and interface-number arguments are not specified, cache information for all IPv6
neighbors is displayed. Specifying the interface-type and interface-number arguments displays only cache
information about the specified interface.
Examples This is the sample output of the show ipv6 neighbors command when entered with an interface type and
number:
RP/0/0/CPU0:router# show ipv6 neighbors POS 0/0/0/0
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
640 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv6 neighbors
This is the sample output of the show ipv6 neighbors command when entered with an IPv6 address:
RP/0/0/CPU0:router# show ipv6 neighbors 2000:0:0:4::2
Field Description
IPv6 Address IPv6 address of neighbor or interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 641
Network Stack IPv4 and IPv6 Commands
show ipv6 neighbors
Field Description
State
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
642 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv6 neighbors
Field Description
The state of the neighbor cache entry. These are the
states for dynamic entries in the IPv6 neighbor
discovery cache:
• INCMP (incomplete)—Address resolution is
being performed on the entry. A neighbor
solicitation message has been sent to the
solicited-node multicast address of the target,
but the corresponding neighbor advertisement
message has not yet been received.
• reach (reachable)—Positive confirmation was
received within the last ReachableTime
milliseconds that the forward path to the
neighbor was functioning properly. While in
reach state, the device takes no special action
as packets are sent.
• stale—More than ReachableTime milliseconds
have elapsed since the last positive confirmation
was received that the forward path was
functioning properly. While in stale state, the
device takes no action until a packet is sent.
• delay—More than ReachableTime milliseconds
have elapsed since the last positive confirmation
was received that the forward path was
functioning properly. A packet was sent within
the last DELAY_FIRST_PROBE_TIME
seconds. If no reachability confirmation is
received within
DELAY_FIRST_PROBE_TIME seconds of
entering the delay state, send a neighbor
solicitation message and change the state to
probe.
• probe—A reachability confirmation is actively
sought by resending neighbor solicitation
messages every RetransTimer milliseconds until
a reachability confirmation is received.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 643
Network Stack IPv4 and IPv6 Commands
show ipv6 neighbors
Field Description
therefore, the descriptions for the INCMP
(incomplete) and reach (reachable) states are
different for dynamic and static cache
entries.
Interface Interface from which the address is reachable.
Related Commands
Command Description
show ipv6 neighbors summary , on page 645 Displays summary information for the neighbor
entries.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
644 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv6 neighbors summary
Examples This is the sample output of the show ipv6 neighbors summary command that shows the summary information
for the neighbor entries:
Related Commands
Command Description
show ipv6 neighbors , on page 640 Displays IPv6 neighbor discovery cache information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 645
Network Stack IPv4 and IPv6 Commands
show ipv6 neighbors summary
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
646 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv6 traffic
Syntax Description brief (Optional) Displays only IPv6 and Internet Control Message Protocol version 6
(ICMPv6) traffic statistics.
Command Modes
Release 3.5.0 Sample output was modified to display drop counters from the sanity
address check.
Usage Guidelines The show ipv6 traffic command provides output similar to the show ipv4 traffic command, except that it is
IPv6-specific.
network read
Examples This is the sample output of the show ipv6 traffic command:
IPv6 statistics:
Rcvd: 0 total, 0 local destination
0 source-routed, 0 truncated
0 format errors, 0 hop count exceeded
0 bad header, 0 unknown option, 0 bad source
0 unknown protocol
0 fragments, 0 total reassembled
0 reassembly timeouts, 0 reassembly failures
0 reassembly max drop
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 647
Network Stack IPv4 and IPv6 Commands
show ipv6 traffic
ICMP statistics:
Rcvd: 0 input, 0 checksum errors, 0 too short
0 unknown error type
unreach: 0 routing, 0 admin, 0 neighbor,
0 address, 0 port, 0 unknown
parameter: 0 error, 0 header, 0 option,
0 unknown
0 hopcount expired, 0 reassembly timeout,
0 unknown timeout, 0 too big,
0 echo request, 0 echo reply
Sent: 0 output, 0 rate-limited
unreach: 0 routing, 0 admin, 0 neighbor,
0 address, 0 port, 0 unknown
parameter: 0 error, 0 header, 0 option
0 unknown
0 hopcount expired, 0 reassembly timeout,
0 unknown timeout, 0 too big,
0 echo request, 0 echo reply
UDP statistics:
0 packets input, 0 checksum errors
0 length errors, 0 no port, 0 dropped
0 packets output
TCP statistics:s
0 packets input, 0 checksum errors, 0 dropped
0 packets output, 0 retransmitted
Field Description
Rcvd: Statistics in this section refer to packets received by
the router.
bad header An error was found in generic HBH, RH, DH, or HA.
Software only.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
648 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show ipv6 traffic
Field Description
unknown protocol Protocol specified in the IP header of the received
packet is unreachable.
Related Commands
Command Description
show ipv4 traffic , on page 627 Displays statistics about IPv4 traffic.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 649
Network Stack IPv4 and IPv6 Commands
show mpa client
Command Modes
Examples The following sample output is from the show mpa client command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
650 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show mpa client
Field Description
List of producer clients for MPA Displays the producer clients that have registered with
MPA.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 651
Network Stack IPv4 and IPv6 Commands
show mpa groups
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online help
function.
Command Modes
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
652 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show mpa groups
Examples The following sample output is from the show mpa groups command:
Field Description
Includes Displays the number of client registrations that have
enabled the group in the include mode.
No source filter Indicates that the router does not have the desired list
of IP addresses.
Note The source filter consists of a list of source IP addresses. Depending on the mode, the list identifies the
set of addresses from where multicast packets are either allowed or disallowed. In the include mode, the
router accepts packets only from the IP addresses that are present in the source filter. In the exclude mode,
the router drops packets from addresses that are present in the source filter. No source filter indicates that
the registration does not have such a filter.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 653
Network Stack IPv4 and IPv6 Commands
show mpa ipv4
type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
Command Modes
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
654 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show mpa ipv4
Examples The following sample output is from the show mpa ipv4 command:
Field Description
List of producer clients for ipv4 MPA Displays the producer clients that have registered with
MPA.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 655
Network Stack IPv4 and IPv6 Commands
show mpa ipv6
type Interface type. For more information, use the question mark (?) online help function.
For more information about the syntax for the router, use the question mark (?) online
help function.
Command Modes
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
656 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show mpa ipv6
Examples The following sample output is from the show mpa ipv6 command:
Field Description
List of producer clients for ipv6 MPA Displays the producer clients that have registered with
MPA.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 657
Network Stack IPv4 and IPv6 Commands
show svd role
Examples This is a sample output from the show svd role command:
Related Commands
Command Description
vrf, on page 663 Configures a VRF instance for a routing protocol.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
658 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show vrf
show vrf
To display the contents of the VPN routing and forwarding (VRF) instance, use the show vrf command in
EXEC mode.
Command Modes
Examples The following example shows how to use the show vrf command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 659
Network Stack IPv4 and IPv6 Commands
show vrf
Field Description
VRF User-assigned VRF names.
Related Commands
Command Description
vrf, on page 663 Configures a VRF instance for a routing protocol.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
660 OL-28453-05
Network Stack IPv4 and IPv6 Commands
show vrf-group
show vrf-group
To display all vrfs in a vrf group, use the show vrf-group command in EXEC mode.
Related Commands
Command Description
vrf, on page 663 Configures a VRF instance for a routing protocol.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 661
Network Stack IPv4 and IPv6 Commands
show vrf-group
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
662 OL-28453-05
Network Stack IPv4 and IPv6 Commands
vrf
vrf
To configure a VPN routing and forwarding (VRF) instance for a routing protocol, use the vrf command in
router configuration mode. To disable the VRF instance, use the no form of this command.
vrf vrf-name
no vrf vrf-name
Syntax Description vrf-name Name of the VRF instance. The following names cannot be used: all, default,
and global.
Command Default All routing protocols insert their routes into a VRF's routing table.
Examples The following example shows how to configure VRF using the vrf command:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# vrf client
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 663
Network Stack IPv4 and IPv6 Commands
vrf(address-family)
vrf(address-family)
To configure the address family for a VRF instance, use the vrf(address-family) command in VRF
configuration mode. To disable the address family, use the no form of this command.
Examples The following example shows how to configure the address family for a VRF instance, using the vrf
(address-family) command:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# vrf client
RP/0/0/CPU0:router(config-vrf)# address-family ipv4 unicast
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
664 OL-28453-05
Network Stack IPv4 and IPv6 Commands
vrf(address-family)
RP/0/0/CPU0:router(config-vrf-af)#
Related Commands
Command Description
vrf, on page 663 Configures a VRF instance for a routing protocol.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 665
Network Stack IPv4 and IPv6 Commands
vrf-group
vrf-group
To configure a vrf-group, use the vrf-group command in global configuration mode. To deconfigure a
vrf-group, use the no form of this command.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
The maximum vrf groups supported for a line card is 30. The maximum vrfs supported for each vrf-group is
300.
Examples This example shows how to configure a vrf-group using the vrf-group command:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# vrf-group VRF1
RP/0/0/CPU0:router(config-vrf-group)# vrf vrf5
RP/0/0/CPU0:router(config-vrf-group)# vrf vrf6
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
666 OL-28453-05
Network Stack IPv4 and IPv6 Commands
vrf-group
Related Commands
Command Description
vrf, on page 663 Configures a VRF instance for a routing protocol.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 667
Network Stack IPv4 and IPv6 Commands
vrf (description)
vrf (description)
To add a brief description for the VRF instance being configured, use the vrf (description) command in VRF
configuration mode. To remove a description, use the no form of this command.
Usage Guidelines The description line can have a maximum of 244 characters.
Examples The following example shows how to insert a description to a VRF instance using the vrf (description)
command:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# vrf v1
RP/0/0/CPU0:router(config-vrf)# description client
Related Commands
Command Description
vrf, on page 663 Configures a VRF instance for a routing protocol.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
668 OL-28453-05
Network Stack IPv4 and IPv6 Commands
vrf (description)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 669
Network Stack IPv4 and IPv6 Commands
vrf (mhost)
vrf (mhost)
To configure a multicast default interface for a particular VRF to send and receive packets from the host stack,
use the vrf (mhost) command in VRF configuration mode. To remove the configuration, use theno form of
this command.
Usage Guidelines The default interface should belong to the vrf for which its being configured.
Examples The following example shows how to configure VRF a multicast default interface using the vrf(mhost)
command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
670 OL-28453-05
Network Stack IPv4 and IPv6 Commands
vrf (mhost)
Related Commands
Command Description
vrf, on page 663 Configures a VRF instance for a routing protocol.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 671
Network Stack IPv4 and IPv6 Commands
vrf (mhost)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
672 OL-28453-05
Prefix List Commands
This chapter describes the Cisco IOS XR software commands used to configure IP Version 4 (IPv4) and IP
Version 6 (IPv6) prefix lists.
For detailed information about prefix list concepts, configuration tasks, and examples, refer to the
Cisco IOS XR IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series Router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 673
Prefix List Commands
clear prefix-list ipv4
Syntax Description name Name of the prefix list from which the hit count is to be cleared.
Command Modes
Usage Guidelines The hit count is a value indicating the number of matches to a specific prefix list entry. Use the clear prefix-list
ipv4 command to clear counters for a specified configured prefix list.
Use the sequence-number argument to clear counters for a prefix list with a specific sequence number.
Examples The following example displays IPv4 prefix lists, shows how to clear the counters for list3, then shows how
to display the IPv4 prefix lists again, showing that counters are cleared for list3:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
674 OL-28453-05
Prefix List Commands
clear prefix-list ipv4
Related Commands
Command Description
deny (prefix-list), on page 682 Sets deny conditions for an IPv4 or IP IPv6 prefix
list.
permit (prefix-list), on page 689 Sets permit conditions for an IPv4 or IPv6 prefix list.
show prefix-list ipv4, on page 700 Displays the configuration of the current IPv4 prefix
list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 675
Prefix List Commands
clear prefix-list ipv6
Syntax Description name Name of the prefix list from which the hit count is to be cleared.
sequence-number (Optional) Clears counters for a prefix list with a specific sequence number.
Range is 1 to 2147483646.
Command Modes
Release 3.6.0 The prefix for the sample output was modified.
Usage Guidelines The hit count is a value indicating the number of matches to a specific prefix list entry. Use the clear prefix-list
ipv6 command to clear counters for a specified configured prefix list.
Use the sequence-number argument to clear counters for a prefix list with a specific sequence number.
Examples The following example shows IPv6 prefix lists, clears the counters for sequence number 60 on prefix list list3,
then displays the IPv6 prefix lists again, showing that counters are cleared for sequence number 60:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
676 OL-28453-05
Prefix List Commands
clear prefix-list ipv6
Related Commands
Command Description
deny (prefix-list), on page 682 Sets deny conditions for an IPv4 or IPv6 prefix list.
permit (prefix-list), on page 689 Sets permit conditions for an IPv4 or IPv6 prefix list.
show prefix-list ipv6, on page 703 Displays the contents of the current IPv6 prefix list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 677
Prefix List Commands
copy prefix-list ipv4
destination-name Destination prefix list where the contents of the source-name will
be copied.
Command Modes
Usage Guidelines Use the copy prefix-list ipv4 command to copy a configured prefix list. Use the source-name argument to
specify the prefix list to be copied and the destination-name argument to specify where to copy the contents
of the source prefix list. The destination-name argument must be a unique name; if the destination-name
argument name exists for a prefix list or access list, the prefix list is not copied. The copy prefix-list ipv4
command checks that the source prefix list exists, then checks the existing list names to prevent overwriting
existing prefix lists.
filesystem execute
Examples The following example displays IPv4 prefix lists, shows how to copy prefix-list1 to list4, then displays the
IPv4 prefix lists again, showing prefix list4:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
678 OL-28453-05
Prefix List Commands
copy prefix-list ipv4
Related Commands
Command Description
ipv4 prefix-list, on page 685 Defines an IPv4 prefix list.
show prefix-list ipv4, on page 700 Displays the contents of the current IPv4 prefix lists.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 679
Prefix List Commands
copy prefix-list ipv6
destination-name Destination prefix list where the contents of the source-name will
be copied.
Command Modes
Release 3.6.0 The prefix for the sample output was modified.
Usage Guidelines Use the copy prefix-list ipv6 command to copy a configured prefix list. Use the source-name argument to
specify the prefix list to be copied and the destination-name argument to specify where to copy the contents
of the source prefix list. The destination-name argument must be a unique name; if the destination-name
argument name exists for a prefix list or access list, the prefix list is not copied. The copy prefix-list ipv6
command checks that the source prefix list exists then checks the existing list names to prevent overwriting
existing prefix lists.
filesystem execute
Examples The following example shows IPv6 prefix lists, shows how to copy prefix-list1 to list4, then displays the IPv6
prefix lists again, showing prefix list4:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
680 OL-28453-05
Prefix List Commands
copy prefix-list ipv6
Related Commands
Command Description
ipv6 prefix-list, on page 687 Defines an IPv6 prefix list.
show prefix-list ipv6, on page 703 Displays the contents of current IPv6 prefix list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 681
Prefix List Commands
deny (prefix-list)
deny (prefix-list)
To set deny conditions for an IP Version 4 (IPv4) or IP Version 6 (IPv6) prefix list, use the deny command
in IPv4 prefix list configuration or IPv6 prefix list configuration modes. To remove a condition from a prefix
list, use the no form of this command.
Syntax Description sequence-number (Optional) Sets deny conditions for a prefix list with a specific sequence number.
If you do not use a sequence number, the condition defaults to the next available
sequence number in the prefix list. Range is 1 to 2147483646. By default, the first
statement is number 10, and the subsequent statements are incremented by 10. The
sequence-number argument must be used with the no form of the command.
network / length Network number and length (in bits) of the network mask.
ge value (Optional) Specifies a prefix length greater than or equal to the value. It is the
lowest value of a range of the length (the “from” portion of the length range).
le value (Optional) Specifies a prefix length less than or equal to the value. It is the highest
value of a range of the length (the “to” portion of the length range).
Command Default There is no specific condition under which a packet is denied passing the IPv4 or IPv6 prefix list.
Release 3.6.0 The prefix for the sample output was modified.
Usage Guidelines Use the deny command to specify conditions under which a packet cannot pass the prefix list.
The ge, le and eq keywords can be used to specify the range of the prefix length to be matched, for prefixes
that are more specific than the network/length argument. Exact match is assumed when neither ge nor le is
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
682 OL-28453-05
Prefix List Commands
deny (prefix-list)
specified. The range is assumed to be from the ge value to 32 if only the ge keyword is specified. The range
is assumed to be from the length to the le value argument if only the le attribute is specified.
A specified ge value or le value must satisfy the following condition:
length < ge value < le value <= 32 (for IPv4)
length < ge value < le value <= 128 (for IPv6)
Examples The following example shows how to deny the route 10.0.0.0/0:
The following example shows how to deny all routes with a prefix of 10.3.32.154:
The following example shows how to deny all masks with a length greater than 25 bits routes with a prefix
of 172.18.30.154/16:
The following example shows how to deny mask lengths greater than 25 bits in all address space:
The following example shows how to add deny conditions to list3, then use the no form of the command to
remove the condition with the sequence number 30:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# ipv6 prefix-list list3
RP/0/0/CPU0:router(config-ipv6_pfx)# no 30
Uncommitted changes found, commit them? [yes]: y
RP/0/0/CPU0:router# show prefix-list ipv6
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 683
Prefix List Commands
deny (prefix-list)
20 deny 3000:1::/64 le 32
Related Commands
Command Description
ipv4 prefix-list, on page 685 Defines an IPv4 prefix list.
permit (prefix-list), on page 689 Sets the permit conditions for an IPv4 or IPv6 prefix
list.
remark (prefix-list), on page 692 Inserts a helpful remark about a prefix list entry.
show prefix-list ipv4, on page 700 Displays the contents of the current IPv4 prefix list.
show prefix-list ipv6, on page 703 Displays the contents of the current IPv6 prefix list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
684 OL-28453-05
Prefix List Commands
ipv4 prefix-list
ipv4 prefix-list
To define an IP Version (IPv4) prefix list by name, use the ipv4 prefix-list command in Global Configuration
mode. To remove the prefix list, use the no form of this command.
Syntax Description name Name of the prefix list. Names cannot contain a space or quotation marks.
Command Modes
Release 3.6.0 The prefix for the sample output was modified.
Usage Guidelines Use the ipv4 prefix-list command to configure an IPv4 prefix list. This command places the router in prefix-list
configuration mode, in which the denied or permitted access conditions must be defined with the deny or
permit command. You must add a condition to create the prefix list.
Use the resequence prefix-list ipv4 command to renumber existing statements and increment subsequent
statements to allow a new IPv4 prefix list statement (permit, deny, or remark) to be added. Specify the first
entry number (the base) and the increment by which to separate the entry numbers of the statements. The
software will renumber the existing statements, thereby making room to add new statements with the unused
entry numbers.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 685
Prefix List Commands
ipv4 prefix-list
Examples The following example shows the prefix lists, then configures list2, then shows the conditions in both prefix
lists:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# ipv4 prefix-list list2
RP/0/0/CPU0:router(config-ipv4_pfx)#deny 172.18.30.154/16 ge 25
RP/0/0/CPU0:router(config-ipv4_pfx)#
Uncommitted changes found, commit them? [yes]: Y
Related Commands
Command Description
deny (prefix-list), on page 682 Sets deny conditions for an IPv4 or IPv6 prefix list.
permit (prefix-list), on page 689 Sets permit conditions for an IPv4 or IPv6 prefix list.
remark (prefix-list), on page 692 Inserts a helpful remark about a prefix list entry.
resequence prefix-list ipv4, on page 694 Renumbers existing statements and increments
subsequent statements.
show prefix-list ipv4, on page 700 Displays the contents of the current IPv4 prefix list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
686 OL-28453-05
Prefix List Commands
ipv6 prefix-list
ipv6 prefix-list
To define an IP Version (IPv6) prefix list by name, use the ipv6 prefix-list command in Global Configuration
mode. To remove the prefix list, use the no form of this command.
Syntax Description name Name of the prefix list. Names cannot contain a space or quotation marks.
Command Modes
Examples The following example shows how to create a prefix list named list-1:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# ipv6 prefix-list list-1
RP/0/0/CPU0:router(config-ipv6-pfx)# 40 permit 2000:1::/64
RP/0/0/CPU0:router(config-ipv6-pfx)# 60 deny 3000:1::/64
RP/0/0/CPU0:router(config-ipv6-pfx)#
Uncommitted changes found, commit them? [yes]: y
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 687
Prefix List Commands
ipv6 prefix-list
Related Commands
Command Description
deny (prefix-list), on page 682 Sets deny conditions for an IPv4 or IPv6 prefix list.
permit (prefix-list), on page 689 Sets permit conditions for an IPv4 or IPv6 prefix list.
remark (prefix-list), on page 692 Inserts a helpful remark about a prefix list entry.
show prefix-list ipv6, on page 703 Displays the contents of the current IPv6 prefix list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
688 OL-28453-05
Prefix List Commands
permit (prefix-list)
permit (prefix-list)
To set permit conditions for an IP Version 4 (IPv4) or IP Version 6 (IPv6) prefix list, use the permit command
in IPv4 prefix list configuration or IPv6 prefix list configuration modes. To remove a condition from a prefix
list, use the no form of this command.
Syntax Description sequence-number (Optional) Number of the permit statement in the prefix list. This number
determines the order of the statements in the prefix list. Range is 1 to 2147483646.
By default, the first statement is number 10, and the subsequent statements are
incremented by 10.
network / length Network number and length (in bits) of the network mask.
ge value (Optional) Specifies a prefix length greater than or equal to the value. It is the
lowest value of a range of the length (the “from” portion of the length range).
Range is 1 to 128.
le value (Optional) Specifies a prefix length less than or equal to the value. It is the highest
value of a range of the length (the “to” portion of the length range). Range is 1
to 128.
Usage Guidelines Use the permit command to specify conditions under which a packet can pass the prefix list.
The ge, le and eq keywords can be used to specify the range of the prefix length to be matched, for prefixes
that are more specific than the network/length argument. Exact match is assumed when neither ge nor le is
specified. The range is assumed to be from the ge value to 32 if only the ge keyword is specified. The range
is assumed to be from the length to the le value argument if only the le attribute is specified.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 689
Prefix List Commands
permit (prefix-list)
Examples The following example shows how to permit the prefix 172.18.0.0/16:
The following example shows how to accept a mask length of up to 24 bits in routes with the prefix
172.20.10.171/16:
The following example shows how to permit mask lengths from 8 to 24 bits in all address space:
The following example shows how to add permit conditions to list3, then remove the condition with the
sequence number 30:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# ipv6 prefix-list list3
RP/0/0/CPU0:router(config-ipv6_pfx)# no 30
Uncommitted changes found, commit them? [yes]: y
RP/0/0/CPU0:router# show prefix-list ipv6
10 deny 2000:1::/64 ge 25
20 deny 3000:1::/64 le 32
30 deny 4000:1::/64 ge 25
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
690 OL-28453-05
Prefix List Commands
permit (prefix-list)
Related Commands
Command Description
deny (prefix-list), on page 682 Sets deny conditions for an IPv4 or IPv6 prefix list.
remark (prefix-list), on page 692 Inserts a helpful remark about a prefix list entry.
show prefix-list ipv4, on page 700 Displays the contents of current IPv4 prefix lists.
show prefix-list ipv6, on page 703 Displays the contents of current IPv6 prefix lists.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 691
Prefix List Commands
remark (prefix-list)
remark (prefix-list)
To write a helpful comment (remark) for an entry in either an IP Version 4 (IPv4) or IP Version 6 (IPv6)
prefix list, use the remark command in IPv4 prefix-list configuration or IPv6 prefix-list configuration modes.
To remove the remark, use the no form of this command.
Syntax Description sequence-number (Optional) Number of the remark statement in the prefix list. This number
determines the order of the statements in the prefix list. The number can be from
1 to 2147483646. (By default, the first statement is number 10, and the subsequent
statements are incremented by 10).
remark Comment that describes the entry in the prefix list, up to 255 characters long.
Release 3.6.0 The prefix for the sample output was modified.
Usage Guidelines Use the remark command to write a helpful comment for an entry in a prefix list. The remark can be up to
255 characters in length; anything longer is truncated.
If you know the sequence number of the remark you want to delete, you can remove it by entering the no
sequence-number command.
Use the resequence prefix-list ipv4 command if you want to add statements to an existing IPv4 prefix list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
692 OL-28453-05
Prefix List Commands
remark (prefix-list)
Examples In the following example, a remark is made to explain a prefix list entry:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# ipv6 prefix-list list1
RP/0/0/CPU0:router(config-ipv6-pfx)# 10 remark use from july23 forward
RP/0/0/CPU0:router(config-ipv6-pfx)#
Uncommitted changes found, commit them? [yes]: y
Related Commands
Command Description
ipv4 prefix-list, on page 685 Creates an entry in a prefix list.
resequence prefix-list ipv4, on page 694 Renumbers existing statements and increments
subsequent statements.
show prefix-list ipv4, on page 700 Displays information about a prefix list or prefix list
entries.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 693
Prefix List Commands
resequence prefix-list ipv4
base (Optional) Number of the first statement in the specified prefix list, which
determines its order in the prefix list. Maximum value is 2147483646.
increment (Optional) Number by which the base sequence number is incremented for
subsequent statements. Maximum value is 2147483646.
Command Modes
Release 3.6.0 The prefix for the sample output was modified.
Usage Guidelines The sequence number of a prefix list entry determines the order of the entries in the list. The router compares
network addresses to the prefix list entries. The router begins the comparison at the top of the prefix list, with
the entry having the lowest sequence number.
If multiple entries of a prefix list match a prefix, the entry with the lowest sequence number is considered the
real match. When a match or deny occurs, the router does not go through the rest of the prefix list.
By default, the first statement in a prefix list is sequence number 10, and the subsequent statements are
incremented by 10.
Use the resequence prefix-list ipv4 command to add a permit, deny, or remark statement between consecutive
entries in an existing IPv4 prefix list. Specify the first entry number (the base) and the increment by which
to separate the entry numbers of the statements. The software renumbers the existing statements, thereby
making room to add new statements with the unused entry numbers.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
694 OL-28453-05
Prefix List Commands
resequence prefix-list ipv4
Examples The following example shows how to display the sequence number intervals for prefix list list1, resequence
list1 from 10 to 30, and displays the resulting sequence numbers:
Related Commands
Command Description
deny (prefix-list), on page 682 Sets deny conditions for an IPv4 or IPv6 prefix list.
permit (prefix-list), on page 689 Sets permit conditions for an IPv4 or IPv6 prefix list.
remark (prefix-list), on page 692 Inserts a helpful remark about a prefix list entry.
show prefix-list ipv4, on page 700 Displays the contents of the current IPv4 prefix list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 695
Prefix List Commands
resequence prefix-list ipv6
base (Optional) Number of the first statement in the specified prefix list, which
determines its order in the prefix list. Maximum value is 2147483644.
increment (Optional) Number by which the base sequence number is incremented for
subsequent statements. Maximum value is 2147483644.
Command Modes
Release 3.6.0 The prefix for the sample output was modified.
Usage Guidelines The sequence number of a prefix list entry determines the order of the entries in the list. The router compares
network addresses to the prefix list entries. The router begins the comparison at the top of the prefix list, with
the entry having the lowest sequence number.
If multiple entries of a prefix list match a prefix, the entry with the lowest sequence number is considered the
real match. Once a match or deny occurs, the router does not go through the rest of the prefix list.
By default, the first statement in a prefix list is sequence number 10, and the subsequent statements are
incremented by 10.
Use the resequence prefix-list ipv6 command to add a permit, deny, or remark statement between consecutive
entries in an existing IPv6 prefix list. Specify the first entry number (the base) and the increment by which
to separate the entry numbers of the statements. The software renumbers the existing statements, thereby
making room to add new statements with the unused entry numbers.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
696 OL-28453-05
Prefix List Commands
resequence prefix-list ipv6
Examples The following example shows how to display the sequence number intervals for prefix list 1, resequence list1
from 10 to 30, and displays the resulting sequence numbers:
RP/0/0/CPU0:
Apr 4 02:29:39.513 :
ipv4_acl_action_edm[183]: %LIBTARCFG-6-COMMIT
: Configuration committed by user 'UNKNOWN'. Use 'show commit changes 10000000
24' to view the changes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 697
Prefix List Commands
show prefix-list
show prefix-list
To display information about a prefix list or prefix list entries, use the show prefix-list command in EXEC
mode.
Command Modes
Examples The following sample output is from the show prefix-list command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
698 OL-28453-05
Prefix List Commands
show prefix-list afi-all
Command Modes
Examples The following sample output is from the show prefix-list afi-all command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 699
Prefix List Commands
show prefix-list ipv4
Command Modes
Release 3.6.0 The summary keyword was added. The prefix for the sample output
was modified.
Usage Guidelines Use the show prefix-list ipv4 command to display the contents of all IPv4 prefix lists. To display the contents
of a specific IPv4 prefix list, use the name argument. Use the sequence-number argument to specify a given
prefix list entry. Use the summary keyword to display a summary of prefix list contents.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
700 OL-28453-05
Prefix List Commands
show prefix-list ipv4
The following example uses the list-name argument to display the prefix list named list1:
The following example uses the list-name and sequence-number argument to display a prefix list named list1
with a sequence number of 10:
Related Commands
Command Description
clear prefix-list ipv4, on page 674 Resest the hit count on an IPv4 prefix list.
show prefix-list ipv6, on page 703 Displays the contents of the current IPv6 prefix list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 701
Prefix List Commands
show prefix-list ipv4 standby
Syntax Description prefix-list name (Optional) Name of a particular IPv4 prefix list. The value of the prefix-list-name
argument is a string of alphanumeric characters that cannot include spaces or
quotation marks.
summary (Optional) Displays a summary of all current IPv4 standby prefix lists.
Command Modes
Usage Guidelines Use the show prefix-list ipv4 standby command to display the contents of current IPv4 standby prefix lists.
To display the contents of a specific IPv4 prefix list, use the name argument.
Use the show prefix-list ipv4 standby summary command to display a summary of all standby IPv4 prefix
lists.
Examples In the following example, the contents of all IPv4 access lists are displayed:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
702 OL-28453-05
Prefix List Commands
show prefix-list ipv6
Command Modes
Usage Guidelines Use the show prefix-list ipv6 command to display the contents of all IPv4 prefix lists.
To display the contents of a specific IPv6 prefix list, use the name argument. Use the sequence-number
argument to specify a given prefix list entry. Use the summary keyword to display a summary of prefix list
contents.
Examples The following example shows how to display all configured prefix lists:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 703
Prefix List Commands
show prefix-list ipv6
10 permit 2000::/24
The following example uses the list-name argument to display the prefix list named list1:
The following example uses the list-name and sequence-number argument to display a prefix list named list1
with a sequence number of 10:
Related Commands
Command Description
clear prefix-list ipv6 , on page 676 Resest the hit count on an IPv4 prefix list.
copy prefix-list ipv6 , on page 680 Creates a copy of an existing IPv6 prefix list.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
704 OL-28453-05
Transport Stack Commands
This chapter describes the Cisco IOS XR softwarecommands used to configure and monitor features related
to the transport stack (Stream Control Transmission Protocol [ SCTP], TCP, User Datagram Protocol [UDP],
and RAW ). Any IP protocol other than TCP or UDP is known as a RAW protocol.
For detailed information about transport stack concepts, configuration tasks, and examples, refer to the
Cisco IOS XR IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series Router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 705
Transport Stack Commands
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
706 OL-28453-05
Transport Stack Commands
clear nsr ncd client
Syntax Description PID value Process ID value of the client in which counters need to be cleared. The range
is from 0 to 4294967295.
location node-id (Optional) Displays information for the designated node. The node-id argument
is entered in the rack/slot/module notation.
Command Default The default value for the node-id argument is the current node in which the command is being executed. The
PID value argument does not have a default value.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
The active and standby instances of some NSR-capable applications communicate through two queues, and
these applications are multiplexed onto these queues. NSR consumer demuxer (NCD) is a process that provides
the demuxing services on the receiver side.
You can use the clear nsr ncd client command to troubleshoot traffic issues. If you clear the existing counters,
it can help you to monitor the delta changes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 707
Transport Stack Commands
clear nsr ncd client
Examples The following example shows how to clear all the counters for all NCD clients:
Related Commands
Command Description
clear nsr ncd queue, on page 709 Clears the counters for the NSR Consumer Demuxer
(NCD) queue.
show nsr ncd client, on page 740 Displays information about the clients for NSR
Consumer Demuxer (NCD).
show nsr ncd queue, on page 743 Displays information about the nonstop routing (NSR)
Consumer Queue and Dispatch (QAD) queues.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
708 OL-28453-05
Transport Stack Commands
clear nsr ncd queue
Syntax Description all Clears the counters for all the NCD queues.
location node-id (Optional) Displays information for the designated node. The node-id argument
is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following example shows how to clear the counters for all the NCD queues:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 709
Transport Stack Commands
clear nsr ncd queue
Total Accepted
Queue Packets Packets
NSR_LOW 0 0
NSR_HIGH 0 0
Related Commands
Command Description
clear nsr ncd client, on page 707 Clears the counters for the NSR Consumer Demuxer
(NCD) client.
nsr process-failures switchover, on page 735 Configures failover as a recovery action for active
instances to switch over to a standby route processor
(RP) or a distributed route processor (DRP) to
maintain nonstop routing (NSR).
show nsr ncd client, on page 740 Displays information about the clients for NSR
Consumer Demuxer (NCD).
show nsr ncd queue, on page 743 Displays information about the nonstop routing (NSR)
Consumer Queue and Dispatch (QAD) queues.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
710 OL-28453-05
Transport Stack Commands
clear raw statistics pcb
location node-id Clears statistics for the designated node. The node-id argument is entered
in the rack/slot/module notation.
Usage Guidelines Use the all keyword to clear all RAW connections. To clear a specific RAW connection, enter the protocol
control block (PCB) address of the RAW connection. Use the show raw brief command to obtain the PCB
address.
Use the location keyword and node-id argument to clear RAW statistics for a designated node.
Examples The following example shows how to clear statistics for a RAW connection with PCB address 0x80553b0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 711
Transport Stack Commands
clear raw statistics pcb
The following example shows how to clear statistics for all RAW connections:
Related Commands
Command Description
show raw brief, on page 745 Displays information about active RAW IP sockets.
show raw statistics pcb, on page 751 Displays statistics for either a single RAW connection
or all RAW connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
712 OL-28453-05
Transport Stack Commands
clear tcp nsr client
Syntax Description ccb-address Client Control Block (CCB) of the NSR client.
location node-id (Optional) Displays client information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Command Default The location defaults to the current node in which the command is executing.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
The output of the show tcp nsr client command is used to locate the CCB of the desired client.
Use the clear tcp nsr client command to gracefully bring down NSR session that are owned by one client
or all clients. In addition, the clear tcp nsr client command is used as a work around if the activity on the
sessions freezes.
Examples The following example shows that the nonstop routing (NSR) client is cleared for 0x482afacc : The two
sessions had NSR already up before executing the clear tcp nsr client command. NSR is no longer up after
executing the clear tcp nsr client command.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 713
Transport Stack Commands
clear tcp nsr client
Related Commands
Command Description
nsr process-failures switchover, on page 735 Configures failover as a recovery action for active
instances to switch over to a standby route processor
(RP) or a distributed route processor (DRP) to
maintain nonstop routing (NSR).
show tcp nsr client brief, on page 780 Displays brief information about the state of nonstop
routing (NSR) of TCP clients on different nodes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
714 OL-28453-05
Transport Stack Commands
clear tcp nsr pcb
Syntax Description pcb-address PCB address range for the specific connection information. 0 to ffffffff. For
example, the address range can be 0x482a4e20.
location node-id (Optional) Displays connection information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper task
IDs. If you suspect user group assignment is preventing you from using a command, contact your AAA
administrator for assistance.
The location keyword is used so that active and standby TCP instances are independently queried.
The output of the show tcp nsr brief command is used to locate the Protocol Control Block (PCB) of a desired
connection.
Examples The following example shows that the information for TCP connections is cleared:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 715
Transport Stack Commands
clear tcp nsr pcb
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
716 OL-28453-05
Transport Stack Commands
clear tcp nsr pcb
Related Commands
Command Description
show tcp nsr brief, on page 778 Displays the key nonstop routing (NSR) state of TCP
connections on different nodes.
show tcp nsr detail pcb, on page 784 Displays detailed information about the state of
nonstop routing (NSR) for TCP connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 717
Transport Stack Commands
clear tcp nsr session-set
Syntax Description sscb-address Session-Set Control Block (SSCB) address range for the specific session set
information. 0 to ffffffff. For example, the address range can be 0x482a4e20.
location node-id (Optional) Displays session set information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
The output of the show tcp nsr session-set brief command is used to locate the SSCB of the desired session-set.
Examples The following example shows that the information for the session sets is cleared:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
718 OL-28453-05
Transport Stack Commands
clear tcp nsr session-set
Related Commands
Command Description
show tcp nsr detail session-set, on page 787 Displays detailed information about the nonstop
routing (NSR) state of the session sets on different
nodes.
show tcp nsr session-set brief, on page 789 Displays brief information about the session sets for
the state of nonstop routing (NSR) on different nodes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 719
Transport Stack Commands
clear tcp nsr statistics client
Syntax Description ccb-address Client Control Block (CCB) of the desired client. For example, the address
range can be 0x482a4e20.
location node-id (Optional) Displays client information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper task
IDs. If you suspect user group assignment is preventing you from using a command, contact your AAA
administrator for assistance.
The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following example shows that the statistics for the NSR clients is cleared:
==============================================================
CCB: 0x482b5ee0
Name: mpls_ldp, Job ID: 365
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
720 OL-28453-05
Transport Stack Commands
clear tcp nsr statistics client
==============================================================
CCB: 0x482b5ee0
Name: mpls_ldp, Job ID: 365
Connected at: Thu Aug 16 18:20:32 2007
Related Commands
Command Description
show tcp nsr statistics client, on page 791 Displays the nonstop routing (NSR) statistics for the
client.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 721
Transport Stack Commands
clear tcp nsr statistics pcb
Syntax Description pcb-address PCB address range for the specific connection information. 0 to ffffffff. For
example, the address range can be 0x482a4e20.
location node-id (Optional) Displays connection information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following example shows that the NSR statistics for TCP connections is cleared:
==============================================================
PCB 0x482d14c8
Number of times NSR went up: 1
Number of times NSR went down: 0
Number of times NSR was disabled: 0
Number of times switch-over occured : 0
IACK RX Message Statistics:
Number of iACKs dropped because SSO is not up : 0
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
722 OL-28453-05
Transport Stack Commands
clear tcp nsr statistics pcb
==============================================================
PCB 0x482d14c8
Number of times NSR went up: 0
Number of times NSR went down: 0
Number of times NSR was disabled: 0
Number of times switch-over occured : 0
IACK RX Message Statistics:
Number of iACKs dropped because SSO is not up : 0
Number of stale iACKs dropped : 0
Number of iACKs not held because of an immediate match : 0
TX Messsage Statistics:
Data transfer messages:
Sent 0, Dropped 0, Data (Total/Avg.) 0/0
Rcvd 0
Success : 0
Dropped (Trim) : 0
Segmentation instructions:
Sent 0, Dropped 0, Units (Total/Avg.) 0/0
Rcvd 0
Success : 0
Dropped (Trim) : 0
Dropped (TCP) : 0
NACK messages:
Sent 0, Dropped 0
Rcvd 0
Success : 0
Dropped (Data snd): 0
Cleanup instructions :
Sent 0, Dropped 0
Rcvd 0
Success : 0
Dropped (Trim) : 0
Last clear at: Thu Aug 16 18:32:12 2007
Related Commands
Command Description
show tcp nsr statistics pcb, on page 793 Displays the nonstop routing (NSR) statistics for a
given Protocol Control Block (PCB).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 723
Transport Stack Commands
clear tcp nsr statistics session-set
Syntax Description sscb-address Session-Set Control Block (SSCB) address range for the specific session set
information. 0 to ffffffff. For example, the address range can be 0x482a4e20.
location node-id (Optional) Displays session set information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper task
IDs. If you suspect user group assignment is preventing you from using a command, contact your AAA
administrator for assistance.
The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following example shows that the NSR statistics for session sets is cleared:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
724 OL-28453-05
Transport Stack Commands
clear tcp nsr statistics session-set
Related Commands
Command Description
show tcp nsr statistics session-set, on page 795 Displays nonstop routing (NSR) statistics for a session
set.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 725
Transport Stack Commands
clear tcp nsr statistics summary
Syntax Description location node-id (Optional) Displays statistics summary information for the designated node.
The node-id argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following example shows how to clear the summary statistics:
Related Commands
Command Description
show tcp nsr statistics summary, on page 797 Displays the nonstop routing (NSR) summary
statistics across all TCP sessions.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
726 OL-28453-05
Transport Stack Commands
clear tcp pcb
Syntax Description pcb-address Clears the TCP connection at the specified PCB address.
location node-id Clears the TCP connection for the designated node. The node-id argument
is entered in the rack/slot/module notation.
Usage Guidelines The clear tcp pcb command is useful for clearing hung TCP connections. Use the show tcp brief, on page
770 command to find the PCB address of the connection you want to clear.
If the clear tcp pcb all command is used, the software does not clear a TCP connection that is in the listen
state. If a specific PCB address is specified, then a connection in listen state is cleared.
Examples The following example shows that the TCP connection at PCB address 60B75E48 is cleared:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 727
Transport Stack Commands
clear tcp pcb
Related Commands
Command Description
show tcp brief, on page 770 Displays the TCP summary table.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
728 OL-28453-05
Transport Stack Commands
clear tcp statistics
Syntax Description pcb all (Optional) Clears statistics for all TCP connections.
location node-id (Optional) Clears TCP statistics for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Usage Guidelines Use the clear tcp statistics command to clear TCP statistics. Use the show tcp statistics, on page 776 command
to display TCP statistics. You might display TCP statistics and then clear them before you start debugging
TCP.
The optional location keyword and node-id argument can be used to clear TCP statistics for a designated
node.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 729
Transport Stack Commands
clear tcp statistics
Related Commands
Command Description
show tcp statistics, on page 776 Displays TCP statistics.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
730 OL-28453-05
Transport Stack Commands
clear udp statistics
Syntax Description pcb all Clears statistics for all UDP connections.
location node-id Clears UDP statistics for the designated node. The node-id argument
is entered in the rack/slot/module notation.
Usage Guidelines Use the clear udp statistics command to clear UDP statistics. Use the show udp statistics, on page 805
command to display UDP statistics. You might display UDP statistics and then clear them before you start
debugging UDP.
The optional location keyword and node-id argument can be used to clear UDP statistics for a designated
node.
Examples The following example shows how to clear UDP summary statistics:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 731
Transport Stack Commands
clear udp statistics
Related Commands
Command Description
show udp statistics, on page 805 Displays UDP statistics.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
732 OL-28453-05
Transport Stack Commands
forward-protocol udp
forward-protocol udp
To configure the system to forward any User Datagram Protocol (UDP) datagrams that are received as broadcast
packets to a specified helper address, use the forward-protocol udp command in Global Configuration mode.
To restore the system to its default condition with respect to this command, use the no form of this command.
forward-protocol udp {port-number| disable| domain| nameserver| netbios-dgm| netbios-ns| tacacs| tftp}
no forward-protocol udp {port-number| disable| domain| nameserver| netbios-dgm| netbios-ns| tacacs|
tftp}
Syntax Description port-number Forwards UDP broadcast packets to a specified port number. Range is 1
to 65535.
domain Forwards UDP broadcast packets to Domain Name Service (DNS, 53).
nameserver Forwards UDP broadcast packets to IEN116 name service (obsolete, 42).
Usage Guidelines Use the forward-protocol udp command to specify that UDP broadcast packets received on the incoming
interface are forwarded to a specified helper address.
When you configure the forward-protocol udp command, you must also configure the helper-address
command to specify a helper address on an interface. The helper address is the IP address to which the UDP
datagram is forwarded. Configure the helper-address command with IP addresses of hosts or networking
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 733
Transport Stack Commands
forward-protocol udp
devices that can handle the service. Because the helper address is configured per interface, you must configure
a helper address for each incoming interface that will be receiving broadcasts that you want to forward.
You must configure one forward-protocol udp command per UDP port you want to forward. The port on
the packet is either port 53 (domain), port 69 (tftp), or a port number you specify.
The forward-protocol udp command is by default enabled on the following ports: domain, nameserver,
netbios-dgm, netbios-ns, tacacs, tftp. This feature can be disabled using the forward-protocol udp disable
command.
Examples The following example shows how to specify that all UDP broadcast packets with port 53 or port 69 received
on incoming MgmtEth interface 0/0/CPU0/0 are forwarded to 172.16.0.1. MgmtEth interface 0/0/CPU0/0
receiving the UDP broadcasts is configured with a helper address of 172.16.0.1, the destination address to
which the UDP datagrams are forwarded.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
734 OL-28453-05
Transport Stack Commands
nsr process-failures switchover
Command Default If not configured, a process failure of the active TCP or its applications (for example LDP, BGP, and so forth)
can cause sessions to go down, and NSR is not provided.
Examples The following example shows how to use the nsr process-failures switchover command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 735
Transport Stack Commands
service tcp-small-servers
service tcp-small-servers
To enable small TCP servers such as the ECHO, use the service tcp-small-servers command in Global
Configuration mode. To disable the TCP server, use the no form of this command.
no-limit (Optional) Sets no limit to the number of allowable TCP small servers.
Usage Guidelines The TCP small servers currently consist of three services: Discard (port 9), Echo (port 7), and Chargen (port
19). These services are used to test the TCP transport functionality. The Discard server receives data and
discards it. The Echo server receives data and echoes the same data to the sending host. The Chargen server
generates a sequence of data and sends it to the remote host.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
736 OL-28453-05
Transport Stack Commands
service tcp-small-servers
Examples In the following example, small IPv4 TCP servers are enabled:
Related Commands
Command Description
service udp-small-servers, on page 738 Enables small UDP servers such as the ECHO.
show cinetd services Displays the services whose processes are spawned
by cinetd.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 737
Transport Stack Commands
service udp-small-servers
service udp-small-servers
To enable small User Datagram Protocol (UDP) servers such as the ECHO, use the service udp-small-servers
command in Global Configuration mode. To disable the UDP server, use the no form of this command.
no-limit (Optional) Sets no limit to the number of allowable UDP small servers.
Usage Guidelines The UDP small servers currently consist of three services: Discard (port 9), Echo (port 7), and Chargen (port
19). These services are used to test the UDP transport functionality. The discard server receives data and
discards it. The echo server receives data and echoes the same data to the sending host. The chargen server
generates a sequence of data and sends it to the remote host.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
738 OL-28453-05
Transport Stack Commands
service udp-small-servers
Examples The following example shows how to enable small IPv6 UDP servers and set the maximum number of
allowable small servers to 10:
Related Commands
Command Description
service tcp-small-servers, on page 736 Enables small TCP servers such as the ECHO.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 739
Transport Stack Commands
show nsr ncd client
show nsr ncd client {PID value| all| brief} [location node-id]
Syntax Description PID v alue Process ID (PID) information for a specific client. The range is from 0 to
4294967295.
location node-id (Optional) Displays information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following sample output shows detailed information about all the clients:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
740 OL-28453-05
Transport Stack Commands
show nsr ncd client
The following sample output shows brief information about all the clients:
Field Description
Client PID Process ID of the client process.
Total packets received Total packets received from the partner stack on the
partner route processor (RP).
Errors in changing packet ownership NCD changes the ownership of the packet to that of
the client before queueing the packet to the client.
This counter tracks the errors, if any, in changing the
ownership.
Errors in setting application offset NCD sets the offset of the application data in the
packet before queueing the packet to the client. This
counter tracks the errors, if any, in setting this offset.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 741
Transport Stack Commands
show nsr ncd client
Related Commands
Command Description
clear nsr ncd client, on page 707 Clears the counters for the NSR Consumer Demuxer
(NCD) client.
clear nsr ncd queue, on page 709 Clears the counters for the NSR Consumer Demuxer
(NCD) queue.
show nsr ncd queue, on page 743 Displays information about the nonstop routing (NSR)
Consumer Queue and Dispatch (QAD) queues.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
742 OL-28453-05
Transport Stack Commands
show nsr ncd queue
show nsr ncd queue {all| brief| high| low} [location node-id]
Syntax Description all Displays detailed information about all the consumer queues.
high Displays information about high-priority Queue and Dispatch (QAD) queues.
location node-id (Optional) Displays information for the designated node. The node-id argument
is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following sample output shows brief information about all the consumer queues:
Total Accepted
Queue Packets Packets
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 743
Transport Stack Commands
show nsr ncd queue
Field Description
Total Packets Total number of packets that are received from the
partner stack.
Related Commands
Command Description
clear nsr ncd client, on page 707 Clears the counters for the NSR consumer demuxer
(NCD) client.
clear nsr ncd queue, on page 709 Clears the counters for the NSR consumer demuxer
(NCD) queue.
show nsr ncd client, on page 740 Displays information about the clients for NSR
consumer demuxer(NCD).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
744 OL-28453-05
Transport Stack Commands
show raw brief
Syntax Description location node-id (Optional) Displays information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Usage Guidelines Protocols such as Open Shortest Path First (OSPF) and Protocol Independent Multicast (PIM) use long-lived
RAW IP sockets. The ping and traceroute commands use short-lived RAW IP sockets. Use the show raw
brief command if you suspect a problem with one of these protocols.
Examples The following is sample output from the show raw brief command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 745
Transport Stack Commands
show raw brief
Field Description
PCB Protocol control block address. This is the address to
a structure that contains connection information such
as local address, foreign address, local port, foreign
port, and so on.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
746 OL-28453-05
Transport Stack Commands
show raw detail pcb
location node-id Displays information for the designated node. The node-id argument is
entered in the rack/slot/module notation.
Release 3.3.0 The command name was changed from show raw pcb to show raw
detail pcb .
Usage Guidelines The show raw detail pcb command displays detailed information for all connections that use the RAW
transport. Information that is displayed includes family type (for example, 2 for AF_INET also known as
IPv4), PCB address, Layer 4 (also known as transport) protocol, local address, foreign address, and any filter
that is being used.
Examples The following is sample output from the show raw detail pcb command:
==============================================================
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 747
Transport Stack Commands
show raw detail pcb
Field Description
JID Job ID of the process that created the socket.
ICMP error filter mask If an ICMP filter is being set, output in this field has
a nonzero value.
LPTS socket options If an LPTS option is being set, output in this field has
a nonzero value.
Packet Type Filters Packet filters that are being set for a particular RAW
socket, including the number of packets for that filter
type. Multiple filters can be set.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
748 OL-28453-05
Transport Stack Commands
show raw extended-filters
show raw extended-filters {interface-filter location node-id| location node-id| paktype-filter location
node-id}
Syntax Description interface-filter Displays the protocol control blocks (PCBs) with configured interface
filters.
location node-id Displays information for the designated node. The node-id argument is
entered in the rack/slot/module notation.
Release 3.3.0 The command name was changed from show raw pcb to show raw
extended-filters .
Usage Guidelines The show raw extended-filters command displays detailed information for all connections that use the RAW
transport. Information that is displayed includes family type (for example, 2 for AF_INET also known as
IPv4), PCB address, Layer 4 (also known as transport) protocol, local address, foreign address, and any filter
that is being used.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 749
Transport Stack Commands
show raw extended-filters
Examples The following is sample output from the show raw extended-filters command:
Field Description
JID Job ID of the process that created the socket.
ICMP error filter mask If an ICMP filter is being set, output in this field has
a nonzero value.
LPTS socket options If an LPTS option is being set, output in this field has
a nonzero value.
Packet Type Filters Packet filters that are being set for a particular RAW
socket, including the number of packets for that filter
type. Multiple filters can be set.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
750 OL-28453-05
Transport Stack Commands
show raw statistics pcb
location node-id Displays RAW statistics for the designated node. The node-id argument
is entered in the rack/slot/module notation.
Usage Guidelines Use the all keyword to display all RAW connections. If a specific RAW connection is desired, then enter the
protocol control block (PCB) address of that RAW connection. Use the show raw brief command to obtain
the PCB address.
Use the location keyword and node-id argument to display RAW statistics for a designated node.
Examples In the following example, statistics for a RAW connection with PCB address 0x80553b0 are displayed:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 751
Transport Stack Commands
show raw statistics pcb
Field Description
Send: Statistics in this section refer to packets sent from an
application to RAW.
xipc pulse received from application Number of notifications sent from applications to
RAW.
packets failed getting queued to network Number of packets that failed to get queued to the
network.
packets failed queued to application Number of packets that failed to get queued to an
application.
Related Commands
Command Description
clear raw statistics pcb, on page 711 Clears statistics for either a single RAW connection
or for all RAW connections.
show raw brief, on page 745 Displays information about active RAW IP sockets.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
752 OL-28453-05
Transport Stack Commands
show sctp association brief
Syntax Description all Displays all association information for the SCTP PCB in the current node.
pcb address Displays all the associations for the PCB address, endpoint, or both.
location node-id (Optional) Displays information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper task
IDs. If you suspect user group assignment is preventing you from using a command, contact your AAA
administrator for assistance.
The PCB address, which is used for this command, is obtained from the show sctp pcb brief, on page 761
command with the all keyword.
Examples The following sample output is from the show sctp association brief command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 753
Transport Stack Commands
show sctp association brief
----------------------------------------------------------------------------
0x4c6c35ee 0x60000000 5000 0xbaba612f 0x100000 0x0 OPEN
Field Description
Asoc ID Association ID for the mentioned association.
Related Commands
Command Description
show sctp association detail, on page 755 Displays detailed statistics that have accumulated for
the specified Stream Control Transmission Protocol
(SCTP) association.
show sctp pcb brief, on page 761 Displays brief Stream Control Transmission Protocol
(SCTP) endpoint Protocol Control Block (PCB)
information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
754 OL-28453-05
Transport Stack Commands
show sctp association detail
location node-id (Optional) Displays detailed association information for the designated
node. The node-id argument is entered in the rack/slot/module notation.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper task
IDs. If you suspect user group assignment is preventing you from using a command, contact your AAA
administrator for assistance.
Examples The following sample output is from the show sctp association detail command:
PCB 0x4834e088, Asoc 0x4c6c35ee, lport 56100, rport 5000, vrf 0x60000000, state OPEN
Local addrs 0, remote addrs 2, mtu 1500, v4 addr legal yes, v6 addr legal no
Vtag 0x4c6c35ee, Peer vtag 0xa65a0cf0, Vtag nonce 0xce545ca9, Peer vtag nonce 0x
c4b5e813
Pdapi ppid 0x0, context 0x0 refcount 0
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 755
Transport Stack Commands
show sctp association detail
ASCONF: seqout 3132776750, seqin 166718713, STRRST: seqout 3132776750, seqin 1667187 14
Last strseq recv 0, last stream num recv 0
PeerRwnd 1048576, MyRwnd 1048576, Last reported rwnd 0, Rwnd ctrl len 0
InitialRTOMax 60000, InitialRTO 3000, MinRTO 1000, MaxRTO 60000
Last stream num of pdapi 0, Last ssn of pdapi 0, Last tsn of pd api 0
Stream locked 0, Stream lock num 0
Field Description
PCB Protocol Control Block ID.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
756 OL-28453-05
Transport Stack Commands
show sctp association detail
Field Description
v6 addr legal Attached IPv6 addresses are valid.
Last reported rwnd Last reported receiver window size of current node.
Rwnd ctrl len Shadow of stream buffer message and buffer count
that is used for receiver window control.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 757
Transport Stack Commands
show sctp association detail
Field Description
Last stream num of pdapi Stream number of the last delivered chunk for the
partial delivery API.
Last ssn of pdapi SSN of the last delivered chunk for the partial delivery
API.
Stream lock num Lock flag of 0 and is ok to send. The value of 1+,
duals as a retransmission count, and is awaiting
acknowledgement.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
758 OL-28453-05
Transport Stack Commands
show sctp association detail
Field Description
SACK freq Frequency of selective acknowledgements.
Timeout init, Timeout data, Timeout sack, Timeout Mapping array used to track out-of-order sequences
shutdown, Timeout shutdownack, Timeout heartbeat, above the last_acked_seq. The value of 0 indicates
Timeout cookie that the packet is missing. The value of 1 indicates
that the packet is received. The packet rises up every
time it is raised to last_acked_seq, and 0 trailing
locations are out. If a TSN above the array is
mappingArrayS, the datagram is discarded and a
retransmit is allowed to happen.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 759
Transport Stack Commands
show sctp association detail
Field Description
Overall error cnt Total error count on this association.
Related Commands
Command Description
show sctp association brief, on page 753 Displays brief association information for Stream
Control Transmission Protocol (SCTP).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
760 OL-28453-05
Transport Stack Commands
show sctp pcb brief
location node-id (Optional) Displays information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Usage Guidelines The output from the show sctp pcb brief command is used for the show sctp association brief, on page 753
command.
Examples The following sample output is from the show sctp pcb brief command for the all keyword:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 761
Transport Stack Commands
show sctp pcb brief
Field Description
PCB Protocol Control Block ID.
Related Commands
Command Description
show sctp association brief, on page 753 Displays brief association information for Stream
Control Transmission Protocol (SCTP).
show sctp pcb detail, on page 763 Displays detailed Stream Control Transmission
Protocol (SCTP) endpoint Protocol Control Block
(PCB) information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
762 OL-28453-05
Transport Stack Commands
show sctp pcb detail
Syntax Description pcb-address PCB address range for the specific PCB of interest is from 0 to ffffffff. For
example, the address range can be 0x807e89c.
location node-id (Optional) Displays information for the designated node. The node-id argument
is entered in the rack/slot/module notation.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper task
IDs. If you suspect user group assignment is preventing you from using a command, contact your AAA
administrator for assistance.
Examples The following sample output is from the show sctp pcb detail command for the PCB address of 0x4834e088:
PCB: 0x4834e088, NON-PAW socket: 0x4834dee8, vrf: 0x60000000, local Port: 56100
Total VRFs: 1, VRF size: 4
Local address 0, assocations: 1
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 763
Transport Stack Commands
show sctp pcb detail
Field Description
Flags Bitmask of flags set for the PCB.
Related Commands
Command Description
show sctp pcb brief, on page 761 Displays brief Stream Control Transmission Protocol
(SCTP) endpoint Protocol Control Block (PCB)
information.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
764 OL-28453-05
Transport Stack Commands
show sctp statistics
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper task
IDs. If you suspect user group assignment is preventing you from using a command, contact your AAA
administrator for assistance.
The statistics displayed are for the current node.
Examples The following sample output shows SCTP statistics from the show sctp statistics command:
Input Statistics:
1979 total input packets
1979 total input datagrams
10 total packets that had data
10 total input SACK chunks
10 total input DATA chunks
2 total input duplicate DATA chunks
1000 total input HB chunks
910 total input HB-ACK chunks
0 total input ECNE chunks
0 total input AUTH chunks
0 total input chunks missing AUTH
0 total number of invalid HMAC ids received
0 total number of invalid secret ids received
0 total number of auth failed
0 total fast path receives all one chunk
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 765
Transport Stack Commands
show sctp statistics
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
766 OL-28453-05
Transport Stack Commands
show sctp statistics
Field Description
Input Statistics Cumulative total of all the input packets, datagrams,
and so forth.
Related Commands
Command Description
show sctp summary, on page 768 Displays summary information for Stream Control
Transmission Protocol (SCTP) on a node.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 767
Transport Stack Commands
show sctp summary
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper task
IDs. If you suspect user group assignment is preventing you from using a command, contact your AAA
administrator for assistance.
The statistics displayed are for the current node.
Examples The following sample output is from the show sctp summary command:
PCB Summary
-------------
Total End Points : 11
Total Associations : 20
Total Local Addresses : 0
Total Remote Addresses : 40
Total chunk count : 54
Total Readq count : 0
Total chunk frees : 54
Total Output Stream queues : 0
Other Summary
-------------
Total VRFs : 1
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
768 OL-28453-05
Transport Stack Commands
show sctp summary
Total IFAs : 3
Total IFNs : 3
Field Description
Total End Points Total number of logical senders or receivers of SCTP
packets.
Related Commands
Command Description
show sctp statistics, on page 765 Displays the overall statistics counts for the Stream
Control Transmission Protocol (SCTP) activity.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 769
Transport Stack Commands
show tcp brief
Syntax Description location node-id Displays information for the designated node. The node-id argument is
entered in the rack/slot/module notation.
Examples The following is sample output from the show tcp brief command:
Field Description
TCPCB Memory address of the TCP control block.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
770 OL-28453-05
Transport Stack Commands
show tcp brief
Field Description
Recv-Q Number of bytes waiting to be read.
Related Commands
Command Description
clear tcp pcb, on page 727 Clears the TCP connection.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 771
Transport Stack Commands
show tcp detail
Examples The following is sample output from the show tcp detail pcb all command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
772 OL-28453-05
Transport Stack Commands
show tcp detail
AckHold 0 0 0
KeepAlive 0 0 0
PmtuAger 0 0 0
GiveUp 0 0 0
Throttle 0 0 0
iss: 0 snduna: 0 sndnxt: 0
sndmax: 0 sndwnd: 0 sndcwnd: 1073725440
irs: 0 rcvnxt: 0 rcvwnd: 16384 rcvadv: 0
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 773
Transport Stack Commands
show tcp extended-filters
Syntax Description location node-id Displays information for the designated node. The node-id argument is
entered in the rack/slot/module notation.
Examples The following is sample output from the show tcp extended-filters command for a specific location
(0/0/CPU0):
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
774 OL-28453-05
Transport Stack Commands
show tcp extended-filters
-----------------------------------
JID: 135
Family: 2
PCB: 0x4826dd8c
L4-proto: 6
Lport: 23
Fport: 59162
Laddr: 12.31.22.10
Faddr: 223.255.254.254
ICMP error filter mask: 0x12
LPTS options: 0x00000000
-----------------------------------
-----------------------------------
JID: 135
Family: 2
PCB: 0x4826cac0
L4-proto: 6
Lport: 23
Fport: 59307
Laddr: 12.31.22.10
Faddr: 223.255.254.254
ICMP error filter mask: 0x12
LPTS options: 0x00000000
-----------------------------------
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 775
Transport Stack Commands
show tcp statistics
Syntax Description pcb pcb-address (Optional) Displays detailed statistics for a specified connection.
location node-id (Optional) Displays statistics for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Examples The following is sample output from the show tcp statistics command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
776 OL-28453-05
Transport Stack Commands
show tcp statistics
Field Description
vrfid VPN routing and forwarding (VRF) identification
(vrfid) number.
Related Commands
Command Description
clear tcp statistics, on page 729 Clears TCP statistics.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 777
Transport Stack Commands
show tcp nsr brief
Syntax Description location node-id (Optional) Displays information for all TCP sessions for the designated node.
The node-id argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following sample output shows the administrative and operational NSR state of each TCP session in the
NSR column:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
778 OL-28453-05
Transport Stack Commands
show tcp nsr brief
5.1.1.2:37434 Down No
0x482d98c8
5.1.1.1:646
5.1.1.2:37895 Down No
0x482d6018
5.1.1.1:646
5.1.1.2:50616 Down No
0x482c7f08
5.1.1.1:646
5.1.1.2:55860 Down No
0x482dbab0
5.1.1.1:646
5.1.1.2:56656 Down No
0x482d7394
5.1.1.1:646
5.1.1.2:57365 Down No
0x482d854c
5.1.1.1:646
5.1.1.2:59927 Down No
Field Description
PCB Protocol Control Block (PCB).
Related Commands
Command Description
clear tcp nsr pcb, on page 715 Brings the NSR down on a specified connection or
all connections.
show tcp nsr client brief, on page 780 Displays brief information about the state of nonstop
routing (NSR) for the TCP clients on different nodes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 779
Transport Stack Commands
show tcp nsr client brief
Syntax Description location node-id (Optional) Displays brief client information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following sample output is from the show tcp nsr client brief command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
780 OL-28453-05
Transport Stack Commands
show tcp nsr client brief
Table 95: show tcp nsr client brief Command Field Descriptions
Field Description
CCB Client Control Block (CCB). Unique ID to identify
the client.
Sessions/NSR Up Sessions Total sessions in the set versus the number of the
sessions in which NSR is up.
Related Commands
Command Description
clear tcp nsr client, on page 713 Clears detailed information about the nonstop routing
(NSR) clients.
show tcp nsr brief, on page 778 Displays the key nonstop routing (NSR) state of TCP
connections on different nodes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 781
Transport Stack Commands
show tcp nsr detail client
Syntax Description ccb-address Client Control Block (CCB) address range for the specific client information.
0 to ffffffff. For example, the address range can be 0x482a4e20.
location node-id (Optional) Displays client information for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following sample output shows detailed information for all clients:
============================================================
CCB 0x482b25d8, Proc Name mpls_ldp
Instance ID 1, Job ID 360
Number of session-sets 2
Number of sessions 3
Number of NSR Synced sessions 1
Connected at: Sun Jun 10 07:05:31 2007
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
782 OL-28453-05
Transport Stack Commands
show tcp nsr detail client
============================================================
CCB 0x4827fd30, Proc Name mpls_ldp
Instance ID 2, Job ID 361
Number of session-sets 1
Number of sessions 2
Number of NSR Synced sessions 2
Connected at: Sun Jun 10 07:05:54 2007
Registered for notifications: Yes
============================================================
============================================================
CCB 0x482bf378, Proc Name mpls_ldp
Instance ID 1, Job ID 360
Number of session-sets 1
Number of sessions 1
Number of NSR Synced sessions 1
Connected at: Sun Jun 10 07:05:41 2007
Registered for notifications: Yes
============================================================
CCB 0x482bd32c, Proc Name mpls_ldp
Instance ID 2, Job ID 361
Number of session-sets 1
Number of sessions 2
Number of NSR Synced sessions 2
Connected at: Sun Jun 10 07:06:01 2007
Registered for notifications: Yes
Related Commands
Command Description
show tcp nsr detail pcb, on page 784 Displays detailed information about the nonstop
routing (NSR) state of TCP connections.
show tcp nsr detail session-set, on page 787 Displays the detailed information about the nonstop
routing (NSR) state of the session sets on different
nodes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 783
Transport Stack Commands
show tcp nsr detail pcb
Syntax Description pcb-address PCB address range for the specific connection information. 0 to ffffffff. For
example, the address range can be 0x482c6b8c.
location node-id (Optional) Displays connection information for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following sample output shows the complete details for NSR for all locations:
==============================================================
PCB 0x482b6b0c, VRF Id 0x60000000, Client PID: 2810078
Local host: 5.1.1.1, Local port: 646
Foreign host: 5.1.1.2, Foreign port: 31466
SSCB 0x482bc80c, Client PID 2810078
Node Role: Active, Protected by: 0/1/CPU0, Cookie: 0x00001000
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
784 OL-28453-05
Transport Stack Commands
show tcp nsr detail pcb
==============================================================
PCB 0x482c2920, VRF Id 0x60000000, Client PID: 2810078
Local host: 5.1.1.1, Local port: 646
Foreign host: 5.1.1.2, Foreign port: 11229
SSCB 0x482bb3bc, Client PID 2810078
Node Role: Active, Protected by: 0/1/CPU0, Cookie: 0x00001000
==============================================================
PCB 0x482baea0, VRF Id 0x60000000, Client PID: 2810078
Local host: 5.1.1.1, Local port: 646
Foreign host: 5.1.1.2, Foreign port: 41149
SSCB 0x482bb3bc, Client PID 2810078
Node Role: Active, Protected by: 0/1/CPU0, Cookie: 0x00001000
==============================================================
PCB 0x482c35ac, VRF Id 0x60000000, Client PID: 2859233
Local host: 5:1::1, Local port: 8889
Foreign host: 5:1::2, Foreign port: 14008
SSCB 0x4827fea8, Client PID 2859233
Node Role: Active, Protected by: 0/1/CPU0, Cookie: 0x0000001c
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 785
Transport Stack Commands
show tcp nsr detail pcb
==============================================================
PCB 0x482c2f10, VRF Id 0x60000000, Client PID: 2859233
Local host: 5:1::1, Local port: 8889
Foreign host: 5:1::2, Foreign port: 40522
SSCB 0x4827fea8, Client PID 2859233
Node Role: Active, Protected by: 0/1/CPU0, Cookie: 0x0000001b
Related Commands
Command Description
clear tcp nsr pcb, on page 715 Brings the NSR down on a specified connection or
all connection.
show tcp nsr detail client, on page 782 Displays detailed information about the nonstop
routing (NSR) clients.
show tcp nsr detail session-set, on page 787 Displays the detailed information about the nonstop
routing (NSR) state of the session sets on different
nodes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
786 OL-28453-05
Transport Stack Commands
show tcp nsr detail session-set
Syntax Description sscb-address Session-Set Control Block (SSCB) address range for the specific session set
information. 0 to ffffffff. For example, the address range can be 0x482c6b8c.
location node-id (Optional) Displays information for session sets for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following sample output shows all the session sets:
==============================================================
SSCB 0x482bc80c, Client PID: 2810078
Set Id: 1, Addr Family: IPv4
Role: Active, Protected by: 0/1/CPU0, Well known port: 646
Sessions: total 1, synchronized 1
Initial sync in progress: No
Sequence number of last or current initial sync: 1181461961
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 787
Transport Stack Commands
show tcp nsr detail session-set
==============================================================
SSCB 0x482bb3bc, Client PID: 2810078
Set Id: 2, Addr Family: IPv4
Role: Active, Protected by: 0/1/CPU0, Well known port: 646
Sessions: total 2, synchronized 0
Initial sync in progress: Yes
Sequence number of last or current initial sync: 1181476338
Initial sync timer expires in 438517602 msec
Number of sessions in the initial sync: 2
Number of sessions already synced: 0
Number of sessions that failed to sync: 0
Initial sync started at: Sun Jun 10 11:52:18 2007
==============================================================
SSCB 0x4827fea8, Client PID: 2859233
Set Id: 1, Addr Family: IPv6
Role: Active, Protected by: 0/1/CPU0, Well known port: 8889
Sessions: total 2, synchronized 2
Initial sync in progress: No
Sequence number of last or current initial sync: 1181474373
Number of sessions in the initial sync: 2
Number of sessions already synced: 2
Number of sessions that failed to sync: 0
Initial sync started at: Sun Jun 10 11:19:33 2007
Initial sync ended at: Sun Jun 10 11:19:33 2007
Related Commands
Command Description
clear tcp nsr session-set, on page 718 Clears information about session sets.
show tcp nsr detail client, on page 782 Displays detailed information about the nonstop
routing (NSR) clients.
show tcp nsr detail pcb, on page 784 Displays detailed information about the nonstop
routing (NSR) state of TCP connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
788 OL-28453-05
Transport Stack Commands
show tcp nsr session-set brief
Syntax Description location node-id (Optional) Displays information for session sets for the designated node. The
node-id argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
A session set consists of a subset of the application’s session in which the subset is protected by only one
standby node. The TCP NSR state machine operates with respect to these session sets.
Examples The following sample output shows all the session sets that are known to the TCP instance:
The following sample output shows brief information about the session sets for location 0/1/CPU0:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 789
Transport Stack Commands
show tcp nsr session-set brief
Table 96: show tcp nsr session-set brief Command Field Descriptions
Field Description
SSCB Unique ID for Session-Set Control Block (SSCB) to
identify a session-set of a client.
Related Commands
Command Description
clear tcp nsr session-set, on page 718 Clears information about session sets.
show tcp nsr detail session-set, on page 787 Displays the detailed information about the nonstop
routing (NSR) state of the session sets on different
nodes.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
790 OL-28453-05
Transport Stack Commands
show tcp nsr statistics client
Syntax Description ccb-address Client Control Block (CCB) address range for the specific statistics information
for the client. 0 to ffffffff. For example, the address range can be 0x482c6b8c.
location node-id (Optional) Displays statistics for the client for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following sample output shows all the statistics for the client:
============================================================
CCB: 0x482b25d8
Name: mpls_ldp, Job ID: 360
Connected at: Thu Jan 1 00:00:00 1970
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 791
Transport Stack Commands
show tcp nsr statistics client
============================================================
CCB: 0x4827fd30
Name: mpls_ldp, Job ID: 361
Connected at: Sun Jun 10 07:05:54 2007
Related Commands
Command Description
clear tcp nsr statistics client, on page 720 Clears the nonstop routing (NSR) statistics of the
client.
show tcp nsr statistics pcb, on page 793 Displays the nonstop routing (NSR) statistics for a
given Protocol Control Block (PCB).
show tcp nsr statistics session-set, on page 795 Displays the nonstop routing (NSR) statistics for a
session set.
show tcp nsr statistics summary, on page 797 Displays the nonstop routing (NSR) summary
statistics across all TCP sessions.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
792 OL-28453-05
Transport Stack Commands
show tcp nsr statistics pcb
Syntax Description pcb-address PCB address range for the specific connection information. 0 to ffffffff. For
example, the address range can be 0x482c6b8c.
location node-id (Optional) Displays connection statistics for the designated node. The node-id
argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
==============================================================
PCB 0x482b6b0c
Number of times NSR went up: 0
Number of times NSR went down: 0
Number of times NSR was disabled: 0
Number of times fail-over occured : 0
Last clear at: Sun Jun 10 13:55:35 2007
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 793
Transport Stack Commands
show tcp nsr statistics pcb
==============================================================
PCB 0x482c2920
Number of times NSR went up: 2
Number of times NSR went down: 2
Number of times NSR was disabled: 0
Number of times fail-over occured : 0
Last clear at: Never Cleared
==============================================================
PCB 0x482baea0
Number of times NSR went up: 2
Number of times NSR went down: 2
Number of times NSR was disabled: 0
Number of times fail-over occured : 0
Last clear at: Never Cleared
==============================================================
PCB 0x482c35ac
Number of times NSR went up: 4
Number of times NSR went down: 2
Number of times NSR was disabled: 1
Number of times fail-over occured : 0
Last clear at: Never Cleared
==============================================================
PCB 0x482c2f10
Number of times NSR went up: 4
Number of times NSR went down: 2
Number of times NSR was disabled: 1
Number of times fail-over occured : 0
Last clear at: Never Cleared
Related Commands
Command Description
clear tcp nsr statistics pcb, on page 722 Clears the nonstop routing (NSR) statistics for TCP
connections.
show tcp nsr statistics client, on page 791 Displays the nonstop routing (NSR) statistics for the
clients.
show tcp nsr statistics session-set, on page 795 Displays the nonstop routing (NSR) statistics for a
session set.
show tcp nsr statistics summary, on page 797 Displays the nonstop routing (NSR) summary
statistics across all TCP sessions.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
794 OL-28453-05
Transport Stack Commands
show tcp nsr statistics session-set
Syntax Description sscb-address Session-Set Control Block (SSCB) address range for the specific session set
information for the statistics. 0 to ffffffff. For example, the address range can be
0x482b3444.
location node-id (Optional) Displays session set information for the statistics for the designated
node. The node-id argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following sample output shows all session set information for the statistics:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 795
Transport Stack Commands
show tcp nsr statistics session-set
Related Commands
Command Description
clear tcp nsr statistics session-set, on page 724 Clears the nonstop routing (NSR) statistics for session
sets.
show tcp nsr statistics client, on page 791 Displays the nonstop routing (NSR) statistics for the
clients.
show tcp nsr statistics pcb, on page 793 Displays the nonstop routing (NSR) statistics for a
given Protocol Control Block (PCB).
show tcp nsr statistics summary, on page 797 Displays the nonstop routing (NSR) summary
statistics across all TCP sessions.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
796 OL-28453-05
Transport Stack Commands
show tcp nsr statistics summary
Syntax Description location node-id (Optional) Displays information for the summary statistics for the designated
node. The node-id argument is entered in the rack/slot/module notation.
Command Default If a value is not specified, the current RP in which the command is being executed is taken as the location.
Usage Guidelines The location keyword is used so that active and standby TCP instances are independently queried.
Examples The following sample output shows the summary statistics for all TCP sessions:
=====================Summary Stats========================
The last clear at Thu Jan 1 00:00:00 1970
Notif Statistic:
Queued Failed Delivered Dropped
Init-sync Done : 3 0 3 0
Replicated Session Ready: 0 0 0 0
Operational Down : 8 0 8 0
QAD Msg Statistic:
Number of dropped messages from partner TCP stack(s) : 0
Number of unknown messages from partner TCP stack(s) : 0
Number of messages accepted from partner TCP stack(s) : 31
Number of messages sent to partner TCP stack(s) : 0
Number of messages failed to be sent to partner TCP stack(s): 0
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 797
Transport Stack Commands
show tcp nsr statistics summary
Related Commands
Command Description
clear tcp nsr statistics summary, on page 726 Clears the statistics summary.
show tcp nsr statistics client, on page 791 Displays the nonstop routing (NSR) statistics for the
clients.
show tcp nsr statistics pcb, on page 793 Displays the nonstop routing (NSR) statistics for a
given Protocol Control Block (PCB).
show tcp nsr statistics session-set, on page 795 Displays the nonstop routing (NSR) statistics for a
session set.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
798 OL-28453-05
Transport Stack Commands
show udp brief
Syntax Description location node-id Displays information for the designated node. The node-id argument is
entered in the rack/slot/module notation.
Examples The following is sample output from the show udp brief command:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 799
Transport Stack Commands
show udp brief
Field Description
PCB Protocol control block address. This is the address to
a structure that contains connection information such
as local address, foreign address, local port, foreign
port, and so on.
Related Commands
Command Description
show tcp brief, on page 770 Displays details of TCP connections.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
800 OL-28453-05
Transport Stack Commands
show udp detail pcb
location node-id Displays information for the designated node. The node-id argument is
entered in the rack/slot/module notation.
Release 3.3.0 The command name was changed from show udp pcb to s how udp
detail pcb .
Examples The following is sample output from the show udp detail pcb all command:
===============================================
PCB is 0x4822fea0, Family: 2, VRF: 0x60000000
Local host: 0.0.0.0:3784
Foreign host: 0.0.0.0:0
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 801
Transport Stack Commands
show udp detail pcb
Field Description
PCB Protocol control block address.
Current send queue size Size of the send queue (in bytes).
Current receive queue size Size of the receive queue (in bytes).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
802 OL-28453-05
Transport Stack Commands
show udp extended-filters
Syntax Description location node-id Displays information for the designated node. The node-id argument is
entered in the rack/slot/module notation.
Examples The following is sample output from the show udp extended-filters command for a specific location
(0/0/CPU0):
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 803
Transport Stack Commands
show udp extended-filters
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
804 OL-28453-05
Transport Stack Commands
show udp statistics
location node-id Displays information for the designated node. The node-id argument
is entered in the rack/slot/module notation.
Usage Guidelines UDP clones the received packets if there are multiple multicast applications that are interested in receiving
those packets.
Examples The following is sample output from the show udp statistics summary command:
UDP statistics:
Rcvd: 0 Total, 0 drop, 0 no port
0 checksum error, 0 too short
Sent: 0 Total, 0 error
0 Total forwarding broadcast packets
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 805
Transport Stack Commands
show udp statistics
Field Description
Rcvd: Total Total number of packets received.
Rcvd: too short Total number of packets received that are too short
for UDP packets.
Total forwarding broadcast packets Total number of packets forwarded to the helper
address.
Related Commands
Command Description
clear udp statistics, on page 731 Clears UDP statistics.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
806 OL-28453-05
Transport Stack Commands
tcp mss
tcp mss
To configure the TCP maximum segment size that determines the size of the packet that TCP uses for sending
data, use the tcp mss command in Global Configuration mode.
Syntax Description segment-size Size, in bytes, of the packet that TCP uses to send data. Range is 68 to 10000
bytes.
Command Default If this configuration does not exist, TCP determines the maximum segment size based on the settings specified
by the application process, interface maximum transfer unit (MTU), or MTU received from Path MTU
Discovery.
Examples This example shows how to configure the TCP maximum segment size:
Configuration committed by user 'lab'. Use 'show commit changes 1000000596' to view the
changes.
RP/0/0/CPU0:routerSep 8 18:29:51.209 : config[65700]: %SYS-5-CONFIG_I : Configured from
console by lab
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 807
Transport Stack Commands
tcp path-mtu-discovery
tcp path-mtu-discovery
To allow TCP to automatically detect the highest common maximum transfer unit (MTU) for a connection,
use the tcp path-mtu-discovery in Global Configuration mode. To reset the default, use the no form of this
command.
Syntax Description age-timer minutes (Optional) Specifies a value in minutes. Range is 10 to 30.
Usage Guidelines Use the tcp path-mtu-discovery command to allow TCP to automatically detect the highest common MTU
for a connection, such that when a packet traverses between the originating host and the destination host the
packet is not fragmented and then reassembled.
The age timer value is in minutes, with a default value of 10 minutes. The age timer is used by TCP to
automatically detect if there is an increase in MTU for a particular connection. If the infinite keyword is
specified, the age timer is turned off.
Examples The following example shows how to set the age timer to 20 minutes:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
808 OL-28453-05
Transport Stack Commands
tcp selective-ack
tcp selective-ack
To enable TCP selective acknowledgment (ACK) and identify which segments in a TCP packet have been
received by the remote TCP, use the tcp selective-ack command in Global Configuration mode. To reset the
default, use the no form of this command.
tcp selective-ack
no tcp selective-ack
Usage Guidelines If TCP Selective ACK is enabled, each packet contains information about which segments have been received
by the remote TCP. The sender can then resend only those segments that are lost. If selective ACK is disabled,
the sender receives no information about missing segments and automatically sends the first packet that is not
acknowledged and then waits for the other TCP to respond with what is missing from the data stream. This
method is inefficient in Long Fat Networks (LFN), such as high-speed satellite links in which the bandwidth
* delay product is large and valuable bandwidth is wasted waiting for retransmission.
Related Commands
Command Description
tcp timestamp, on page 812 Measures the round-trip time of a packet.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 809
Transport Stack Commands
tcp selective-ack
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
810 OL-28453-05
Transport Stack Commands
tcp synwait-time
tcp synwait-time
To set a period of time the software waits while attempting to establish a TCP connection before it times out,
use the tcp synwait-time command in Global Configuration mode. To restore the default time, use the no
form of this command.
Syntax Description seconds Time (in seconds) the software waits while attempting to establish a TCP
connection. Range is 5 to 30 seconds.
Examples The following example shows how to configure the software to continue attempting to establish a TCP
connection for 18 seconds:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 811
Transport Stack Commands
tcp timestamp
tcp timestamp
To more accurately measure the round-trip time of a packet, use the tcp timestamp command inGlobal
Configuration mode. To reset the default, use the no form of this command.
tcp timestamp
no tcp timestamp
Usage Guidelines Use the tcp timestamp command to more accurately measure the round-trip time of a packet. If a time stamp
is not used, a TCP sender deduces the round-trip time when an acknowledgment of its packet is received,
which is not a very accurate method because the acknowledgment can be delayed, duplicated, or lost. If a
time stamp is used, each packet contains a time stamp to identify packets when acknowledgments are received
and the round-trip time of that packet.
This feature is most useful in Long Fat Network (LFN) where the bandwidth * delay product is long.
Examples The following example shows how to enable the timestamp option:
Related Commands
Command Description
tcp selective-ack, on page 809 Enables the TCP selective acknowledgment feature.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
812 OL-28453-05
Transport Stack Commands
tcp window-size
tcp window-size
To alter the TCP window size, use the tcp window-size command in Global Configuration mode. To restore
the default value, use the no form of this command.
Syntax Description bytes Window size in bytes. Range is 2048 to 65535 bytes.
Command Default The default value for the window size is 16k.
Usage Guidelines
Note Do not use this command unless you clearly understand why you want to change the default value.
Examples The following example shows how to set the TCP window size to 3000 bytes:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 813
Transport Stack Commands
tcp window-size
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
814 OL-28453-05
VRRP Commands
This document describes the Cisco IOS XR software commands used to configure and monitor the Virtual
Router Redundancy Protocol (VRRP ).
For detailed information about VRRP concepts, configuration tasks, and examples, refer to the Cisco IOS XR
IP Addresses and Services Configuration Guide for the Cisco XR 12000 Series Router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 815
VRRP Commands
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
816 OL-28453-05
VRRP Commands
accept-mode
accept-mode
To disable the installation of routes for the Virtual Router Redundancy Protocol (VRRP) virtual addresses,
use the accept-mode command in the VRRP virtual router submode. To enable the installation of routes for
the VRRP virtual addresses, use the no form of this command.
accept-mode disable
no accept-mode disable
Examples This example shows how to disable the installation of routes for the VRRP virtual addresses:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface TenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-address-family)# vrrp 3 version 2
RP/0/0/CPU0:router(config-vrrp-virtual-router)# accept-mode disable
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 817
VRRP Commands
accept-mode
Related Commands
Command Description
address (VRRP), on page 823 Sets the primary virtual IPv4 address for a virtual
router.
address global, on page 825 Configures the global virtual IPv6 address for a virtual
router.
address linklocal, on page 827 Sets the virtual link-local IPv6 address for a virtual
router.
address secondary, on page 829 Sets the secondary virtual IPv4 address for a virtual
router.
message state disable, on page 840 Disables the task of logging the VRRP state change
events.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
818 OL-28453-05
VRRP Commands
accept-mode(slave)
accept-mode(slave)
To disable the installation of routes for the Virtual Router Redundancy Protocol (VRRP) virtual addresses,
use the accept-mode command in the VRRP slave submode. To enable the installation of routes for the VRRP
virtual addresses, use the no form of this command.
accept-mode disable
no accept-mode disable
Examples This example shows how to disable the installation of routes for the VRRP virtual addresses:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-address-family)# vrrp 3 slave
RP/0/0/CPU0:router(config-vrrp-virtual-router)# accept-mode disable
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 819
VRRP Commands
accept-mode(slave)
Related Commands
Command Description
accept-mode, on page 817 Disable the installation of routes for the Virtual
Router Redundancy Protocol (VRRP) virtual
addresses.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
820 OL-28453-05
VRRP Commands
address-family
address-family
To enable address-family mode, use the address-family command in interface configuration mode. To
terminate address-family mode, use the no form of this command.
RP/0/0/CPU0:router # config
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
Related Commands
Command Description
interface (VRRP), on page 838 Enables VRRP interface configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 821
VRRP Commands
address-family
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
822 OL-28453-05
VRRP Commands
address (VRRP)
address (VRRP)
To configure the primary virtual IPv4 address for a virtual router, use the address command in the Virtual
Router Redundancy Protocol (VRRP) virtual router submode. To deconfigure the primary virtual IPv4 address
for the virtual router, use the no form of this command.
address address
no address address
Examples This example shows how to set the primary virtual IPv4 address for the virtual router:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface TenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-address-family)# vrrp 3 version 3
RP/0/0/CPU0:router(config-vrrp-virtual-router)# address 192.168.18.1
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 823
VRRP Commands
address (VRRP)
Related Commands
Command Description
accept-mode, on page 817 Disables the installation of routes for the VRRP
virtual addresses.
address global, on page 825 Configures the global virtual IPv6 address for a virtual
router.
address linklocal, on page 827 Sets the virtual link-local IPv6 address for a virtual
router.
address secondary, on page 829 Sets the secondary virtual IPv4 address for a virtual
router.
message state disable, on page 840 Disables the task of logging the VRRP state change
events.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
824 OL-28453-05
VRRP Commands
address global
address global
To configure the global virtual IPv6 address for a virtual router, use the address global command in the
Virtual Router Redundancy Protocol (VRRP) virtual router submode. To deconfigure the global virtual IPv6
address for a virtual router, use the no form of this command.
Examples This example shows how to add a global virtual IPv6 address for the virtual router:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface TenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv6
RP/0/0/CPU0:router(config-vrrp-address-family)# vrrp 3 version 3
RP/0/0/CPU0:router(config-vrrp-virtual-router)# address global 4000::1000
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 825
VRRP Commands
address global
Related Commands
Command Description
address (VRRP), on page 823 Sets the primary virtual IPv4 address for a virtual
router.
accept-mode, on page 817 Disables the installation of routes for the VRRP
virtual addresses.
address linklocal, on page 827 Sets the virtual link-local IPv6 address for a virtual
router.
address secondary, on page 829 Sets the secondary virtual IPv4 address for a virtual
router.
message state disable, on page 840 Disables the task of logging the VRRP state change
events.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
826 OL-28453-05
VRRP Commands
address linklocal
address linklocal
To either configure the virtual link-local IPv6 address for a virtual router or to specify that the virtual link-local
IPv6 address should be enabled and calculated automatically from the virtual router virtual Media Access
Control (MAC) address, use the address linklocal command in the Virtual Router Redundancy Protocol
(VRRP) virtual router submode. To deconfigure the virtual link-local IPv6 address for a virtual router, use
the no form of this command.
Examples This example shows how to autoconfigure the VRRP IPv6 link-local address:
RP/0/0/CPU0:router#configure
RP/0/0/CPU0:router(config)#router vrrp
RP/0/0/CPU0:router(config-vrrp)#interface TenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)#address-family ipv6
RP/0/0/CPU0:router(config-vrrp-address-family)#vrrp 3
RP/0/0/CPU0:router(config-vrrp-virtual-router)#address linklocal autoconfig
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 827
VRRP Commands
address linklocal
This example shows how to configure the virtual link-local IPv6 address for the virtual router:
RP/0/0/CPU0:router#configure
RP/0/0/CPU0:router(config)#router vrrp
RP/0/0/CPU0:router(config-vrrp)#interface TenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)#address-family ipv6
RP/0/0/CPU0:router(config-vrrp-address-family)#vrrp 3
RP/0/0/CPU0:router(config-vrrp-virtual-router)#address linklocal FE80::260:3EFF:FE11:6770
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Note The version keyword is available only if IPv4 address-family is selected. By default, version is set to 3
for IPv6 address families.
Related Commands
Command Description
address (VRRP), on page 823 Sets the primary virtual IPv4 address for a virtual
router.
address global, on page 825 Configures the global virtual IPv6 address for a virtual
router.
accept-mode, on page 817 Disables the installation of routes for the VRRP
virtual addresses.
address secondary, on page 829 Sets the secondary virtual IPv4 address for a virtual
router.
message state disable, on page 840 Disables the task of logging the VRRP state change
events.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
828 OL-28453-05
VRRP Commands
address secondary
address secondary
To configure the secondary virtual IPv4 address for a virtual router, use the address secondary command in
the Virtual Router Redundancy Protocol (VRRP) virtual router submode. To deconfigure the secondary virtual
IPv4 address for a virtual router, use the no form of this command.
Examples This example shows how to set the secondary virtual IPv4 address for the virtual router:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface TenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-address-family)# vrrp 3 version 2
RP/0/0/CPU0:router(config-vrrp-virtual-router)# address 192.168.18.1 secondary
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 829
VRRP Commands
address secondary
Related Commands
Command Description
address (VRRP), on page 823 Sets the primary virtual IPv4 address for a virtual
router.
address global, on page 825 Configures the global virtual IPv6 address for a virtual
router.
address linklocal, on page 827 Sets the virtual link-local IPv6 address for a virtual
router.
accept-mode, on page 817 Disables the installation of routes for the VRRP
virtual addresses.
message state disable, on page 840 Disables the task of logging the VRRP state change
events.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
830 OL-28453-05
VRRP Commands
bfd minimum-interval (VRRP)
Usage Guidelines Minimum interval determines the frequency of sending BFD packets to BFD peers. It is the time between
successive BFD packets sent for the session. Minimum interval is defined in milliseconds. The configured
minimum interval applies to all BFD sessions on the interface.
Examples The following example shows how to configure a minimum interval of 100 milliseconds:
Related Commands
Command Description
vrrp bfd fast-detect, on page 864 Enables BFD on a VRRP interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 831
VRRP Commands
bfd minimum-interval (VRRP)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
832 OL-28453-05
VRRP Commands
bfd multiplier (VRRP)
Syntax Description multiplier Specifies the BFD multiplier value. Range is 2 to 50.
Usage Guidelines The multiplier value specifies the number of consecutive BFD packets that, if not received as expected, cause
a BFD session to go down. The BFD multiplier applies to all configured BFD sessions on the interface.
Examples The following example shows how to configure a BFD multiplier with multiplier value of 10:
Related Commands
Command Description
vrrp bfd fast-detect, on page 864 Enables BFD on a VRRP interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 833
VRRP Commands
clear vrrp statistics
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
834 OL-28453-05
VRRP Commands
clear vrrp statistics
Usage Guidelines If no interface is specified, the statistics for all virtual routers on all interfaces are cleared.
If no value for vrid is specified, the statistics for all virtual routers on the specified interface are cleared.
Related Commands
Command Description
show vrrp Displays a brief or detailed status of one or all Virtual
Router Redundancy Protocol (VRRP) virtual routers.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 835
VRRP Commands
delay (VRRP)
delay (VRRP)
To configure the activation delay for a VRRP router, use the delay command in HSRP interface configuration
mode. To delete the activation delay, use the no form of this command.
Syntax Description minimum value Sets the minimum delay in seconds for every interface up event. Range
is 0 to 10000.
reload value Sets the reload delay in seconds for first interface up event. Range is 0
to 10000.
Usage Guidelines The vrrp delay command delays the start of the VRRP finite state machine (FSM) on an interface up event
to ensure that the interface is ready to pass traffic. This ensures that there are no mistaken state changes due
to loss of hello packets. The minimum delay is applied on all interface up events and the reload delay is applied
on the first interface up event.
The values of zero must be explicitly configured to turn this feature off.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
836 OL-28453-05
VRRP Commands
delay (VRRP)
Examples The following example shows how to configure a minimum delay of 10 seconds with a reload delay of 100
seconds:
Related Commands
Command Description
show vrrp Displays a brief or detailed status of one or all Virtual
Router Redundancy Protocol (VRRP) virtual routers.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 837
VRRP Commands
interface (VRRP)
interface (VRRP)
To enable VRRP interface configuration mode, use the interface (VRRP) command in VRRP configuration
mode. To terminate VRRP interface configuration mode, use the no form of this command.
Syntax Description type Interface type. For more information, use the question mark (?) online help function.
Usage Guidelines Use the interface (VRRP) command to enter VRRP interface configuration mode.
You must configure all VRRP configuration commands in VRRP interface configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
838 OL-28453-05
VRRP Commands
interface (VRRP)
Examples The following example shows how to configure VRRP and a virtual router 1 on 10-Gigabit Ethernet interface
0/3/0/0:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-address-family)# vrrp 3 version 2
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Related Commands
Command Description
router vrrp, on page 842 Configures a VRRP redundancy process.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 839
VRRP Commands
message state disable
Command Default By default, the task of logging the VRRP state change events is enabled.
Examples This example shows how to disable the logging of VRRP state change events:
RP/0/0/CPU0:router#configure
RP/0/0/CPU0:router(config)#router vrrp
RP/0/0/CPU0:router(config-vrrp)#message state disable
RP/0/0/CPU0:router(config-vrrp)#
Related Commands
Command Description
address (VRRP), on page 823 Sets the primary virtual IPv4 address for a virtual
router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
840 OL-28453-05
VRRP Commands
message state disable
Command Description
address global, on page 825 Configures the global virtual IPv6 address for a virtual
router.
accept-mode, on page 817 Disables the installation of routes for the VRRP
virtual addresses.
address secondary, on page 829 Sets the secondary virtual IPv4 address for a virtual
router.
address linklocal, on page 827 Sets the virtual link-local IPv6 address for a virtual
router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 841
VRRP Commands
router vrrp
router vrrp
To configure Virtual Router Redundancy Protocol (VRRP), use the router vrrp command in Global
Configuration mode. To remove the VRRP configuration, use the no form of this command.
router vrrp
no router vrrp
Release 3.6.0 The router vrrp command is used in global configuration mode.
Usage Guidelines Use the router vrrp command to enter VRRP configuration mode.
You must configure all VRRP configuration commands in VRRP interface configuration mode.
Examples The following example shows how to configure a VRRP with virtual router 1 on an interface:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-address-family)# vrrp 3 version 2
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Related Commands
Command Description
interface (VRRP), on page 838 Enables VRRP interface configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
842 OL-28453-05
VRRP Commands
router vrrp
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 843
VRRP Commands
session name(vrrp)
session name(vrrp)
To configure a VRRP session name, use the session name command in the VRRP virtual router submode.
To deconfigure a VRRP session name, use the no form of this command.
name name
no name name
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-ipv4)# vrrp 1
RP/0/0/CPU0:router(config-vrrp-virtual-router)# name s1
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
844 OL-28453-05
VRRP Commands
session name(vrrp)
Related Commands
Command Description
accept-mode, on page 817 Disable the installation of routes for the Virtual
Router Redundancy Protocol (VRRP) virtual
addresses.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 845
VRRP Commands
show vrrp
show vrrp
To display a brief or detailed status of one or all Virtual Router Redundancy Protocol (VRRP) virtual routers,
use the show vrrp command in EXEC mode.
show vrrp [ipv4| ipv6] [interface type interface-path-id [vrid]] [brief| detail| statistics [all]]
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
846 OL-28453-05
VRRP Commands
show vrrp
Usage Guidelines If no interface is specified, all virtual routers on all interfaces are displayed. If no vrid is specified, all vrids
on the given interface are displayed.
Examples The following sample output is from the show vrrp command:
Field Description
Interface Interface of the virtual router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 847
VRRP Commands
show vrrp
Field Description
P Indicates whether the VRRP router is configured to
preempt (default).
The following sample output is from the show vrrp command with the detail keyword:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
848 OL-28453-05
VRRP Commands
show vrrp
Field Description
TenGigE 0/3/0/0 - vrID 1 Interface type and number, and VRRP group number.
Virtual MAC address is Virtual MAC address for this virtual router.
Advertise time Interval (in seconds) at which the router sends VRRP
advertisements when it is the master virtual router.
This value is configured with the vrrp timer
command.
Master Down Timer Time the backup router waits for the master router
advertisements before assuming the role of master
router.
Minimum delay Time that the state machine start-up is delayed when
an interface comes up, giving the network time to
settle. The minimum delay is the delay that is applied
after any subsequent interface up event (if the
interface flaps) and the reload delay is the delay
applied after the first interface up event.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 849
VRRP Commands
show vrrp
Field Description
Tracked items Section indicating the items being tracked by the
VRRP router.
The following sample output is from the show vrrp command with the interface and detail keywords for
10-Gigabit Ethernet interface 0/3/0/0:
Field Description
Interface Interface of the virtual router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
850 OL-28453-05
VRRP Commands
slave follow(vrrp)
slave follow(vrrp)
To instruct the slave group to inherit its state from a specified group, use the slave follow command in VRRP
slave submode.
follow mgo-session-name
Syntax Description mgo-session-name Name of the MGO session from which the slave group will inherit the
state.
Examples This example shows how to instruct the slave group to inherit its state from a specified group.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-address-family)# vrrp 2 slave
RP/0/0/CPU0:router(config-vrrp-slave)# follow m1
Note Before configuring a slave group to inherit its state from a specified group, the group must be configured
with the session name command on another vrrp group.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 851
VRRP Commands
slave follow(vrrp)
Related Commands
Command Description
accept-mode, on page 817 Disable the installation of routes for the Virtual
Router Redundancy Protocol (VRRP) virtual
addresses.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
852 OL-28453-05
VRRP Commands
slave primary virtual IPv4 address(vrrp)
address ip-address
Examples This example shows how to configure the primary virtual IPv4 address for the slave group.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-address-family)# vrrp 2 slave
RP/0/0/CPU0:router(config-vrrp-slave)# address 192.168.10.4
Related Commands
Command Description
accept-mode, on page 817 Disable the installation of routes for the Virtual
Router Redundancy Protocol (VRRP) virtual
addresses.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 853
VRRP Commands
slave primary virtual IPv4 address(vrrp)
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
854 OL-28453-05
VRRP Commands
slave secondary virtual IPv4 address(vrrp)
Usage Guidelines Before configuring secondary virtual IPv4 address, the primary virtual IPv4 address for the slave group must
be configured.
Examples This example shows how to configure the secondary virtual IPv4 address for the slave group.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-address-family)# vrrp 2 slave
RP/0/0/CPU0:router(config-vrrp-slave)# address 192.168.10.4 secondary
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 855
VRRP Commands
slave secondary virtual IPv4 address(vrrp)
Related Commands
Command Description
accept-mode, on page 817 Disable the installation of routes for the Virtual
Router Redundancy Protocol (VRRP) virtual
addresses.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
856 OL-28453-05
VRRP Commands
snmp-server traps vrrp events
Examples The following example shows how to enable snmpserver notifications for VRRP:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 857
VRRP Commands
track object(vrrp)
track object(vrrp)
To enable tracking of a named object with the specified decrement, use the track object command in VRRP
virtual router submode. To remove the tracking, use the no form of this command.
Syntax Description object name Object tracking. Name of the object to be tracked.
priority-decrement (Optional) Amount by which the VRRP priority for the router is decremented
when the interface goes down (or comes back up). Range is 1 to 255.
Examples This example shows how to configure object tracking under the VRRP virtual router submode.
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-ipv4)# vrrp 1
RP/0/0/CPU0:router(config-vrrp-virtual-router)# track object t1 2
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
858 OL-28453-05
VRRP Commands
track object(vrrp)
Related Commands
Command Description
accept-mode, on page 817 Disable the installation of routes for the Virtual
Router Redundancy Protocol (VRRP) virtual
addresses.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 859
VRRP Commands
vrrp
vrrp
To enable Virtual Router Redundancy Protocol (VRRP) virtual router mode, use the vrrp command in
address-family mode. To terminate VRRP virtual router mode, use the no form of this command.
Syntax Description vrid (Optional) Virtual router identifier, which is the number identifying the virtual router
for which status is displayed. The virtual router identifier is configured with the vrrp
ipv4 command. Range is 1 to 255.
Examples The following example shows how to enable VRRP virtual router mode:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv4
RP/0/0/CPU0:router(config-vrrp-address-family)# vrrp 3 version 2
RP/0/0/CPU0:router(config-vrrp-virtual-router)#
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
860 OL-28453-05
VRRP Commands
vrrp
Related Commands
Command Description
interface (VRRP), on page 838 Enables VRRP interface configuration mode.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 861
VRRP Commands
vrrp assume-ownership disable
Syntax Description vrid Virtual router identifier, which is the number identifying the virtual router for which
virtual IP address ownership is being configured.
The virtual router identifier is configured with the vrrp ipv4 command. Range is 1
to 255.
disable (Optional) Does not accept IP packets sent to the Virtual IP address.
Command Default The master router assumes ownership by default and accepts IP packets sent to the Virtual IP address.
Release 4.1.0 This command has been deprecated. This command was replaced with
the accept-mode, on page 817 command.
Usage Guidelines By default, a router that is not the IP address owner, but is the master router for another IP address, accepts
and responds to pings and accepts a Telnet to that router. Accepting packets sent to the other IP address is a
useful tool during verification of network configuration. The vrrp assume-ownership disable command
specifies that the router should not assume ownership of the virtual IP address if it is the master router regardless
of whether it is the IP address owner, which means that it will not accept packets sent to that IP address during
verification of network configuration.This command is ignored (irrelevant) when the router is the IP address
owner (section 6.4.3 of RFC 2338, Virtual Router Redundancy Protocol).
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
862 OL-28453-05
VRRP Commands
vrrp assume-ownership disable
Examples The following example shows how the configuration disables the vrrp assume-ownership command on
10-Gigabit Ethernet interface 0/3/0/0:
Related Commands
Command Description
vrrp ipv4, on page 872 Enables VRRP on an interface and specifies the IP
address of the virtual router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 863
VRRP Commands
vrrp bfd fast-detect
Usage Guidelines BFD is supported only on systems with exactly two redundant VRRP routers.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
864 OL-28453-05
VRRP Commands
vrrp bfd fast-detect
Examples The following example shows how to enable bfd fast-detect for an IPv4 address:
RP/0/0/CPU0:router# config
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface gig 0/1/1/0
RP/0/0/CPU0:router(config-vrrp-if)# vrrp 1 bfd fast-detect peer ipv4 10.1.1.1
Examples The following example shows how to enable bfd fast-detect for an IPv6 address:
RP/0/0/CPU0:router# configure
RP/0/0/CPU0:router(config)# router vrrp
RP/0/0/CPU0:router(config-vrrp)# interface tenGigE 0/4/0/4
RP/0/0/CPU0:router(config-vrrp-if)# address-family ipv6
RP/0/0/CPU0:router(config-vrrp-address-family)#vrrp 3 version 3
RP/0/0/CPU0:router(config-vrrp-virtual-router)#bfd fast-detect peer ipv6
fe80::211:bcff:fea5:28bb
Related Commands
Command Description
vrrp bfd minimum-interval, on page 866 Configures the BFD minimum interval value for a
given interface.
vrrp bfd multiplier, on page 868 Configures the BFD multiplier value for a given
interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 865
VRRP Commands
vrrp bfd minimum-interval
Release 4.1.0 This command has been deprecated. This command was replaced with
the bfd minimum-interval (VRRP), on page 831 command.
Usage Guidelines Minimum interval determines the frequency of sending BFD packets to BFD peers. It is the time between
successive BFD packets sent for the session. Minimum interval is defined in milliseconds. The configured
minimum interval applies to all BFD sessions on the interface.
Examples The following example shows how to configure a minimum interval of 100 milliseconds:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
866 OL-28453-05
VRRP Commands
vrrp bfd minimum-interval
Related Commands
Command Description
vrrp bfd fast-detect, on page 864 Enables BFD on a VRRP interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 867
VRRP Commands
vrrp bfd multiplier
Syntax Description multiplier Specifies the BFD multiplier value. Range is 2 to 50.
Release 4.1.0 This command has been deprecated. This command was replaced with
the bfd multiplier (VRRP), on page 833 command.
Usage Guidelines The multiplier value specifies the number of consecutive BFD packets that, if not received as expected, cause
a BFD session to go down. The BFD multiplier applies to all configured BFD sessions on the interface.
Examples The following example shows how to configure a BFD multiplier with multiplier value of 10:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
868 OL-28453-05
VRRP Commands
vrrp bfd multiplier
Related Commands
Command Description
vrrp bfd fast-detect, on page 864 Enables BFD on a VRRP interface.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 869
VRRP Commands
vrrp delay
vrrp delay
To configure the activation delay for a VRRP router, use the vrrp delay command in HSRP interface
configuration mode. To delete the activation delay, use the no form of this command.
Syntax Description minimum value Sets the minimum delay in seconds for every interface up event. Range
is 0 to 10000.
reload value Sets the reload delay in seconds for first interface up event. Range is 0
to 10000.
Release 4.1.0 This command has been deprecated. This command was replaced with
the delay (VRRP), on page 836 command.
Usage Guidelines The vrrp delay command delays the start of the VRRP finite state machine (FSM) on an interface up event
to ensure that the interface is ready to pass traffic. This ensures that there are no mistaken state changes due
to loss of hello packets. The minimum delay is applied on all interface up events and the reload delay is applied
on the first interface up event.
The values of zero must be explicitly configured to turn this feature off.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
870 OL-28453-05
VRRP Commands
vrrp delay
Examples The following example shows how to configure a minimum delay of 10 seconds with a reload delay of 100
seconds:
Related Commands
Command Description
show vrrp, on page 846 Displays a brief or detailed status of one or all Virtual
Router Redundancy Protocol (VRRP) virtual routers.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 871
VRRP Commands
vrrp ipv4
vrrp ipv4
To enable the Virtual Router Redundancy Protocol (VRRP) on an interface and specify the IP address of the
virtual router, use the vrrp ipv4 command in VRRP interface configuration mode. To disable VRRP on the
interface and remove the IP address of the virtual router, use the no form of this command.
Syntax Description vrid Virtual router identifier, which is the number identifying the virtual router.
Range is 1 to 255.
Release 4.1.0 This command has been deprecated. This command was replaced with
the address (VRRP), on page 823 command.
Usage Guidelines Configure the vrrp ipv4 command once without the secondary keyword to indicate the virtual router IP
address. If you want to indicate additional IP addresses supported by the virtual router, include the secondary
keyword.
Removing the VRRP configuration from the IP address owner and leaving the IP address of the interface
active is considered a misconfiguration because this results in duplicate IP addresses on the LAN.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
872 OL-28453-05
VRRP Commands
vrrp ipv4
Examples The following example shows how to enable VRRP on 10-Gigabit Ethernet interface 0/3/0/0. The VRRP
virtual router identifier is 1, and 10.0.1. 20 is the IP address of the virtual router.
Related Commands
Command Description
show vrrp, on page 846 Displays a brief or detailed status of one or all Virtual
Router Redundancy Protocol (VRRP) virtual routers.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 873
VRRP Commands
vrrp preempt
vrrp preempt
VRRP preempt is enabled by default. This means, a VRRP router with higher priority than the master VRRP
router will take over as master router. To disable this feature, use the preempt disable command. To delay
preemption, so that the higher priority router waits for a period of time before taking over, use the preempt
delay command. To restore the default behavior (preempt enabled with no delay), use the no form of the
command.
Syntax Description delay seconds (Optional) Specifies the number of seconds the router delays before issuing an
advertisement claiming virtual IP address ownership to be the master router.
Range is 1 to 3600 seconds (1 hour).
Usage Guidelines Using the delay keyword, you can configure a delay, which causes the VRRP router to wait the specified
number of seconds before issuing an advertisement claiming virtual IP address ownership to be the master
router.
Note The router that is the virtual IP address owner preempts, regardless of the setting of this command.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
874 OL-28453-05
VRRP Commands
vrrp preempt
Examples The following example shows how to configure the router to preempt the current master router when its
priority of 200 is higher than that of the current master router. If the router preempts the current master router,
it waits 15 seconds before issuing an advertisement claiming that it is the master router.
Related Commands
Command Description
vrrp priority, on page 876 Sets the priority of the virtual router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 875
VRRP Commands
vrrp priority
vrrp priority
To set the priority of the virtual router, use the priority command in VRRP virtual router submode. To remove
the priority of the virtual router, use the no form of this command.
priority priority
nopriority priority
Usage Guidelines Use this command to control which router becomes the master router. This command is ignored while the
router is the virtual IP address owner.
Examples The following example shows how to configure the router with a priority of 254:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
876 OL-28453-05
VRRP Commands
vrrp priority
Related Commands
Command Description
vrrp preempt, on page 874 Configures the router to take over as master router
for a VRRP virtual router if it has a higher priority
than the current master router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 877
VRRP Commands
vrrp text-authentication
vrrp text-authentication
To configure the simple text authentication used for Virtual Router Redundancy Protocol (VRRP) packets
received from other routers running VRRP, use the text-authentication command in VRRP virtual router
submode. To disable VRRP authentication, use the no form of this command.
text-authentication string
no text-authentication [ string ]
Syntax Description string Authentication string (up to eight alphanumeric characters) used to validate
incoming VRRP packets.
Usage Guidelines When a VRRP packet arrives from another router in the VRRP group, its authentication string is compared
to the string configured on the local system. If the strings match, the message is accepted. If they do not match,
the packet is discarded.
All routers within the group must be configured with the same authentication string.
Note Plain text authentication is not meant to be used for security. It simply provides a way to prevent a
misconfigured router from participating in VRRP.
Examples The following example shows how to configure an authentication string of x30dn78k:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
878 OL-28453-05
VRRP Commands
vrrp text-authentication
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 879
VRRP Commands
vrrp timer
vrrp timer
To configure the interval between successive advertisements by the master router in a Virtual Router
Redundancy Protocol (VRRP) virtual router, use the timer command in VRRP virtual router submode. To
restore the default value, use the no form of this command.
Syntax Description msec (Optional) Changes the unit of the advertisement time from seconds to milliseconds.
Without this keyword, the advertisement interval is in seconds. Range is 20 to 3000
milliseconds.
interval Time interval between successive advertisements by the master router. The unit of the
interval is in seconds, unless the msec keyword is specified. Range is 1 to 255 seconds.
force (Optional) Forces the configured value to be used. This keyword is required if
milliseconds is specified.
Examples The following example shows how to configure the master router to send advertisements every 4 seconds:
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
880 OL-28453-05
VRRP Commands
vrrp timer
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 881
VRRP Commands
vrrp track interface
Syntax Description vrid Virtual router identifier, which is the number identifying the virtual router to which
tracking applies.
type Interface type. For more information, use the question mark (?) online help function.
priority-decrement (Optional) Amount by which the priority for the router is decremented (or
incremented) when the tracked interface goes down (or comes back up). Decrements
can be set to any value between 1 and 254. Default value is 10.
Usage Guidelines The vrrp track interface command ties the priority of the router to the availability of its interfaces. It is useful
for tracking interfaces that are not configured for VRRP. Only IP interfaces are tracked. A tracked interface
is up if IP on that interface is up. Otherwise, the tracked interface is down.
You can configure VRRP to track an interface that can alter the priority level of a virtual router for a VRRP
virtual router. When the IP protocol state of an interface goes down or the interface has been removed from
the router, the priority of the backup virtual router is decremented by the value specified in the
priority-decrement argument. When the IP protocol state on the interface returns to the up state, the priority
is restored.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
882 OL-28453-05
VRRP Commands
vrrp track interface
Examples In the following example, 10-Gigabit Ethernet interface 0/3/0/0 tracks interface 0/3/0/3 and 0/3/0/2. If one or
both of these two interfaces go down, the priority of the router decreases by 10 (default priority decrement)
for each interface. The default priority decrement is changed using the priority-decrement argument. In this
example, because the default priority of the virtual router is 100, the priority becomes 90 when one of the
tracked interfaces goes down and the priority becomes 80 when both go down. See the priority command
for details on setting the priority of the virtual router.
Related Commands
Command Description
vrrp priority, on page 876 Sets the priority of the virtual router.
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 883
VRRP Commands
vrrp track interface
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
884 OL-28453-05
INDEX
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 IN-1
Index
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
IN-2 OL-28453-05
Index
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 IN-3
Index
show cef ipv6 hardware command 211 show lpts port-arbitrator statistics command 521
show cef ipv6 interface bgp-policy-statistics command 215 show lpts vrf command 522
show cef ipv6 interface command 213 show mpa client command 650
show cef ipv6 interface rpf-statistics command 217 show mpa groups command 652
show cef ipv6 non-recursive command 219 show mpa ipv4 command 654
show cef ipv6 resource command 222 show mpa ipv6 command 656
show cef ipv6 summary command 224 show nsr ncd client command 740
show cef ipv6 unresolved command 227 show nsr ncd queue command 743
show cef mpls adjacency command 229 show prefix-list afi-all command 699
show cef mpls adjacency hardware command 232 show prefix-list command 698
show cef mpls interface command 234 show prefix-list ipv4 command 700
show cef mpls unresolved command 236 show prefix-list ipv4 standby command 702
show cef recursive-nexthop command 158 show prefix-list ipv6 command 703
show cef summary command 159 show raw brief command 745
show cef vrf command 238 show raw detail pcb command 747
show cinetd services command 361 show raw extended-filters command 749
show clns statistics command 619 show raw statistics pcb command 751
show dhcp ipv4 client 254 show sctp association brief command 753
show dhcp ipv4 client statistics 256 show sctp association detail command 755
show dhcp ipv4 relay profile command 300 show sctp pcb brief command 761
show dhcp ipv4 relay profile name command 301 show sctp pcb detail command 763
show dhcp ipv4 relay statistics command 303 show sctp statistics command 765
show dhcp ipv6 binding command 306 show sctp summary command 768
show dhcp ipv6 command 305 show svd role 658
show dhcp ipv6 database command 308 show tcp brief command 770
show dhcp ipv6 interface command 310 show tcp detail command 772
show dhcp ipv6 pool command 312 show tcp extended-filters command 774
show hosts command 363 show tcp nsr brief command 778
show hsrp bfd command 445 show tcp nsr client brief command 780
show hsrp command 441 show tcp nsr detail client command 782
show hsrp mgo command 447 show tcp nsr detail pcb command 784
show hsrp statictics 449 show tcp nsr detail session-set command 787
show hsrp summary 451 show tcp nsr session-set brief command 789
show ipv4 interface command 621 show tcp nsr statistics client command 791
show ipv4 traffic command 627 show tcp nsr statistics pcb command 793
show ipv6 interface command 630, 635 show tcp nsr statistics session-set command 795
show ipv6 neighbors command 640 show tcp nsr statistics summary command 797
show ipv6 neighbors summary command 645 show tcp statistics command 776
show ipv6 traffic command 647 show tech dhcp ipv4 client 262
show local pool command 625 show udp brief command 799
show lpts bindings command 479 show udp detail pcb command 801
show lpts clients command 484 show udp extended-filters command 803
show lpts flows command 486 show udp statistics command 805
show lpts ifib command 490 show vrf command 659
show lpts ifib slices command 494 show vrf-group command 661
show lpts ifib statistics command 497 show vrrp command 846
show lpts ifib times command 499 sip address command 314
show lpts mpa groups command 501 sip domain-name command 316
show lpts pifib command 503 slave follow command 453
show lpts pifib hardware context command 508 slave follow(vrrp) command 851
show lpts pifib hardware entry command 510 slave primary virtual IPv4 address command 455, 853
show lpts pifib hardware police command 514 slave secondary virtual IPv4 address command 457
show lpts pifib hardware usage command 517 slave secondary virtual IPv4 address(vrrp) command 855
show lpts pifib statistics command 519 slave virtual mac address command 459
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
IN-4 OL-28453-05
Index
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release 4.3.x
OL-28453-05 IN-5
Index
Cisco IOS XR IP Addresses and Services Command Reference for the Cisco XR 12000 Series Router, Release
4.3.x
IN-6 OL-28453-05