- Table of Contents
-
- 04-Layer 2 - LAN Switching Command Reference
- 00-Preface
- 01-MAC address table commands
- 02-Ethernet link aggregation commands
- 03-Port isolation commands
- 04-Spanning tree commands
- 05-Loop detection commands
- 06-VLAN commands
- 07-MVRP commands
- 08-QinQ commands
- 09-VLAN mapping commands
- 10-LLDP commands
- 11-Service loopback group commands
- Related Documents
-
Title | Size | Download |
---|---|---|
07-MVRP commands | 64.43 KB |
MVRP commands
display mvrp running-status
Use display mvrp running-status to display MVRP running status.
Syntax
display mvrp running-status [ interface interface-list ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
interface interface-list: Specifies a range of Ethernet interfaces in the form of interface-type interface-number [ to interface-type interface-number ]. The interface-type interface-number argument represents the interface type and interface number. If you do not specify this option, the command displays global MVRP information and MVRP running status for all MVRP-enabled ports.
Examples
# Display global MVRP information and MVRP running status for all MVRP-enabled 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
Registered VLANs :
1(default), 2-10
Declared VLANs :
1(default), 2-10
Propagated VLANs :
1(default), 2-10
----[GigabitEthernet1/0/2]----
Config Status : Enabled
Running Status : Disabled
Join Timer : 20 (centiseconds)
Leave Timer : 60 (centiseconds)
Periodic Timer : 100 (centiseconds)
LeaveAll Timer : 1000 (centiseconds)
Registration Type : Normal
Registered VLANs :
None
Declared VLANs :
None
Propagated VLANs :
None
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. |
Config Status |
Whether MVRP is enabled on the port: · Enabled. · Disabled. |
Running Status |
Whether MVRP takes effect on the port: · Enabled. · Disabled. The running status of MVRP is determined by the following information: · Link state. · Link type. · Whether the port is a member of an aggregate interface. · MVRP enabling status of the port. |
Registration Type |
MVRP registration mode: · Normal. · Fixed. · Forbidden. |
Registered VLANs |
VLANs that the port has registered. |
Declared VLANs |
VLANs that the port has declared to its peer participant. |
Propagated VLANs |
VLANs that the port has learned and notified other participants on the same device to declare to their respective peer participants. |
display mvrp state
Use display mvrp state to display the MVRP state of a port in a VLAN.
Syntax
display mvrp state interface interface-type interface-number vlan vlan-id
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
vlan vlan-id: Specifies a VLAN by its VLAN ID in the range of 1 to 4094.
Examples
# Display the MVRP state of 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 |
State of the attribute that the local participant declares to its peer participant: · VO—Very anxious observer. · VP—Very anxious passive. · VN—Very anxious new. · AN—Anxious new. · AA—Anxious active. · QA—Quiet active. · LA—Leaving active. · AO—Anxious observer. · QO—Quiet observer. · AP—Anxious passive. · QP—Quiet passive. · LO—Leaving observer. |
Reg-state |
Registration state of the attribute declared by the peer participant on the local participant: · IN—Registered. · LV—Previously registered, but now being unregistered. · MT—Not registered. |
display mvrp statistics
Use display mvrp statistics to display MVRP statistics.
Syntax
display mvrp statistics [ interface interface-list ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
interface interface-list: Specifies a range of Ethernet interfaces in the form of interface-type interface-number [ to interface-type interface-number ]. The interface-type interface-number argument represents the interface type and interface number. If you do not specify this option, the command displays MVRP statistics of all MVRP-enabled ports.
Usage guidelines
If MVRP is disabled on the specified ports, this command does not provide any output.
Examples
# Display MVRP statistics of all 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 : 120
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 |
Failed Registrations |
Number of VLAN registration failures through MVRP on the local participant. |
Last PDU Origin |
Source MAC address of the last MVRPDU. |
Frames Received |
Number of MVRP frames received. |
New Event Received |
Number of New events received. |
JoinIn Event Received |
Number of JoinIn events received. |
In Event Received |
Number of In events received. |
JoinMt Event Received |
Number of JoinMt events received. |
Mt Event Received |
Number of Mt events received. |
Leave Event Received |
Number of Leave events received. |
LeaveAll Event Received |
Number of LeaveAll events received. |
Frames Transmitted |
Number of MVRP frames sent. |
New Event Transmitted |
Number of New events sent. |
JoinIn Event Transmitted |
Number of JoinIn events sent. |
In Event Transmitted |
Number of In events sent. |
JoinMt Event Transmitted |
Number of JoinMt events sent. |
Mt Event Transmitted |
Number of Mt events sent. |
Leave Event Transmitted |
Number of Leave events sent. |
LeaveAll Event Transmitted |
Number of LeaveAll events sent. |
Frames Discarded |
Number of MVRP frames dropped. |
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 interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Parameters
timer-value: Specifies the Join timer value (in centiseconds). The Join timer must meet the following requirements:
· Not less than 20.
· Less than half the Leave timer.
· Divisible by 20.
Examples
# Set the Join timer to 40 centiseconds. (In this example, the Leave timer is 100 centiseconds.)
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/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 interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Parameters
timer-value: Specifies the Leave timer value (in centiseconds). The Leave timer must meet the following requirements:
· Greater than two times the Join timer.
· Less than the LeaveAll timer.
· Divisible by 20.
Examples
# Set the Leave timer to 100 centiseconds. (In this example, the Join and LeaveAll timer use their default settings.)
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/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 interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Parameter
timer-value: Specifies the LeaveAll timer value (in centiseconds). The LeaveAll timer must meet the following requirements:
· Greater than any Leave timer on each port.
· Not greater than 32760.
· Divisible by 20.
Usage guidelines
Each time the LeaveAll timer of a port expires, all attributes of the MSTIs on the port are deregistered throughout the network. To prevent this type of deregistration from affecting the network, do not set the LeaveAll timer to less than its default value.
To keep the dynamic VLANs learned through MVRP stable, do not set the LeaveAll timer to less than its default value.
The device randomly changes the LeaveAll timer within a certain range when the MRP participant restarts its LeaveAll timer. This prevents the LeaveAll timer of a particular participant from always expiring first.
Examples
# Set the LeaveAll timer to 1500 centiseconds. (In this example, the Leave timer has been restored to the default.)
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/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 interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Parameters
timer-value: Specifies the Periodic timer (in centiseconds), which can be 0 or 100.
Usage guidelines
Setting the Periodic timer to 0 disables the Periodic timer.
Setting the Periodic timer to 100 enables the Periodic timer. The participant then sends MRP frames per 100 centiseconds.
Examples
# Disable the periodic timer.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mrp timer periodic 0
Related commands
display mvrp running-status
mvrp enable
Use mvrp enable to enable MVRP on a port.
Use undo mvrp enable to restore the default.
Syntax
mvrp enable
undo mvrp enable
Default
MVRP is disabled on a port.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
For MVRP to take effect on a port, make sure the following requirements are met:
· MVRP is enabled both globally and on the port.
· The port is in up state.
· The link type of the port is trunk.
· The port is not a member of an aggregation group.
Examples
# Enable MVRP on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] mvrp global enable
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port link-type trunk
[Sysname-GigabitEthernet1/0/1] mvrp enable
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
Predefined user roles
network-admin
mdc-admin
Usage guidelines
To make MVRP take effect on a port, enable MVRP both on the port and globally.
Examples
# Enable MVRP globally.
<Sysname> system-view
[Sysname] mvrp global enable
Related commands
display mvrp running-status
mvrp gvrp-compliance enable
Use mvrp gvrp-compliance enable to enable GVRP compatibility.
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
Predefined user roles
network-admin
mdc-admin
Usage guidelines
When you enable GVRP compatibility, the device can receive and send both MVRP and GVRP frames.
Examples
# Enable GVRP compatibility.
<Sysname> system-view
[Sysname] mvrp gvrp-compliance enable
Related commands
display mvrp running-status
mvrp registration
Use mvrp registration to set the MVRP registration mode on a 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 interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Parameters
fixed: Specifies the fixed registration mode.
forbidden: Specifies the forbidden registration mode.
normal: Specifies the normal registration mode.
Examples
# Set the MVRP registration mode to fixed on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mvrp registration fixed
display mvrp running-status
reset mvrp statistics
Use reset mvrp statistics to clear MVRP statistics of ports.
Syntax
reset mvrp statistics [ interface interface-list ]
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
interface interface-list: Specifies a range of Ethernet interfaces in the form of interface-type interface-number [ to interface-type interface-number ]. The interface-type interface-number argument represents the interface type and interface number. If you do not specify this option, the command clears MVRP statistics of all ports.
Examples
# Clear MVRP statistics of all ports.
<Sysname> reset mvrp statistics
Related commands
display mvrp statistics