summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2017-01-16 13:52:06 -0800
committerNOYB <Al_Stu@Frontier.com>2017-01-17 14:18:35 -0800
commit8333e25c71ceb5421bae8a6385e5a0a031fc9433 (patch)
tree3e0bb339f92a12e4136f94d1a81ba9f3c12cfdce /src/sbin
parent873a236bfe372aa4df726929afa932e989a0898f (diff)
downloadpfsense-8333e25c71ceb5421bae8a6385e5a0a031fc9433.zip
pfsense-8333e25c71ceb5421bae8a6385e5a0a031fc9433.tar.gz
Status / Interfaces - Relinquish DHCP Lease
Send gratuitous DHCP release message to server. Dependency: To fully relinquish the DHCP lease, the "RELEASE" reason needs to be added to the /sbin/dhclient-script. s/EXPIRE|FAIL)/EXPIRE|FAIL|RELEASE)/ Without the 'RELEASE' reason, the DHCP release message will still be sent to the server, however the local dhclient leases will not reflect the relinquishment. Therefore, DHCP renewal will do a DHCP request for the previous address rather than doing a DHCP discovery and being more likely to be assigned a different address.
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/dhclient-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/dhclient-script b/src/sbin/dhclient-script
index 0695eff..da5ea87 100755
--- a/src/sbin/dhclient-script
+++ b/src/sbin/dhclient-script
@@ -352,7 +352,7 @@ BOUND|RENEW|REBIND|REBOOT)
fi
;;
-EXPIRE|FAIL)
+EXPIRE|FAIL|RELEASE)
delete_old_alias
if [ -n "$old_ip_address" ]; then
delete_old_address
OpenPOWER on IntegriCloud