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

    After Cable modem power down WAN Interface gets no ip

    Scheduled Pinned Locked Moved General pfSense Questions
    15 Posts 6 Posters 1.7k 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.
    • chpalmerC
      chpalmer
      last edited by

      This is an issue that has plagued me here for some time. If my modem goes down for any period of time I have to restart the router to get it to grab an address.

      Its something that rarely happens but something that needs to be addressed. Ive always blamed something my ISP WaveBroadband was doing. Taking it down for testing is an issue here 24/7

      Watching now. :)

      Triggering snowflakes one by one..
      Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

      1 Reply Last reply Reply Quote 0
      • O
        Ognian @stephenw10
        last edited by

        @stephenw10 I clicked on release lease and then on renew. Isn't there some kind of pinger wich would detect that situation and toggle Interface down and up?

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

          Not that I'm aware of.

          Can you test a 2.5 snapshot? I don't think that fix has gone in yet but if it's something else it may already be fixed there.

          Steve

          O 2 Replies Last reply Reply Quote 0
          • O
            Ognian @stephenw10
            last edited by

            @stephenw10 OK will do that in a couple of hours... So I'll just go to "System Update" and select the 2.5 development snapshot. I'll take a config backup before. Any thing else?

            1 Reply Last reply Reply Quote 0
            • JKnottJ
              JKnott @Ognian
              last edited by

              @Ognian said in After Cable modem power down WAN Interface gets no ip:

              I clicked on release lease and then on renew. Isn't there some kind of pinger wich would detect that situation and toggle Interface down and up?

              Given that the DHCP process is starting indicates pfSense is seeing the modem come back. It's already sending out the requests which are not being responded to. There's nothing else it can do, so the problem is elsewhere. What happens if you plug a computer in? Does it get an address or not? This would indicate whether it's a pfSense problem.

              BTW, a DHCP release simply tells the server to release an address, it doesn't get anotther, as that's part of the normal DHCP process. You'd then have to do a renew to get an address.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

              O 1 Reply Last reply Reply Quote 0
              • O
                Ognian @JKnott
                last edited by

                @JKnott I'm nearly 100% sure that the problem is the way the modem comes up ;-) But if I want to have Internet in the 2 million people city I live, I have to accept this particular modem. No other way. So I'm searching for a pragmatic solution for this... In a couple of hours I'll have (hopefully) some time to check the 2.5 version; If there is no other way to do it I'll need a script pinging the first gateway and in case that it can't be reached toggling wan if down and up... I just thought that there is something like this already ...

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

                  This :

                  a9263798-f49a-42b0-896b-72386b094bd0-image.png
                  can't be used to make pfSense wait for slow-to-start upstream WAN devices ?

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

                  T 1 Reply Last reply Reply Quote 0
                  • O
                    Ognian @stephenw10
                    last edited by

                    @stephenw10 Upgrade to
                    2.5.0-DEVELOPMENT (amd64)
                    built on Wed Jul 17 07:35:05 EDT 2019
                    FreeBSD 12.0-RELEASE-p7
                    went more or less smooth: after the last reboot there was no internet connection since the default gateway was on automatic instead of WAN_DHCP, but after that manual change it works like before.
                    And yes it behaves exactly like with the 2.4.4 release, if the cable modem is powered down and again up the WAN interface ends with no ip. Looking on the dashboard after the gateway gets red, the WAN Interface gets an DHCP IP but after some time it drops to n/a...
                    Shall I try to manually patch the script, or do you plan to have soon a new development version?

                    1 Reply Last reply Reply Quote 0
                    • T
                      tomashk @Gertjan
                      last edited by

                      @Gertjan said in After Cable modem power down WAN Interface gets no ip:

                      This :

                      a9263798-f49a-42b0-896b-72386b094bd0-image.png
                      can't be used to make pfSense wait for slow-to-start upstream WAN devices ?

                      I had problem similar to this

                      Jul 17 13:21:21	dhclient	79311	No DHCPOFFERS received.
                      Jul 17 13:21:16	dhclient	79311	DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 5
                      Jul 17 13:21:03	dhclient	79311	DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 13
                      Jul 17 13:20:55	dhclient	79311	DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 8
                      

                      where pfSense by default do DHCPDISCOVER no long enough compared to how long my modem starts. So setting timeout to 900 fixed it for me (in WAN interface options). Of course I can't tell that this will work for you. But it is worth the try :)

                      1 Reply Last reply Reply Quote 1
                      • O
                        Ognian
                        last edited by

                        @Gertjan @tomashk Thank you so much! This works!!
                        I've tried to search for the default value and the unit of this parameter; looks like the units are seconds and the default value is 60 seconds (from my log it looks like it waits 80 seconds, before it gives up). Changing this to 900 (15 minutes) should give plenty time to reconnect... And after changing it I can see that the cable modem needs almost 3 minutes to get online...

                        So this looks like a good workaround for one time failures. Of course this https://redmine.pfsense.org/issues/9267 should do the rest

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

                          Nice! 👍

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