04-Layer 2 - LAN Switching Command Reference

HomeSupportSwitchesH3C S12500 Switch SeriesReference GuidesCommand ReferencesH3C S12500 Command References-Release1828P04-6W18204-Layer 2 - LAN Switching Command Reference
14-MVRP Commands
Title Size Download
14-MVRP Commands 101.23 KB

MVRP commands

display mvrp state

Syntax

display mvrp state interface interface-type interface-number vlan vlan-id [ | { begin | exclude | include } regular-expression ]

View

Any view

Default 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. The value range for the vlan-id argument is 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.

Description

Use display mvrp state to display the MVRP state of an interface in a VLAN.

Examples

# Display the MVRP state of port 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 1 Command output

Field

Description

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

MVRP state of GigabitEthernet 3/0/1 in VLAN 2.

App-state

The Applicant state machine that declares attributes. Its 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:

·     VVery anxious.

·     AAnxious.

·     QQuiet.

·     LLeaving.

The second letter indicates the membership state:

·     A—Active member.

·     P—Passive member.

·     O—Observer.

For example, VP indicates "Very anxious, Passive member."

Reg-state

The Registrar state machine that records the registration state of attributes declared by other participants. Its state can be IN, LV, or MT:

·     IN—Registered.

·     LV—Previously registered, but now being timed out.

·     MT—Not registered.

 

display mvrp running-status

Syntax

display mvrp running-status [ interface interface-list ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface interface-list: Displays the MVRP running status of one or multiple ports. You can specify up to 10 port lists, by each of which you can specify a single port in the form of interface-type interface-number, or a port range in the form of interface-type interface-number1 to interface-type interface-number2, where interface-number2 must be greater than interface-number1. 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.

Description

Use display mvrp running-status to display the MVRP running status.

Examples

# Display the MVRP running status of all 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

Local VLANs :

  1(default), 2-10,

 

----[GigabitEthernet3/0/2] ----

Config Status                       : Disabled

Running Status                      : Disabled

Join Timer                          : 20 (centiseconds)

Leave Timer                         : 60 (centiseconds)

Periodic Timer                      : 100 (centiseconds)

LeaveAll Timer                      : 1000 (centiseconds)

Registration Type                   : Normal

Local VLANs :

  1(default),

Table 2 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. 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 statistics

Syntax

display mvrp statistics [ interface interface-list ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface interface-list: Displays the MVRP statistics of one or multiple ports. You can specify up to 10 port lists, by each of which you can specify a single port in the form of interface-type interface-number, or a port range in the form of interface-type interface-number1 to interface-type interface-number2, where interface-number2 must be greater than interface-number1. 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.

Description

Use display mvrp statistics to display MVRP statistics.

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             : 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 

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

----[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 MVRP registration failures.

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

Syntax

display mvrp vlan-operation interface interface-type interface-number [ | { begin | exclude | include } regular-expression ]

View

Any view

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

Description

Use display mvrp vlan-operation to display the dynamic VLAN operations of an interface. These dynamic VLANs refer to the VLANs that the interface learns through MVRP but have not taken effect on the interface.

If a dynamic VLAN that the interface learns through MVRP is a static VLAN or a VLAN reserved for another protocol on the switch, the dynamic VLAN does not take effect on the switch.

Examples

# Display the dynamic VLAN operations of GigabitEthernet 3/0/1.

<Sysname> display mvrp vlan-operation interface GigabitEthernet 3/0/1

 Dynamic VLAN operations on port GigabitEthernet3/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

Syntax

mrp timer join timer-value

undo mrp timer join

View

Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view

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

Description

Use mrp timer join to set the Join timer.

Use undo mrp timer join to restore the default. You will fail to restore the default Join timer if the default Join timer is not less than half the Leave timer.

By default, the Join timer is 20 centiseconds.

Related commands: display mvrp running-status and mrp timer leave.

Examples

# Set the Join timer to 40 centiseconds. (Suppose the Leave timer is 100 centiseconds)

<Sysname> system-view

[Sysname] interface GigabitEthernet 3/0/1

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

mrp timer leave

Syntax

mrp timer leave timer-value

undo mrp timer leave

View

Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view

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

Description

Use mrp timer leave to set the Leave timer.

Use undo mrp timer leave to restore the default. 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.

By default, the Leave timer is 60 centiseconds.

Related commands: display mvrp running-status, mrp timer join, and mrp timer leaveall.

Examples

# Set the Leave timer to 100 centiseconds. (Suppose 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

mrp timer leaveall

Syntax

mrp timer leaveall timer-value

undo mrp timer leaveall

View

Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view

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

Description

Use mrp timer leaveall to set the LeaveAll timer.

Use undo mrp timer leaveall to restore the default. You will fail to restore the default LeaveAll timer if the default LeaveAll timer is not greater than any Leave timer on each port.

By default, the LeaveAll timer is 1000 centiseconds.

Each timer 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 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).

Related commands: display mvrp running-status and mrp timer leave.

Examples

# Set the LeaveAll timer to 1500 centiseconds. (Suppose the Leave timer is restored to the default)

<Sysname> system-view

[Sysname] interface GigabitEthernet 3/0/1

[Sysname-GigabitEthernet3/0/1] mrp timer leaveall 1500

mrp timer periodic

Syntax

mrp timer periodic timer-value

undo mrp timer periodic

View

Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view

Default level

2: System level

Parameters

timer-value: Specifies the Periodic timer in centiseconds, which can be 0 or 100.

Description

Use mrp timer periodic to set the Periodic timer.

Use undo mrp timer periodic to restore the default.

By default, the Periodic timer is 100 centiseconds.

Setting the Periodic timer to 0 disables periodic transmission of MRP messages.

Related commands: display mvrp running-status.

Examples

# Set the Periodic timer to 100 centiseconds.

<Sysname> system-view

[Sysname] interface GigabitEthernet 3/0/1

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

mvrp global enable

Syntax

mvrp global enable

undo mvrp global enable

View

System view

Default level

2: System level

Parameters

None

Description

Use mvrp global enable to enable MVRP globally.

Use undo mvrp global enable to disable MVRP globally.

By default, MVRP is disabled globally.

Related commands: display mvrp running-status.

Examples

# Enable MVRP globally.

<Sysname> system-view

[Sysname] mvrp global enable

mvrp enable

Syntax

mvrp enable

undo mvrp enable

View

Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view

Default level

2: System level

Parameters

None

Description

Use mvrp enable to enable MVRP on a port.

Use undo mvrp enable to disable MVRP on a port.

By default, MVRP is disabled on a port.

To enable MVRP on a port, first enable MVRP globally.

Globally disabling MVRP 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.

Related commands: display mvrp running-status.

Examples

# Configure GigabitEthernet 3/0/1 as a trunk port, and enable MVRP on it.

<Sysname> system-view

[Sysname] interface GigabitEthernet 3/0/1

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

[Sysname-GigabitEthernet3/0/1] mvrp enable

mvrp gvrp-compliance

Syntax

mvrp gvrp-compliance enable

undo mvrp gvrp-compliance enable

View

System view

Default level

2: System level

Parameters

None

Description

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.

By default, GVRP compatibility is disabled.

Examples

# Enable GVRP compatibility.

<Sysname> system-view

[Sysname] mvrp gvrp-compliance enable

mvrp registration

Syntax

mvrp registration { fixed | forbidden | normal }

undo mvrp registration

View

Layer 2 Ethernet port view, Layer 2 aggregate interface view, port group view

Default level

2: System level

Parameters

fixed: Specifies the fixed registration mode.

forbidden: Specifies the forbidden registration mode.

normal: Specifies the normal registration mode.

Description

Use mvrp registration to set the MVRP registration mode on the port.

Use undo mvrp registration to restore the default.

By default, the MVRP registration mode is normal.

This command is available only on trunk ports.

Related commands: display mvrp running-status.

Examples

# Configure GigabitEthernet 3/0/1 as a trunk port, and set the MVRP registration mode to fixed on the port.

<Sysname> system-view

[Sysname] interface GigabitEthernet 3/0/1

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

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

reset mvrp statistics

Syntax

reset mvrp statistics [ interface interface-list ]

View

User view

Default level

2: System level

Parameters

interface interface-list: Clears the MVRP statistics of one or multiple ports. You can specify up to 10 port lists, by each of which you can specify a single port in the form of interface-type interface-number, or a port range in the form of interface-type interface-number1 to interface-type interface-number2, where interface-number2 must be greater than interface-number1.

Description

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

Related commands: display mvrp statistics.

Examples

# Clear the MVRP statistics of all ports.

<Sysname> reset mvrp statistics

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
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
新华三官网