cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
26019
Views
0
Helpful
6
Replies

Force a DHCP release / renew on ASA from CLI

schinatti
Level 1
Level 1

Hi forum,

Is it possible to force an ASA to release and/or renew a DHCP lease?  To be clear, the ASA is a DHCP client in this case, getting its IP address from an ISP on an external interface.  I couldn't seem to find anything in the docs for this function, which seems like a pretty basic thing to want to do.  I saw some references to doing this through ADSM, but nothing from the CLI.  This is an ASA5505 running 8.2(2) if that matters. 

Thanks in advance!

6 Replies 6

lcambron
Level 3
Level 3

Hello,

There isn't currently a command for that, the only way will be by removing the "ip address dhcp" command and re-add it.

Regards,

Felipe.

That's surprising ... Presumably that would be "no ip address dhcp" command from the interface level of the CLI?  Does that command specifically generate a DHCP release on the interface?  Occasionally I need to release the DHCP IP address - otherwise the ISP will not hand out a new address if I need to switch routers for some reason...

Thanks.

Hello,

Yes removing and re-adding the command from the interface should generate a dhcp renew.

Regards,

Felipe.

But specifically when I delete the "ip address", does that cause a DHCP release?

The scenario I'm interested in is if I'm using the ASA as a router for my ISP, but I want to switch to a different router (i.e. not the ASA).  My ISP will not provide a new DHCP address until the current one is released (or the lease expires, or you call into tech support to manually release the address).  I'd like to be able to force the ASA to release the address, but not necessarily renew it with the ASA.

Thanks in advance...

Yes it should cause the release, you can enable "debug dhcpc event", issue "no ip address" on the interface and wait for the debug statement indicating that the IP has been free'd.

Regards,

Felipe.

Remember to rate useful posts.

Hi,

From what I know you can renew the ip address if you are using the latest version av the ASDM.

I havn't found the cli-command for renewing the ip-address though.

Cheers,
Jesper

Sent from Cisco Technical Support iPhone App

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card