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

    How to identify a NIC

    Scheduled Pinned Locked Moved Hardware
    6 Posts 5 Posters 12.0k 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.
    • mclabornM
      mclaborn
      last edited by

      Is there a way in pfSense (GUI and/or command line) to blink the lights on a specific NIC so that it can be easily identified?  I'm setting up a new configuration and the trial-and-error process is cumbersome.  (And I haven't guessed correctly yet.)

      Mitch

      1 Reply Last reply Reply Quote 0
      • dotdashD
        dotdash
        last edited by

        I generally plug a cable in and check which interface now has link. Multi-port cards should progress in a logical direction.

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

          I think Intel NICs can do that via /dev/led.
          https://www.freebsd.org/cgi/man.cgi?query=em&apropos=0&sektion=0&manpath=FreeBSD+10.1-RELEASE&arch=default&format=html#FILES

          Steve

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            That's awesome.  Works great.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • mclabornM
              mclaborn
              last edited by

              That worked for 2 of my 6 NICs.

              Mitch

              1 Reply Last reply Reply Quote 0
              • R
                regexaurus
                last edited by regexaurus

                Necropost here, but I found another option that worked well for me. I thought it might be helpful for others arriving by web search. Similar to the above solution by dotdash, but it works in a shell and is not limited to Intel nics.

                Physically connect or disconnect the port in question, then at a shell prompt:

                dmesg
                

                or

                dmesg | tail
                

                At the end of the output, you should see something like:

                emn: link state changed to UP

                or

                emn: link state changed to DOWN

                Depending on whether you connected or disconnected the port.
                For what it's worth...

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