Configuration Example: Implementing MVRP
In the following example, a core device is attached to three edge devices. Each of the edge devices is attached to other edge devices or host stations. The effects of MVRP in this network depend on the devices where the feature is enabled.
In this configuration, the edge devices advertise their statically configured VLANs to the Core Device. The Core Device does not have any statically configured VLANs but learns the VLANs from the edge devices.
Enter the following commands on the Core Device to enable MVRP globally (allowing the device to participate in the protocol), enable MVRP on the specified range of ports, and configure the specified range of ports as MVRP point-to-point interfaces.
core-device(config)# mvrp enable core-device(config)# interface ethernet 1/2/1 to 1/2/3 core-device(config-mif-1/2/1-1/2/3)# mvrp enable core-device(config-mif-1/2/1-1/2/3)# mvrp point-to-point
Enter the following commands on Edge Devices A, B, and C to statically configure two port-based VLANs, enable MVRP globally on the device, enable MVRP on port 1/2/1, and configure port 1/2/1 as an MVRP point-to-point interface.
deviceA(config)# vlan 20 deviceA(config-vlan-20)# untagged ethernet 1/1/1 Added untagged port(s) ethe 1/1/1 to port-vlan 20. deviceA(config)# vlan 40 deviceA(config-vlan-40)# untagged ethernet 1/1/2 Added untagged port(s) ethe 1/1/2 to port-vlan 40. deviceA(config)# mvrp enable deviceA(config)# interface ethernet 1/2/1 deviceA(config-if-e40000-1/2/1)# mvrp enable deviceA(config-if-e40000-1/2/1)# mvrp point-to-point deviceA(config-if-e40000-1/2/1)# exit
deviceB(config)# vlan 20 deviceB(config-vlan-20)# untagged ethernet 1/1/1 Added untagged port(s) ethe 1/1/1 to port-vlan 20. deviceB(config)# vlan 30 deviceB(config-vlan-30)# untagged ethernet 1/1/2 Added untagged port(s) ethe 1/1/2 to port-vlan 30. deviceB(config)# mvrp enable deviceB(config)# interface ethernet 1/2/1 deviceB(config-if-e40000-1/2/1)# mvrp enable deviceB(config-if-e40000-1/2/1)# mvrp point-to-point deviceB(config-if-e40000-1/2/1)# exit
deviceC(config)# vlan 30 deviceC(config-vlan-30)# untagged ethernet 1/1/1 Added untagged port(s) ethe 1/1/1 to port-vlan 30. deviceC(config)# vlan 40 deviceC(config-vlan-40)# untagged ethernet 1/1/2 Added untagged port(s) ethe 1/1/2 to port-vlan 40. deviceC(config)# mvrp enable deviceC(config)# interface ethernet 1/2/1 deviceC(config-if-e40000-1/2/1)# mvrp enable deviceC(config-if-e40000-1/2/1)# mvrp point-to-point deviceC(config-if-e40000-1/2/1)# exit
