Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring Multiple VLAN Registration Protocol (MVRP) (CLI Procedure)

    Note: This task uses Junos OS for EX Series switches that does not support the Enhanced Layer 2 Software (ELS) configuration style. If your switch runs software that supports ELS, see Configuring Multiple VLAN Registration Protocol (MVRP) (CLI Procedure ). For ELS details, see Getting Started with Enhanced Layer 2 Software.

    Multiple VLAN Registration Protocol (MVRP) is used to manage dynamic VLAN registration in a LAN. You can use MVRP on EX Series switches.

    MVRP is disabled by default on EX Series switches.

    To enable MVRP or set MVRP options, follow these instructions:

    Enabling MVRP

    MVRP can only be enabled on trunk interfaces.

    To enable MVRP on all trunk interfaces on the switch:

    [edit protocols mvrp] user@switch# set interface all

    To enable MVRP on a specific trunk interface:

    [edit protocols mvrp] user@switch# set interface xe-0/0/1.0

    Disabling MVRP

    MVRP is disabled by default. You only need to perform this procedure if you have previously enabled MVRP.

    To disable MVRP on all trunk interfaces on the switch:

    [edit protocols mvrp] user@switch# set disable

    To disable MVRP on a specific trunk interface:

    [edit protocols mvrp] user@switch# set disable interface xe-0/0/1.0

    Disabling Dynamic VLANs

    Dynamic VLANs can be created on interfaces participating in MVRP by default. Dynamic VLANs are VLANs created on one switch that are propagated to other switches dynamically; in this case, using MVRP.

    Dynamic VLAN creation through MVRP cannot be disabled per switch interface. To disable dynamic VLAN creation for interfaces participating in MVRP, you must disable it for all interfaces on the switch.

    To disable dynamic VLAN creation:

    [edit protocols mvrp] user@switch# set no-dynamic-vlan

    Configuring Timer Values

    The timers in MVRP define the amount of time an interface waits to join or leave MVRP or to send or process the MVRP information for the switch after receiving an MVRP PDU. The join timer controls the amount of time the switch waits to accept a registration request, the leave timer controls the period of time that the switch waits in the Leave state before changing to the unregistered state, and the leaveall timer controls the frequency with which the LeaveAll messages are communicated.

    The default MVRP timer values are 200 ms for the join timer, 1000 ms for the leave timer, and 10000 ms for the leaveall timer.

    Best Practice: Maintain default timer settings unless there is a compelling reason to change the settings. Modifying timers to inappropriate values might cause an imbalance in the operation of MVRP.

    To set the join timer for all interfaces on the switch:

    [edit protocols mvrp] user@switch# set interface all join-timer 300

    To set the join timer for a specific interface:

    [edit protocols mvrp] user@switch# set interface xe-0/0/1.0 300

    To set the leave timer for all interfaces on the switch:

    [edit protocols mvrp] user@switch# set interface all leave-timer 1200

    To set the leave timer for a specific interface:

    [edit protocols mvrp] user@switch# set interface xe-0/0/1.0 leave-timer 1200

    To set the leaveall timer for all interfaces on the switch:

    [edit protocols mvrp] user@switch# set interface all leaveall-timer 12000

    To set the leaveall timer for a specific interface:

    [edit protocols mvrp] user@switch# set interface xe-0/0/1.0 leaveall-timer 12000

    Configuring MVRP Registration Mode

    The default MVRP registration mode for any interface participating in MVRP is normal. An interface in normal registration mode participates in MVRP when MVRP is enabled on the switch.

    An interface in forbidden registration mode does not participate in MVRP even if MVRP is enabled on the switch.

    To set all interfaces to forbidden registration mode:

    [edit protocols mvrp] user@switch# set interface all registration forbidden

    To set one interface to forbidden registration mode:

    [edit protocols mvrp] user@switch# set interface xe-0/0/1.0 registration forbidden

    To set all interfaces to normal registration mode:

    [edit protocols mvrp] user@switch# set interface all registration normal

    To set one interface to normal registration mode:

    [edit protocols mvrp] user@switch# set interface xe-0/0/1.0 registration normal

    Using MVRP in a Mixed-Release Network

    Except for in Junos OS Releases 11.2 and earlier, MVRP has conformed with IEEE standard 802.1ak and IEEE Draft 802.1Q regarding the inclusion of an extra byte in the protocol data units (PDUs) sent and received by MVRP. As a result of the non-comformance of releases 11.2 and earlier and changes in the standards regarding the extra byte, the following mixed environments can arise:

    • Mixed environment A: MVRP in Junos OS Releases 11.2 and earlier includes the extra byte, while MVRP in Junos OS Releases 11.3 and later for EX Series switches that do not support the Enhanced Layer 2 Software (ELS) configuration style does not include the extra byte.
    • Mixed environment B: MVRP in Junos OS Releases 13.2 and later for EX Series switches with support for ELS includes the extra byte, while MVRP in Junos OS Releases 11.3 and later for EX Series switches that do not support ELS does not include the extra byte.

    A compatibility issue arises in mixed environments A and B, wherein the versions of MVRP that include the extra byte do not recognize PDUs that do not include the extra byte. For more information about this issue, see Understanding Multiple VLAN Registration Protocol (MVRP) on EX Series Switches.

    If your network has a mix of MVRP versions, you can alter MVRP on the switches running Release 11.3 and later on switches that do not support ELS so they include the extra byte in the PDU and are therefore, compatible with the other MVRP versions.

    You can recognize an MVRP version problem by looking at a switch running an MVRP version that includes the extra byte. Because a switch running an MVRP version that includes the extra byte cannot interpret an unmodified PDU from an MVRP version that does not include the extra byte, the switch will not add VLANs from the MVRP version that does not include the extra byte. When you execute the command show mvrp statistics on the MVRP version that includes the extra byte, the values for Join Empty received and Join In received will incorrectly display zero, even though the value for MRPDU received has been increased. Another indication that MVRP is having a version problem is that unexpected VLAN activity, such as multiple VLAN creation, takes place on the switch running the MVRP version that includes the extra byte.

    To make MVRP on Release 11.3 or later compatible with MVRP in the other releases:

    [edit protocols mvrp] user@switch# set add-attribute-length-in-pdu

    Published: 2014-04-23