11-06-2012 08:01 AM - edited 03-07-2019 09:53 AM
Hi Experts,
I want to know correct syntax of "sh ip arp" command.
there are two command below so plz tell me which is
correct ?
1. show ip arp 172.25.162.3
(i am using this one and works fine)
OR
2. show ip arp | include 172.25.162.3
( i did not use this and tell me how
to press "|" symbol, my keyboard do not
have such kind of symbol)
KS
Solved! Go to Solution.
11-06-2012 08:28 AM
I don't think it matters which one you use they both give the same output:
MyRtr01#sh ip arp | i 10.96.0.98
Internet 10.96.0.98 1 100b.a9cc.fc78 ARPA Vlan200
MyRtr01#sh ip arp 10.96.0.98
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.96.0.98 1 100b.a9cc.fc78 ARPA Vlan200
To get the | sign you shift click the back slash key directly above enter. Well atleast thats how I do it on my Dell keyboard.
Otherwise if you are using windows you could always find the same symbol in the character map software that comes with all windows versions
11-06-2012 08:52 AM
HI Kuldeep,
Mark is right, both command will give the same output:
sh ip arp | inc 172.25.162.3
for pipe you have to press shift and then backslash key(\)
see this pic:
Regards
11-06-2012 08:27 AM
The second one (pipe include {regular expresion}) is more or less similar to grep in UNIX and can be used with every show-command.
A simple example:
show ip arp | include 192.168.1.3[1-9]
showes 192.168.1.31 - .39
A very powerfull weapon :-)
Sent from Cisco Technical Support Android App
11-06-2012 08:28 AM
I don't think it matters which one you use they both give the same output:
MyRtr01#sh ip arp | i 10.96.0.98
Internet 10.96.0.98 1 100b.a9cc.fc78 ARPA Vlan200
MyRtr01#sh ip arp 10.96.0.98
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.96.0.98 1 100b.a9cc.fc78 ARPA Vlan200
To get the | sign you shift click the back slash key directly above enter. Well atleast thats how I do it on my Dell keyboard.
Otherwise if you are using windows you could always find the same symbol in the character map software that comes with all windows versions
11-06-2012 08:52 AM
HI Kuldeep,
Mark is right, both command will give the same output:
sh ip arp | inc 172.25.162.3
for pipe you have to press shift and then backslash key(\)
see this pic:
Regards
11-06-2012 08:56 AM
Thanks Mark and Sandeep......
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