ip show-subnet-length

Enables CIDR format for displaying network masks.
Syntax
ip show-subnet-length
no ip show-subnet-length
Command Default

By default, the CLI displays network masks in classical IP address format (example: 255.255.255.0).

Modes

Global configuration mode

Usage Guidelines

This command changes the displays to prefix format (CIDR format) (example: /18) on a Layer 3 switch or Layer 2 switch.

The no form of the command enables the display of network masks in classical IP address format.

Examples

The following example enables CIDR format for displaying network masks.

device(config)# ip show-subnet-length