MVRP Application Example

The following figure shows an example of a network that uses MVRP. This section describes one of the ways you can use MVRP in a network. Configuration Example: Implementing the Applications of MVRP lists the commands and configuration steps to implement the applications of MVRP described in the following example.

Figure 1. Example of MVRP

In this example, a core device is attached to three edge devices. Each of the edge devices is attached to other edge devices or host stations (represented by the clouds). The effects of MVRP in this network depend on which devices the feature is enabled.

In this configuration, all ports on the core device are enabled to learn and advertise VLAN information. The edge devices are configured to advertise their VLAN configurations on the ports connected to the core device.

Core device

Edge device A

Edge device B

Edge device C

MVRP is enabled on all ports.

  • MVRP is enabled on port 1/2/1.
  • VLAN 20
  • Port 1/1/1 (untagged)
  • Port 1/2/1 (auto-added to VLAN 20)
  • VLAN 40
  • Port 1/1/2 (untagged)
  • Port 1/2/1 (auto-added to VLAN 40)
  • MVRP is enabled on port 1/2/1.
  • VLAN 20
  • Port 1/1/1 (untagged)
  • Port 1/2/2 (auto-added to VLAN 20)
  • VLAN 30
  • Port 1/1/2 (untagged)
  • Port 1/2/2 (auto-added to VLAN 30)
  • MVRP is enabled on port 1/2/1.
  • VLAN 30
  • Port 1/1/1 (untagged)
  • Port 1/2/3 (auto-added to VLAN 30)
  • VLAN 40
  • Port 1/1/2 (untagged)
  • Port 1/2/3 (auto-added to VLAN 30)

In this configuration, the edge devices are statically (manually) configured with VLAN information. The core device dynamically configures itself to be a member of each of the edge device VLANs. The operation of MVRP on the core device results in the following VLAN configuration on the device:

  • VLAN 20
    • 1/2/1
    • 1/2/2
  • VLAN 30
    • 1/2/2
    • 1/2/3
  • VLAN 40
    • 1/2/1
    • 1/2/3

VLAN 20 traffic can now travel through the core between edge devices A and B. Likewise, VLAN 30 traffic can travel between B and C and VLAN 40 traffic can travel between A and C. If an edge device is moved to a different core port or the VLAN configuration of an edge device is changed, the core device automatically reconfigures itself to accommodate the change.

Notice that each of the ports in the dynamically created VLANs is tagged. All MVRP VLAN ports configured by MVRP are tagged, to ensure that the port can be configured for additional VLANs.

Note: VLAN configuration learned by MVRP does not show up in the running-config. It can be viewed in the output of the show vlan commands.
Note: This example assumes that the core device has no static VLANs configured. However, you can have static VLANs on a device that is running MVRP. MVRP can dynamically add other ports to the statically configured VLANs but cannot delete statically configured ports from the VLANs.

Configuration Example: Implementing the Applications of MVRP

This section provides the sample configuration steps to implement the MVRP application example.

Note: Although some of the devices in these configuration examples do not have statically configured VLANs, this is not a requirement. You always can have statically configured VLANs on a device that is running MVRP.

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.

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

The mvrp enable command enables the MVRP functionality globally.

Enter the following commands on edge device A.


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 

These commands statically configure two port-based VLANs and enable MVRP on port 1/2/1.

Enter the following commands on edge device B.


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

Enter the following commands on edge device C.


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