- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How do you search for a device by MAC address in console on a MX4300 switch?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
All Replies
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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'.