How can I match conditions when I show arp?
up vote
2
down vote
favorite
In my Cisco Router I check the arp:
Router>show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 - 0001.42D2.AE01 ARPA GigabitEthernet0/0/0
Internet 192.168.1.2 67 000C.CF4C.99E6 ARPA GigabitEthernet0/0/0
Internet 192.168.2.1 - 0001.42D2.AE02 ARPA GigabitEthernet0/0/1
Internet 192.168.2.2 109 0010.114E.A4EC ARPA GigabitEthernet0/0/1
I want to match conditions, but I tried bellow, all do not work:
Router>show arp | match 192.168.2.2
^
% Invalid input detected at '^' marker.
Router>show arp 192.168.2.2
^
% Invalid input detected at '^' marker.
I also tried the begin, or include:
Router#show arp | begin ?
% Unrecognized command
UPDATE
The show version
display this:
Cisco IOS XE Software, Version 03.16.05.S - Extended Support Release
Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version Version 15.5 (3)S5, RELEASE SOFTWARE (fc2)
this is a ISR 4321 Router.
cisco arp
migrated from serverfault.com Nov 15 at 12:08
This question came from our site for system and network administrators.
|
show 8 more comments
up vote
2
down vote
favorite
In my Cisco Router I check the arp:
Router>show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 - 0001.42D2.AE01 ARPA GigabitEthernet0/0/0
Internet 192.168.1.2 67 000C.CF4C.99E6 ARPA GigabitEthernet0/0/0
Internet 192.168.2.1 - 0001.42D2.AE02 ARPA GigabitEthernet0/0/1
Internet 192.168.2.2 109 0010.114E.A4EC ARPA GigabitEthernet0/0/1
I want to match conditions, but I tried bellow, all do not work:
Router>show arp | match 192.168.2.2
^
% Invalid input detected at '^' marker.
Router>show arp 192.168.2.2
^
% Invalid input detected at '^' marker.
I also tried the begin, or include:
Router#show arp | begin ?
% Unrecognized command
UPDATE
The show version
display this:
Cisco IOS XE Software, Version 03.16.05.S - Extended Support Release
Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version Version 15.5 (3)S5, RELEASE SOFTWARE (fc2)
this is a ISR 4321 Router.
cisco arp
migrated from serverfault.com Nov 15 at 12:08
This question came from our site for system and network administrators.
You need to be in config mode, thensh arp | in 192.168.2.2
– Cown
Nov 15 at 12:12
@Cown hi are you certain about that?gw(config)#sh arp ?
=>% Unrecognized command
, tested on IOS 15.2(4)M3 just now.
– jonathanjo
Nov 15 at 12:19
Sorry not config mode, enable mode.
– Cown
Nov 15 at 12:20
2
command | match somehing
is used in Juniper. In Cisco it'scommand | i something
– Andrey Prokhorov
Nov 15 at 12:23
1
Ok i found the error i think, you need to useshow ip arp | in 192.168.2.2
– Cown
Nov 15 at 12:40
|
show 8 more comments
up vote
2
down vote
favorite
up vote
2
down vote
favorite
In my Cisco Router I check the arp:
Router>show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 - 0001.42D2.AE01 ARPA GigabitEthernet0/0/0
Internet 192.168.1.2 67 000C.CF4C.99E6 ARPA GigabitEthernet0/0/0
Internet 192.168.2.1 - 0001.42D2.AE02 ARPA GigabitEthernet0/0/1
Internet 192.168.2.2 109 0010.114E.A4EC ARPA GigabitEthernet0/0/1
I want to match conditions, but I tried bellow, all do not work:
Router>show arp | match 192.168.2.2
^
% Invalid input detected at '^' marker.
Router>show arp 192.168.2.2
^
% Invalid input detected at '^' marker.
I also tried the begin, or include:
Router#show arp | begin ?
% Unrecognized command
UPDATE
The show version
display this:
Cisco IOS XE Software, Version 03.16.05.S - Extended Support Release
Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version Version 15.5 (3)S5, RELEASE SOFTWARE (fc2)
this is a ISR 4321 Router.
cisco arp
In my Cisco Router I check the arp:
Router>show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 - 0001.42D2.AE01 ARPA GigabitEthernet0/0/0
Internet 192.168.1.2 67 000C.CF4C.99E6 ARPA GigabitEthernet0/0/0
Internet 192.168.2.1 - 0001.42D2.AE02 ARPA GigabitEthernet0/0/1
Internet 192.168.2.2 109 0010.114E.A4EC ARPA GigabitEthernet0/0/1
I want to match conditions, but I tried bellow, all do not work:
Router>show arp | match 192.168.2.2
^
% Invalid input detected at '^' marker.
Router>show arp 192.168.2.2
^
% Invalid input detected at '^' marker.
I also tried the begin, or include:
Router#show arp | begin ?
% Unrecognized command
UPDATE
The show version
display this:
Cisco IOS XE Software, Version 03.16.05.S - Extended Support Release
Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version Version 15.5 (3)S5, RELEASE SOFTWARE (fc2)
this is a ISR 4321 Router.
cisco arp
cisco arp
edited Nov 15 at 12:39
Cown
5,2153930
5,2153930
asked Nov 15 at 12:00
three-blocks
1926
1926
migrated from serverfault.com Nov 15 at 12:08
This question came from our site for system and network administrators.
migrated from serverfault.com Nov 15 at 12:08
This question came from our site for system and network administrators.
You need to be in config mode, thensh arp | in 192.168.2.2
– Cown
Nov 15 at 12:12
@Cown hi are you certain about that?gw(config)#sh arp ?
=>% Unrecognized command
, tested on IOS 15.2(4)M3 just now.
– jonathanjo
Nov 15 at 12:19
Sorry not config mode, enable mode.
– Cown
Nov 15 at 12:20
2
command | match somehing
is used in Juniper. In Cisco it'scommand | i something
– Andrey Prokhorov
Nov 15 at 12:23
1
Ok i found the error i think, you need to useshow ip arp | in 192.168.2.2
– Cown
Nov 15 at 12:40
|
show 8 more comments
You need to be in config mode, thensh arp | in 192.168.2.2
– Cown
Nov 15 at 12:12
@Cown hi are you certain about that?gw(config)#sh arp ?
=>% Unrecognized command
, tested on IOS 15.2(4)M3 just now.
– jonathanjo
Nov 15 at 12:19
Sorry not config mode, enable mode.
– Cown
Nov 15 at 12:20
2
command | match somehing
is used in Juniper. In Cisco it'scommand | i something
– Andrey Prokhorov
Nov 15 at 12:23
1
Ok i found the error i think, you need to useshow ip arp | in 192.168.2.2
– Cown
Nov 15 at 12:40
You need to be in config mode, then
sh arp | in 192.168.2.2
– Cown
Nov 15 at 12:12
You need to be in config mode, then
sh arp | in 192.168.2.2
– Cown
Nov 15 at 12:12
@Cown hi are you certain about that?
gw(config)#sh arp ?
=> % Unrecognized command
, tested on IOS 15.2(4)M3 just now.– jonathanjo
Nov 15 at 12:19
@Cown hi are you certain about that?
gw(config)#sh arp ?
=> % Unrecognized command
, tested on IOS 15.2(4)M3 just now.– jonathanjo
Nov 15 at 12:19
Sorry not config mode, enable mode.
– Cown
Nov 15 at 12:20
Sorry not config mode, enable mode.
– Cown
Nov 15 at 12:20
2
2
command | match somehing
is used in Juniper. In Cisco it's command | i something
– Andrey Prokhorov
Nov 15 at 12:23
command | match somehing
is used in Juniper. In Cisco it's command | i something
– Andrey Prokhorov
Nov 15 at 12:23
1
1
Ok i found the error i think, you need to use
show ip arp | in 192.168.2.2
– Cown
Nov 15 at 12:40
Ok i found the error i think, you need to use
show ip arp | in 192.168.2.2
– Cown
Nov 15 at 12:40
|
show 8 more comments
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
For most varieties of Cisco IOS. (For the ISR 4321 it appears the answer is different, see later.)
To start with matching, use | begin
:
gw>show arp | begin 192.168.0.32
Internet 192.168.0.32 0 90fb.a630.1234 ARPA Vlan1
Internet 192.168.0.36 0 0004.2012.4321 ARPA Vlan1
...
There are a few varieties:
gw>show arp | ?
begin Begin with the line that matches
count Count number of lines which match regexp
exclude Exclude lines that match
format Format the output using the specified spec file
include Include lines that match
section Filter a section of output
But there's something funny going on if you can't do the basic:
gw>show arp 192.168.0.32
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.0.32 0 90fb.a630.1234 ARPA Vlan1
What model and version are you using?
ISR-4321
Per Cown's comment:
Ok i found the error i think, you need to use show ip arp | in 192.168.2.2
Packet tracer
As suggested by Cown in comments, if you're using Packet Tracer, not a real router, you have to be in enable mode.
Yeah same output i get here, just a bit more options, since it's a 6500 series.
– Cown
Nov 15 at 12:21
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
For most varieties of Cisco IOS. (For the ISR 4321 it appears the answer is different, see later.)
To start with matching, use | begin
:
gw>show arp | begin 192.168.0.32
Internet 192.168.0.32 0 90fb.a630.1234 ARPA Vlan1
Internet 192.168.0.36 0 0004.2012.4321 ARPA Vlan1
...
There are a few varieties:
gw>show arp | ?
begin Begin with the line that matches
count Count number of lines which match regexp
exclude Exclude lines that match
format Format the output using the specified spec file
include Include lines that match
section Filter a section of output
But there's something funny going on if you can't do the basic:
gw>show arp 192.168.0.32
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.0.32 0 90fb.a630.1234 ARPA Vlan1
What model and version are you using?
ISR-4321
Per Cown's comment:
Ok i found the error i think, you need to use show ip arp | in 192.168.2.2
Packet tracer
As suggested by Cown in comments, if you're using Packet Tracer, not a real router, you have to be in enable mode.
Yeah same output i get here, just a bit more options, since it's a 6500 series.
– Cown
Nov 15 at 12:21
add a comment |
up vote
4
down vote
accepted
For most varieties of Cisco IOS. (For the ISR 4321 it appears the answer is different, see later.)
To start with matching, use | begin
:
gw>show arp | begin 192.168.0.32
Internet 192.168.0.32 0 90fb.a630.1234 ARPA Vlan1
Internet 192.168.0.36 0 0004.2012.4321 ARPA Vlan1
...
There are a few varieties:
gw>show arp | ?
begin Begin with the line that matches
count Count number of lines which match regexp
exclude Exclude lines that match
format Format the output using the specified spec file
include Include lines that match
section Filter a section of output
But there's something funny going on if you can't do the basic:
gw>show arp 192.168.0.32
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.0.32 0 90fb.a630.1234 ARPA Vlan1
What model and version are you using?
ISR-4321
Per Cown's comment:
Ok i found the error i think, you need to use show ip arp | in 192.168.2.2
Packet tracer
As suggested by Cown in comments, if you're using Packet Tracer, not a real router, you have to be in enable mode.
Yeah same output i get here, just a bit more options, since it's a 6500 series.
– Cown
Nov 15 at 12:21
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
For most varieties of Cisco IOS. (For the ISR 4321 it appears the answer is different, see later.)
To start with matching, use | begin
:
gw>show arp | begin 192.168.0.32
Internet 192.168.0.32 0 90fb.a630.1234 ARPA Vlan1
Internet 192.168.0.36 0 0004.2012.4321 ARPA Vlan1
...
There are a few varieties:
gw>show arp | ?
begin Begin with the line that matches
count Count number of lines which match regexp
exclude Exclude lines that match
format Format the output using the specified spec file
include Include lines that match
section Filter a section of output
But there's something funny going on if you can't do the basic:
gw>show arp 192.168.0.32
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.0.32 0 90fb.a630.1234 ARPA Vlan1
What model and version are you using?
ISR-4321
Per Cown's comment:
Ok i found the error i think, you need to use show ip arp | in 192.168.2.2
Packet tracer
As suggested by Cown in comments, if you're using Packet Tracer, not a real router, you have to be in enable mode.
For most varieties of Cisco IOS. (For the ISR 4321 it appears the answer is different, see later.)
To start with matching, use | begin
:
gw>show arp | begin 192.168.0.32
Internet 192.168.0.32 0 90fb.a630.1234 ARPA Vlan1
Internet 192.168.0.36 0 0004.2012.4321 ARPA Vlan1
...
There are a few varieties:
gw>show arp | ?
begin Begin with the line that matches
count Count number of lines which match regexp
exclude Exclude lines that match
format Format the output using the specified spec file
include Include lines that match
section Filter a section of output
But there's something funny going on if you can't do the basic:
gw>show arp 192.168.0.32
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.0.32 0 90fb.a630.1234 ARPA Vlan1
What model and version are you using?
ISR-4321
Per Cown's comment:
Ok i found the error i think, you need to use show ip arp | in 192.168.2.2
Packet tracer
As suggested by Cown in comments, if you're using Packet Tracer, not a real router, you have to be in enable mode.
edited Nov 15 at 12:44
answered Nov 15 at 12:16
jonathanjo
8,4181629
8,4181629
Yeah same output i get here, just a bit more options, since it's a 6500 series.
– Cown
Nov 15 at 12:21
add a comment |
Yeah same output i get here, just a bit more options, since it's a 6500 series.
– Cown
Nov 15 at 12:21
Yeah same output i get here, just a bit more options, since it's a 6500 series.
– Cown
Nov 15 at 12:21
Yeah same output i get here, just a bit more options, since it's a 6500 series.
– Cown
Nov 15 at 12:21
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f54735%2fhow-can-i-match-conditions-when-i-show-arp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You need to be in config mode, then
sh arp | in 192.168.2.2
– Cown
Nov 15 at 12:12
@Cown hi are you certain about that?
gw(config)#sh arp ?
=>% Unrecognized command
, tested on IOS 15.2(4)M3 just now.– jonathanjo
Nov 15 at 12:19
Sorry not config mode, enable mode.
– Cown
Nov 15 at 12:20
2
command | match somehing
is used in Juniper. In Cisco it'scommand | i something
– Andrey Prokhorov
Nov 15 at 12:23
1
Ok i found the error i think, you need to use
show ip arp | in 192.168.2.2
– Cown
Nov 15 at 12:40