92
Parameters
size
: Sets the maximum transmission unit (MTU), ranging from 46 to 1500 bytes.
Description
Use
mtu
to set the MTU for a VLAN interface.
Use
undo mtu
to restore the default.
By default, the MTU of a VLAN interface is 1500 bytes.
Related commands:
display interface vlan-interface
.
Examples
# Set the MTU to 1492 bytes for VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mtu 1492
name
Syntax
name
text
undo name
View
VLAN view
Default level
2: System level
Parameters
text
: Specifies a VLAN name, a string of 1 to 32 characters. The string can include case-sensitive letters,
digits, special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /), and spaces.
Description
Use
name
to configure a name for the VLAN.
Use
undo name
to restore the default name of the VLAN.
By default, the name of a VLAN is its VLAN ID. For example,
VLAN 0001
.
When 802.1X or MAC address authentication is configured on a switch, you can use a RADIUS server
to issue VLAN configuration to ports that have passed the authentication. Some servers can send IDs or
names of the issued VLANs to the switch. You can use VLAN names, rather than VLAN IDs, to distinguish
a large number of VLANs.
Examples
# Configure the name of VLAN 2 as
Test VLAN
.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] name Test VLAN