Interface commands

Use these M4500 CLI commands to display interface status and settings, including dampening, loopback, port channel, port mode, FEC, advertisement, and flow control.

show interface dampening

This command displays the status and configured parameters of the interfaces configured with dampening.

The CLI command “clear counters” resets the flap counter to zero.

The interface CLI command “no shutdown” reset the suppressed state to False.

Any change in the dampening configuration resets the current penalty, reuse time and suppressed state to their default value, meaning 0, 0, and False respectively.

Format show interface dampening
Mode Privileged EXEC

Display Message

Fields Definition
Interface The interface name.
Flaps The number times the link state of an interface changed from UP to DOWN.
Penalty Accumulated Penalty.
Supp Indicates if the interface is suppressed or not.
ReuseTm Number of seconds until the interface is allowed to come up again.
HalfL Configured half-life period.
ReuseV Configured reuse-threshold.
SuppV Configured suppress threshold.
MaxSTm Configured maximum suppress time in second.
MaxPenalty Maximum possible penalty.
Restart Configured restart penalty.

show interface loopback

The command displays the configured loopback interface information.

Format show interface loopback [{<0-63> | vrf <vrf-name>}]
Mode Privileged EXEC
Parameter Definition
<0-63> The loopback ID
vrf-name Specify the name of the VRF

Display Message

Fields Definition
Loopback Id The loopback ID associated with the rest of the information in the row. This item is shown only when a loopback Id is not specified.
interface The interface name. This item is shown only when a loopback Id is not specified.
IP Address The address of the interface.
Interface Link Status Shows whether the link is up or down.
IPv6 Prefix is The IPv6 address of the interface
MTU size The maximum transmission size for packets on the interface in bytes

show interface port-channel

This command displays the capabilities of all port-channels (LAGs) on the device as well as a summary of individual port-channel.

Format show interface port-channel [{ <ID> | brief | system priority } ]
Mode Privileged EXEC
Parameters Definition
<ID> The port-channel interface number. The range of the port-channel ID is 1 to 64.
brief Display port-channel static capability and summary information for the device.
system priority Display port-channel system priority.

Display Message

Fields Definition
Port Channel ID The port-channel‘s ID.
Channel Name The name of the port-channel.
Link State Indicates whether the link is up or down.
Admin Mode Indicates if the port-channel is enabled or not .
Link Trap Mode Indicates whether or not to send a trap when link status changes. The factory default is enabled.
STP Mode Indicates if the STP mode for the interface is enabled or not .
Type Indicates whether the port-channel is statically or dynamically maintained.
Port-channel Min-links Indicates the minimum links for the port-channel.
Load Balance Option (Src/Dest MAC, VLAN, EType, incoming port) The load balance option associated with this LAG..
LACP Fallback Mode May be enabled or disabled. The factory default is disabled.
LACP Fallback Timeout This field displays the LACP fallback timeout, the timeout default is 5sec.
Admin Key Indicates the administrative value of the LACP actor admin key
Mbr Ports Lists the ports that are members of this port-channel, in slot/port notation
Active Ports (Port Active) Lists the ports that are actively participating in this port-channel.
Port Speed Speed of the port-channel port
Device/Timeout Displays the device timeout value of actor and partner. The value of device timeout should be short (1 second) or long(30 seconds).

show interface port-mode

The command displays the hardware profile information for the 100G ports.

Format show interface port-mode [<slot/port>]
Mode Privileged EXEC

Display Message

Fields Definition
100G Interface Indicates the interface number of 100G port.
40G Interface Indicates the interface number of 40G port.
50G Interface Indicates the interface number of 50G port.
25G Interface Indicates the interface number of 25G port.
10G Interfaces Indicates the interface number of 10G ports.
Configured Mode Indicates the configured mode of the 100G port. The mode should be 1x100G, 1x40G, 2x50G, 4x25G, or 4x10G.
Operating Mode Indicates the current operational mode of the 100G port. The mode should be 1x100G, 1x40G, 2x50G, 4x25G, or 4x10G.
Expandable Option(s) Indicates the expanded mode this interface can support
Expanded Interfaces Indicates the corresponding port numbers after this interface is expanded

show interface priority flow control

The command displays the priority flow control (PFC) information of a given interface or all interfaces.

Format show interface [<slot/port>] priority-flow-control
Mode Privileged EXEC
Parameter Definition
slot/port Specifies the interface number as the slot/port format.

When an interface number is not provided, it will display all the interfaces.

Display Message

Fields Definition
Interface Detail The port for which data is displayed.
Operational State The operational status of the interface.
Configured State The administrative mode of PFC on the interface.
Configured Drop Priorities The 802.1p priority values that are configured with a drop priority on the interface. Drop priorities do not participate in pause.
Configured No-Drop Priorities The 802.1p priority values that are configured with a no-drop priority on the interface. If an 802.1p priority that is designated as no-drop is congested, the priority is paused.
Operational Drop Priorities The 802.1p priority values that the switch is using with a drop priority. The operational drop priorities might not be the same as the configured priorities if the interface has accepted different priorities from a peer device.
Operational No-Drop Priorities The 802.1p priority values that the switch is using with a no-drop priority. The operational drop priorities might not be the same as the configured priorities if the interface has accepted different priorities from a peer device.
Delay Allowance The operational status of the interface.
Peer Configuration Compatible Indicates whether the local switch has accepted a compatible configuration from a peer switch.
Compatible Configuration Count The number of received configurations accepted and processed as valid. The number does not include duplicate configurations.
Incompatible Configuration Count The number of received configurations that are not accepted from a peer device because they were incompatible.
Priority The 802.1p priority value.
Received PFC frames The number of PFC frames received by the interface with the associated 802.1p priority.
Transmitted PFC Frames The number of PFC frames transmitted by the interface with the associated 802.1p priority.
Port The port list for which data is displayed.
Drop Priorities The 802.1p priority values that are configured with a drop priority on the interface.
Non-Drop Priorities The 802.1p priority values that are configured with a no-drop priority on the interface.
Operational Status The operational status of the interface.

show interface switch

This command displays a summary of statistics for all CPU traffic.

Format show interfaces switch
Mode Privileged EXEC
Parameter Definition
Packets Received Without Error The total number of packets received from the interface.
Broadcast Packets Received The total number of packets received that were directed to the broadcast address. Note that this does not include multicast packets.
Packets Received With Error The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.
Packets Transmitted Without Errors The total number of packets transmitted out of the interface.
Broadcast Packets Transmitted The total number of packets that higher-level protocols requested to be transmitted to the Broadcast address, including those that were discarded or not sent.
Transmit Packet Errors The number of outbound packets that could not be transmitted because of errors.
Address Entries Currently in Use The total number of Forwarding Database Address Table entries now active on the switch, including learned and static entries.
VLAN Entries Currently in Use The number of VLAN entries presently occupying the VLAN table.
Time Since Counters Last Cleared The elapsed time, in days, hours, minutes, and seconds since the statistics for this switch were last cleared.

show interface switchport

This command displays VLAN port information.

Format show interface switchport [{<slot/port> | port-channel <1-64>}]
Mode Privileged EXEC
Parameter Definition
no parameter To display information for all ports.
<slot/port> Specifies Interface number
port-channel <1-64> Specifies to display information for the port-channel. The range of the port-channel ID is 1 to 64.

Display Message

Fields Definition
Interface Indicates by slot id and port number which is the port controlled by the fields on this line.
Port VLAN ID The VLAN ID that this port will assign to untagged frames or priority tagged frames received on this port. The value must be for an existing VLAN.
Default Priority The 802.1p priority assigned to untagged packets arriving on the port.
Admin. Native VLAN The administrative VLAN ID that this port will assign to untagged frames or priority tagged frames received on this port. The value must be for an existing VLAN.
Oper. Native VLAN The operational VLAN ID that this port will assign to untagged frames or priority tagged frames received on this port. The value must be for an existing VLAN.
Mode Indicates this interface is operating on Access mode, General mode, Trunk mode, Private Vlan Host mode and Private Vlan Promiscuous mode.
Ingress Filtering May be enabled or disabled. When enabled, the frame is discarded if this port is not a member of the VLAN with which this frame is associated. In a tagged frame, the VLAN is identified by the VLAN ID in the tag. In an untagged frame, the VLAN is the Port VLAN ID specified for the port that received this frame. When disabled, all frames are forwarded in accordance with the 802.1Q VLAN bridge specification. The factory default is disabled.
Acceptable Frame Types Specifies the types of frames that may be received on this port. The options are 'VLAN only' and 'Admit All'. When set to 'VLAN only', untagged frames or priority tagged frames received on this port are discarded. When set to 'Admit All', untagged frames or priority tagged frames received on this port are accepted and assigned the value of the Port VLAN ID for this port. With either option, VLAN tagged frames are forwarded in accordance to the 802.1Q VLAN specification.
VLAN ID Displays the VLAN of which the interface is a member. (Display in administration and operation two statuses)
VLAN Name Displays the name of the VLAN of which the interface is a member. (Display in administration and operation twstatuses)
VLAN Type Displays the type of the VLAN of which the interface is a member. (Display in administration and operation statuses)
Egress rule Indicate the port will untag or tag frame when sending frames in that specific VLAN. (Display in administration and operation statuses)

show interface tunnel

This command displays the parameters related to tunnel such as tunnel mode, tunnel source address and tunnel destination address.

Format show interface tunnel [<0-7>]
Mode Privileged EXEC
Parameter Definition
<0-7> Specifies the tunnel ID

Display Message

Fields Definition
TunnelId Shows the tunnel identification number.
Interface Shows the name of the tunnel interface..
Tunnel Mode Shows the tunnel mode .
Source Address Shows the source transport address of the tunnel
Destination Address Shows the destination transport address of the tunnel
Routing Mode Shows whether the routing is enabled or disabled.
Administrative Mode Shows whether the interface administrative mode is enabled or disabled.
IPv6 Implicit Mode Shows whether the Implicit mode is enabled, which enables the interface being capable of ipv6 operation without a global address.
IPv6 Operational Mode Shows whether the operational state of an interface is enabled or disabled.
Interface Maximum Transmit Unit Shows the maximum transmission unit for packets on the interface, in bytes.
Router Duplicate Address Detection Transmits Shows the number of consecutive duplicate address detection probes to transmit.
Router Advertisement NS Interval Shows the interval, in milliseconds, between router advertisements for advertised neighbor solicitations.
Router Advertisement Lifetime Shows the router lifetime value of the interface in router advertisements.
Router Advertisement Reachable Time Shows the amount of time, in milliseconds, to consider a neighbor reachable after neighbor discovery confirmation.
Router Advertisement Interval (max) Shows maximum time allowed between sending router advertisements from the interface. Range of maximum advertisement interval is (4 to 1800).Default value is 600.
Router Advertisement Interval (min) Shows minimum time allowed between sending router advertisements from the interface. Range of minimum advertisement interval is (3 to 1350).Default value is 200.
Router Advertisement Managed Config Flag. Shows whether the managed configuration flag is set (enabled) for router advertisements on this interface.
Router Advertisement Other Config Flag. Shows whether the other configuration flag is set (enabled) for router advertisements on this interface.
Router Advertisement Suppress Flag Shows whether router advertisements are suppressed (enabled) or sent (disabled).
IPv6 Destination Unreachables Shows whether ICMPv6 Destination Unreachable messages may be sent (enabled) or not (disabled)

show interface description

This command displays the interface description.

Format show interface description [{<slot/port> | loopback <loopback-id> | port-channel <portchannel-id> | tunnel <tunnel-id> | vlan <vlan-id>}]
Mode Privileged EXEC

Display Message

Parameter Definition
Interface The slot/port or LAG with the information to view.
Description The alpha-numeric description of the interface created by the description command.

Example: The following example shows the CLI display output for the command show interface description 0/1.

CODE
(M4500-32C) #show interface description 0/1
Interface              0/1
Description

show interface fec

This command displays forward error correction information for the interface.

Format show interface fec [<slot/port>]
Mode Privileged EXEC
Parameter Definition
no parameter To display information for all ports.
<slot/port> Specifies Interface number

show interface advertise

Use this command to display the advertisement information for interfaces.

Format show interface advertise [<slot/port>]
Mode Privileged Exec
Parameter Definition
no parameter Displays information for all ports.
<slot/port> The interface number for which information is displayed.

Example:

CODE
(M4500-48XF8C) # show interface advertise
Intf     Neg      Operational Link Advertisement
--------  --------  --------------------------------------
0/1      Enabled   25000f
0/2      Enabled   25000f
0/3      Enabled   25000f
0/4      Enabled   25000f
0/5      Disabled  -     -     -     -     -      -
0/6      Disabled  -     -     -     -     -      -
0/7      Disabled  -     -     -     -     -      -
0/8      Disabled  -     -     -     -     -      -
0/9      Disabled  -     -     -     -     -      -
0/10     Disabled  -     -     -     -      -     -
0/11     Disabled  -     -     -     -      -     -
0/12     Disabled  -     -     -     -      -     -

(M4500-48XF8C) #show interface advertise 0/1
Port: 0/1
Link State: Up
Auto Negotiation:Enabled
Clock:Slave
                               100000f 50000f 40000f 25000f 10000f 1000f
                               ------- ------ ------ ------ ------ ------
Admin Local link Advertisement    no     no     no     yes    no     no
Oper Local link Advertisement     no     no     no     yes    no     no
Oper Peer Advertisement           no     no     no     yes    no     no
Priority Resolution               no     no     no     yes    no     no

show port status all

This command displays the status of all ports.

Format show port status all
Mode Privileged EXEC

Display Message

Example: The following example shows the CLI display output for the command show port status all.

CODE
(M4500-32C) #show port status all

        Media        STP     Physical    Physical    Link      Loop     Partner Flow
Intf    Type         Mode    Mode        Status      Status    Status   Control
------  -----------  ------  ----------  ----------  --------  -------- ------------
0/1      DAC          FWD     25G Full    25G Full    Up                 NA
0/2      DAC          BLK     25G Full    25G Full    Up       Loop      NA
0/3                   DIS     25G Full                Down               NA
0/4                   DIS     25G Full                Down               NA
0/5      10GBase-SR   FWD     10G Full    10G Full    Up                 NA
0/6      10GBase-SR   FWD     10G Full    10G Full    Up                 NA

0/49     40GBase-SR4  FWD     40G Full    40G Full    Up                 NA
0/50     40GBase-SR4  BLK     40G Full    40G Full    Up       Loop      NA

Show flowcontrol

Use this command to display the IEEE 802.3 Annex 31B flow control settings and status for a specific interface or all interfaces. It also displays 802.3 Tx and Rx pause counts. Priority Flow Control frames counts are not displayed. If the port is enabled for priority flow control, operational flow control status is displayed as Inactive.

Format show flowcontrol
Mode Privileged EXEC

Display Message

Fields Definition
Admin Flow Control The administrative mode of flow control.
port The port associated with the rest of the data in the row.
Flow Control Oper The operational mode of flow control.
RxPause The received pause frame count.
TxPause The transmitted pause frame count.

Example: The following shows examples of the command.

CODE
(Routing)#show flowcontrol
Admin Flow Control: Symmetric

Port   Flow Control   RxPause   TxPause
Oper
------ ------------   --------  ---------
0/1 Active            310       611
0/2 Inactive              0      0
--More-- or (q)uit

(Routing)#show flowcontrol interface 0/1
Admin Flow Control: Symmetric

Port    Flow Control RxPause    TxPause
Oper
--------- -------  -------- -------
0/1 Active        310            611