display vlan-statistics interface

Function

The display vlan-statistics interface command displays statistics about user packets with specified VLAN IDs on a specified interface.

This command is supported only on the NetEngine 8000 F1A.

Format

display vlan-statistics interface { interface-name | interface-type interface-number } pevlan pevlan-id [ cevlan cevlan-id ] [ verbose ]

display vlan-statistics interface { interface-name | interface-type interface-number } cevlan cevlan-id

Parameters

Parameter Description Value
pevlan pevlan-id

Displays statistics about user packets with a specified single or outer VLAN ID on a specified interface.

The value is an integer ranging from 1 to 4094.

cevlan cevlan-id

Displays statistics about user packets with a specified inner VLAN ID on a specified interface.

The value is an integer ranging from 1 to 4094.

verbose

Displays verbose information.

-

interface interface-type

Displays statistics about user packets on a specified interface.

-

interface interface-number

Specifies the number of an interface.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bras-control read

Usage Guidelines

Usage Scenario

On some networks, each device is assigned a unique outer VLAN ID. Statistics about upstream and downstream user traffic on an interface bound to a VLAN help diagnose whether a device is working properly. If no user traffic exists on the device for a long time, the device may fail and requires a further check.

To check statistics about user packets with specified VLAN IDs on a specified interface, run the display vlan-statistics command. The command output helps you analyze interface faults.

  • If interface <interface-type> <interface-number> . <subinterface-number> and pevlan <pevlan-id> are specified, statistics about user packets with pevlan-id as the single VLAN ID are displayed on the specified dot1q sub-interface.
  • If interface <interface-type> <interface-number> . <subinterface-number> , pevlan <pevlan-id> , and cevlan <cevlan-id> are specified, statistics about user packets with <pevlan-id> as the outer VLAN ID and cevlan-id as the inner VLAN ID are displayed on the specified QinQ sub-interface.
  • If interface <interface-type> <interface-number> and pevlan <pevlan-id> are specified, statistics about user packets with pevlan-id as the single VLAN ID are displayed for the dot1q sub-interface on the specified interface and statistics about user packets with <pevlan-id> as the outer VLAN ID are displayed for the QinQ sub-interface on the specified interface.
  • If interface <interface-type> <interface-number> and cevlan <cevlan-id> are specified, statistics about user packets with <cevlan-id> as the inner VLAN ID are displayed for the QinQ sub-interface on the specified interface.

Prerequisites

When querying the sub interface information, need to configure the command set vlan statistics subinterface enable in the system first.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display statistics about user packets with a single VLAN ID 1 or outer VLAN ID 1 on GE 0/1/2.
<HUAWEI> display vlan-statistics interface gigabitethernet 0/1/2.1 pevlan 1
Interface Name: GigabitEthernet0/1/2.1  
  input: 0 packets, 0 bytes
  output: 0 packets, 0 bytes
  ipv4 input: 0 packets, 0 bytes
  ipv4 output: 0 packets, 0 bytes
  ipv6 input: 0 packets, 0 bytes
  ipv6 output: 0 packets, 0 bytes
Table 1 Description of the display vlan-statistics interface command output
Item Description
Interface Name

Interface name.

ipv4 input

Statistics about received IPv4 user packets.

ipv4 output

Statistics about sent IPv4 user packets.

ipv6 input

Statistics about received IPv6 user packets.

ipv6 output

Statistics about sent IPv6 user packets.

input

Statistics about received IPv4 and IPv6 user packets.

output

Statistics about sent IPv4 and IPv6 user packets.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >