cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
454
Views
0
Helpful
2
Replies

IP or MAC discovery on a switchport?

gzullich
Level 1
Level 1

Hi, I have telnet and CMS access to remote Catalyst 3750G-24TS-S. I would like to block ports selectivly and need to know the attached hosts IP or MAC address.

Is there a way to discover attached MACs or IP?

TIA

GZ

1 Accepted Solution

Accepted Solutions

shsong21
Level 1
Level 1

You must know your host IP.

Then you hit below command in your Cat S/W.

South-Korea#sh mac-address-table

Mac Address Table

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

Vlan Mac Address Type Ports

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

20 0003.250c.d7e3 DYNAMIC Gi0/1

20 0003.3bf7.0b9e DYNAMIC Gi0/1

20 0007.eb98.0309 DYNAMIC Gi0/1

20 000b.6a28.9f1e DYNAMIC Gi0/1

20 000b.6a5e.29f2 DYNAMIC Fa0/24

20 000b.be98.9f40 DYNAMIC Fa0/24

20 000b.be98.9f41 DYNAMIC Fa0/24

20 000b.befd.b63f DYNAMIC Gi0/1

20 000d.6191.25ac DYNAMIC Gi0/1

20 000e.2e01.7542 DYNAMIC Gi0/1

20 000e.2e37.969b DYNAMIC Gi0/1

20 0010.a4c7.efd3 DYNAMIC Gi0/1

20 0010.a722.da34 DYNAMIC Gi0/1

20 0040.2b26.e74f DYNAMIC Gi0/1

20 0040.f4c8.f0ae DYNAMIC Gi0/1

20 0050.22a0.77e1 DYNAMIC Fa0/1

20 0050.70f5.4842 DYNAMIC Gi0/1

20 0050.8bad.ec37 DYNAMIC Fa0/23

20 0050.8d4e.4d5a DYNAMIC Gi0/1

20 0090.0803.0e77 DYNAMIC Gi0/1

20 0090.08a1.ace9 DYNAMIC Gi0/1

20 00e0.4cc4.1a29 DYNAMIC Gi0/1

20 a000.0004.13dc DYNAMIC Gi0/1

Total Mac Addresses for this criterion: 23

South-Korea#sh arp

Protocol Address Age (min) Hardware Addr Type Interface

Internet 211.175.216.167 0 00a0.b002.d67c ARPA Vlan20

Internet 211.175.216.234 0 0003.3bf7.0b9e ARPA Vlan20

Internet 211.175.216.235 0 00e0.4cc6.4046 ARPA Vlan20

Internet 211.175.216.5 9 000b.bedc.7d80 ARPA Vlan20

Internet 211.175.216.1 0 000b.befd.b63f ARPA Vlan20

Internet 211.175.216.3 179 000b.befd.b5bf ARPA Vlan20

Internet 211.175.216.13 34 000b.beb0.d180 ARPA Vlan20

Internet 211.175.216.20 - 000b.bed1.c780 ARPA Vlan20

Internet 211.175.216.31 1 0011.2557.ccec ARPA Vlan20

Internet 211.175.216.105 0 0003.250c.d7e3 ARPA Vlan20

South-Korea#

View solution in original post

2 Replies 2

shsong21
Level 1
Level 1

You must know your host IP.

Then you hit below command in your Cat S/W.

South-Korea#sh mac-address-table

Mac Address Table

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

Vlan Mac Address Type Ports

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

20 0003.250c.d7e3 DYNAMIC Gi0/1

20 0003.3bf7.0b9e DYNAMIC Gi0/1

20 0007.eb98.0309 DYNAMIC Gi0/1

20 000b.6a28.9f1e DYNAMIC Gi0/1

20 000b.6a5e.29f2 DYNAMIC Fa0/24

20 000b.be98.9f40 DYNAMIC Fa0/24

20 000b.be98.9f41 DYNAMIC Fa0/24

20 000b.befd.b63f DYNAMIC Gi0/1

20 000d.6191.25ac DYNAMIC Gi0/1

20 000e.2e01.7542 DYNAMIC Gi0/1

20 000e.2e37.969b DYNAMIC Gi0/1

20 0010.a4c7.efd3 DYNAMIC Gi0/1

20 0010.a722.da34 DYNAMIC Gi0/1

20 0040.2b26.e74f DYNAMIC Gi0/1

20 0040.f4c8.f0ae DYNAMIC Gi0/1

20 0050.22a0.77e1 DYNAMIC Fa0/1

20 0050.70f5.4842 DYNAMIC Gi0/1

20 0050.8bad.ec37 DYNAMIC Fa0/23

20 0050.8d4e.4d5a DYNAMIC Gi0/1

20 0090.0803.0e77 DYNAMIC Gi0/1

20 0090.08a1.ace9 DYNAMIC Gi0/1

20 00e0.4cc4.1a29 DYNAMIC Gi0/1

20 a000.0004.13dc DYNAMIC Gi0/1

Total Mac Addresses for this criterion: 23

South-Korea#sh arp

Protocol Address Age (min) Hardware Addr Type Interface

Internet 211.175.216.167 0 00a0.b002.d67c ARPA Vlan20

Internet 211.175.216.234 0 0003.3bf7.0b9e ARPA Vlan20

Internet 211.175.216.235 0 00e0.4cc6.4046 ARPA Vlan20

Internet 211.175.216.5 9 000b.bedc.7d80 ARPA Vlan20

Internet 211.175.216.1 0 000b.befd.b63f ARPA Vlan20

Internet 211.175.216.3 179 000b.befd.b5bf ARPA Vlan20

Internet 211.175.216.13 34 000b.beb0.d180 ARPA Vlan20

Internet 211.175.216.20 - 000b.bed1.c780 ARPA Vlan20

Internet 211.175.216.31 1 0011.2557.ccec ARPA Vlan20

Internet 211.175.216.105 0 0003.250c.d7e3 ARPA Vlan20

South-Korea#

Thanks SSong, these commands worked the charm!

Review Cisco Networking for a $25 gift card