Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Exact syntax for DHCLIENT option for a longer lease time please
« previous
next »
Print
Pages: [
1
]
Author
Topic: Exact syntax for DHCLIENT option for a longer lease time please (Read 331 times)
cybermaus
Newbie
Posts: 22
Karma: 2
Exact syntax for DHCLIENT option for a longer lease time please
«
on:
May 12, 2024, 01:45:35 pm »
No idea if the ISP will honor dhcp options, but does someone know how to request a longer lease?
My ISP they recently added IPv6, and at the same time moved IPv4 to CG-NAT. Which did not work for me. Their support pages tells me if you ask for a true IPv4, they still offer that, so I did.
But now the IPv4 they give me is on a 10 minute lease time. They keep giving me the same IPv4, so that is nice, but every 10 minutes the IP address is removed and added, and also the default route removed and added, and it causes connection drops when that happens.
So, I am going to call the helpdesk again this week, but does someone know what exact option I need to type into the WAN interface to request the a day 84000 second lease? I seem to recall that is what it was before this whole thing happened.
For reference, this is the /var/db
Yes, it shows lease 1200 seconds, but it refreshes every 10
root@OPNsense1:/var/db # less dhclient.leases.vtnet1
lease {
interface "vtnet1";
fixed-address xx.xx.191.40;
next-server 194.16.0.0;
option subnet-mask 255.255.255.192;
option routers xx.xx.191.1;
option domain-name-servers xx.xx.169.71,xx.xx.169.72;
option dhcp-lease-time 1200;
option dhcp-message-type 5;
option dhcp-server-identifier 194.16.0.0;
renew 0 2024/5/12 09:31:16;
rebind 0 2024/5/12 09:38:46;
expire 0 2024/5/12 09:41:16;
}
lease {
interface "vtnet1";
fixed-address xx.xxx.191.40;
next-server 194.16.0.0;
option subnet-mask 255.255.255.192;
option routers xx.xx.191.1;
option domain-name-servers xx.xx.169.71,xx.xx.169.72;
option dhcp-lease-time 1200;
option dhcp-message-type 5;
option dhcp-server-identifier 194.16.0.0;
renew 0 2024/5/12 09:31:20;
rebind 0 2024/5/12 09:38:50;
expire 0 2024/5/12 09:41:20;
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Exact syntax for DHCLIENT option for a longer lease time please