04-Layer 2 - LAN Switching Command Reference

HomeSupportSwitchesH3C S12500 Switch SeriesReference GuidesCommand ReferencesH3C S12500 Command References-Release7374-6W73104-Layer 2 - LAN Switching Command Reference
07-MVRP commands
Title Size Download
07-MVRP commands 99.11 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

 

 ----[GigabitEthernet3/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

 

 ----[GigabitEthernet3/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.

----[GigabitEthernet3/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.

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:

·     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 3/0/1 in VLAN 2.

<Sysname> display mvrp state interface GigabitEthernet 3/0/1 vlan 2

 MVRP state of VLAN 2 on port GE3/0/1:

 Port                      VLAN   App-state   Reg-state

------------------------ ------ ----------- -----------

 GE3/0/1                      2       VO          MT

Table 2 Command output

Field

Description

MVRP state of VLAN 2 on port GE3/0/1

MVRP state of GigabitEthernet 3/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. The state can be IN, LV, or MT:

·     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 trunk 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

 

 ----[GigabitEthernet3/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

Table 3 Command output

Field

Description

----[GigabitEthernet3/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 participant.

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.

 

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 3/0/1

[Sysname-GigabitEthernet3/0/1] mrp timer join 40

Related commands

·     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 3/0/1

[Sysname-GigabitEthernet3/0/1] mrp timer leave 100

Related commands

·     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 interface.

·     Not greater than 32760.

·     Divisible by 20.

Usage guidelines

Each time the LeaveAll timer of an interface expires, all attributes of the MSTIs on the interface are deregistered throughout the network. This type of deregistration affects a large portion of the network. Therefore, do not set too small a value for the LeaveAll timer.

To keep the dynamic VLANs learned through MVRP stable, do not set the LeaveAll timer smaller than its default value (1000 centiseconds).

The switch 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 3/0/1

[Sysname-GigabitEthernet3/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 packets per 100 centiseconds.

Examples

# Disable the periodic timer.

<Sysname> system-view

[Sysname] interface GigabitEthernet 3/0/1

[Sysname-GigabitEthernet3/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 3/0/1.

<Sysname> system-view

[Sysname] mvrp global enable

[Sysname] interface GigabitEthernet 3/0/1

[Sysname-GigabitEthernet3/0/1] port link-type trunk

[Sysname-GigabitEthernet3/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

For MVRP to take effect on a port, you must enable MVRP 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 an interface.

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 3/0/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 3/0/1

[Sysname-GigabitEthernet3/0/1] mvrp registration fixed

Related commands

display mvrp running-status

reset mvrp statistics

Use reset mvrp statistics to clear the MVRP statistics of interfaces.

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 interfaces.

Examples

# Clear the MVRP statistics of all interfaces.

<Sysname> reset mvrp statistics

Related commands

display mvrp statistics

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网