Command Manual – Network Protocol
Quidway S8500 Series Routing Switches Chapter 1 IP Address Configuration Commands
Huawei Technologies Proprietary
1-4
View
VLAN interface view, loopback interface view, or console view
Parameter
ip-address: IP address of VLAN interface in dotted decimal format.
mask: Corresponding subnet mask in dotted decimal format.
mask-length: Mask length. That is, the number of bits with a value of 1.
sub: Specifies the IP address to be configured to be the secondary IP address of the
VLAN interface/loopback interface.
Description
Use the ip address command to assign an IP address and the corresponding subnet
mask to the VLAN interface/loopback interface/console interface.
Use the undo ip address command to remove the IP address and the corresponding
subnet mask assigned to the VLAN interface/loopback interface/console interface.
By default, a VLAN interface/loopback interface/console interface does not have an IP
address configured.
Normally, a VLAN interface/loopback interface/console interface only needs to be
configured with one IP address. But you can also assign up to 21 IP addresses to a
VLAN interface/loopback interface/console interface to enable it to connect to multiple
subnets. Of all the IP addresses assigned to a VLAN interface/loopback
interface/console interface, one is the primary IP address, and the other are secondary
IP addresses. The relationship between primary and secondary addresses is:
z When you configure a primary IP address for an interface already has a primary IP
address configured, the newly configured one replaces the old one.
z If you execute the undo ip address command without providing any parameter,
the switch removes both primary and secondary IP addresses of the interface. The
undo ip address [ ip-address { mask | mask-length } command can be used to
delete the primary IP address, while the undo ip address [ ip-address { mask |
mask-length } sub command can be used to delete the secondary IP address.