MVRP scenario 1
This scenario illustrates the configuration of a simple MVRP deployment.
Procedure
-
On switch A, enable MVRP globally, define VLANs on interface
1/1/1 and
1/1/2, and enable MVRP on each interface.
switch# config switch(config)# mvrp switch(config)# interface 1/1/1 switch(config-if)# no shutdown switch(config-if)# no routing switch(config-if)# vlan trunk native 1 switch(config-if)# mvrp switch(config-if)# exit switch(config)# interface 1/1/2 switch(config-if)# no shutdown switch(config-if)# no routing switch(config-if)# vlan trunk native 1 switch(config-if)# mvrp
-
On switch B, enable MVRP globally, define VLANs 10 and 20, assign a trunk native VLAN to interface
1/1/3, and enable MVRP on this interface.
switch# config switch(config)# mvrp switch(config)# vlan 10 switch(config)# vlan 20 switch(config)# interface 1/1/3 switch(config-if)# no shutdown switch(config-if)# no routing switch(config-if)# vlan trunk native 1 switch(config-if)# mvrp
-
On switch C, enable MVRP globally, define VLAN 20, assign a trunk native VLAN to interface
1/1/3, and enable MVRP on this interface.
switch# config switch(config)# mvrp switch(config)# vlan 20 switch(config)# interface 1/1/3 switch(config-if)# no shutdown switch(config-if)# no routing switch(config-if)# vlan trunk native 1 switch(config-if)# mvrp
-
Verify VLAN configuration by running the command
show vlan
. It should show that VLAN 10 and 20 are learned by switch A, and VLAN 10 should be learned by switch C. For example:On switch A:
On switch B:switch# show vlan ------------------------------------------------------------------------------------------ VLAN Name Status Reason Type Interfaces ------------------------------------------------------------------------------------------ 1 DEFAULT_VLAN_1 up ok default 1/1/1-1/1/2 10 VLAN10 up ok dynamic 1/1/2 20 VLAN20 up ok dynamic 1/1/1-1/1/2 switch# switch# show mvrp config Configuration and Status - MVRP Global MVRP status : Enabled Port Status Registration Join Leave LeaveAll Periodic Type Timer Timer Timer Timer ------- -------- -------- ----- ------- ------- -------- 1/1/1 Enabled normal 20 300 1000 100 1/1/2 Enabled normal 20 300 1000 100 switch# show mvrp state Configuration and Status - MVRP state Port VLAN Registrar Applicant Forbid State State Mode ---- ---- --------- --------- --------- 1/1/1 1 IN QA No 1/1/1 10 MT QA No 1/1/1 20 IN QA No 1/1/2 1 IN QA No 1/1/2 10 IN VO No 1/1/2 20 IN QA No switch# show mvrp statistics Status and Counters - MVRP MVRP statistics for port : 1/1/1 ---------------------------- Failed registration : 0 Last PDU origin : e0:07:1b:cb:01:ab Total PDU Transmitted : 313 Total PDU Received : 377 Frames Discarded : 0 Message type Transmitted Received -------------- ------------ ------------ New 0 0 Empty 179105 2264 In 0 346 Join Empty 366 62 Join In 342 692 Leave 0 0 Leaveall 43 32 Status and Counters - MVRP MVRP statistics for port : 1/1/2 ---------------------------- Failed registration : 0 Last PDU origin : e0:07:1b:cb:22:54 Total PDU Transmitted : 450 Total PDU Received : 84 Frames Discarded : 0 Message type Transmitted Received -------------- ------------ ------------ New 0 0 Empty 173629 382 In 328 0 Join Empty 83 93 Join In 711 65 Leave 0 0 Leaveall 41 33
On switch C:switch# show vlan ------------------------------------------------------------------------------------------ VLAN Name Status Reason Type Interfaces ------------------------------------------------------------------------------------------ 1 DEFAULT_VLAN_1 up ok default 1/1/3 10 VLAN10 up ok static 1/1/3 20 VLAN20 up ok static 1/1/3 SW1-8320# SW1-8320# show mvrp config Configuration and Status - MVRP Global MVRP status : Enabled Port Status Registration Join Leave LeaveAll Periodic Type Timer Timer Timer Timer ------- -------- -------- ----- ------- ------- -------- 1/1/3 Enabled normal 20 300 1000 100 SW1-8320# show mvrp state Configuration and Status - MVRP state Port VLAN Registrar Applicant Forbid State State Mode ---- ---- --------- --------- --------- 1/1/3 1 IN QA No 1/1/3 10 MT QA No 1/1/3 20 IN QA No SW1-8320# show mvrp statistics Status and Counters - MVRP MVRP statistics for port : 1/1/3 ---------------------------- Failed registration : 0 Last PDU origin : 48:0f:cf:af:f2:fa Total PDU Transmitted : 77 Total PDU Received : 303 Frames Discarded : 0 Message type Transmitted Received -------------- ------------ ------------ New 0 0 Empty 115067 1754 In 0 268 Join Empty 100 1 Join In 53 581 Leave 0 0 Leaveall 28 27
switch# show vlan ------------------------------------------------------------------------------------------ VLAN Name Status Reason Type Interfaces ------------------------------------------------------------------------------------------ 1 DEFAULT_VLAN_1 up ok default 1/1/3 10 VLAN10 up ok dynamic 1/1/3 20 VLAN20 up ok static 1/1/3 switch# switch# show mvrp config Configuration and Status - MVRP Global MVRP status : Enabled Port Status Registration Join Leave LeaveAll Periodic Type Timer Timer Timer Timer ------- -------- -------- ----- ------- ------- -------- 1/1/3 Enabled normal 20 300 1000 100 switch# show mvrp state Configuration and Status - MVRP state Port VLAN Registrar Applicant Forbid State State Mode ---- ---- --------- --------- --------- 1/1/3 1 IN QA No 1/1/3 10 IN VO No 1/1/3 20 IN QA No switch# switch# show mvrp statistics Status and Counters - MVRP MVRP statistics for port : 1/1/3 ---------------------------- Failed registration : 0 Last PDU origin : 48:0f:cf:af:f2:fb Total PDU Transmitted : 203 Total PDU Received : 95 Frames Discarded : 0 Message type Transmitted Received -------------- ------------ ------------ New 0 0 Empty 72915 586 In 183 0 Join Empty 40 101 Join In 366 176 Leave 0 0 Leaveall 17 16