R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

44
Task Command
Clear information about lease-expired IP
addresses.
reset dhcp server expired [ ip ip-address | pool pool-name ]
Clear information about assigned IP
addresses.
reset dhcp server ip-in-use [ ip ip-address | pool pool-name ]
Clear DHCP server statistics. reset dhcp server statistics
DHCP server configuration examples
DHCP networking includes the following types:
The DHCP server and clients reside on the same subnet.
The DHCP server and clients are not on the same subnet and communicate with each other through
a DHCP relay agent.
The DHCP server configuration for the two types is identical.
Static IP address assignment configuration example
Network requirements
As shown in Figure 16, Router A (DHCP server) assigns a static IP address, a DNS server address, and
a gateway address to Router B (DHCP client) and Router C (BOOTP client).
The client ID of the interface GigabitEthernet 2/1/1 on Router B is:
0030-3030-662e-6532-3030-2e30-3030-322d-4574-6865-726e-6574-302f-30.
The MAC address of the interface GigabitEthernet 2/1/1 on Router C is 000f-e200-01c0.
Figure 16 Network diagram
Configuration procedure
1. Specify an IP address for GigabitEthernet 2/1/1 on Router A:
<RouterA> system-view
[RouterA] interface gigabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ip address 10.1.1.1 25
[RouterA-GigabitEthernet2/1/1] quit