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 with support for the Enhanced Layer 2 Software (ELS) configuration style. If your switch runs Junos OS that does not support 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 a trunk interface:

    [edit protocols mvrp] user@switch# set interface interface-name

    Disabling MVRP

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

    You can disable MVRP globally only. . To disable MVRP on all trunk interfaces on a switch, use one of the following commands:

    user@switch# deactivate protocols mvrpuser@switch# delete protocols mvrp

    Disabling Dynamic VLANs

    By default, dynamic VLANs can be created on interfaces participating in MVRP. 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 all interfaces on a switch or a specific interface wait 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 10 seconds 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.

    On an EX Series switch that uses Junos OS with support for ELS, if the timer value set on an interface level is different from the value set on a switch level, then the value on the interface level takes precedence.

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

    [edit protocols mvrp] user@switch# set join-timer milliseconds

    To set the join timer for a specific interface:

    [edit protocols mvrp] user@switch# set interface interface-name join-timer milliseconds

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

    [edit protocols mvrp] user@switch# set leave-timer milliseconds

    To set the leave timer for a specific interface:

    [edit protocols mvrp] user@switch# set interface interface-name leave-timer milliseconds

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

    [edit protocols mvrp] user@switch# set leaveall-timer seconds

    To set the leaveall timer for a specific interface:

    [edit protocols mvrp] user@switch# set interface interface-name leaveall-timer seconds

    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.

    You can change the registration mode of a specific interface to forbidden. An interface in forbidden registration mode does not participate in MVRP even if MVRP is enabled on the switch.

    To set an interface to forbidden registration mode:

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

    To set an 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 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 changes in the standards with regard to the extra byte, MVRP in Junos OS Releases 13.2 and later for EX Series switches with support for the Enhanced Layer 2 Software (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, wherein the ELS version of MVRP does not recognize PDUs without the extra byte sent by the non-ELS version of MVRP.

    For more information about this issue, see Understanding Multiple VLAN Registration Protocol (MVRP) on EX Series Switches.

    You can recognize an MVRP version compatibility issue by observing the switch running the ELS version of MVRP. Because a switch running the ELS version of MVRP cannot interpret an unmodified PDU from a switch running the non-ELS version of MVRP, the switch will not add VLANs from the non-ELS version of MVRP. When you use the show mvrp statistics command in the ELS version of MVRP, the values for Received Join Empty and Received Join In will incorrectly display zero, even though the value for the Received MVRP PDUs without error has been increased. Another indication that MVRP is having a version compatibility issue is that unexpected VLAN activity, such as multiple VLAN creation, takes place on the switch running the ELS version of MVRP.

    If your network includes a mix of EX Series switches running ELS and non-ELS versions of MVRP, you can eliminate the compatibility issue by entering the following command on the switches running the ELS version of MVRP:

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

    The no-attribute-length-in-pdu statement prevents the ELS version of MVRP from sending PDUs with the extra byte, thereby eliminating the compatibility issue with the non-ELS version of MVRP.

    Published: 2014-04-23