From: syv (syv@911networks.com)
Date: Sun Nov 10 2002 - 20:44:24 GMT-3
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
This archive was generated by hypermail 2.1.4 : Tue Dec 03 2002 - 07:22:56 GMT-3