R3204P16-HP Load Balancing Module Network Management Command Reference-6PW101
49
To connect a VLAN to multiple subnets, assign one primary IP address and multiple secondary IP
addresses to a VLAN interface.
When configuring IP addresses for a VLAN interface, follow these rules:
• The primary IP address you assign to a VLAN interface overwrites the previous one, if any.
• Remove all secondary IP addresses before you remove the primary IP address.
• 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.
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 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 the name command to configure a name for the 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. 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