No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

S1720, S2700, S5700, and S6720 V200R011C10

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
VCMP Configuration Commands

VCMP Configuration Commands

Command Support

XGE interfaces connected to the ACU2, ET1D2IPS0S00, ET1D2FW00S00, ET1D2FW00S01 or ET1D2FW00S02 card do not support VCMP.

display snmp-agent trap feature-name vcmp all

Function

The display snmp-agent trap feature-name vcmp all command displays all trap functions of the VCMP module.

Format

display snmp-agent trap feature-name vcmp all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name vcmp all command to check the status of all traps of VCMP. You can use the snmp-agent trap enable feature-name vcmp command to enable the trap function of VCMP.

Prerequisites

SNMP has been enabled. See snmp-agent.

Example

# Display all trap functions of the VCMP module.

<HUAWEI>display snmp-agent trap feature-name vcmp all
------------------------------------------------------------------------------
Feature name: VCMP
Trap number : 2
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hwVcmpServerMacConflict         on                      on
hwVcmpRevisionConflict          on                      on
Table 5-73  Description of the display snmp-agent trap feature-name vcmp all command output

Item

Description

Feature name

Name of the module to which a trap message belongs.

Trap number

Number of trap messages.

Trap name

Name of a trap message of the VCMP module:

  • hwVcmpRevisionConflict: A Huawei proprietary trap when the server in a VCMP domain receives a VCMP packet with a higher revision number.
  • hwVcmpServerMacConflict: A Huawei proprietary trap when the server in a VCMP domain receives a VCMP packet with a higher revision number.

Default switch status

Status of the default trap function:
  • on: The trap function is enabled.
  • off: The trap function is disabled.

Current switch status

Status of the current trap function:
  • on: The trap function is enabled.
  • off: The trap function is disabled.

To specify the parameter, run the snmp-agent trap enable feature-name vcmp command.

display vcmp counters

Function

The display vcmp counters command displays statistics on VCMP packets.

Format

display vcmp counters

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If VCMP configured on a switch does not take effect, run the display vcmp counters command to view statistics on VCMP packets. The statistics helps you determine whether data on the switch is incorrect and locate faults.

Example

# Display statistics on VCMP packets.

<HUAWEI> display vcmp counters
VCMP statistics:
Received summary packets                        : 0
Received request packets                        : 0
Sent summary packets                            : 0
Sent request packets                            : 0
Received packets with ethheader error           : 0
Received packets with version error             : 0
Received packets with type error                : 0
Received packets with digest error              : 0
Received packets with domain error              : 0
Received packets with deviceid error            : 0
Failed to receive packets for bad vcmp state    : 0
Failed to send packets for bad vcmp state       : 0
Failed to receive packets for bad vlan          : 0
Failed to send packets for bad vlan             : 0
Failed to receive packets for bad link state    : 0
Failed to send packets for bad link state       : 0
Failed to receive packets for bad link type     : 0
Failed to send packets for bad link type        : 0
Failed to receive packets for bad forward state : 0
Failed to send packets for bad forward state    : 0
Table 5-74  Description of the display vcmp counters command output

Item

Description

VCMP statistics

Statistics on VCMP packets.

Received summary packets

Number of received VCMP Summary-Advert packets.

Received request packets

Number of received VCMP Advert-Request packets.

Sent summary packets

Number of sent VCMP Summary-Advert packets.

Sent request packets

Number of sent VCMP Advert-Request packets.

Received packets with ethheader error

Number of received VCMP packets with an incorrect Ethernet header.

Received packets with version error

Number of received VCMP packets with an incorrect protocol version.

Received packets with type error

Number of received VCMP packets of an incorrect type.

Received packets with digest error

Number of received VCMP packets with an incorrect digest.

Received packets with domain error

Number of received VCMP packets with an incorrect VCMP domain name.

Received packets with deviceid error

Number of received VCMP packets with an incorrect device ID.

Failed to receive packets for bad vcmp state

Number of packets that failed to be received due to incorrect VCMP status.

Failed to send packets for bad vcmp state

Number of packets that failed to be sent due to incorrect VCMP status.

Failed to receive packets for bad vlan

Number of packets that failed to be received due to incorrect VLAN information.

Failed to send packets for bad vlan

Number of packets that failed to be sent due to incorrect VLAN information.

Failed to receive packets for bad link state

Number of packets that failed to be received due to incorrect link status.

Failed to send packets for bad link state

Number of packets that failed to be sent due to incorrect link status.

Failed to receive packets for bad link type

Number of packets that failed to be received due to an incorrect link type.

Failed to send packets for bad link type

Number of packets that failed to be sent due to an incorrect link type.

Failed to receive packets for bad forward state

Number of packets that failed to be received due to incorrect forwarding status of the Layer Ethernet interface.

Failed to send packets for bad forward state

Number of packets that failed to be sent due to incorrect forwarding status of the Layer Ethernet interface.

Related Topics

display vcmp interface brief

Function

The display vcmp interface brief command displays the VCMP status on Layer 2 Ethernet interfaces.

Format

display vcmp interface brief

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

By default, VCMP is enabled on all Layer 2 Ethernet interfaces of a switch. You can run the display vcmp interface brief command to view the VCMP status on Layer 2 Ethernet interfaces.

Example

# Display the VCMP status on Layer 2 Ethernet interfaces.

<HUAWEI> display vcmp interface brief
Vcmp interface number:2
Interface                         Vcmp State
--------------------------------------------
GigabitEthernet0/0/1              disable
GigabitEthernet0/0/2              enable
Table 5-75  Description of the display vcmp interface brief command output

Item

Description

Vcmp interface number

Number of Layer 2 Ethernet interfaces supporting VCMP.

Interface

Name and number of a Layer 2 Ethernet interface on which VCMP can run.

Vcmp State

VCMP status on a Layer 2 Ethernet interface.

To specify the parameter, run the vcmp disable command.

Related Topics

display vcmp status

Function

The display vcmp status command displays the VCMP configuration, including the VCMP domain name, VCMP role, device ID, configuration revision number, and VCMP domain authentication password.

Format

display vcmp status

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After VCMP is configured on a switch, you can run the display vcmp status command to view the VCMP configuration.

Example

# Display the VCMP configuration.

<HUAWEI> display vcmp status
VCMP information:
Domain                  : VLAN
Role                    : Server
Server ID               : VLAN
Configuration Revision  : 0x846a0000
Password                : ******
Table 5-76  Description of the display vcmp status command output

Item

Description

VCMP information

VCMP information.

Domain

VCMP domain name. To change the VCMP domain name, run the vcmp domain command.

Role

VCMP role of the switch in the VCMP domain. To change the VCMP role, run the vcmp role command.

Server ID

ID of the switch functioning as the VCMP server. To change the device ID, run the vcmp device-id command.

Configuration Revision

Configuration revision number.

Password

VCMP domain authentication password. To change the authentication password, run the vcmp authentication command.

If no authentication password is configured, this parameter is left empty.

display vcmp track

Function

The display vcmp track command displays VLAN changes on a device functioning as a client.

Format

display vcmp track

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If a VLAN is created on or deleted from a device functioning as a server, the device functioning as a client synchronizes its VLAN information with that on the server by exchanging VCMP packets. To view VLAN changes, run the display vcmp track command on the client.

Example

# Display VLAN changes on the client.

<HUAWEI> display vcmp track
Operate Flags: A - Add, D - Delete
-------------------------------------------------------------------------------
Op System-Time              Operate-VLAN
-------------------------------------------------------------------------------
D  03-26 17:56:44+01:01     20-100
D  03-26 16:44:11+01:01     300
A  03-26 16:44:11+01:01     30
D  03-26 16:44:10+01:01     30
A  03-26 16:44:10+01:01     300
D  03-26 16:44:09+01:01     300
A  03-26 16:44:09+01:01     30
D  03-26 16:44:08+01:01     30
A  03-26 16:44:08+01:01     300
D  03-26 16:44:08+01:01     300
Table 5-77  Description of the display vcmp track command output

Item

Description

Operate Flags or Op

Operation flag:
  • A: Newly created VLANs
  • D: Deleted VLANs

System-Time

System time

Operate-VLAN

Operated VLAN

Related Topics

reset vcmp

Function

The reset vcmp command clears the VCMP domain name and device ID learned on a VCMP client.

Format

reset vcmp

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The VCMP domain ID and device ID learned by a VCMP client remain unchanged. The VCMP client needs to learn VCMP information again when the VCMP server in the local VCMP domain is changed. Therefore, clear learned VCMP information before the VCMP client learns VCMP information.

Configuration Impact

After the reset vcmp command is executed, the learned VCMP information is cleared and cannot be restored. Therefore, exercise caution when you run the reset vcmp command.

Example

# Clear the VCMP domain name and device ID learned on a VCMP client

<HUAWEI> reset vcmp

reset vcmp counters

Function

The reset vcmp counters command clears statistics on VCMP packets.

Format

reset vcmp counters

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Before recollecting statistics on VCMP packets in a specified period, run the reset vcmp counters command to clear existing statistics on VCMP packets.

Configuration Impact

After the reset vcmp counters command is executed, statistics on VCMP packets are cleared cannot be restored. Therefore, exercise caution when you run the reset vcmp counters command.

Example

# Clear statistics on VCMP packets.

<HUAWEI> reset vcmp counters
Related Topics

reset vcmp track

Function

The reset vcmp track command deletes VLAN changes on a device functioning as a client.

Format

reset vcmp track

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Before viewing VLAN changes on a client using the display vcmp track command, run the reset vcmp track command to delete existing VLAN changes.

Configuration Impact

After you run the reset vcmp track command, the deleted information cannot be restored. Therefore, exercise caution when running the reset vcmp track command.

Example

# Delete existing VLAN changes on the client.

<HUAWEI> reset vcmp track
Related Topics

snmp-agent trap enable feature-name vcmp

Function

The snmp-agent trap enable feature-name vcmp command enables the trap function for the VCMP module.

The undo snmp-agent trap enable feature-name vcmp command disables the trap function for the VCMP module.

By default, the trap function is enabled for the VCMP module.

Format

snmp-agent trap enable feature-name vcmp [ trap-name { hwvcmprevisionconflict | hwvcmpservermacconflict } ]

undo snmp-agent trap enable feature-name vcmp [ trap-name { hwvcmprevisionconflict | hwvcmpservermacconflict } ]

Parameters

Parameter Description Value
trap-name

Enables or disables the trap function for the specified event.

-
hwvcmprevisionconflict

Sends a Huawei proprietary trap when the server in a VCMP domain receives a VCMP packet with a higher revision number.

-
hwvcmpservermacconflict

Sends a Huawei proprietary trap when the server in a VCMP domain receives a VCMP packet with a higher revision number.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps during running and sends traps to the NMS through SNMP. When the trap function is not enabled, the device does not generate traps and the SNMP module does not send traps to the NMS.

You can specify trap-name to enable the trap function for one or more events.

Example

# Enable the device to send a Huawei proprietary trap when the server in a VCMP domain receives a VCMP packet with a higher revision number.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name vcmp trap-name hwvcmprevisionconflict

vcmp authentication

Function

The vcmp authentication command sets a VCMP domain authentication password.

The undo vcmp authentication command deletes the VCMP domain authentication password.

By default, no VCMP domain authentication password is set and VCMP packets pass without authentication.

Format

vcmp authentication sha2-256 password password

undo vcmp authentication

Parameters

Parameter Description Value
password password

Specifies a VCMP domain authentication password.

The value a string of case-sensitive characters, spaces not supported. Passwords are saved in ciphertext in the configuration file. Either of the following passwords can be set:

  • A simple text password is a string of 1 to 8 characters.
  • A ciphertext password is a string of 48 characters.

When double quotation marks are used around the string, spaces are allowed in the string.

NOTE:

A 32-character ciphertext password configured in an earlier version is also supported in this version.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To enhance security for a VCMP domain, you can run the vcmp authentication command to set a VCMP domain authentication password on each switch for authenticating packets exchanged between the switches in the VCMP domain.

Precautions

All switches in a VCMP domain must use the same VCMP domain authentication password.

Example

# Set the VCMP domain authentication password to huawei.

<HUAWEI> system-view
[HUAWEI] vcmp authentication sha2-256 password huawei
Related Topics

vcmp device-id

Function

The vcmp device-id command sets the device ID of the VCMP server.

The undo vcmp device-id command deletes the device ID of the VCMP server.

By default, no device ID is set for the VCMP server.

Format

vcmp device-id device-name

undo vcmp device-id

Parameters

Parameter Description Value
device-name

Specifies a device ID.

The value is a string of 1 to 31 case-sensitive characters without spaces.When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A device ID identifies the VCMP server so that other roles in a VCMP domain can identify the VCMP server.

Precautions

The device ID can be set only for the VCMP server.

Example

# Set the device ID of the VCMP server.

<HUAWEI> system-view
[HUAWEI] vcmp device-id VLAN
Related Topics

vcmp disable

Function

The vcmp disable command disables VCMP on an interface.

The undo vcmp disable command enables VCMP on an interface.

By default, VCMP is enabled on all interfaces of a switch.

Format

vcmp disable

undo vcmp disable

Parameters

None

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, MultiGE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, VCMP is enabled on all interfaces of a switch. If an edge switch in a VCMP domain requires VCMP management but its peer end does not require VCMP management, run the vcmp disable command on the edge switch Layer 2 interface connected to the peer end to disable VCMP. The peer end then does not receive VCMP packets.

Prerequisites

The interface connected to the peer end has been configured as a Layer 2 interface using the portswitch command.

Example

# Disable VCMP on GE0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] vcmp disable

vcmp domain

Function

The vcmp domain command configures a VCMP domain.

The undo vcmp domain command deletes a VCMP domain.

By default, no VCMP domain is created.

Format

vcmp domain domain-name

undo vcmp domain

Parameters

Parameter Description Value
domain-name

Specifies the name of a VCMP domain.

The value is a string of 1 to 31 case-sensitive characters without spaces.When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

VLANs created and deleted on the VCMP server are synchronized to VCMP clients in the local VCMP domain by sending VCMP packets.

A VCMP domain specifies the scope for managed switches. All VCMP clients are managed by the VCMP server. You can run the vcmp domain command to configure a VCMP domain.

Precautions

All switches in a VCMP domain must use the same domain name either through manual configuration or automatic learning. If the domain name is not set on a VCMP client, the VCMP client learns the domain name in the first received VCMP packet.

Each switch can be added to only one VCMP domain. Switches in different VCMP domains cannot synchronize VLAN information.

Example

# Configure a VCMP domain named VLAN.

<HUAWEI> system-view
[HUAWEI] vcmp domain VLAN
Related Topics

vcmp role

Function

The vcmp role command configures a role for a switch in a VCMP domain.

The undo vcmp role command restores the default role of a switch in a VCMP domain.

By default, switches in a VCMP domain are VCMP clients.

Format

vcmp role { client | server | silent | transparent }

undo vcmp role

Parameters

Parameter Description Value
client

Indicates the client role in a VCMP domain.

As a managed role, a VCMP client synchronizes VLAN information with the VCMP server.

After the VCMP server is specified on a Layer 2 network, VCMP clients in the same domain learn VLAN information in VCMP packets from the VCMP server and synchronize the VLAN information. You can create and delete VLAN information on VCMP clients. Local VLAN information on VCMP clients, however, are overwritten by VLAN information synchronized from the VCMP server.

-
server

Indicates the server role in a VCMP domain.

You can create and delete VLAN information on the VCMP server. The VCMP server synchronizes VLAN information to other switches in the local VCMP domain by sending VCMP packets.

-
silent

Indicates the silent role in a VCMP domain.

Deployed at the edge of a VCMP domain, a VCMP silent switch prevents VCMP packets in a VCMP domain from being transmitted to other VCMP domains, saving unnecessary costs of devices in other VCMP domains.

A VCMP silent switch directly discards received VCMP packets.

-
transparent

Indicates the transparent role in a VCMP domain.

A VCMP transparent switch does not affect other switches in the local VCMP domain and is not affected by VCMP management behaviors such as VLAN creation and deletion. The VCMP transparent switch transparently forwards VCMP packets. Only trunk or hybrid interfaces in VLAN 1 can receive and forward VCMP packets.

VLANs created and deleted on a VCMP transparent switch are not synchronized to other switches.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

VLANs created and deleted on the VCMP server are synchronized to VCMP clients in the local VCMP domain by sending VCMP packets.

You can run the vcmp role command to set roles of switches in a VCMP domain.

Precautions

After a switch is upgraded from a version earlier than V200R005C00 to V200R005C00 or a later version, the role of the switch is silent.

Example

# Configure a switch as the VCMP server in a VCMP domain.

<HUAWEI> system-view
[HUAWEI] vcmp role server
Related Topics
Translation
Download
Updated: 2019-04-18

Document ID: EDOC1000178165

Views: 42639

Downloads: 1107

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next