![Huawei AR150 series Configuration Manual Download Page 53](http://html.mh-extra.com/html/huawei/ar150-series/ar150-series_configuration-manual_169290053.webp)
2.3.3 (Optional) Configuring a Secondary IP Address for an
Interface
If an interface needs to communicate with hosts on different network segments, configure
secondary IP addresses for the interface.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
interface
interface-type
interface-number
The interface view is displayed.
Step 3
Run:
ip address
ip-address
{
mask
|
mask-length
}
sub
A secondary IP address is configured for the interface.
To configure multiple secondary IP addresses for an interface, repeat this step. Each interface
can be configured with a maximum of 31 secondary IP addresses.
----End
2.3.4 Checking the Configuration
Procedure
l
Run the
display ip interface
[
interface-type
interface-number
] command to check
information about the interface IP address.
l
Run the
display ip interface
brief
[
interface-type
[
interface-number
] ] command to check
brief information about the interface IP address.
----End
Example
# Run the
display ip interface
command to view information about the IP address on
Ethernet1/0/0.
<Huawei>
display ip interface ethernet 1/0/0
Ethernet1/0/0 current state : UP
Line protocol current state : UP
The Maximum Transmit Unit : 1500 bytes
input packets : 11022, bytes : 660443, multicasts : 0
output packets : 9634, bytes : 533292, multicasts : 0
Directed-broadcast packets:
received packets: 1796, sent packets: 0
forwarded packets: 0, dropped packets: 0
ARP packet input number: 52872
Request packet: 52852
Reply packet: 20
Unknown packet: 0
Internet Address is 10.137.217.210/23
Broadcast address : 10.137.217.255
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
2 IP Address Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
41