management-vlan

This topic explains the commands that set the management VLAN or restore it to VLAN 1.

Syntax

CODE
management-vlan vlan id
no management-vlan

Parameter

id: Set the ID of the management VLAN, which can be a single VLAN only, with an ID from 1 to 4094.

Default

VLAN 1 is the management VLAN.

Mode

Global Configuration

Usage

Use the management-vlan vlan command to set the ID of the management VLAN. (The VLAN must already exist.)

Use the no management-vlan command to restore the management VLAN to VLAN 1.

Example

This example shows how to create VLAN 2 and then set VLAN 2 as the management VLAN:

CODE
Switch(config)# vlan 2
Switch(config)# management-vlan vlan 2

This example shows how to restore the management VLAN to the default management VLAN (VLAN 1):

CODE
Switch(config)# no management-vlan