Detect missing IP address
I have the following problem: I have a crappy cable modem (powered by Puma6 - thx Intel) and until it does not boot up correctly it does not give IP over DHCP.
This results in pfSene accepting the offer leaving me without internet because everything is configured except the IP address.
Is there a way to detect this and force a dhcp renewal?
I assume that the status of the WAN interface is UP so cheking it is useless. So perhaps you could ping some internet site and disable and re-enable the WAN interface if there is no reply. Put all this in a script and configure a cron job to execute it from time to time.
provels last edited by stephenw10
@netpok Perhaps I'm misunderstanding you, but is your modem assigning an IP address to your WAN interface from its own DHCP when the WAN link is indeed down? If so, configure pfSense to ignore DHCP offers from the IP address of the modem.
"Interfaces/WAN/DHCP/Client Configuration/Reject leases from"
If not, then, well, just ignore me!
You could be hitting this: https://redmine.pfsense.org/issues/9267
You could try increasing the timeout value on the WAN dhcp client to workaround it if the modem boots very slowly.
@stephenw10 It is probably thet, I just found that the IP is wanishing on the following command:
$IFCONFIG $interface inet -alias $new_ip_address $medium
I did not found a way to prevent using the old lease so for now I will just simply increase the timeout to over 9000.