debug interface
To enable debugging of interface-related activities, use the debug interface command in privileged EXEC mode. To disable debugging, use the no form of this command.
debug interface {interface-id | counters {exceptions | protocol memory} | null interface-number | port-channel port-channel-number | states| vlan vlan-id}
no debug interface {interface-id | counters {exceptions | protocol memory} | null interface-number | port-channel port-channel-number | states| vlan vlan-id}
Syntax Description
interface-id |
ID of the physical interface. Displays debug messages for the specified physical port, identified by type switch number/module number/port, for example, gigabitethernet 1/0/2. |
null interface-number |
Displays debug messages for null interfaces. The interface number is always 0. |
port-channel port-channel-number |
Displays debug messages for the specified EtherChannel port-channel interface. The port-channel-number range is 1 to 48. |
vlan vlan-id |
Displays debug messages for the specified VLAN. The vlan range is 1 to 4094. |
counters |
Displays counters debugging information. |
exceptions |
Displays debug messages when a recoverable exceptional condition occurs during the computation of the interface packet and data rate statistics. |
protocol memory |
Displays debug messages for memory operations of protocol counters. |
states |
Displays intermediary debug messages when an interface's state transitions. |
Command Default
Debugging is disabled.
Command Modes
Privileged EXEC (#)
Command History
Release |
Modification |
---|---|
Cisco IOS XE Gibraltar 16.11.1 |
This command was introduced. |
Usage Guidelines
If you do not specify a keyword, all debug messages appear.
The undebug interface command is the same as the no debug interface command.
When you enable debugging on a switch stack, it is enabled only on the active switch. To enable debugging on a stack member, you can start a session from the active switch by using the session switch-number EXEC command. Then enter the debug command at the command-line prompt of the stack member. You also can use the remote command stack-member-number LINE EXEC command on the active switch to enable debugging on a member switch without first starting a session.