
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
interface vlanif
vlan-id
The VLANIF interface view is displayed.
Step 3
Run:
ip address
ip-address
{
mask
|
mask-length
}
A primary IP address is configured.
An interface has only one primary IP address. If the interface already has a primary IP address,
the newly configured primary IP address replaces the original one.
----End
1.3.3 (Optional) Configuring a Secondary IP Address for an
Interface
To enable an interface to communicate with several networks with different network IDs, you
need to assign a secondary IP address to this interface.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
interface vlanif
vlan-id
The VLANIF interface view is displayed.
Step 3
Run:
ip address
ip-address
{
mask
|
mask-length
}
sub
A secondary IP address is configured.
You can configure a maximum of 8 secondary IP addresses on an interface.
----End
1.3.4 Checking the Configuration
You can view the configuration of the IP address for an interface.
Prerequisite
The configurations of the IP addresses for the interface are complete.
Quidway S2700 Series Ethernet Switches
Configuration Guide - IP Service
1 IP Addresses Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
4