03-21-2007 09:13 AM - edited 03-05-2019 03:02 PM
Hi All ,
Is there any command in switch which shows all the ip address alloted to the computers attached with the switch or ip address alloted for computers under particular VLAN .
03-21-2007 09:22 AM
Hi Nilesh,
There is no such direct command to get the desired output.
But if you can note down the mac addresses which are learned on switch from the switch cam table "sh mac-address-table dynamic" you can go to your first hop router and issue a command "sh ip arp
HTH
Ankur
*Pls rate all helpfull post
03-21-2007 11:39 AM
Thanks for your kind help & quick reply.
03-21-2007 09:26 AM
Hi
if the switch is running as a L3 switch then you could use sh ip arp vlan #
sample output would look like;
Protocol Address Age (min) Hardware Addr Type Interface
Internet x.x.x.178 6 000c.29cd.819b ARPA Vlan1
Internet x.x.x.176 137 0000.48cf.d32c ARPA Vlan1
Internet x.x.x.180 8 0015.c547.7d55 ARPA Vlan1
Internet x.x.x.184 164 0014.22d9.4332 ARPA Vlan1
Internet x.x.x.160 8 0015.c51d.3342 ARPA Vlan1
Internet x.x.x.161 8 0015.c501.f7e5 ARPA Vlan1
Internet x.x.x.166 76 0018.8ba8.a5ba ARPA Vlan1
Internet x.x.x.167 1 0018.8ba3.d689 ARPA Vlan1
Internet x.x.x.164 64 00c0.9f0e.3339 ARPA Vlan1
Internet x.x.x.165 1 0008.02c7.fd2f ARPA Vlan1
Internet x.x.x.170 8 0011.434b.8571 ARPA Vlan1
Internet x.x.x.171 0 000c.29f7.9561 ARPA Vlan1
Internet x.x.x.168 20 0011.4322.2580 ARPA Vlan1
Internet x.x.x.174 1 0011.0a97.6721 ARPA Vlan1
Internet x.x.x.172 7 0015.c547.07c9 ARPA Vlan1
Internet x.x.x.173 3 000c.2985.f429 ARPA Vlan1
Internet x.x.x.147 3 000f.1fda.89c8 ARPA Vlan1
Internet x.x.x.144 150 0018.8bb6.4b22 ARPA Vlan1
Internet x.x.x.150 13 0019.b90b.81f7 ARPA Vlan1
Internet x.x.x.151 54 0020.ed9b.dccf ARPA Vlan1
Internet x.x.x.148 8 0011.43b5.f045 ARPA Vlan1
Internet x.x.x.149 7 0011.43b6.00da ARPA Vlan1
Internet x.x.x.154 8 0011.4322.eb4f ARPA Vlan1
Internet x.x.x.155 8 0011.4322.ec91 ARPA Vlan1
Internet x.x.x.152 0 Incomplete ARPA
However if the switch is running at L2 only you cannot view IP addresses of attached host; you can only view mac's of the hosts.
with #sh mac-address-table dynamic vlan #
Thanks
03-21-2007 11:40 AM
Thanks for your kind help & quick reply.
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: