R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)

45
Configuration procedure
1. Specify IP address for interface Ethernet 1/1. (Details not shown.)
2. Configure the DHCP server:
# Enable DHCP.
<RouterA> system-view
[RouterA] dhcp enable
# Enable the DHCP server on Ethernet 1/1.
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] dhcp select server global-pool
[RouterA-Ethernet1/1] quit
# Configure DHCP address pool 0.
[RouterA] dhcp server ip-pool 0
[RouterA-dhcp-pool-0] network 10.1.1.0 mask 255.255.255.0
[RouterA-dhcp-pool-0] option 43 hex 80 0B 00 00 02 01 02 03 04 02 02 02 02
Verifying the configuration
After the preceding configuration is complete, Router B can obtain its IP address on 10.1.1.0/24 and the
PXE server addresses from Router A. You can use the display dhcp server ip-in-use command on the
DHCP server to view the IP addresses assigned to the clients.
Troubleshooting DHCP server configuration
Symptom
A client's IP address obtained from the DHCP server conflicts with another IP address.
Analysis
Another host on the subnet might have the same IP address.
Solution
1. Disable the client's network adapter or disconnect the client's network cable. Ping the IP address
of the client from another host to check whether there is a host using the same IP address.
2. If a ping response is received, the IP address has been manually configured on a host. Execute the
dhcp server forbidden-ip command on the DHCP server to exclude the IP address from dynamic
allocation.
3. Enable the network adapter or connect the network cable. Release the IP address and obtain
another one on the client. For example, to release the IP address and obtain another one on a
Windows XP DHCP client:
a. In Windows environment, select Start > Run.
b. Enter cmd in the dialog box, and click OK to enter the command line interface.
c. Enter ipconfig/release to relinquish the IP address.
d. Enter ipconfig/renew to obtain another IP address.