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

    Listing Devices Downstream From a Port

    Scheduled Pinned Locked Moved General pfSense Questions
    18 Posts 4 Posters 1.6k 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.
    • L
      Lonnie
      last edited by Lonnie

      I can I see a list of all devices that are downstream from a particular physical port that's on the firewall? I'm interested in both IPs and MAC addresses.

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

        @lonnie the arp table would show you what interface pfsense is seeing a specific mac/ip combo

        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.8, 24.11

        1 Reply Last reply Reply Quote 1
        • L
          Lonnie
          last edited by Lonnie

          @johnpoz Thanks.

          I'm sure what you're saying it typically true, but in my case I have bridged ports together, and the ARP table shows the bridge-name as the interface for multiple ports.

          I'm working remotely, and am trying to determine which physical port (of a bridge) a device is downstream of.

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

            @lonnie ah so you want to know which port in the bridge is seeing the device - hmm.. I'm not bridge on pfsense sort of guy. While they have their use cases sure - have never had need for any of the use cases that make any sense where would set it up.

            hmmmm?? Have to think about this for a bit - might have to setup a bridge to test with.

            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.8, 24.11

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

              You can see that from ifconfig like:

              [22.05-RELEASE][root@5100-2.stevew.lan]/root: ifconfig -vv bridge0 addr
              00:1e:33:a8:6d:7d Vlan1 ix1 1191 flags=0<>
              60:38:e0:b4:a3:b0 Vlan1 ix3 1135 flags=0<>
              

              Steve

              L 1 Reply Last reply Reply Quote 1
              • L
                Lonnie @johnpoz
                last edited by

                @johnpoz Yeah, I hear you. The only reason I used a bridge, is because I only needed one additional port for a single subnet. I have a dumb switch I could have used instead, but I was trying to eliminate powering another device. I thought I'd be able to make a couple of ports act like a switch instead of acting like separate logical ports. I may remove the bridge ultimately, but right now I'm (here remotely) trying to figure out what things are downstream from the physical ports.

                1 Reply Last reply Reply Quote 0
                • L
                  Lonnie @stephenw10
                  last edited by

                  @stephenw10 Did you do that by SSHing into pfSense? I know which parent-interfaces make up the bridge. I'm trying to get a list of all devices that are physically downstream from each physical port that makes up the bridge.

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

                    Yes but you could also do it from Diag > Command Prompt. And it looks like add the v flags for more verbose output doesn't help here.

                    Screenshot from 2022-08-18 17-59-51.png

                    L 1 Reply Last reply Reply Quote 1
                    • L
                      Lonnie @stephenw10
                      last edited by

                      @stephenw10 Do you know a command that can list all IPs and MAC addresses that are downstream from a particular physical port?

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        akuma1x @Lonnie
                        last edited by

                        @lonnie I know you've heard this already, but it's probably still the ARP table, since it's got all of those items you're looking for. And, you can even isolate, with a dropdown menu, the particular interface (physical port) you're looking for.

                        L 1 Reply Last reply Reply Quote 0
                        • L
                          Lonnie @akuma1x
                          last edited by Lonnie

                          @akuma1x Once you bridge ports together, the interface listed under Diagnostics > ARP Table does not indicate the physical port's interface any longer. Instead, the interface becomes the bridge name for multiple physical ports.

                          For example, by default, the 6100 will label the two right-most port's interfaces LAN3 and LAN4. But, since I've bridged those two ports together, naming the bridge SWITCHY, the ARP Table shows SWITCHY as the interface anytime a device is downstream from either LAN3 or LAN4. It provides me no way to distinguish which physical port, on the 6100, that a client is downstream from. The ARP Table has no entries for LAN3 or LAN4. Instead, it only shows SWITCHY as the interface, which is ambiguous from a physical perspective.

                          So my question is: How can I determine (working remotely) the physical port that's upstream from a device, when multiple ports are a member of a bridge?

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

                            There's no single command. The switch doesn't care about IP addresses it only knows about MAC addresses. You would need to combine that with the ARP table (arp -a) to see what IP those MACs are currently using.

                            1 Reply Last reply Reply Quote 0
                            • A
                              akuma1x @Lonnie
                              last edited by

                              @lonnie said in Listing Devices Downstream From a Port:

                              So my question is: How can I determine (working remotely) the physical port that's upstream from a device, when multiple ports are a member of a bridge?

                              I know I'm beating a dead horse, but this would be a good reason to NOT use a bridge setup in your network. Do you plan on doing this kind of exercise often? If so, a network switch attached to your physical ports, I'm pretty sure, will accomplish what you're looking to do.

                              johnpozJ L 2 Replies Last reply Reply Quote 1
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator @akuma1x
                                last edited by

                                @akuma1x I compare it to the whisky bourbon saying

                                All bourbons are whiskies, but not all whiskies are bourbon ;)

                                Just like all switches are bridges, but not all bridges are switches ;)

                                While they might similar they are not the same - if you want a switch, use a switch.. While you might be able to use a bridge for some functions of a switch - it is not a switch.. So don't try and use it as such.

                                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.8, 24.11

                                1 Reply Last reply Reply Quote 1
                                • L
                                  Lonnie @akuma1x
                                  last edited by

                                  @akuma1x I was trying to avoid powering another device. All I needed was one additional port to be in the same subnet. However, pfSense bridging (I've learned) isn't exactly transparent. So, I basically concluded what you're telling me in another thread.

                                  Yet, all of that is beside the point. When working remotely, it would be very nice to see what devices are downstream from a physical port. Bridging hides this. Yet bridging doesn't automatically allow communication between ports on the same subnet (like a real switch would). Having the ability to do what I'm asking would have been nice for remote diagnostics.

                                  Instead, what I had to do (working remotely), is remove the bridge entirely, just so I could see which devices were physically downstream from each port.

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

                                    Were you not able to see it from the learned MACs in the bridge?

                                    L 1 Reply Last reply Reply Quote 0
                                    • L
                                      Lonnie @stephenw10
                                      last edited by

                                      @stephenw10 No sir. I couldn't determine the physical port that devices were downstream from. The closest I came, was the ARP Table, but it only indicated the bridge-name as the interface (which is ambiguous physically). Only after removing the bridge, and configuring each port's own interface individually, was I able to determine the exact physical port the devices were connected to.

                                      In this circumstance, it was difficult to remotely obtain a physical topology of the network.

                                      Due to the inefficiencies mentioned in the documentation, and this issue I've had with topology discovery, I've decided to avoid internal bridging going forward.

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

                                        Did the ifconfig output just not show the interfaces then? What the bridge learns is which MAC addresses are connected to which bridge members. Hard to see how it could not show that.

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