ip show-portname

Displays interface names in syslog messages.
Syntax
ip show-portname
no ip show-portname
Command Default

An interface slot number (if applicable), port number, and interface type are displayed when you display syslog messages.

Modes

Global configuration mode

Usage Guidelines

Syslog messages show the interface type, such as "ethernet", and so on. However, if the ip show-portname command is configured and a name has been assigned to the port, the port name replaces the interface type.

The no form of the command displays the interface slot number and port number in syslog messages.

Examples

The following example configures the display of the interface name in syslog messages.

device(config)# ip show-portname