6.3.2 Configuring an Interface to Select a Global Address Pool for
IP Address Allocation
This section describes how to configure an interface to select a global address pool for IP address
allocation. After the configuration is complete, users who get online from this interface can
obtain IP addresses and other configuration parameters from a global address pool.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
dhcp enable
The DHCP service is enabled.
Step 3
Run:
interface
interface-type
interface-number
The interface view is displayed.
On the AR150/200, a Layer 3 Ethernet interface or its sub-interface, a Layer 3 Eth-trunk interface
or its sub-interface, or a VLANIF interface can be configured to select a global address pool for
IP address allocation.
Step 4
Run:
ip address
ip address
{
mask
|
mask-length
}
An IP address is configured for the interface.
l
If a DHCP client and the AR150/200 functioning as the DHCP server are on the same network
segment, and no relay agent is deployed between them, the AR150/200 assigns IP addresses
on the same network segment as the interface to users who get online from the interface. If
no IP address is configured for the interface, or there is no address pool having the same
network segment as the interface, users cannot get online.
l
If a DHCP client and the AR150/200 functioning as a DHCP server are on different network
segments, and a DHCP relay agent is deployed between them, the AR150/200 parses the
giaddr
field of a DHCP request packet to obtain an IP address. If the IP address does not
match the corresponding address pool, the user cannot get online.
Step 5
Run:
dhcp select global
The interface is configured to select a global address pool for IP address allocation. After the
configuration, users who get online from this interface can obtain IP addresses and other
configuration parameters from a global address pool.
----End
6.3.3 Configuring Global Address Pool Attributes
This section describes how to configure attributes for a global address pool, including the IP
address range and lease, IP addresses that cannot be assigned dynamically, and IP addresses that
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
6 DHCP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
130