set vlan

Last Updated : Aug 28, 2026 |
Creates or modifies a VLAN.
Prolog information

Syntax

set vlan vlan_id [name vlan_name]

Parameters

Parameter
Description
Possible Values
Default Value
vlan_id
The VLAN number
1-4090
name
Keyword that allows naming or renaming the VLAN
vlan_name
The VLAN name
string from 1-32 characters

User level

read-write

Context

general

Example

To create VLAN number 3, named gregory:
Gxxx-001# set vlan 3 name gregory
VLAN id 3, vlan-name gregory created.
Note:
If using spaces, enclose the entire string in quotation marks (for example, New York).