A DHCP server group is bound to the interface.
----End
6.5.5 (Optional) Configuring the DHCP Relay Agent to Instruct the
DHCP Server to Reclaim the Client IP address
In some situations, a DHCP relay agent must send a request to the DHCP server to instruct the
server to reclaim the IP address of a client, for example, to log out a user.
Context
When a DHCP relay agent is configured to instruct the DHCP server to reclaim the IP address
of a DHCP client, the relay agent sends a DHCP Release packet to the DHCP server. After
receiving the packet, the DHCP server reclaims the lease of the IP address.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 (Optional) Run:
interface interface-type interface-number
The interface view is displayed.
On the AR150/200, a Layer 3 Ethernet interface or its sub-interface, a Layer 3 Eth-trunk interface
or its sub-interface, or a VLANIF interface can be configured to function as a DHCP relay agent.
Step 3 Run:
dhcp relay release client-ip-address mac-address server-ip-address
A request packet is sent to the DHCP server to instruct the server to reclaim the IP address that
is obtained by a DHCP client.
----End
6.5.6 Checking the Configuration
This section describes how to check DHCP relay configurations.
Prerequisites
The DHCP relay configurations are complete.
Procedure
l Run the display dhcp relay { all | interface interface-type interface-number } command
to check the DHCP server group that is bound to the interface and information about the
DHCP group servers.
l Run the display dhcp relay statistics command to check the statistics on the DHCP relay
agent.
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.
148