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

How do you find devices w/ Link-local IPv4 address on your network

General pfSense Questions
5
13
2.9k
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
    NogBadTheBad
    last edited by NogBadTheBad Jun 5, 2020, 3:06 PM Jun 5, 2020, 2:59 PM

    Have a look at the arp table.

    Pop the mac addresses here and you may see the vendor:-

    https://www.wireshark.org/tools/oui-lookup.html

    You also may be able to check the switch the devices are connected to by looking at the cam table.

    Andy

    1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

    1 Reply Last reply Reply Quote 0
    • R
      rsaanon
      last edited by Jun 5, 2020, 3:39 PM

      Thanks for your response.

      That's exactly the problem. The firewall log for the link-local addresses do not show the mac addresses otherwise it would have been easy to isolate the target device to a vendor. The whole issue is finding the MAC addresses of devices with the link-local address.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • N
        NogBadTheBad
        last edited by Jun 5, 2020, 4:22 PM

        There is an arp table on the router, under diagnostics IIRC.

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        R 1 Reply Last reply Jun 6, 2020, 9:18 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Jun 5, 2020, 5:59 PM

          Arp table normally not going to show link-local addresses..

          Best is to just sniff to see the traffic, then look up the vendor from the mac.

          If your saying they can not get a dhcp, you could also look in the dhcp log which will show mac to who is not getting an IP but asking for one - quite often they will be asking a lot ;)

          With so many devices I would hope you also have a smart switch so you can look in its mac address table to help track down where the device is once you have the mac.

          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

          R 1 Reply Last reply Jun 6, 2020, 9:31 PM Reply Quote 1
          • R
            rsaanon @NogBadTheBad
            last edited by Jun 6, 2020, 9:18 PM

            @NogBadTheBad Thanks for chiming in. Unfortunately, ARP table does not show MAC addresses.

            J 1 Reply Last reply Jun 6, 2020, 9:39 PM Reply Quote 0
            • R
              rsaanon @johnpoz
              last edited by Jun 6, 2020, 9:31 PM

              @johnpoz You’re absolutely right. ARP table does not show MAC addresses. What utility/tool could I use on the pfsense to sniff the traffic? I have several interfaces on the pfsense, with each interface on a separate VLAN. My desktop is connected to one of the subnets/VLAN that has no issue with connectivity. If I ran wireshark on my desktop, then I would not see any 169.x.x.x link-local addresses So, I need to be able to run sniffer in the pfsense box.

              I will check out the dhcp log as suggested. Also, looking at the MAC table on the switch is an excellent idea.

              Thanks so much, John. Appreciate your help.

              -rsa

              J 1 Reply Last reply Jun 7, 2020, 12:52 AM Reply Quote 0
              • J
                jdeloach @rsaanon
                last edited by Jun 6, 2020, 9:39 PM

                This post is deleted!
                J 1 Reply Last reply Jun 7, 2020, 12:59 AM Reply Quote 0
                • R
                  rsaanon
                  last edited by Jun 6, 2020, 10:08 PM

                  @jdeloach ARP table shows MAC addresses for only non link-local addresses. I’m trying to hunt down devices on my network that for some reason are not getting DHCP assigned address. As mentioned in my initial post, the firewall log is getting flooded by link local addresses that’s emanating from a LAGG group. Each lab group has multiple VLANs defined. Therefore I’m not able to isolate the problem down to a particular subnet or a VLAN. Thus making it difficult to isolate target devices.

                  1 Reply Last reply Reply Quote 0
                  • J
                    JKnott @rsaanon
                    last edited by Jun 7, 2020, 12:52 AM

                    @rsaanon said in How do you find devices w/ Link-local IPv4 address on your network:

                    So, I need to be able to run sniffer in the pfsense box.

                    If you can't see those packets on a desktop system, why do you think you'll see them with pfSense? Since link local packets are confined to the local network, they won't pass through pfSense. The best you can do is watch for broadcasts or multicasts from those devices, which should be sent to all devices on a switch. For example, when a device connects, you should see Duplicate Address Detection packets. You might also see mDNS.

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

                    1 Reply Last reply Reply Quote 0
                    • J
                      JKnott @jdeloach
                      last edited by Jun 7, 2020, 12:59 AM

                      @jdeloach said in How do you find devices w/ Link-local IPv4 address on your network:

                      Huh!!!

                      PfSense or any other device will only have arp cache entries for devices that have recently communicated with that device. After a while, the entry will time out and be removed from the cache. One possibility would be to run a script that periodically checks the cache to collect new addresses. Judging from the cache contents of my system, it appears the cache times out after 10 minutes, so running the script every 5 minutes for a period of time would collect most, if not all the MACs.

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

                      1 Reply Last reply Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator
                        last edited by Jun 7, 2020, 1:06 AM

                        ^ exactly why would a link-local IP be taking to pfsense that doesn't have a link-local address... This is why you wouldn't see it in the arp table..

                        Just sniff on the interface connected to the interface your seeing the traffic blocked on.. this lagg0 and lagg1 - you will get the traffic and then can view the mac address it came from.

                        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

                        J 1 Reply Last reply Jun 7, 2020, 1:28 AM Reply Quote 0
                        • J
                          JKnott @johnpoz
                          last edited by Jun 7, 2020, 1:28 AM

                          @johnpoz

                          Yeah, I just checked that. Arp cache won't catch anything that's not in the subnet. I suppose tcpdump --immediate-mode might work to capture for a script.

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

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