name

Use name to configure a name for a VLAN.

Use undo name to restore the default.

Syntax

name text

undo name

Default

The name of a VLAN is VLAN vlan-id. The vlan-id argument specifies the VLAN ID in a four-digit format. If the VLAN ID has fewer than four digits, leading zeros are added. For example, the name of VLAN 100 is VLAN 0100.

Views

VLAN view

Predefined user roles

network-admin

Parameters

text: Specifies a VLAN name, a string of 1 to 32 characters. The string can include case-sensitive letters, digits, special symbols (see Table 38), spaces, and other Unicode characters and symbols.

Usage guidelines

You can configure VLAN names for VLAN identification. When 802.1X or MAC authentication is configured on a device, you can specify VLANs by name on the RADIUS server for authorization VLAN assignment.

Examples

# Configure the name of VLAN 2 as test vlan.

<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] name test vlan

Related commands

display vlan