display interface vlan-interface

Syntax

display interface [ vlan-interface ] [ brief [ down | description ] ] [ | { begin | exclude | include } regular-expression ]

display interface vlan-interface vlan-interface-id [ brief [ description ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

vlan-interface-id: Specifies a VLAN interface number.

brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.

down: Displays information about interfaces in the DOWN state and the causes. If you do not specify this keyword, this command displays information about interfaces in all states.

description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 27 characters of each interface description.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display interface vlan-interface to display information about a specified or all VLAN interfaces.

If you do not provide the vlan-interface keyword, this command displays information about all interfaces.

If you provide the vlan-interface keyword but do not specify the VLAN interface number, this command displays information about all VLAN interfaces.

Related commands: reset counters interface vlan-interface.

Examples

# Display information for VLAN-interface 2.

<Sysname> display interface vlan-interface 2
Vlan-interface2 current state: DOWN
Line protocol current state: DOWN
Description: Vlan-interface2 Interface
The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
IP Packet Frame Type: PKTFMT_ETHNT_2,  Hardware Address: 000f-e249-8050
IPv6 Packet Frame Type: PKTFMT_ETHNT_2,  Hardware Address: 000f-e249-8050
Last clearing of counters:  Never
     Last 300 seconds input:  0 bytes/sec 0 packets/sec
     Last 300 seconds output:  0 bytes/sec 0 packets/sec
     0 packets input, 0 bytes, 0 drops
     0 packets output, 0 bytes, 0 drops

# Display brief information for VLAN-interface 2.

<Sysname> display interface vlan-interface 2 brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface            Link Protocol Main IP         Description
Vlan2                DOWN DOWN     --

# Display brief information for VLAN interfaces in DOWN state.

<Sysname> display interface vlan-interface brief down
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Interface            Link Cause
Vlan2                DOWN Not connected

Table 31: Command output

Field

Description

Vlan-interface2 current state

Physical state of a VLAN interface:

  • DOWN ( Administratively )—The administrative state of the VLAN interface is down, because it has been shut down with the shutdown command.

  • DOWN—The administrative sate of the VLAN interface is up, but its physical sate is down. The VLAN corresponding to this interface does not contain any physical port in the UP state (possibly because the ports are not well connected or the lines have failed).

  • UP—Both the administrative state and the physical state of the VLAN interface are up.

Line protocol current state

Link layer protocol state of a VLAN interface:

  • DOWN—The protocol state of the VLAN interface is down.

  • UP—The protocol state of the VLAN interface is up.

Description

Description string of a VLAN interface.

The Maximum Transmit Unit

MTU of a VLAN interface.

Internet protocol processing : disabled

The interface is not capable of processing IP packets. This information is displayed when the interface is not configured with an IP address.

Internet Address is 192.168.1.54/24 Primary

The IP address of the interface is 192.168.1.54/24. This information is displayed only if the IP address is configured for the interface.

IP Packet Frame Type

IPv4 outgoing frame format.

Hardware address

MAC address corresponding to a VLAN interface.

IPv6 Packet Frame Type

IPv6 outgoing frame format.

Last clearing of counters

Time when the reset counters interface vlan-interface command was last used to clear the interface statistics.

Never indicates the reset counters interface command has never been used on the interface since the device’s startup.

Last 300 seconds input: 0 bytes/sec 0 packets/sec

Average rate of input packets in the last 300 seconds (in bps and pps).

Last 300 seconds output: 0 bytes/sec 0 packets/sec

Average rate of output packets in the last 300 seconds (in bps and pps).

0 packets input, 0 bytes, 0 drops

Total number and size (in bytes) of the received packets of the interface and the number of the dropped packets.

0 packets output, 0 bytes, 0 drops

Total number and size (in bytes) of the sent packets of the interface and the number of the dropped packets.

The brief information of interface(s) under route mode

Brief information about Layer 3 interfaces.

Link: ADM - administratively down; Stby - standby

Link layer state of the interface:

  • ADM—The interface has been administratively shut down. To recover its physical state, perform the undo shutdown command.

  • Stby—The interface is operating as a standby interface.

Protocol: (s) - spoofing

If the network layer protocol state of an interface is shown as UP, but its link is an on-demand link or not present at all, its protocol attribute includes the spoofing flag (an s in parentheses).

Interface

Abbreviated interface name.

Link

Physical link state of the interface:

  • UP—The link is up.

  • ADM—The link has been administratively shut down. To recover its physical state, perform the undo shutdown command.

Protocol

Protocol connection state of the interface, which can be UP, DOWN, or UP(s).

Main IP

Main IP address of the interface.

Description

Description of the interface.

Cause

Cause of a DOWN physical link. If the port has been shut down with the shutdown command, this field displays Administratively. To restore the physical state of the interface, use the undo shutdown command.