- Table of Contents
-
- 02-Layer 2-LAN Switching Command Reference
- 00-Preface
- 01-Ethernet interface configuration commands
- 02-Loopback and null interface configuration commands
- 03-Bulk interface configuration commands
- 04-MAC address table configuration commands
- 05-Ethernet link aggregation configuration commands
- 06-Port isolation configuration commands
- 07-Spanning tree configuration commands
- 08-BPDU tunneling configuration commands
- 09-VLAN configuration commands
- 10-GVRP configuration commands
- 11-LLDP configuration commands
- 12-Service loopback group configuration commands
- 13-MVRP commands
- Related Documents
-
Title | Size | Download |
---|---|---|
13-MVRP commands | 108.63 KB |
display mvrp running-status
Use display mvrp running-status to display the MVRP running status.
Syntax
display mvrp running-status [ interface interface-list ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-list: Specifies an Ethernet interface list in the form of interface-list = { interface-type interface-number1 [ to interface-type interface-number2 ] }&<1-10>, where interface-type interface-number specifies an interface by its type and number and &<1-10> indicates that you can specify up to 10 interface-type interface-number1 [ to interface-type interface-number2 ] parameters. If this option is not specified, this command displays MVRP running status of all MVRP-enabled trunk ports.
|: 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.
Examples
# Display the MVRP running status of all ports.
<Sysname> display mvrp running-status
-------[MVRP Global Info]-------
Global Status : Enabled
Compliance-GVRP : False
----[GigabitEthernet1/0/1]----
Config Status : Enabled
Running Status : Enabled
Join Timer : 20 (centiseconds)
Leave Timer : 60 (centiseconds)
Periodic Timer : 100 (centiseconds)
LeaveAll Timer : 1000 (centiseconds)
Registration Type : Normal
Local VLANs :
1(default), 2-10,
Table 1 Command output
Field |
Description |
MVRP Global Info |
Global MVRP information. |
Global Status |
Global MVRP status: · Enabled. · Disabled. |
Compliance-GVRP |
GVRP compatibility status: · True—Compatible. · False—Incompatible. |
----[GigabitEthernet1/0/1] ---- |
Interface prompt. The information between the current interface prompt and the next interface prompt is information about the current interface. |
Config Status |
Whether MVRP is enabled on the port: · Enabled. · Disabled. |
Running Status |
Whether MVRP takes effect on the port (determined by the link state and MVRP enabling status of the port): · Enabled. · Disabled. |
Join Timer |
Join timer, in centiseconds. |
Leave Timer |
Leave timer, in centiseconds. |
Periodic Timer |
Periodic timer, in centiseconds. |
LeaveAll Timer |
LeaveAll timer, in centiseconds. |
Registration Type |
MVRP registration mode: · Fixed. · Forbidden. · Normal. |
Local VLANs |
VLAN information in the local database, which displays the VLANs learned through MVRP. |
display mvrp state
Use display mvrp state to display the MVRP state of an interface in a VLAN.
Syntax
display mvrp state interface interface-type interface-number vlan vlan-id [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
0: Visit level
Parameters
interface interface-type interface-number: Displays the MVRP state of an interface specified by its type and number.
vlan vlan-id: Displays the MVRP state of an interface in an VLAN specified by its VLAN ID, which ranges from 1 to 4094.
|: 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.
Examples
# Display the MVRP state of port GigabitEthernet 1/0/1 in VLAN 2.
<Sysname> display mvrp state interface gigabitethernet 1/0/1 vlan 2
MVRP state of VLAN 2 on port GE1/0/1
Port VLAN App-state Reg-state
----------- ------ ----------- -----------
GE1/0/1 2 VP IN
Table 2 Command output
Field |
Description |
MVRP state of VLAN 2 on port GE1/0/1 |
MVRP state of GigabitEthernet 1/0/1 in VLAN 2. |
App-state |
Declaration state, which indicates the state of the attribute that the local participant declares to the remote participant. The state can be VO, VP, VN, AN, AA, QA, LA, AO, QO, AP, QP, or LO. Each state consists of two letters. The first letter indicates the state: · V—Very anxious, which means that the local participant has not declared the attribute or has not received any Join message containing the attribute. · A—Anxious, which means that the local participant has declared the attribute once or has received one Join message containing the attribute. · Q—Quiet, which means that the local participant has declared the attribute two times, the local participant has declared the attribute once and has received one Join message containing the attribute, or the local participant has received two Join messages containing the attribute. · L—Leaving, which means that the local participant is deregistering the attribute. The second letter indicates the membership state: · A—Active member, which means that the local participant is declaring the attribute, has sent at least one Join message containing the attribute, and may receive Join messages. · P—Passive member, which means that the local participant is declaring the attribute, has received Join messages containing the attribute, but has not sent Join messages containing the attribute. · O—Observer, which means that the local participant is not declaring the attribute but is monitoring the attribute. · N—New, which means that the local participant is declaring the attribute, is receiving the Join message containing the attribute, but is not sending Join messages for the attribute. For example, VP indicates "Very anxious, Passive member". |
Reg-state |
Registration state of attributes declared by remote participants on the local end. The state can be IN, LV, or MT: · IN—Registered. · LV—Previously registered, but now being timed out. · MT—Not registered. |
display mvrp statistics
Use display mvrp statistics to display MVRP statistics.
Syntax
display mvrp statistics [ interface interface-list ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-list: Specifies an Ethernet interface list in the form of interface-list = { interface-type interface-number1 [ to interface-type interface-number2 ] }&<1-10>, where interface-type interface-number specifies an interface by its type and number and &<1-10> indicates that you can specify up to 10 interfaces or interface ranges. If this option is not specified, this command displays MVRP statistics of all MVRP-enabled trunk ports.
|: 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.
Examples
# Display MVRP statistics of all MVRP-enabled ports.
<Sysname> display mvrp statistics
----[GigabitEthernet1/0/1]----
Failed Registrations : 1
Last PDU Origin : 000f-e200-0010
Frames Received : 201
New Event Received : 0
JoinIn Event Received : 1167
In Event Received : 0
JoinMt Event Received : 22387
Mt Event Received : 31
Leave Event Received : 210
LeaveAll Event Received : 63
Frames Transmitted : 47
New Event Transmitted : 0
JoinIn Event Transmitted : 311
In Event Transmitted : 0
JoinMt Event Transmitted : 873
Mt Event Transmitted : 11065
Leave Event Transmitted : 167
LeaveAll Event Transmitted : 4
Frames Discarded : 0
----[GigabitEthernet1/0/2]----
Failed Registrations : 0
Last PDU Origin : 0000-0000-0000
Frames Received : 0
New Event Received : 0
JoinIn Event Received : 0
In Event Received : 0
JoinMt Event Received : 0
Mt Event Received : 0
Leave Event Received : 0
LeaveAll Event Received : 0
Frames Transmitted : 0
New Event Transmitted : 0
JoinIn Event Transmitted : 0
In Event Transmitted : 0
JoinMt Event Transmitted : 0
Mt Event Transmitted : 0
Leave Event Transmitted : 0
LeaveAll Event Transmitted : 0
Frames Discarded : 0
Table 3 Command output
Field |
Description |
----[GigabitEthernet1/0/1]---- |
Interface prompt. The statistics between the current interface prompt and the next interface prompt are statistics of the current interface. |
Failed Registrations |
Number of VLAN registration failures through MVRP on the local end. |
Last PDU Origin |
Source MAC address of the last MVRP PDU. |
Frames Received |
Number of MVRP protocol packets received. |
New Event Received |
Number of New attribute events received. |
JoinIn Event Received |
Number of JoinIn attribute events received. |
In Event Received |
Number of In attribute events received. |
JoinMt Event Received |
Number of JoinMt attribute events received. |
Mt Event Received |
Number of Mt attribute events received. |
Leave Event Received |
Number of Leave attribute events received. |
LeaveAll Event Received |
Number of LeaveAll attribute events received. |
Frames Transmitted |
Number of MVRP protocol packets sent. |
New Event Transmitted |
Number of New attribute events sent. |
JoinIn Event Transmitted |
Number of JoinIn attribute events sent. |
In Event Transmitted |
Number of In attribute events sent. |
JoinMt Event Transmitted |
Number of JoinMt attribute events sent. |
Mt Event Transmitted |
Number of Mt attribute events sent. |
Leave Event Transmitted |
Number of Leave attribute events sent. |
LeaveAll Event Transmitted |
Number of LeaveAll attribute events sent. |
Frames Discarded |
Number of MVRP protocol packets dropped. |
display mvrp vlan-operation
Use display mvrp vlan-operation to display the dynamic VLAN operations of an interface.
Syntax
display mvrp vlan-operation interface interface-type interface-number [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
0: Visit level
Parameters
interface interface-type interface-number: Displays the dynamic VLAN operations of an interface specified its type and number.
|: 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.
Usage guidelines
These dynamic VLANs refer to the VLANs that are dynamically learned through MVRP and have not taken effect on the local device.
If a dynamic VLAN learned through MVRP is an existing static VLAN on the device or a VLAN reserved for a protocol, the dynamic VLAN does not take effect on the local device.
Examples
# Display the dynamic VLAN operations of GigabitEthernet 1/0/1.
<Sysname> display mvrp vlan-operation interface gigabitethernet 1/0/1
Dynamic VLAN operations on port GigabitEthernet1/0/1
Operations of creating VLAN: 2-100
Operations of deleting VLAN: none
Operations of adding VLAN to Trunk: 2-100
Operations of deleting VLAN from Trunk: none
Table 4 Command output
Field |
Description |
Operations of adding VLAN to Trunk |
Operations of adding VLANs to trunk ports. |
Operations of deleting VLAN from Trunk |
Operations of removing VLAN from trunk ports. |
mrp timer join
Use mrp timer join to set the Join timer.
Use undo mrp timer join to restore the default.
Syntax
mrp timer join timer-value
undo mrp timer join
Default
The Join timer is 20 centiseconds.
Views
Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view
Default command level
2: System level
Parameters
timer-value: Specifies the Join timer value (in centiseconds). The Join timer must be less than half the Leave timer, and must be a multiple of 20.
Usage guidelines
You will fail to restore the default Join timer if the default Join timer is not less than half the Leave timer.
Examples
# Set the Join timer to 40 centiseconds. (Suppose the Leave timer is 100 centiseconds)
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-GigabitEthernet1/0/1] mrp timer join 40
· display mvrp running-status
· mrp timer leave
mrp timer leave
Use mrp timer leave to set the Leave timer.
Use undo mrp timer leave to restore the default.
Syntax
mrp timer leave timer-value
undo mrp timer leave
Default
The Leave timer is 60 centiseconds.
Views
Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view
Default command level
2: System level
Parameters
timer-value: Specifies the Leave timer value (in centiseconds). The Leave timer must be greater than two times the Join timer, less than the LeaveAll timer, and a multiple of 20.
Usage guidelines
You will fail to restore the default Leave timer if the default Leave timer is not greater than two times the Join timer or not less than the LeaveAll timer.
Examples
# Set the Leave timer to 100 centiseconds. (Suppose the Join and LeaveAll timer use their default settings)
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-GigabitEthernet1/0/1] mrp timer leave 100
· display mvrp running-status
· mrp timer join
· mrp timer leaveall
mrp timer leaveall
Use mrp timer leaveall to set the LeaveAll timer.
Use undo mrp timer leaveall to restore the default.
Syntax
mrp timer leaveall timer-value
undo mrp timer leaveall
Default
The LeaveAll timer is 1000 centiseconds.
Views
Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view
Default command level
2: System level
Parameter
timer-value: Specifies the LeaveAll timer value (in centiseconds). The LeaveAll timer must be greater than any Leave timer on each port, no greater than 32760, and a multiple of 20.
Usage guidelines
You will fail to restore the default LeaveAll timer if the default LeaveAll timer is not greater than any Leave timer on each port.
Each time when the LeaveAll timer of a port expires, all attributes of the MSTIs on the port are deregistered throughout the network, and such a deregistration affects a large portion of the network. Do not set too small a value for the LeaveAll timer, and make sure that the LeaveAll timer is greater than any Leave timer on each port.
To keep the dynamic VLANs learned through MVRP stable, do not set the LeaveAll timer smaller than its default value (1000 centiseconds).
To avoid the case that the LeaveAll timer of a fixed participant always first expires, the switch randomly changes the LeaveAll timer within a certain range when the MRP participant restarts its LeaveAll timer.
Examples
# Set the LeaveAll timer to 1500 centiseconds. (Suppose the Leave timer is restored to the default)
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-GigabitEthernet1/0/1] mrp timer leaveall 1500
Related commands
· display mvrp running-status
· mrp timer leave
mrp timer periodic
Use mrp timer periodic to set the Periodic timer.
Use undo mrp timer periodic to restore the default.
Syntax
mrp timer periodic timer-value
undo mrp timer periodic
Default
The Periodic timer is 100 centiseconds.
Views
Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view
Default command level
2: System level
Parameters
timer-value: Specifies the Periodic timer (in centiseconds), which can be 0 or 100.
Usage guidelines
Setting the Periodic timer to 0 centiseconds disables the Periodic timer.
Setting the Periodic timer to 100 centiseconds enables the Periodic timer.
Examples
# Set the Periodic timer to 0 centiseconds.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-GigabitEthernet1/0/1] mrp timer periodic 0
Related commands
display mvrp running-status
mvrp global enable
Use mvrp global enable to enable MVRP globally.
Use undo mvrp global enable to restore the default.
Syntax
mvrp global enable
undo mvrp global enable
Default
MVRP is disabled globally.
Views
System view
Default command level
2: System level
Usage guidelines
Disabling MVRP globally also disables MVRP on all ports.
Examples
# Enable MVRP globally.
<Sysname> system-view
[Sysname] mvrp global enable
Related commands
· display mvrp running-status
· mvrp enable
mvrp enable
Use mvrp enable to enable MVRP on a port.
Use undo mvrp enable to disable MVRP on a port.
Syntax
mvrp enable
undo mvrp enable
Default
MVRP is disabled on a port.
Views
Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view
Default command level
2: System level
Usage guidelines
To enable MVRP on a port, first enable MVRP globally.
Disabling MVRP globally also disables MVRP on each port.
This command is available only on trunk ports.
You cannot change the link type of MVRP-enabled trunk port.
Examples
# Configure GigabitEthernet 1/0/1 as a trunk port, and enable MVRP on it.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-GigabitEthernet1/0/1] port link-type trunk
[Sysname-GigabitEthernet1/0/1] port trunk permit vlan all
[Sysname-GigabitEthernet1/0/1] mvrp enable
Related commands
· display mvrp running-status
· mvrp global enable
mvrp gvrp-compliance
Use mvrp gvrp-compliance enable to enable GVRP compatibility, so that the device can process both MVRP protocol packets and GVRP protocol packets.
Use undo mvrp gvrp-compliance enable to restore the default.
Syntax
mvrp gvrp-compliance enable
undo mvrp gvrp-compliance enable
Default
GVRP compatibility is disabled.
Views
System view
Default command level
2: System level
Examples
# Enable GVRP compatibility.
<Sysname> system-view
[Sysname] mvrp gvrp-compliance enable
mvrp registration
Use mvrp registration to set the MVRP registration mode on the port.
Use undo mvrp registration to restore the default.
Syntax
mvrp registration { fixed | forbidden | normal }
undo mvrp registration
Default
The MVRP registration mode is normal.
Views
Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view
Default command level
2: System level
Parameters
fixed: Specifies the fixed registration mode.
forbidden: Specifies the forbidden registration mode.
normal: Specifies the normal registration mode.
Usage guidelines
This command is available only on trunk ports.
Examples
# Configure GigabitEthernet 1/0/1 as a trunk port, and set the MVRP registration mode to fixed on the port.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-GigabitEthernet1/0/1] port link-type trunk
[Sysname-GigabitEthernet1/0/1] port trunk permit vlan all
[Sysname-GigabitEthernet1/0/1] mvrp registration fixed
display mvrp running-status
reset mvrp statistics
Use reset mvrp statistics to clear the MVRP statistics of ports.
Syntax
reset mvrp statistics [ interface interface-list ]
Views
User view
Default command level
2: System level
Parameters
interface interface-list: Specifies an Ethernet interface list in the form of interface-list = { interface-type interface-number1 [ to interface-type interface-number2 ] }&<1-10>, where interface-type interface-number specifies an interface by its type and number and &<1-10> indicates that you can specify up to 10 interfaces or interface ranges. If this option is not specified, the command clears MVRP statistics of all ports.
Examples
# Clear the MVRP statistics of all ports.
<Sysname> reset mvrp statistics
Related commands
display mvrp statistics