
ip netmask-format
Sets the IP netmask format to dotted decimal, hexadecimal, or prefix length format.
Syntax: [terminal] ip netmask-format [decimal | hexadecimal | bit-count]
terminal
Sets the IP netmask display format for this session only. The setting is not saved in the running-configuration file.
decimal
Display the IP netmask in dotted decimal notation
hexadecimal
Display the IP netmask in hexadecimal notation.
bit-count
Display the IP netmask in prefix length (the number of bits in the bitmask) format.
Use the ip netmask-format command to configure how IP netmasks are displayed on console or VTY sessions. Use the command in Privileged command mode to set the netmask format for this session only. Use the command in Line configuration command mode to set the netmask format for this and future sessions.
In Privileged command mode: use the terminal keyword to configure the displays for only this session. The setting is not saved when the session ends.
Use the terminal ip netmask-format decimal command to display IP netmasks using dotted decimal format for only the current session.
Use the terminal ip netmask-format hexadecimal command to display IP netmasks using hexadecimal notation for only the current session.
Use the terminal ip netmask-format bit-count command to display IP netmasks using prefix length format for only the current session.
In Line configuration command mode: omit the terminal keyword. The setting is saved for future sessions.
Use the ip netmask-format decimal command to configure the line to display IP netmasks using dotted decimal format.
Use the ip netmask-format hexadecimal command to configure the line to display IP netmasks using hexadecimal notation.
Use the ip netmask-format bit-count command to configure the line to display IP netmasks using prefix length format.
Factory Default: Decimal format.
Command Mode: Line configuration and privileged.
Example 1: In the following example,
- The line vty 0 4 command specifies VTY lines and changes the command mode to Line configuration.
- The ip netmask-format command configures the VTY lines to display the IP netmask in prefix length format.
- The show interface pos n/n/n displays an interface with the IP netmask in prefix length format:
NOTE The setting will be saved for future VTY sessions.
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#line vty 0 4
router(config-line)ip netmask-format bit-count
router(config-line)#end
router#sho int pos 1/5/1
POS 1/5/1 interface status is up, line protocol is up
Internet address is 10.100.53.2/24
Example 2: In the following example:
- The terminal ip netmask-format hexadecimal command configures the current session to display IP netmasks in hexadecimal format.
- .The show interface pos n/n/n command displays an interface with the IP netmask in hexadecimal format:
NOTE The setting is NOT saved for future sessions.
router#terminal ip netmask-format hexadecimal
router#sho int pos 1/5/1
POS 1/5/1 interface status is up, line protocol is up
Internet address is 10.100.53.2 0xFFFFFF00
Related Commands: line
show line
show terminal
Copyright © 2005
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: navigation.fm
HTML File Name: navigation12.html
Last Updated: 02/25/05 at 14:25:22