Configuration Roadmap
The configuration roadmap is as follows:
1. Enable the DHCP function on the Router.
2. Create a global address pool for Office 1 and another for Office 2, and configure related
attributes for each address pool, such as the address range, egress gateway, NetBIOS server
address, and IP address lease.
3. Configure the address assignment method for VLANIF interfaces of the local DHCP server,
that is, configure the DHCP server to assign IP addresses in global address pools to clients.
Data Preparation
To complete the configuration, you need the following data:
1. Names of the global address pools created for Office 1 and Office 2: pool1 and pool2
respectively
2. Address ranges of pool1 and pool2: 10.1.1.0/25 and 10.1.1.128/25 respectively
3. IP addresses of egress gateways configured for Office 1 and Office 2: 10.1.1.1 and
10.1.1.129 respectively
4. IP address leases for Office 1 and Office 2: 10 days and 2 days respectively
5. IP address of the DNS server: 10.1.1.2
6. IP address of the NetBIOS server: 10.1.1.4
7. IP addresses of VLANIF 10 and VLANIF 20: 10.1.1.1 and 10.1.1.129 respectively
Procedure
Step 1 # Enable the DHCP function.
<Huawei> system-view
[Huawei] sysname Router
[Router] dhcp enable
Step 2 Create IP address pools and configure related attributes.
# Create pool1 and configure attributes for pool1, including address range, DNS server address,
egress gateway, and IP address lease.
[Router] ip pool pool1
[Router-ip-pool-pool1] network 10.1.1.0 mask 255.255.255.128
[Router-ip-pool-pool1] dns-list 10.1.1.2
[Router-ip-pool-pool1] gateway-list 10.1.1.1
[Router-ip-pool-pool1] excluded-ip-address 10.1.1.2
[Router-ip-pool-pool1] excluded-ip-address 10.1.1.4
[Router-ip-pool-pool1] lease day 10
[Router-ip-pool-pool1] quit
# Create pool2 and configure attributes for pool2, including address range of pool2, DNS server
address, egress gateway, and IP address lease.
[Router] ip pool pool2
[Router-ip-pool-pool2] network 10.1.1.128 mask 255.255.255.128
[Router-ip-pool-pool2] dns-list 10.1.1.2
[Router-ip-pool-pool2] nbns-list 10.1.1.4
[Router-ip-pool-pool2] gateway-list 10.1.1.129
[Router-ip-pool-pool2] lease day 2
[Router-ip-pool-pool2] quit
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.
158