Verifying That MVRP Is Working Correctly
Purpose
After configuring your MX Series router or EX Series switch to participate in Multiple VLAN Registration Protocol (MVRP), verify that the configuration is properly set and that MVRP messages are being sent and received on your switch.
Action
Confirm that the router is declaring VLANs.
Show that MVRP is enabled:
user@host> show mvrp MVRP configuration for routing instance 'default-switch' MVRP dynamic VLAN creation : Enabled MVRP BPDU MAC address : Customer bridge group (01-80-C2-00-00-21) MVRP timers (ms) Interface Join Leave LeaveAll ge-11/3/0 200 800 10000
Show the MVRP applicant state:
user@host> show mvrp applicant-state MVRP applicant state for routing instance 'default-switch' (VO) Very anxious observer, (VP) Very anxious passive, (VA) Very anxious new, (AN) Anxious new, (AA) Anxious active, (QA) Quiet active, (LA) Leaving active, (AO) Anxious observer, (QO) Quiet observer, (LO) Leaving observer, (AP) Anxious passive, (QP) Quiet passive VLAN Id Interface State 100 ge-11/3/0 Declaring (QA) 200 ge-11/3/0 Declaring (QA) 300 ge-11/3/0 Declaring (QA)
Confirm that VLANs are registered on interfaces.
List VLANs in the registered state:
user@host> show mvrp registration-state MVRP registration state for routing instance 'default-switch' VLAN Id Interface Registrar Forced Managed STP State State State State 100 ge-11/3/0 Registered Registered Normal Forwarding 200 ge-11/3/0 Registered Registered Normal Forwarding 300 ge-11/3/0 Empty Empty Normal Forwarding
Display a list of VLANs created dynamically.
List dynamic VLAN membership:
user@host> show mvrp dynamic-vlan-memberships MVRP dynamic vlans for routing instance 'default-switch' (s) static vlan, (f) fixed registration VLAN Id Interfaces 100 ge-3/3/0 ge-3/0/5 200 ge-3/3/0 ge-3/0/5
Meaning
The output of show mvrp applicant-state
shows
that trunk interface ge-11/3/0 is declaring (sending out)
interest in the VLAN IDs 100, 200, and 300, and MVRP is operating properly.
The output of show mvrp registrant-state
shows the
registrar state for VLANs 100 and 200 as Registered, indicating that these VLANs are receiving traffic from a customer
site. VLAN 300 is in an Empty state and is not receiving
traffic from a customer site.
The output of the show mvrp dynamic-vlan-membership
shows that VLANs 100 and 200 are created dynamically
(here, on an MX Series router operating as an aggregation switch between
MX Series routers operating as edge switches). VLANs created statically
are marked with an (s) (which is not indicated in this output).