Example for Configuring MVRP


Networking Requirements

Figure 1.  MVRP Configuration Example

As shown in Figure 1, Department A and Department B (belonging to VLAN 200, 300) of a company are connected by multiple switches, which requires mutual communication between the two departments.

We can enable MVRP function for dynamic VLAN creation to reduce the workload of VLAN configuration. To achieve MVRP dynamic VLAN registration, first statically configure the access interface of Switch A and Switch C to join VLAN 200 and 300, then enable global MVRP function and the interface MVRP function on Switch A, Switch B and Switch C.

NOTEs:

  • MVRP is not allowed to be enabled on the host-side interfaces of the access devices, say ge-1/1/1 on Switch A and ge-1/1/2 on Switch C. However, MVRP needs to be enabled on ge-1/1/2 of Switch A, ge-1/1/1 of Switch C and all interfaces of Switch B .
  • The port mode of MVRP interfaces should be Trunk type.
  • VLANs need to be statically configured on the access interfaces of the access devices at both ends of the network, in order to implement MVRP bidirectional VLAN registration process.

Procedure

Switch A

Step1         Configure VLAN and port mode.

admin@SwitchA# set vlans vlan-id 200
admin@SwitchA# set vlans vlan-id 300
admin@SwitchA# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching port-mode trunk
admin@SwitchA# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching vlan members 200
admin@SwitchA# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching vlan members 300
admin@SwitchA# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching port-mode trunk

Step2         Enable MVRP function globally.

admin@SwitchA# set protocols mvrp enable true

Step3         Enable MVRP function on the interface.         

admin@SwitchA# set protocols mvrp interface ge-1/1/2 enable true

Step4         Commit the configurations.

admin@SwitchA# commit

Switch B

Step1         Configure port-mode to trunk.

admin@SwitchB# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching port-mode trunk
admin@SwitchB# set interface gigabit-ethernet ge-1/1/4 family ethernet-switching port-mode trunk

Step2         Enable MVRP function globally.

admin@SwitchB# set protocols mvrp enable true

Step3         Enable MVRP function on the interfaces.

admin@SwitchB# set protocols mvrp interface ge-1/1/3 enable true
admin@SwitchB# set protocols mvrp interface ge-1/1/4 enable true

Step4         Commit the configurations.

admin@SwitchB# commit

Switch C

Step1         Configure VLAN and port mode.

admin@SwitchC# set vlans vlan-id 200
admin@SwitchC# set vlans vlan-id 300
admin@SwitchC# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching port-mode trunk
admin@SwitchC# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching port-mode trunk
admin@SwitchC# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching vlan members 200
admin@SwitchC# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching vlan members 300

Step2         Enable MVRP function globally.         

admin@SwitchC# set protocols mvrp enable true

Step3         Enable MVRP function on the interfaces.

admin@SwitchC# set protocols mvrp interface ge-1/1/1 enable true

Step4         Commit the configurations.

admin@SwitchC# commit

Verification

  • After the configuration, users belonging to VLAN 200 (or 300) of department A and department B can communicate with each other.
  • On Switch A, use command run show mvrp interface <interface-name> to view MVRP information on a specific interface, including MVRP Status, Registrar State, Timers and VLANs learned by the interface through MVRP.
admin@SwitchA# run show mvrp interface ge-1/1/2  
Port            Leave Timer(ms)  LeaveAll Timer(s)  Join Timer(ms)
ge-1/1/2        1000             10                  200 

Port            Vlans Added
ge-1/1/2        200, 300
  • On Switch A, use command run show mvrp interface <interface-name> statistics to view the statistics of MVRP PDUs on the interface.
admin@SwitchA# run show mvrp interface ge-1/1/2 statistics
packet_received: 245
packet_sent:    248

MVRP information on Switch B and Switch C can be viewed in the similar way and will not be repeated here.




Copyright © 2024 Pica8 Inc. All Rights Reserved.