Shortcut for this task?

Unanswered Question
Oct 3rd, 2008

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

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?



I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Giuseppe Larosa Fri, 10/03/2008 - 12:53

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


johnlloyd_13 Sat, 10/04/2008 - 23:59

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


This Discussion