cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
279
Views
0
Helpful
3
Replies

Shortcut for this task?

John Blakley
VIP Alumni
VIP Alumni

I have a 3750 switch that has 4 subnets connected all to VLAN 1. My task is to create a VLAN for the servers, and all of our servers are on one subnet.

I can do:

sh arp | inc xxx.xxx.xxx

to get the ip addresses with mac, but then I'd have to do a:

sh mac addr | in xxxx

for all of the ip addresses that I have. Is there a quicker way of getting the port assignment and ip address that was seen on that port?

Thanks,

John

HTH, John *** Please rate all useful posts ***
3 Replies 3

milan.kulik
Level 10
Level 10

Hi,

it's possible to use

trace mac ip ...

command on 3750s for this purpose.

See http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.1_14_ea1/command/reference/cli3.html#wp1917847

for details.

BR,

Milan

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello John,

my only suggestion is that you can use:

sh mac addr addr xxxx

for the second step

but you need to access both ARP and CAM tables to locate the devices.

Hope to help

Giuseppe

johnlloyd_13
Level 9
Level 9

i just recently did this task on our network.

to get the ip addresses on the router:

show ip arp

to get the mac address and interface on the switch,

show mac-address-table dynamic

then try to compare these 2 tables to know where the assigned ip address and mac address of the device is located on each switch interfaces

Review Cisco Networking products for a $25 gift card