cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3757
Views
0
Helpful
5
Replies

Get Mac address from interface from switchport

Good day Experts, i am trying to get the mac address that is connected to the interfaces of a Catalyst 4500 L3 Switch.

Connected to this switch (actualy we have 2) are only servers, because nobody ever noted witch server is connected to what interface, i want to do this now.

normaly when i give the command sh mac address-table interface fa0/1, the output should be like: (this is in a 2960 switch)

          Mac Address Table

-------------------------------------------

Vlan    Mac Address       Type        Ports

----    -----------       --------    -----

  36    0008.54aa.56d9    DYNAMIC     Fa0/1

Total Mac Addresses for this criterion: 1


but when i use the same command in the "Server switch" (4500) the output is this:

L3_Server_1#sh mac address-table interface gi5/2

Multicast Entries

vlan    mac address     type    ports

-------+---------------+-------+--------------------------------------------

  22    ffff.ffff.ffff   system Gi2/1,Gi2/3,Fa4/4,Fa4/13,Fa4/14,Fa4/15,Fa4/16

                                Fa4/17,Fa4/23,Fa4/24,Fa4/25,Fa4/26,Fa4/28

                                Fa4/29,Fa4/30,Fa4/35,Fa4/37,Fa4/38,Fa4/39

                                Fa4/41,Fa4/42,Fa4/43,Fa4/44,Fa4/45,Gi5/1

                                Gi5/2,Gi5/3,Gi5/4,Gi5/5,Gi5/6,Gi5/7,Gi5/8

                                Gi5/9,Gi5/10,Gi5/11,Gi5/12,Gi5/13,Gi5/14

                                Gi5/15,Gi5/16,Gi5/17,Gi5/18,Gi5/19,Gi5/20

                                Gi5/21,Gi5/22,Gi5/23,Gi5/24,Gi5/25,Gi5/26

                                Gi5/27,Gi5/28,Gi5/29,Gi5/30,Gi5/31,Gi5/32

                                Gi5/33,Gi5/34,Gi5/35,Gi5/36,Gi5/37,Gi5/38

                                Gi5/39,Gi5/40,Gi5/41,Gi5/42,Gi5/43,Gi5/44

                                Gi5/45,Switch,Po1

244    ffff.ffff.ffff   system Gi2/1,Fa4/2,Fa4/3,Fa4/4,Fa4/5,Fa4/6,Fa4/7

                                Fa4/8,Fa4/10,Fa4/11,Fa4/13,Fa4/14,Fa4/15

                                Fa4/16,Fa4/17,Fa4/21,Fa4/22,Fa4/23,Fa4/24

                                Fa4/25,Fa4/26,Fa4/28,Fa4/29,Fa4/30,Fa4/35

                                Fa4/37,Fa4/38,Fa4/39,Fa4/41,Fa4/42,Fa4/43

                                Fa4/44,Fa4/45,Gi5/1,Gi5/2,Gi5/3,Gi5/4,Gi5/5

                                Gi5/6,Gi5/7,Gi5/8,Gi5/9,Gi5/10,Gi5/11,Gi5/12

                                Gi5/13,Gi5/14,Gi5/15,Gi5/16,Gi5/17,Gi5/18

                                Gi5/19,Gi5/20,Gi5/21,Gi5/22,Gi5/23,Gi5/24

                                Gi5/25,Gi5/26,Gi5/27,Gi5/28,Gi5/29,Gi5/30

                                Gi5/31,Gi5/32,Gi5/33,Gi5/34,Gi5/35,Gi5/36

                                Gi5/37,Gi5/38,Gi5/39,Gi5/40,Gi5/41,Gi5/42

                                Gi5/43,Gi5/44,Gi5/45,Gi5/46,Gi5/47,Gi5/48

                                Switch,Po1

L3_Server_1#

and with this i can not to so much. i just need the mac address of the NIC that is connected to the server switch.

Does someone have some ideas ??

the interfaces are set like this:

L3_Server_1#sh run int gi5/2

Building configuration...

Current configuration : 114 bytes

!

interface GigabitEthernet5/2

switchport access vlan 22

switchport mode access

switchport voice vlan 244

end

Thanks a lot!

5 Replies 5

Hello Michael,
Try with this command:

Show mac-add int gi5/2

Best regards.

Sent from Cisco Technical Support iPad App

i don't have this option in the CLI, probably i have a more old IOS version.

Some one have other ideas ?

Thanks a lot!

Which is your IOS version?


Sent from Cisco Technical Support Android App

in the server switch 1 we have cat4500-entservicesk9-mz.150-2.SG.bin


the second server switch is actualy a Catalyst 4000 L3

in the server switch 2 we have cat4000-i5k91s-mz.122-25.EWA14.bin

Hello Michael,
this is the command for both IOS version, 12.2(25)EWA14 and 15.0(2)SG:

show mac-address-table interface

To display the MAC address table information for a specific interface, use the show mac-address-table interface command.

show mac-address-table interface type slot/port

Usage GuidelinesFor the MAC address table entries that are used by the routed ports, the routed port name is displayed in the ?vlan? column not the internal VLAN number.

Examples

This example shows how to display MAC address table information for a specific interface:

Switch# show mac-address-table interface fastethernet6/16

Unicast Entriesvlan mac address type protocols port
------+---------------+--------+---------------------+-------------------
2 0000.0000.0101 dynamic other FastEthernet6/162
0000.0000.0102 dynamic other FastEthernet6/162
0000.0000.0103 dynamic other FastEthernet6/162
0000.0000.0104 dynamic other FastEthernet6/162
0000.0000.0105 dynamic other FastEthernet6/162
0000.0000.0106 dynamic other FastEthernet6/16

Multicast Entriesvlan mac address type ports
---+---------------+-------+-------------------------------------------
2. ffff.ffff.ffff system Fa6/16Switch#

You have this information in the following docs (chapter 2, on both documents):

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/25ewa/command/reference/OL_6851.pdf

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/15.02SG/command/reference/OL_23829.pdf

Best Regards.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card