Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
skandshus
Advisor
Advisor
Jump to solution

Release ip

So i have been looking & searching the web for a simple dhcp release command… I am unable to find it…

 

 

can it be true that devices with such a price tag really doesn’t have a simple and basic feature as release a wan ip… useful when swapping appliance without the need to contact the ISP or useful outside opening hours of the isp 

using a 1570 in this example 

0 Kudos
1 Solution

Accepted Solutions
PhoneBoy
Admin
Admin

It looks like that kills the interface and does NOT cause it to send a release message.
That said, I think I figured out how you can do it.
In expert mode, enter the following command:

dhclient -r -v -lf /var/dhclient.leases.WAN

This appears to cause the gateway to send a DHCP release message (tcpdump on the interface confirms this).
You will probably want to disable and re-enable the Internet interface in the UI after doing this.

View solution in original post

9 Replies
the_rock
Legend
Legend

Maybe someone else can confirm, but I believe this is what you might be looking for:

https://community.checkpoint.com/t5/Security-Gateways/How-to-clear-DHCP-leases-on-Gaia-R80-10/td-p/2...

In R80.40, location is /var/lib/dhcpd/dhcpd.leases

0 Kudos
skandshus
Advisor
Advisor

But will clearing there send a release command?

0 Kudos
PhoneBoy
Admin
Admin

Go to Device > Network > Internet and disable the Internet connection.
This should release the IP.
That may not prevent the ISP from having the MAC/IP association cached, of course, so when you re-enable, you may get the same IP.
However, you can edit the Internet connection settings and change the WAN MAC in the Advanced tab, which should cause the ISP to allocate you a different IP.

0 Kudos
skandshus
Advisor
Advisor

If the device sends a “release” command then the ISP accepts it and it’s possible to change equipment with a different Mac with no need of waiting a required lease time or contacting them to release… this is what I usually do when changing equipment… release the up manually, a lot faster..:)

 

I was just hoping to find something specific regarding this.. I also tried via cli but the TAB commands doesn’t show anything close to it

0 Kudos
PhoneBoy
Admin
Admin

It looks like that kills the interface and does NOT cause it to send a release message.
That said, I think I figured out how you can do it.
In expert mode, enter the following command:

dhclient -r -v -lf /var/dhclient.leases.WAN

This appears to cause the gateway to send a DHCP release message (tcpdump on the interface confirms this).
You will probably want to disable and re-enable the Internet interface in the UI after doing this.

skandshus
Advisor
Advisor

Thanks man.. I’ll get right on it and keep the command in my reminder..

0 Kudos
Harald_Hansen
Advisor
Advisor

Maybe Check Point could fix this issue, one expects the DHCP client to release the IP address, especially on WAN, when the interface is disabled. Often the ISP allocates ONE IP address for each connection, which causes issues when replacing equipment.

0 Kudos
skandshus
Advisor
Advisor

Exactly my point.. relying on an ISP releasing/deleting the lease should not be neccesary

0 Kudos
G_W_Albrecht
Legend
Legend

dhclient syntax is available here: https://kb.isc.org/docs/isc-dhcp-41-manual-pages-dhclient

CCSE CCTE CCSM SMB Specialist
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events