× NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Orbi WiFi 7 RBE973
Reply

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

maindriver
Star

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

Model: GSM4328PA|M4300-28G-PoE+ - 24x1G PoE+ Stackable Managed Switch with 2x10GBASE-T and 2xSFP+ (550W PSU)
Message 1 of 5

Accepted Solutions
maindriver
Star

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

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

View solution in original post

Message 3 of 5

All Replies
schumaku
Guru

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

In privilleged EXEC mode, syntax is almost like Cisco:

 

show mac-addr-table [macaddr vlan-id | all | count | interface unit/slot/port | vlan vlan-id]

 

Reference: M4300 Series and M4300-96X Fully Managed Switches CLI Command Reference Manual Release 12.0.7, p.204 (and the wonders of CRTL-F)

 

 

 

 

Message 2 of 5
maindriver
Star

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

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

Message 3 of 5
schumaku
Guru

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

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


Message 4 of 5
maindriver
Star

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

Indeed it is, but when you copy and paste the command it, it expands it to say 'include'.  

Message 5 of 5
Top Contributors
Discussion stats
  • 4 replies
  • 6007 views
  • 1 kudo
  • 2 in conversation
Announcements