# Enable the BOOTP client function on Eth 1/0/0.
[RouterB] interface ethernet 1/0/0
[RouterB-Ethernet1/0/0] ip address bootp-alloc
l Create a global address pool on Router C and configure related attributes.
1. Enable the DHCP service.
<Huawei> system-view
[Huawei] sysname RouterC
[RouterC] dhcp enable
2. Configure Eth 1/0/0 to select a global address pool for IP address allocation.
[RouterC] interface Ethernet 1/0/0
[RouterC-Ethernet1/0/0] ip address 10.1.1.1 24
[RouterC-Ethernet1/0/0] dhcp select global
[RouterC-Ethernet1/0/0] quit
3. Create an address pool and configure related attributes.
[RouterC] ip pool pool1
[RouterC-ip-pool-pool1] network 10.1.1.0 mask 24
[RouterC-ip-pool-pool1] gateway-list 10.1.1.126
[RouterC-ip-pool-pool1] static-bind ip-address 10.1.1.3 mac-address a234-
e211-a256
[RouterC-ip-pool-pool1] dns-list 10.1.1.2
[RouterC-ip-pool-pool1] quit
l Verify the configuration.
# Run the display current-configuration command on Router A. You can view the
configurations of the DHCP client function.
[RouterA] display current-configuration
...
#
interface Ethernet1/0/0
ip address dhcp-alloc
#
...
# Run the display interface command on Router A after the interface obtains an IP address.
You can view the IP address of the interface.
[RouterA] display interface ethernet 1/0/0
Ethernet1/0/0 current state : DOWN
Line protocol current state :
DOWN
Description:HUAWEI, Huawei Series, Ethernet1/0/0 Interface
Route Port,The Maximum Transmit Unit is
1500
Internet Address is allocated by DHCP,10.1.1.11/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-
fc11-000a
Last physical up time : 2007-12-01
10:48:50
Last physical down time : 2007-12-01
10:52:56
Current system time: 2007-12-01
16:52:01
Port Mode: COMMON
COPPER
Speed : 100, Loopback:
NONE
Duplex: FULL, Negotiation:
ENABLE
Mdi :
AUTO
Last 300 seconds input rate 0 bits/sec, 0 packets/
sec
Last 300 seconds output rate 0 bits/sec, 0 packets/
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.
169