How to quicky test a summary and/or even/odd access lists.

From: Michael Snyder (msnyder@wk.net)
Date: Sat Dec 06 2003 - 15:04:42 GMT-3


I'm guessing most people already know this. I should have known it.

I just figured it out after years of using this equipment. I'm thinking
of how many times I've done redistribution with access lists wondering
if I used the correct access list.

Duh! All I had to do is `show ip route list x` against a full routing
table.

No mystery at all.

Below is where I was checking a summary address; then below that, an
even list.

------------------------------------------------------------------------
-----------

R5(config)#access-list 30 permit 172.16.1.0 ?
  A.B.C.D Wildcard bits
  log Log matches against this entry
  <cr>

R5(config)#access-list 30 permit 172.16.1.0 0.0.0.127
R5(config)#exit
R5#show
%SYS-5-CONFIG_I: Configured from console by console
R5#show ip route list 30
C 172.16.1.32/28 is directly connected, Loopback3
C 172.16.1.16/28 is directly connected, Loopback2
O 172.16.1.0/25 is a summary, 2d13h, Null0
C 172.16.1.0/28 is directly connected, Loopback1
C 172.16.1.64/28 is directly connected, Loopback4
R5#

R5(config)#access-list 55 p 150.50.1.0 0.0.254.0
R5(config)#exit
R5#c
%SYS-5-CONFIG_I: Configured from console by console
R5#show ip route list 55
C 150.50.201.0/24 is directly connected, Ethernet0
O E1 150.50.125.0/26 [110/1064] via 150.50.100.4, 1d12h, Serial0
R5#c
Enter configuration commands, one per line. End with CNTL/Z.
R5(config)#access
R5(config)#access-list 56 p 150.50.0.0 0.0.254.0
R5(config)#exit
R5#show ip route list 55
%SYS-5-CONFIG_I: Configured from console by console
R5#show ip route list 56
     150.50.0.0/16 is variably subnetted, 15 subnets, 4 masks
O IA 150.50.200.0/24 [110/138] via 150.50.100.2, 1d12h, Serial0
O E1 150.50.50.0/24 [110/1064] via 150.50.100.4, 1d12h, Serial0
O IA 150.50.20.0/24 [110/128] via 150.50.100.2, 1d12h, Serial0
C 150.50.100.0/24 is directly connected, Serial0
R5#c
Enter configuration commands, one per line. End with CNTL/Z.
R5(config)#access-list 57 p 150.50.0.0 0.0.254.255
R5(config)#exit
R5#c
%SYS-5-CONFIG_I: Configured from console by console
R5#show ip route list 57
     150.50.0.0/16 is variably subnetted, 15 subnets, 4 masks
O IA 150.50.200.0/24 [110/138] via 150.50.100.2, 1d12h, Serial0
O 150.50.210.4/30 [110/74] via 150.50.201.6, 1d12h, Ethernet0
O E1 150.50.50.0/24 [110/1064] via 150.50.100.4, 1d12h, Serial0
O 150.50.4.4/32 [110/65] via 150.50.100.4, 1d12h, Serial0
O E1 150.50.8.8/32 [110/1010] via 150.50.201.7, 1d12h, Ethernet0
O 150.50.2.2/32 [110/65] via 150.50.100.2, 1d12h, Serial0
O 150.50.6.6/32 [110/11] via 150.50.201.6, 1d12h, Ethernet0
O IA 150.50.20.0/24 [110/128] via 150.50.100.2, 1d12h, Serial0
C 150.50.100.0/24 is directly connected, Serial0
R5#



This archive was generated by hypermail 2.1.4 : Sat Jan 03 2004 - 08:25:36 GMT-3