From: syv (syv@911networks.com)
Date: Mon Nov 11 2002 - 15:27:32 GMT-3
On Monday, November 11, 2002, Jay Greenberg wrote:
-----Original Message-----
JG> I have re-created your scenario in a lab, and I do not see the same
JG> results as you. In your first example, I do not understand why your
JG> routing table only has Connected routes inserted. With the same
JG> distribute-lists as you, I was able to receive routes. The unusual
JG> thing about your scenario is that the problem has nothing to do with
JG> redistribution. With distibute-lists applied to the protocol process,
JG> you are not receiving *any* routes, even from neighbors!
Since you said that it was OK. I just re-tried it and now I
get different results. All the RIP routes come up with the
distribute list and only some of the OSPF.
But it still works properly with route-maps. The only change
between yesterday and today is that had to unplug the router
to add some equipment. Could be a bug in IOS?
I use 12.1(16).
c1720#r
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 16 subnets
R 172.16.160.0 [120/1] via 172.16.36.6, 00:00:01, FastEthernet0
R 172.16.155.0 [120/1] via 172.16.32.2, 00:00:01, Serial2
R 172.16.150.0 [120/1] via 172.16.32.2, 00:00:01, Serial2
R 172.16.145.0 [120/1] via 172.16.36.6, 00:00:01, FastEthernet0
R 172.16.140.0 [120/1] via 172.16.32.2, 00:00:01, Serial2
R 172.16.135.0 [120/1] via 172.16.36.6, 00:00:01, FastEthernet0
R 172.16.130.0 [120/1] via 172.16.32.2, 00:00:01, Serial2
R 172.16.225.0 [120/1] via 172.16.36.6, 00:00:02, FastEthernet0
R 172.16.200.0 [120/1] via 172.16.36.6, 00:00:02, FastEthernet0
C 172.16.36.0 is directly connected, FastEthernet0
C 172.16.37.0 is directly connected, Serial1
C 172.16.32.0 is directly connected, Serial2
C 172.16.34.0 is directly connected, Serial0
O 172.16.23.0 [110/1786] via 172.16.34.4, 00:00:03, Serial0
O 172.16.5.0 [110/1786] via 172.16.34.4, 00:00:03, Serial0
O 172.16.1.0 [110/1786] via 172.16.34.4, 00:00:03, Serial0
c1720#sh ver
Cisco Internetwork Operating System Software
IOS (tm) C1700 Software (C1700-BK2NO3R2SY-M), Version 12.1(16), RELEASE SOFTWARE (fc1)
JG> Maybe you have an IOS bug, or there is part of your configuration that I
JG> am not aware of.
JG> I hope someone else can verify this.
JG> On Sun, 2002-11-10 at 18:44, syv wrote:
>> Hi,
>>
>> I have problem with the distribute-lists, then don't work
>> for me because I do not understand them.
>>
>> The same access-list works properly with route-maps. Why?
>>
>> [From Solie's p 777 but with only 4 routers]
>>
>> ***DOES NOT WORK***
>>
>> Cruncher#sb router
>> router ospf 10
>> router-id 0.0.0.3
>> log-adjacency-changes
>> redistribute rip metric 100 subnets
>> network 172.16.34.0 0.0.0.255 area 25
>> network 172.16.37.0 0.0.0.255 area 25
>> distribute-list 1 in Serial0
>> distribute-list 1 in Serial1
>> !
>> router rip
>> redistribute ospf 10 metric 9
>> passive-interface Serial0
>> passive-interface Serial1
>> network 172.16.0.0
>> distribute-list 2 in FastEthernet0
>> distribute-list 2 in Serial2
>> !
>> access-list 1 permit 172.16.0.0 0.0.127.255
>> access-list 2 permit 172.16.128.0 0.0.127.255
>>
>>
>> Cruncher#r
>> Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
>> D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
>> N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
>> E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
>> i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
>> * - candidate default, U - per-user static route, o - ODR
>> P - periodic downloaded static route
>>
>> Gateway of last resort is not set
>>
>> 172.16.0.0/24 is subnetted, 4 subnets
>> C 172.16.36.0 is directly connected, FastEthernet0
>> C 172.16.37.0 is directly connected, Serial1
>> C 172.16.32.0 is directly connected, Serial2
>> C 172.16.34.0 is directly connected, Serial0
>>
>>
>> **** WORKS ****
>>
>> Cruncher#sb router
>> router ospf 10
>> router-id 0.0.0.3
>> log-adjacency-changes
>> redistribute rip metric 1111 subnets route-map rm-rip-to-ospf
>> network 172.16.34.0 0.0.0.255 area 25
>> network 172.16.37.0 0.0.0.255 area 25
>> !
>> router rip
>> redistribute ospf 10 metric 9 route-map rm-ospf-to-rip
>> passive-interface Serial0
>> passive-interface Serial1
>> network 172.16.0.0
>> !
>> ip classless
>> no ip http server
>> !
>> access-list 1 permit 172.16.0.0 0.0.127.255
>> access-list 2 permit 172.16.128.0 0.0.127.255
>> route-map rm-ospf-to-rip permit 10
>> match ip address 1
>> !
>> route-map rm-ospf-to-rip permit 9999
>> !
>> route-map rm-rip-to-ospf permit 10
>> match ip address 2
>> !
>> route-map rm-rip-to-ospf permit 9999
>> !
>>
>>
>> Cruncher#
>> Nov 10 12:56:04.913 PST: %SYS-5-CONFIG_I: Configured from console by console
>> c1720#r
>> Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
>> D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
>> N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
>> E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
>> i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
>> * - candidate default, U - per-user static route, o - ODR
>> P - periodic downloaded static route
>>
>> Gateway of last resort is not set
>>
>> 172.16.0.0/24 is subnetted, 20 subnets
>> R 172.16.160.0 [120/1] via 172.16.36.6, 00:00:02, FastEthernet0
>> R 172.16.155.0 [120/1] via 172.16.32.2, 00:00:02, Serial2
>> R 172.16.150.0 [120/1] via 172.16.32.2, 00:00:02, Serial2
>> R 172.16.145.0 [120/1] via 172.16.36.6, 00:00:02, FastEthernet0
>> R 172.16.140.0 [120/1] via 172.16.32.2, 00:00:02, Serial2
>> R 172.16.135.0 [120/1] via 172.16.36.6, 00:00:02, FastEthernet0
>> R 172.16.130.0 [120/1] via 172.16.32.2, 00:00:02, Serial2
>> R 172.16.225.0 [120/1] via 172.16.36.6, 00:00:03, FastEthernet0
>> R 172.16.200.0 [120/1] via 172.16.36.6, 00:00:03, FastEthernet0
>> C 172.16.36.0 is directly connected, FastEthernet0
>> C 172.16.37.0 is directly connected, Serial1
>> C 172.16.32.0 is directly connected, Serial2
>> C 172.16.34.0 is directly connected, Serial0
>> O 172.16.23.0 [110/1786] via 172.16.34.4, 00:00:04, Serial0
>> O 172.16.8.0 [110/1563] via 172.16.37.7, 00:00:04, Serial1
>> O 172.16.9.0 [110/1563] via 172.16.37.7, 00:00:04, Serial1
>> O 172.16.10.0 [110/1563] via 172.16.37.7, 00:00:04, Serial1
>> O 172.16.5.0 [110/1786] via 172.16.34.4, 00:00:04, Serial0
>> O 172.16.1.0 [110/1786] via 172.16.34.4, 00:00:04, Serial0
>> O 172.16.100.0 [110/1563] via 172.16.37.7, 00:00:04, Serial1
>>
>> --
>> Thanks
>> syv@911networks.com
-- Thanks syv@911networks.com
This archive was generated by hypermail 2.1.4 : Tue Dec 03 2002 - 07:22:57 GMT-3