Displaying Subnet Mask In Cidr Format - Cisco XR 12000 Series Getting Started Manual

Hide thumbs Also See for XR 12000 Series:
Table of Contents

Advertisement

Displaying System Information with show Commands
Notice that the POS interfaces have no configurations but they are still shown in the output of the
command.
This option is not applicable to other variants of show configuration commands like the following:

Displaying Subnet Mask in CIDR Format

This feature displays IPv4 address subnet mask in Classless Interdomain Routing (CIDR) format instead
of decimal format. The change of format for all show commands may cause backward compatibility
issues. To overcome this problem, the ipv4 netmask-format hit-count command has been implemented
in the IP/CLI component, which maintains the common infrastructure specific to IP related CLIs.
To display the subnet in a prefix length format, you need to configure the ipv4 netmask-format
hit-count command at the global configuration mode:
RP/0/0/CPU0:router# configure terminal
RP/0/0/CPU0:router(config)# ipv4 netmask-format bit-count
RP/0/0/CPU0:router(config)# commit
RP/0/0/CPU0:router(config)# end
After this command has been configured, the output of the show command forcefully displays the subnet
mask in a prefix length format. Also, you can disable the command by using the no form of the
command.
RP/0/0/CPU0:router# no ipv4 netmask-format bit-count
RP/0/0/CPU0:router#
This ipv4 netmask-format hit-count command is supported only in the SDR configuration mode.
Note
The following example shows the output of a show running-config command after the ipv4
netmask-format bit-count command has been configured:
RP/0/0/CPU0:router# show running-config interface mgmtEth 0/RP0/CPU0/0
Mon May 31 23:48:17.453 DST
interface MgmtEth0/RP0/CPU0/0
description Connected to Lab LAN
ipv4 address 172.29.52.70 255.255.255.0
!
Cisco IOS XR Getting Started Guide for the Cisco XR 12000 Series Router
5-108
show configuration
show configuration commit changes
show configuration rollback changes
show configuration failed
show configuration persistent
Chapter 5
CLI Tips, Techniques, and Shortcuts
OL-24755-01

Advertisement

Table of Contents
loading

Table of Contents