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

DHCP sometimes doesn't assign IP address

Scheduled Pinned Locked Moved DHCP and DNS
19 Posts 3 Posters 1.1k 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.
  • G
    galt007
    last edited by Oct 9, 2022, 3:43 PM

    Running 22.05

    My setup

    pfsense >> netgear GS316EP >> PC Intel NIC

    netgear switch is on LAN 192.168.50.xxx

    DHCP pool from 192.168.50.100 to 199
    gateway @ 192.168.50.70
    some static IPs below 192.168.50.100 (switches, APs)

    on the PC side, when I connect to the network settings (Manjaro) the IP address of 192.168.2.1 is returned. I disconnect and reconnect and 192.168.50.128 is returned and all is good.

    Similarly
    pfsense >> netgear GS316EP >> netgear GS308E >> Samung TV

    The TV has the same issue it gets assigned 192.168.2.110
    Power the TV off (pull the plug) then on doesn't help

    Both switches are brand new, upgraded firmware, default settings.

    Any pointers would be appreciated

    J 1 Reply Last reply Oct 9, 2022, 3:46 PM Reply Quote 0
    • J
      Jarhead @galt007
      last edited by Oct 9, 2022, 3:46 PM

      @galt007 First, what's with the crazy addressing scheme??
      .70 is your gateway? Make your life easier and go with conventions.

      But it would appear you have multiple dhcp servers and you need make sure you only have one active.
      What is assigning 192.168.2 addresses?

      G 1 Reply Last reply Oct 9, 2022, 3:53 PM Reply Quote 0
      • G
        galt007 @Jarhead
        last edited by Oct 9, 2022, 3:53 PM

        @jarhead Open to suggestions on following conventions. What should be my gateway ip? 192.168.50.2?

        I do have 4 interfaces specified in pfsense with DHCP enabled but only Pfsense is running a server

        J 1 Reply Last reply Oct 9, 2022, 3:59 PM Reply Quote 0
        • J
          Jarhead @galt007
          last edited by Oct 9, 2022, 3:59 PM

          @galt007
          Typically the .1 would be gateway. That's actually defaulted out of the box on pfSense. Some choose to use the last address of the subnet as gateway but arbitrarily choosing say .70 is odd.

          So what is assigning the .2.x addresses. Not saying it's pfSense, most likely isn't, I would guess a switch maybe?

          G 1 Reply Last reply Oct 9, 2022, 4:04 PM Reply Quote 0
          • G
            galt007 @Jarhead
            last edited by Oct 9, 2022, 4:04 PM

            @jarhead I'm not an expert but why would a switch assign an IP address?

            J 1 Reply Last reply Oct 9, 2022, 4:13 PM Reply Quote 0
            • J
              Jarhead @galt007
              last edited by Oct 9, 2022, 4:13 PM

              @galt007 Because it's dhcp server is active.
              Go through all of your devices and find the server assigning the .2.x addresses, then disable it.

              G 2 Replies Last reply Oct 9, 2022, 4:19 PM Reply Quote 0
              • G
                galt007 @Jarhead
                last edited by Oct 9, 2022, 4:19 PM

                @jarhead ok I'll check in a minute I'm on my tractor right now

                1 Reply Last reply Reply Quote 0
                • G
                  galt007 @Jarhead
                  last edited by Oct 9, 2022, 4:56 PM

                  @jarhead ok both switches have DHCP mode turned off. Been that way since I assigned the switch maintenance to a static IP.

                  I did find this doing a packet cap when powering up the TV
                  TV was assigned the address 192.168.2.110

                  IP 192.168.50.123.48857 > 192.168.2.187.1413: tcp 0

                  .123 is my TIVO box - so this isnt a DHCP server.

                  Now If I just toggle the switch on my TV between DHCP and fixed IP the DHCP server assigns an IP address after a few attempts.

                  I think there is a race condition somewhere.

                  J B 2 Replies Last reply Oct 9, 2022, 4:59 PM Reply Quote 0
                  • J
                    Jarhead @galt007
                    last edited by Oct 9, 2022, 4:59 PM

                    @galt007 That packet capture has nothing to do with dhcp.

                    So where is the 192.168.2.x network coming from?
                    Is this assigned on pfSense?

                    You have something else with an active dhcp server.

                    J 1 Reply Last reply Oct 9, 2022, 5:04 PM Reply Quote 1
                    • J
                      Jarhead @Jarhead
                      last edited by Oct 9, 2022, 5:04 PM

                      Wireless access point maybe?

                      G 1 Reply Last reply Oct 9, 2022, 5:13 PM Reply Quote 0
                      • B
                        bingo600 @galt007
                        last edited by Oct 9, 2022, 5:13 PM

                        @galt007
                        Do you have your "Old router" or a "Wifi Box" connected ?
                        Those are the usual suspects, when having a rouge dhcp server.

                        You might not catch the offender by doing a pfSense packet trace, if the rouge unit is on the same L2 net as your devices getting a 192.168.2.x DHCP IP.
                        Well technically you should be able to see the broadcasts UDP 67/68.

                        But i would make a "Mirror port" on your switch.
                        On the Netgear make a "Free port" a mirror of your "TV port", connect your linux Box to the mirror port , and "Fire up Wireshark as root".

                        In wireshark select your Cabled interface that is connected to the mirror port, and start "sniffing".

                        To display filter wireshark to just show the captured DHCP packages, write : bootp - In the top line.

                        8ab80c0b-bdeb-4a16-ad47-ac989b708765-image.png
                        In the

                        Now just sit back and wait for some dhcp packages to be shown.

                        Locate the ones that hands out a DHCP Offer contaning a 192.168.2.x" IP address to the TV. And note the MAC Address of the device sending.

                        Now to find the offender you have 2 choices (using the mac):

                        1: Use your switch to track down the mac , to a specific port.

                        2: Use a mac address lookup tool , to try to identify the vendor it was assigned to. Wireshark might already show the vendor in the packet trace.

                        Lookup url's:
                        https://www.wireshark.org/tools/oui-lookup.html
                        http://www.coffer.com/mac_find/

                        Happy hunting

                        /Bingo

                        If you find my answer useful - Please give the post a 👍 - "thumbs up"

                        pfSense+ 23.05.1 (ZFS)

                        QOTOM-Q355G4 Quad Lan.
                        CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                        LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                        G 1 Reply Last reply Oct 9, 2022, 5:22 PM Reply Quote 1
                        • G
                          galt007 @Jarhead
                          last edited by galt007 Oct 9, 2022, 5:14 PM Oct 9, 2022, 5:13 PM

                          @jarhead Geeting these on a packet capture of 192.168.2.0/24

                          ARP, Request who-has 192.168.2.1 tell 192.168.2.110, length 46
                          ARP, Request who-has 192.168.2.1 tell 192.168.2.110, length 46
                          IP 192.168.2.110.38973 > 192.168.2.255.15600: UDP, length 35
                          ARP, Request who-has 192.168.2.1 tell 192.168.2.110, length 46
                          ARP, Request who-has 192.168.2.1 tell 192.168.2.110, length 46

                          the 110 address is the DHCP assinged TV address

                          AP's are setup in bridge mode without LAN ip addresses. WAN side of AP is DHCP but statically assigned by pfsense

                          B 1 Reply Last reply Oct 9, 2022, 5:32 PM Reply Quote 0
                          • G
                            galt007 @bingo600
                            last edited by Oct 9, 2022, 5:22 PM

                            @bingo600 Thanks for the recipe. I did find a device 192.168.2.187 connected to my wifie network. Im going to reboot that AP and see if it connects again

                            1 Reply Last reply Reply Quote 0
                            • B
                              bingo600 @galt007
                              last edited by Oct 9, 2022, 5:32 PM

                              @galt007 said in DHCP sometimes doesn't assign IP address:

                              ARP, Request who-has 192.168.2.1 tell 192.168.2.110, length 46

                              You are probably looking for a device that uses : 192.168.2.1 as the ip address.
                              That ARP request above , smell a lot of a Client (192.168.2.110) , arp'ing for it's default gateway (192.168.2.1). Most often the default gateway ip is the same as the DHCP server ip on SOHO devices..

                              /Bingo

                              If you find my answer useful - Please give the post a 👍 - "thumbs up"

                              pfSense+ 23.05.1 (ZFS)

                              QOTOM-Q355G4 Quad Lan.
                              CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                              LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                              G 1 Reply Last reply Oct 9, 2022, 6:38 PM Reply Quote 1
                              • G
                                galt007 @bingo600
                                last edited by Oct 9, 2022, 6:38 PM

                                @bingo600 @Jarhead Found the offending device. Actiontec ECB6000 Moca 2.0 network adapter.

                                Found it the old school way. TV direct to main switch, started pulling ports until the TV was assigned a proper address from PfSense.

                                Thanks for the help folks!

                                B 1 Reply Last reply Oct 9, 2022, 6:49 PM Reply Quote 0
                                • B
                                  bingo600 @galt007
                                  last edited by Oct 9, 2022, 6:49 PM

                                  @galt007
                                  Well done.

                                  But from the manual : https://www.actiontec.com/wp-content/uploads/2017/02/ECB6000_UserManual.pdf

                                  It doesn't seem like that device has a DHCP server built in. So i suppose the "Rouge Server" is at "The other end" of the Coax ...

                                  What is it used for ??

                                  If you find my answer useful - Please give the post a 👍 - "thumbs up"

                                  pfSense+ 23.05.1 (ZFS)

                                  QOTOM-Q355G4 Quad Lan.
                                  CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                                  LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                                  J G 2 Replies Last reply Oct 9, 2022, 6:56 PM Reply Quote 0
                                  • J
                                    Jarhead @bingo600
                                    last edited by Oct 9, 2022, 6:56 PM

                                    @bingo600 Had no idea what a rouge server was until the second time you posted it... rogue. 😊

                                    B 1 Reply Last reply Oct 9, 2022, 6:59 PM Reply Quote 0
                                    • B
                                      bingo600 @Jarhead
                                      last edited by Oct 9, 2022, 6:59 PM

                                      @jarhead
                                      Ah ... English isn't my native language (sorry)

                                      If you find my answer useful - Please give the post a 👍 - "thumbs up"

                                      pfSense+ 23.05.1 (ZFS)

                                      QOTOM-Q355G4 Quad Lan.
                                      CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                                      LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        galt007 @bingo600
                                        last edited by Oct 9, 2022, 7:03 PM

                                        @bingo600 that's a good question. Think it came with my tivo which might explain why my tivo was trying to talk to 192.168.2.x.

                                        Might have been how my tivo communicated with my tivo mini.

                                        Main tivo works fine without it as it networked properly now.

                                        1 Reply Last reply Reply Quote 0
                                        1 out of 19
                                        • First post
                                          1/19
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                          This community forum collects and processes your personal information.
                                          consent.not_received