Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    WAN DHCP IP Renew

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 430 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mortis2600
      last edited by

      Maybe I'm missing it, but I have not been able to find an answer to this issue I've had a few times.

      Let's say my modem goes off line for some random reason. Kids unplug it, modem randomly reboots, etc. Is there an easier way to get pfsense to renew the WAN DHCP without having to go into interfaces, disable WAN, save, apply then re-enable WAN, save and apply?

      Thanks for indulging my noobishness.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @mortis2600
        last edited by

        @mortis2600

        Track what happens with your pfSense WAN IP when your modem stops-> starts - or reboot.
        Look at the logs (System and DHCP and ...) and the Status > Interfaces page.

        Modem can hand out an RFC1918 IP for management purposes, so you can access the modem's GUI (if it has one) during startup.
        Instruct the pfSense DHCP client not to accept such an IP, or have pfSense wait long engough so the modem is connected to the ISP, which mans it get transparant for the communication (== bridge) and the pfSense DHCP client requests goes to your ISP.

        check this box and see the new options, very useful if you have a modem :

        6ed7f4cd-90c6-4032-9ed1-3446b50ca062-image.png

        The "Reject leases from" can be filled in, so pfSense won't get a lease from the modem's DHCP server (if it has one).
        You could also use a time criteria, so it waits for the modem to 'settle' before starting to "DHCP request".

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • stephenw10S Offline
          stephenw10 Netgate Administrator
          last edited by

          Yeah, you shouldn't have to do anything at all.

          If the modem goes down pfSense will see the WAN interface lose link and triggers a bunch of scripts. When it comes back up it triggers a different bunch of scripts which should pull a new dhcp lease and get a WAN IP.
          If you have a switch in between that can be an issue as the pfSense interface then never loses link. The gateway would still go down though.

          Steve

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.