89
dhcp relay release ip
Use dhcp relay release ip to release a client IP address.
Syntax
dhcp relay release ip ip-address [ vpn-instance vpn-instance-name ]
Views
System view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the IP address to be released.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the specified IP
address belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If
you do not specify a VPN instance, this command releases the IP address on the public network.
Usage guidelines
After you execute this command, the relay agent sends a DHCP-RELEASE packet to the DHCP
server and removes the relay entry of the IP address. Upon receiving the packet, the server removes
binding information about the specified IP address to release the IP address.
Examples
# Release IP address 1.1.1.1.
<Sysname> system-view
[Sysname] dhcp relay release ip 1.1.1.1
dhcp relay server-address
Use dhcp relay server-address to specify DHCP servers on the DHCP relay agent.
Use undo dhcp relay server-address to remove DHCP servers.
Syntax
dhcp relay server-address ip-address
undo dhcp relay server-address [ ip-address ]
Default
No DHCP server is specified on the DHCP relay agent.
Views
Interface view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the IP address of a DHCP server. The DHCP relay agent forwards DHCP
packets received from DHCP clients to this DHCP server.
Usage guidelines
The specified IP address of the DHCP server must not reside on the same subnet as the IP address
of the DHCP relay agent interface. Otherwise, the DHCP clients might fail to obtain IP addresses.