142
• To remove all IP addresses, use the undo ip address command without any parameter.
• To remove the primary IP address, use the undo ip address ip-address { mask | mask-length }
command.
• To remove a secondary IP address, use the undo ip address ip-address { mask | mask-length } sub
command.
Related commands: display ip interface (Layer 3—IP Services Command Reference).
Examples
# Specify the IP address as 1.1.0.1, the subnet mask as 255.255.255.0 for VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ip address 1.1.0.1 255.255.255.0
name
Syntax
name text
undo name
View
VLAN view
Default level
2: System level
Parameters
text: Specifies the VLAN name, a string of 1 to 32 characters. Spaces and special characters can be
included in the name.
Description
Use the name command to configure a name for the current VLAN.
Use the undo name command to restore the default name of the VLAN.
The default name of a VLAN is its VLAN ID, VLAN 0001 for example.
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. When there are a large number of VLANs, you can use VLAN
names rather than VLAN IDs to better locate VLANs.
Examples
# Configure the name of VLAN 2 as test vlan.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] name test vlan
reset counters interface vlan-interface
Syntax
reset counters interface vlan-interface [ vlan-interface-id ]