mvrp registration-mode forbidden vlan

Configures the forbidden registration mode for a VLAN or a range of VLANs on an MVRP-enabled Ethernet or port-channel interface.

Syntax

mvrp registration-mode forbidden vlan { add | remove } vlanID

Command Default

The default registration mode is normal. For static VLAN configuration, the registration mode is automatically set to Fixed.

Parameters

add
Adds the specified VLAN to the forbidden VLAN list on the interface.
remove
Removes the specified VLAN from the forbidden list on the interface and allows advertising of non-forbidden VLANs through the MVRP messages on the interface.
vlanID
Specifies an individual VLAN or a range of VLANs. For example, to add VLANs 10 through 15 to the forbidden list, enter mvrp registration-mode forbidden vlan add 25-30.

Modes

Interface configuration mode

Usage Guidelines

MVRP is supported only on devices based on the DNX chipset family. For a list of such devices, see "Supported Hardware".

The add keyword prevents the VLANs specified in the command from being advertised on all other MVRP-enabled ports and also removes the specified VLANs that are dynamically registered from this interface.

Before you configure this command, you must configure the interface as switchport and must enable MVRP both globally and on the interface.

You cannot configure a static VLAN as forbidden.

If a forbidden VLAN list is configured on an CCEP interface on an MCT device, the corresponding CCEP interface on the other MCT device should have the same configuration.

If a forbidden VLAN list is configured on the CEP or EP interface, the VLANs are not honored for this interface to avoid traffic flow for the forbidden VLAN for the CEP or EP client. But the VLANs may be propagated to the other MVRP-enabled ports since other connected CEP or EP clients may be interested in advertising a particular VLAN through MVRP over the ICL.

Examples

The following example adds VLANs 25 through 30 to the forbidden list, and removes VLAN 26 from the forbidden list.

device# configure terminal
device(config)# protocol mvrp
device(config-mvrp)# exit
device(config)# interface ethernet 1/1
device(conf-if-eth-1/1)# switchport
device(conf-if-eth-1/1)# mvrp enable
device(conf-if-eth-1/1)# switchport mode trunk
device(conf-if-eth-1/1)# switchport trunk allowed vlan add 20-24
device(conf-if-eth-1/1)# mvrp registration-mode forbidden vlan add 25-30
device(conf-if-eth-1/1)# mvrp registration-mode forbidden vlan remove 26