NOTE
l The DHCP server must be configured with option parameters by referring to 6.2 Auto-Config Features
Supported by the AR150/200.
l Here, an AR is used to describe how to configure the DHCP server based on a global address pool.
When the AR functions as a DHCP server, configure the DHCP server by referring to Configuring a
DHCP Server Based on a Global Addrss Poolor Configuring a DHCP Server Based on an Interface
Address Pool.
l If routers and the DHCP server are on different network segments, configure a DHCP relay agent by
referring to Configuring a DHCP Relay Agent.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
dhcp enable
DHCP is enabled.
Step 3 Run:
interface interface-type interface-number
The interface view is displayed.
Step 4 Run:
ip address ip address { mask | mask-length }
The IP address is configured for the interface.
Step 5 Run:
dhcp select global
The interface is configured to use a global address pool. Users going online through this interface
can obtain IP addresses from the global address pool.
Step 6 Run:
quit
Return to the system view.
Step 7 Run:
ip pool ip-pool-name
The global address pool view is displayed.
By default, no global address pool exists on an AR150/200.
Step 8 Run:
network ip-address [ mask { mask | mask-length } ]
The range of IP addresses that can be dynamically allocated is configured.
Step 9 Run:
gateway-list ip-address &<1-8>
The IP address of the egress gateway is configured for the DHCP client.
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Device Management 6 Auto-Config
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
104