Viewing and Deleting DHCP Client Bindings
The JUNOSe software provides commands that enable you to manage your router's DHCP external server, DHCP local server, and DHCP relay proxy client bindings. A client binding associates an IP address with a DHCP client, and describes both the client (for example hardware address and state) and the IP address (for example subnet and lease time).
The commands enable you to view information about current DHCP bindings, and to remove current bindings that are no longer needed. Use the show dhcp binding command to display information for current client bindings and track lease times and status. Use the dhcp delete-binding command to delete a connected user's IP address lease and the associated route configuration. When you delete a client binding, the lease is removed on the router. You might delete client bindings to:
- Recover functional resources from a user who has not explicitly terminated connectivity and whose lease is unexpired.
- Discontinue connectivity to a user, prompting or forcing the user to request a new lease in order to reestablish network connectivity.
NOTE: This command replaces the clear ip dhcp-local binding and dhcp-external delete-binding commands, which are deprecated and might be removed in a future release.
You can use the following keywords with the dhcp delete-binding command:
- allSpecifies all DHCP local server, DHCP external server, and DHCP relay proxy client bindings
- all-localSpecifies all DHCP local server client bindings
- all-externalSpecifies all DHCP external server client bindings
- all-relay-proxySpecifies all DHCP relay proxy client bindings
- binding-idSpecifies a particular binding ID
host1#dhcp delete-binding all-externalTo delete a specific binding: host1#dhcp delete-binding binding-id 3972819365