NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
maindriver
Jun 03, 2019Apprentice
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
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)
- maindriverApprentice
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
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
Related Content
NETGEAR Academy

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