master-vlan

Adds the master VLAN to the topology group.
Syntax
master-vlan vlan-id
no master-vlan vlan-id
Command Default

A master VLAN is not configured.

Parameters
vlan-id
Specifies the VLAN ID of the master VLAN.
Modes

Topology group configuration mode

Usage Guidelines

To configure a master VLAN, the VLAN must already be configured. Make sure all the Layer 2 protocol settings in the VLAN are correct for your configuration before you add the VLAN to the topology group. A topology group can have only one master VLAN. If you add a new master VLAN to a topology group that already has a master VLAN, the new master VLAN replaces the older master VLAN. All member VLANs and VLAN groups follow the Layer 2 protocol settings of the new master VLAN.

If you remove the master VLAN (by entering the no master-vlan command), the software selects the new master VLAN from member VLANs. A new candidate master VLAN is configured as a member VLAN so that the first added member VLAN will be a new candidate master VLAN. Once you save and reload, a member VLAN with the youngest VLAN ID will be the new candidate master. The new master VLAN inherits the Layer 2 protocol settings of the older master VLAN.

When removing the master VLAN from the topology group, Spanning Tree Protocol (STP) must be disabled on the master VLAN.

The no form of the command removes the master VLAN from the topology group.

Examples

The following example adds the master VLAN 2 to the topology group 2.

device(config)# topology-group 2
device(config-topo-group-2)# master-vlan 2