filtering debug output

Jun 19, 2005 2 Replies

I am trying to show debug output only from 172.16.0.0/16 but it seems I miss something. The output debug shows packet from other hosts also.


R3#show access-list Standard IP access list 20 10 permit 172.16.2.0, wildcard bits 0.0.0.255 20 deny any (99 matches)R3#no debug all R3#no debug all All possible debugging has been turned off R3#debug ip packet 20 IP packet debugging is on for access list 20 R3# Jun 19 17:57:38.237: IP: tableid=0, s=10.1.0.3 (local), d=192.168.253.24 (Ethernet0/0), routed via RIB Jun 19 17:57:38.241: IP: tableid=0, s=192.168.253.24 (Ethernet0/0), d=10.1.0.3 (Ethernet0/0), routed via RIB Jun 19 17:57:38.241: IP: tableid=0, s=192.168.253.24 [...]



Thanks for your advice,



DT



Hi,

To use the access-list in the "debug IP packet 20", you only need the first line, i.e.

10 permit 172.16.2.0, wildcard bits 0.0.0.255

Also, if you have to debug the packets of 172.16.0.0/16, the statment should be:

10 permit 172.16.0.0, wildcard bits 0.0.255.255

Please try again.

Regards, Dovelet

Hi Dovelet, thanks for the reply. In fact, my original access-list had only one line that you suggest, but it didn't not work so I added the second line.

About the netmask, it's my typo. My network is 172.16.2.x.

I just tried again, and I still have the same problem.

R3#sh access-lists Standard IP access list 20 10 permit 172.16.2.0, wildcard bits 0.0.0.255 R3#debug ip packet 20 IP packet debugging is on for access list 20 R3# Jun 20 07:56:44.977: IP: tableid=0, s=10.1.0.3 (local), d=192.168.253.24 (Ethernet0/0), routed via RIB Jun 20 07:56:44.977: IP: tableid=0, s=192.168.253.24 (Ethernet0/0), d=10.1.0.3 (Ethernet0/0), routed via RIB Jun 20 07:56:44.981: IP: tableid=0, s=192.168.253.24 (Ethernet0/0), d=10.1.0.3 (Ethernet0/0), routed via RIB

Thanks,

DT

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required