NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

maindriver's avatar
maindriver
Apprentice
Jun 03, 2019
Solved

How do you search for a device by MAC address in console on a MX4300 switch?

Hi,

 

How do we query a Netgear switch through the console to find out which port a MAC address is on.

 

Example command from other manufacturers

 

Command for Allied Telesis switch

show swi fdb address=aa-bb-cc-dd-ee-ff

 

Command for Cisco switch

show mac address-table | i aa:bb:cc:dd:ee:ff

 

It's very handy to be able to remotely find exactly where a device is connected.

 

Thanks

  • Thanks for the reply.

     

    Is there a way of doing it without having to define a VLAN ?

     

    I'd like to be able to type..

     

    show mac-addr-table AA:BB:CC:ED:EE:FF

     

    Currently, it wants..

     

    show mac-addr-table AA:BB:CC:ED:EE:FF VLANID

     

     

    edit

     

    bingo

     

    show mac-addr-table | include AA:BB:CC:ED:EE:FF

4 Replies

    • maindriver's avatar
      maindriver
      Apprentice

      Thanks for the reply.

       

      Is there a way of doing it without having to define a VLAN ?

       

      I'd like to be able to type..

       

      show mac-addr-table AA:BB:CC:ED:EE:FF

       

      Currently, it wants..

       

      show mac-addr-table AA:BB:CC:ED:EE:FF VLANID

       

       

      edit

       

      bingo

       

      show mac-addr-table | include AA:BB:CC:ED:EE:FF

      • schumaku's avatar
        schumaku
        Guru

        Great, you managed it. Isn't the shortened "i" for the include enough (Cisco-like) on your switch?

         

        For the future readers - the Netgear CLI basic Output Filtering, the “Grep”-like control for modifying the displayed output to only show the user-desired content.

        • Filter displayed output to only include lines containing a specified string match.
        • Filter displayed output to exclude lines containing a specified string match.
        • Filter displayed output to only include lines including and following a specified string
          match.

         

        Example:

         

        (NETGEAR Switch) #show running-config | ?
        begin Begin with the line that matches
        exclude Exclude lines that matches
        include Include lines that matches
        section Display portion of lines


NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More