Rip redistribution problem
Sorry no diagram.
I've got 3 routers R1,R4 and R5.
R1 f0/0 is connected to R4 e0/0, subnet 140.1.14.0/24
R4 s1/0 is connected to R5 s1/0 via FR subnet 140.1.245.0/24
R4 s1/1 is connected to R5 s1/1 via ppp subnet 140.1.45.0/24
Rip is running between R1 and R4, and also on the ppp link between R4 and R5.
Ospf is running over the FR link.
Both R4 and R5 are redistributing rip into ospf.My problem is with the network 150.1.1.0 i.e. lo0 of R1 that is being advertised into RIP.
If i change the distance of the route on R5 so that its preferred via RIP, i get a routing loop.
Logs are below, anyone have any idea what i'm missing? I'm not interested in a solution, i want to understand whats happening.
R1
interface Loopback0
ip address 150.1.1.1 255.255.255.0
!
interface FastEthernet0/0
ip address 140.1.14.1 255.255.255.0
duplex auto
speed auto
!
router rip
version 2
network 140.1.0.0
network 150.1.0.0
no auto-summary
!
!
access-list 1 permit 150.1.1.0
!
route-map lo0 permit 10
match ip address 1
!
R4
interface Loopback0
ip address 150.1.4.4 255.255.255.0
ip ospf network point-to-point
!
interface Ethernet0/0
ip address 140.1.14.4 255.255.255.0
full-duplex
!
interface Serial1/0
ip address 140.1.245.4 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
serial restart-delay 0
frame-relay map ip 140.1.245.5 405 broadcast
no frame-relay inverse-arp
!
interface Serial1/1
ip address 140.1.45.4 255.255.255.0
encapsulation ppp
serial restart-delay 0
!
!
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
redistribute rip metric 100 subnets
network 140.1.245.4 0.0.0.0 area 0
!
router rip
version 2
passive-interface default
no passive-interface Ethernet0/0
no passive-interface Serial1/1
network 140.1.0.0
no auto-summary
R5
interface Loopback0
ip address 150.1.5.5 255.255.255.0
ip ospf network point-to-point
!
!
!
interface Serial1/0
ip address 140.1.245.5 255.255.255.0
encapsulation frame-relay
ip ospf priority 255
serial restart-delay 0
frame-relay map ip 140.1.245.4 504 broadcast
no frame-relay inverse-arp
!
interface Serial1/1
ip address 140.1.45.5 255.255.255.0
encapsulation ppp
serial restart-delay 0
!
!
router ospf 1
router-id 5.5.5.5
log-adjacency-changes
area 3 stub
redistribute rip metric 101 subnets
network 140.1.245.5 0.0.0.0 area 0
neighbor 140.1.245.4
!
router rip
version 2
passive-interface default
no passive-interface Serial1/1
network 140.1.0.0
no auto-summary
!
Rack1R1#sh ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
140.1.0.0/16 is variably subnetted, 4 subnets, 2 masks
R 140.1.245.0/24 [120/1] via 140.1.14.4, 00:00:06, FastEthernet0/0
C 140.1.14.0/24 is directly connected, FastEthernet0/0
R 140.1.45.0/24 [120/1] via 140.1.14.4, 00:00:06, FastEthernet0/0
R 140.1.45.5/32 [120/1] via 140.1.14.4, 00:00:06, FastEthernet0/0
150.1.0.0/24 is subnetted, 1 subnets
C 150.1.1.0 is directly connected, Loopback0
Rack1R1#
Rack1R4#sh ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
140.1.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 140.1.245.0/24 is directly connected, Serial1/0
C 140.1.14.0/24 is directly connected, Ethernet0/0
C 140.1.45.0/24 is directly connected, Serial1/1
C 140.1.45.5/32 is directly connected, Serial1/1
150.1.0.0/24 is subnetted, 2 subnets
C 150.1.4.0 is directly connected, Loopback0
R 150.1.1.0 [120/1] via 140.1.14.1, 00:00:09, Ethernet0/0
Rack1R4#
Rack1R5#sh ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
140.1.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 140.1.245.0/24 is directly connected, Serial1/0
O E2 140.1.14.0/24 [110/100] via 140.1.245.4, 00:06:12, Serial1/0
C 140.1.45.0/24 is directly connected, Serial1/1
C 140.1.45.4/32 is directly connected, Serial1/1
150.1.0.0/24 is subnetted, 2 subnets
C 150.1.5.0 is directly connected, Loopback0
O E2 150.1.1.0 [110/100] via 140.1.245.4, 00:06:12, Serial1/0
Rack1R4#sh ip rip database
140.1.0.0/16 auto-summary
140.1.14.0/24 directly connected, Ethernet0/0
140.1.45.0/24 directly connected, Serial1/1
140.1.45.5/32 directly connected, Serial1/1
140.1.245.0/24 directly connected, Serial1/0
150.1.0.0/16 auto-summary
150.1.1.0/24
[1] via 140.1.14.1, 00:00:21, Ethernet0/0
Rack1R5#sh ip rip database
140.1.0.0/16 auto-summary
140.1.45.0/24 directly connected, Serial1/1
140.1.45.4/32 directly connected, Serial1/1
140.1.245.0/24 directly connected, Serial1/0
Rack1R5#
Rack1R5#debug ip rip
RIP protocol debugging is on
Rack1R5#
*Mar 1 03:47:18.683: RIP: sending v2 update to 224.0.0.9 via Serial1/1 (140.1.45.5)
*Mar 1 03:47:18.687: RIP: build update entries
*Mar 1 03:47:18.687: 140.1.245.0/24 via 0.0.0.0, metric 1, tag 0
Rack1R5#
*Mar 1 03:47:29.027: RIP: received v2 update from 140.1.45.4 on Serial1/1
*Mar 1 03:47:29.031: 140.1.14.0/24 via 0.0.0.0 in 1 hops
*Mar 1 03:47:29.035: 140.1.245.0/24 via 0.0.0.0 in 1 hops
*Mar 1 03:47:29.035: 150.1.1.0/24 via 0.0.0.0 in 2 hops
Rack1R5#
Rack1R5(config)#access-list 1 permit 150.1.1.0
Rack1R5(config-router)#distance 109 140.1.45.4 0.0.0.0 1
THe route 150.1.1.0/24 is now flapping due to a loop.
Rack1R5#sh ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
140.1.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 140.1.245.0/24 is directly connected, Serial1/0
O E2 140.1.14.0/24 [110/100] via 140.1.245.4, 00:10:24, Serial1/0
C 140.1.45.0/24 is directly connected, Serial1/1
C 140.1.45.4/32 is directly connected, Serial1/1
150.1.0.0/24 is subnetted, 2 subnets
C 150.1.5.0 is directly connected, Loopback0
O E2 150.1.1.0 [110/100] via 140.1.245.4, 00:10:24, Serial1/0
Rack1R5#
*Mar 1 03:50:08.587: %SYS-5-CONFIG_I: Configured from console by console
Rack1R5#sh ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
140.1.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 140.1.245.0/24 is directly connected, Serial1/0
R 140.1.14.0/24 [109/1] via 140.1.45.4, 00:00:02, Serial1/1
C 140.1.45.0/24 is directly connected, Serial1/1
C 140.1.45.4/32 is directly connected, Serial1/1
150.1.0.0/24 is subnetted, 1 subnets
C 150.1.5.0 is directly connected, Loopback0
Rack1R5#
Rack1R4#sh ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
140.1.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 140.1.245.0/24 is directly connected, Serial1/0
C 140.1.14.0/24 is directly connected, Ethernet0/0
C 140.1.45.0/24 is directly connected, Serial1/1
C 140.1.45.5/32 is directly connected, Serial1/1
150.1.0.0/24 is subnetted, 2 subnets
C 150.1.4.0 is directly connected, Loopback0
O E2 150.1.1.0 [110/101] via 140.1.245.5, 00:00:06, Serial1/0
Rack1R4#sh ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
140.1.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 140.1.245.0/24 is directly connected, Serial1/0
C 140.1.14.0/24 is directly connected, Ethernet0/0
C 140.1.45.0/24 is directly connected, Serial1/1
C 140.1.45.5/32 is directly connected, Serial1/1
150.1.0.0/24 is subnetted, 1 subnets
C 150.1.4.0 is directly connected, Loopback0
Rack1R4#debug ip rip
RIP protocol debugging is on
Rack1R4#
*Mar 1 03:55:10.935: RIP: received v2 update from 140.1.14.1 on Ethernet0/0
*Mar 1 03:55:10.939: 150.1.1.0/24 via 0.0.0.0 in 1 hops
Rack1R4#
*Mar 1 03:55:12.035: RIP: received v2 update from 140.1.45.5 on Serial1/1
*Mar 1 03:55:12.039: 140.1.245.0/24 via 0.0.0.0 in 1 hops
*Mar 1 03:55:12.043: 150.1.1.0/24 via 0.0.0.0 in 16 hops (inaccessible)
*Mar 1 03:55:12.947: RIP: sending v2 flash update to 224.0.0.9 via Ethernet0/0 (140.1.14.4)
*Mar 1 03:55:12.947: RIP: build flash update entries - suppressing null update
*Mar 1 03:55:12.947: RIP: sending v2 flash update to 224.0.0.9 via Serial1/1 (140.1.45.4)
*Mar 1 03:55:12.947: RIP: build flash update entries
*Mar 1 03:55:12.947: 150.1.1.0/24 via 0.0.0.0, metric 2, tag 0
*Mar 1 03:55:12.963: RIP:rip_lost_route for 150.1.1.0 255.255.255.0
Rack1R4#
*Mar 1 03:55:14.963: RIP: sending v2 flash update to 224.0.0.9 via Ethernet0/0 (140.1.14.4)
*Mar 1 03:55:14.967: RIP: build flash update entries
*Mar 1 03:55:14.967: 150.1.1.0/24 via 0.0.0.0, metric 16, tag 0
*Mar 1 03:55:14.971: RIP: sending v2 flash update to 224.0.0.9 via Serial1/1 (140.1.45.4)
*Mar 1 03:55:14.971: RIP: build flash update entries
*Mar 1 03:55:14.971: 150.1.1.0/24 via 0.0.0.0, metric 16, tag 0
Rack1R4#
*Mar 1 03:55:16.963: RIP: received v2 update from 140.1.45.5 on Serial1/1
*Mar 1 03:55:16.967: 150.1.1.0/24 via 0.0.0.0 in 16 hops (inaccessible)
Rack1R5#debug ip rip
RIP protocol debugging is on
Rack1R5#
*Mar 1 03:52:15.155: RIP: sending v2 flash update to 224.0.0.9 via Serial1/1 (140.1.45.5)
*Mar 1 03:52:15.159: RIP: build flash update entries - suppressing null update
*Mar 1 03:52:15.179: RIP: received v2 update from 140.1.45.4 on Serial1/1
*Mar 1 03:52:15.183: 150.1.1.0/24 via 0.0.0.0 in 16 hops (inaccessible)
Rack1R5#
*Mar 1 03:52:17.183: RIP: sending v2 flash update to 224.0.0.9 via Serial1/1 (140.1.45.5)
*Mar 1 03:52:17.187: RIP: build flash update entries
*Mar 1 03:52:17.187: 150.1.1.0/24 via 0.0.0.0, metric 16, tag 0
Rack1R5#
*Mar 1 03:52:32.411: RIP: received v2 update from 140.1.45.4 on Serial1/1
*Mar 1 03:52:32.411: 140.1.14.0/24 via 0.0.0.0 in 1 hops
*Mar 1 03:52:32.411: 140.1.245.0/24 via 0.0.0.0 in 1 hops
*Mar 1 03:52:32.411: 150.1.1.0/24 via 0.0.0.0 in 16 hops (inaccessible)
Rack1R5#
*Mar 1 03:52:40.391: RIP: received v2 update from 140.1.45.4 on Serial1/1
*Mar 1 03:52:40.395: 150.1.1.0/24 via 0.0.0.0 in 2 hops
*Mar 1 03:52:41.127: RIP: sending v2 update to 224.0.0.9 via Serial1/1 (140.1.45.5)
*Mar 1 03:52:41.127: RIP: build update entries
*Mar 1 03:52:41.127: 140.1.245.0/24 via 0.0.0.0, metric 1, tag 0
Rack1R5#
*Mar 1 03:52:42.399: RIP: sending v2 flash update to 224.0.0.9 via Serial1/1 (140.1.45.5)
*Mar 1 03:52:42.403: RIP: build flash update entries - suppressing null update
*Mar 1 03:52:42.415: RIP: received v2 update from 140.1.45.4 on Serial1/1
*Mar 1 03:52:42.419: 150.1.1.0/24 via 0.0.0.0 in 16 hops (inaccessible)