I am a novice on this network device. I would like to search for the entire MAC-ADDRESS on a switch only with the four last characters of the MAC-ADDRESS-TABLE example: 00:6f - On Cisco, I do " show mac address-table | in 006f" in layer 2 switch.
Also, if I have the an ip address, how can I find the MAC ADDRESS on a switch?
Thank you for any help.
--Alex
Show MAC-ADDRESS-TABLE comands
- hombrezuelo
- Member
- Posts: 27
- Joined: 12 Feb 2016 19:52
- Location: /mnt/home/nirvana
Re: Show MAC-ADDRESS-TABLE comands
Hi Alex,
About your question
"Also, if I have the an ip address, how can I find the MAC ADDRESS on a switch?" you can use the following commands to get the mac address
Linux box:
on a console type:
nmblookup -A ip address you looking for
This is a output of that command:
nmblookup -A 172.16.40.20
Looking up status of 172.16.40.20
PCJOHN123 <00> - B <ACTIVE>
WORKGROUP <00> - <GROUP> B <ACTIVE>
PCJOHN123 <20> - B <ACTIVE>
MAC Address = 55-55-55-55-55-55 ------------> this is the mac addreess
Windows box:
nbtstat -A 172.16.40.20
C:\Windows\system32>nbtstat -A 172.16.40.20
Node IpAddress: [172.16.40.20] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
PCJOHN123 <00> UNIQUE Registered
WORKGROUP <00> GROUP Registered
WORKGROUP <1C> GROUP Registered
PCJOHN123 <20> UNIQUE Registered
WORKGROUP <1B> UNIQUE Registered
MAC Address = 55-55-55-55-55-55 ------------> this is the mac addreess
On alcatel switch you should to type the following command:
show mac-address-table 55:55:55:55:55:55
Legend: Mac Address: * = address not valid
Domain Vlan/SrvcId Mac Address Type Protocol Operation Interface
--------+--------------+---------------------+----------------+------------+--------------+------------------------
VLAN 1000 55:55:55:55:55:55 learned 806 bridging 1/15
Total number of Valid MAC addresses above = 1
Even if you do not have the mac address you are able to use the command: show mac-address-table + port
show mac-address-table 1/15
Kind regards.
About your question
"Also, if I have the an ip address, how can I find the MAC ADDRESS on a switch?" you can use the following commands to get the mac address
Linux box:
on a console type:
nmblookup -A ip address you looking for
This is a output of that command:
nmblookup -A 172.16.40.20
Looking up status of 172.16.40.20
PCJOHN123 <00> - B <ACTIVE>
WORKGROUP <00> - <GROUP> B <ACTIVE>
PCJOHN123 <20> - B <ACTIVE>
MAC Address = 55-55-55-55-55-55 ------------> this is the mac addreess
Windows box:
nbtstat -A 172.16.40.20
C:\Windows\system32>nbtstat -A 172.16.40.20
Node IpAddress: [172.16.40.20] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
PCJOHN123 <00> UNIQUE Registered
WORKGROUP <00> GROUP Registered
WORKGROUP <1C> GROUP Registered
PCJOHN123 <20> UNIQUE Registered
WORKGROUP <1B> UNIQUE Registered
MAC Address = 55-55-55-55-55-55 ------------> this is the mac addreess
On alcatel switch you should to type the following command:
show mac-address-table 55:55:55:55:55:55
Legend: Mac Address: * = address not valid
Domain Vlan/SrvcId Mac Address Type Protocol Operation Interface
--------+--------------+---------------------+----------------+------------+--------------+------------------------
VLAN 1000 55:55:55:55:55:55 learned 806 bridging 1/15
Total number of Valid MAC addresses above = 1
Even if you do not have the mac address you are able to use the command: show mac-address-table + port
show mac-address-table 1/15
Kind regards.
Re: Show MAC-ADDRESS-TABLE comands
Thank you for your responses. I am an Alcatel-Lucent OmniSwitch 6450 or 6900. How can I emulate the CISCO command as stated on my previous question.
Thanks
--Alex Adao
Thanks
--Alex Adao
Re: Show MAC-ADDRESS-TABLE comands
with AOS R7 and R8 switches (6860, 6900) this is easy (because linux):
show mac-learning | grep 00:aa
but with AOS R6 you find here a hint
viewtopic.php?f=394&t=22098&p=78651&hil ... ern#p78651
regards
Silvio
show mac-learning | grep 00:aa
but with AOS R6 you find here a hint
viewtopic.php?f=394&t=22098&p=78651&hil ... ern#p78651
regards
Silvio