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

    Detect missing IP address

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 4 Posters 717 Views
    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.
    • N
      netpok
      last edited by

      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?

      provelsP 1 Reply Last reply Reply Quote 0
      • M
        mikee
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • provelsP
          provels @netpok
          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!

          Peder

          MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
          BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

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

            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.
            https://forum.netgate.com/post/853950

            Steve

            1 Reply Last reply Reply Quote 1
            • N
              netpok
              last edited by

              @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.

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

                @netpok said in Detect missing IP address:

                over 9000

                😁

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