master-vlan (STP)

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

The master VLAN is not configured.

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

STP 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.

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

Examples

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

device# configure terminal
device(config)# stp-group 2
device(config-stp-group-2)# master-vlan 2
History