Howto force a dhcp release and dhcp renew on wan interface when down?



  • Hello,

    I'm running pfSense 2.4.2-RELEASE-p1 for years now in a multi WAN environment.
    I use a 4G dongle connected via Proxycast in bridge mode (4G to Ethernet) which is connected to a WAN interface in pfSense as backup when the adsl and cablemodems are offline.

    Problem is when the ISP of the 4G dongle itself goes down and comes up again the IP address assigned to it doesn't renew, and so is offline.
    When I do a manual release renew under status -> interfaces -> mobile interface/opt 6 it works again for a couple of days.

    Is it possible to let it do this automaticly? So when interface opt6 goes down and comes up again do dhcp release renew on interface opt6?

    Any help would greatly appreciated!

    Best Regards,
    Donald.



  • In Linux, there are hooks for running scripts on various evens, such as a network connection coming up.  I expect the same would be available in FreeBSD, which pfSense runs on.  However, I'm not that familiar with FreeBSD and haven't bothered looking.  Look for the script that starts the DHCP client and you should be able to modify it to do a release/renew.


Log in to reply