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

    Capture full DHCP or DHCPv6 sequence

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 2 Posters 1.8k 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.
    • JKnottJ
      JKnott
      last edited by

      When solving DHCP problems a packet capture of the full DHCP sequence can be useful. A packet capture of UDP port 67 or 68 on IPv4 or 546 or 547 on IPv6 during boot up will capture the full sequence. There are two ways to accomplish the capture.

      1. Use a data tap inserted between pfSense and the modem, connected to a computer running Wireshark, during boot up
      2. Use the pfSense Packet Capture

      To use Packet Capture

      1. shut down pfSense and disconnect the WAN cable
      2. Reboot pfSense and start Packet Capture
      3. Connect the WAN cable and let Packet Capture run for a couple of minutes.

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

      johnpozJ 1 Reply Last reply Reply Quote 1
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @JKnott
        last edited by

        @jknott said in Capture full DHCP or DHCPv6 sequence:

        Use a data tap inserted between pfSense and the modem

        While this is valid way to do it if you don't already have the ability.. If you happen to have managed switch already that most users I would think do.. Just run the connection through your already existing switch. If you have the spare ports.. Now you have a perm tap no need to ever move anything around.

        Then you can span a port and sniff if so desired. If you set this up now, you have it whenever you might need it.

        Just because you use your switch to handle your lan side, doesn't mean you can't leverage it for your wan side traffic as well. Just create a new vlan on the switch for the ports, untagged - I use vlan 99 on my switch.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

          @johnpoz

          I carry my 5 port switch in my computer bag where it's handy for use as a data tap or just a plain switch. Also, when you're at someone else's site, you can't assume you can use their switch for this.

          BTW, I don't have any spare ports on my Cisco 8 port switch for the WAN side.

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

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @JKnott
            last edited by johnpoz

            @jknott Not disagreeing with ;)

            Just saying for your own setup, leveraging your own existing switches can act as the tap..

            If what you want is just a tiny tap you can take with you.. The unifi flex mini is super small, 5 ports. And you can power it of usb batter bank.. Now you will have to setup the ports to be mirrored before. But need a tiny little tap for your bag, that you can power of your off your little battery pack, or more than likely right off your laptop usb port..

            Runs like $30...

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

              @johnpoz said in Capture full DHCP or DHCPv6 sequence:

              The unifi flex mini

              Other than USB power, that switch gets me nothing I don't already have.

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

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @JKnott
                last edited by johnpoz

                @jknott its TINY!!! guarantee is smaller than whatever 5 port switch you have in your bag now..

                Didn't say you had to get rid of yours and use this.. I am pointing out for others reading your thread about using a switch as a tap...

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                1 Reply Last reply Reply Quote 1
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • J jagdtigger referenced this topic on
                • J jagdtigger referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • J jagdtigger referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • GertjanG Gertjan referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • GertjanG Gertjan referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic on
                • JKnottJ JKnott referenced this topic
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.