10-03-2008 11:50 AM - edited 03-06-2019 01:44 AM
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
10-03-2008 12:50 PM
Hi,
it's possible to use
trace mac ip ...
command on 3750s for this purpose.
for details.
BR,
Milan
10-03-2008 12:53 PM
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
10-04-2008 11:59 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide