master-vlan (STP)

Selects a master VLAN for a topology group.

Syntax

master-vlan vlan_id

Command Default

The master VLAN is not configured.

Parameters

vlan_id
The master VLAN ID.

Modes

Topology group configuration mode.

Usage Guidelines

To configure a master VLAN, the VLAN must already be configured. The master VLAN contains the STP settings for all the VLANs in the STP per VLAN group. An STP group can have only one master VLAN. If you add a new master VLAN to an STP group that already has a master VLAN, the new master VLAN replaces the older 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 will be in 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.

Examples

The following example adds the member VLANs to the STP topology group.

device# configure terminal
device(config)# topology-group 10
device(config-topo-group-10)# master-vlan 15