12-23-2011 11:22 PM - edited 03-04-2019 02:44 PM
hi all,
I have configured a lab in GNS3 having three routers R1, R2 and R3 as shown in the attachment. I have run two routing protocols in it : EIGRP and RIP. The scenario is as follows:
On R1, I have done following configurations:
!
router eigrp 1
redistribute rip metric 22 22 22 22 22
network 3.0.0.0
auto-summary
!
router rip
version 2
network 2.0.0.0
distribute-list prefix test out eigrp 1
!
where the prefix-list test is as follows:
ip prefix-list test:
count: 1, range entries: 0, sequences: 4 - 4, refcount: 4
seq 4 permit 192.168.1.0/24 (hit count: 0, refcount: 1)
DUE TO THE ABOVE CONFIGURATION, ONLY THE PREFIX 192.168.1.0/24 SHOULD BE REDISTRIBUTED INTO EIGRP, HOWEVER, THIS IS NOT THE CASE.
ALL THE THREE PREFIXES ARE REDISTRIBUTED INTO EIGRP WITH NO REGARD TO THE DISTRIBUTE-LIST CONFIGURED UNDER RIP PROCESS.
R4#sh ip route eigrp
D EX 2.0.0.0/8 [170/116394752] via 3.0.0.1, 00:20:13, Ethernet1/2
D EX 192.168.0.0/24 [170/116394752] via 3.0.0.1, 00:20:09, Ethernet1/2
D EX 192.168.1.0/24 [170/116394752] via 3.0.0.1, 00:20:09, Ethernet1/2
D EX 192.168.2.0/24 [170/116394752] via 3.0.0.1, 00:20:09, Ethernet1/2
CAN SOMEONE PLEASE EXPLAIN THIS ??????
Solved! Go to Solution.
12-23-2011 11:31 PM
Hi Daud,
If you refer to a routing protocol in a distribute-list command, that routing protocol must be the source routing protocol of the routes that have been redistributed and are subsequently to be advertised. In your case, it is the RIP, not EIGRP 1, that is the source of the routes you want to filter.
Correctly, the distribute-list command should read:
distribute-list prefix test out rip
Try this please and let us know!
Best regards,
Peter
12-23-2011 11:31 PM
Hi Daud,
If you refer to a routing protocol in a distribute-list command, that routing protocol must be the source routing protocol of the routes that have been redistributed and are subsequently to be advertised. In your case, it is the RIP, not EIGRP 1, that is the source of the routes you want to filter.
Correctly, the distribute-list command should read:
distribute-list prefix test out rip
Try this please and let us know!
Best regards,
Peter
12-24-2011 02:41 AM
Thanks Peter for your usual help and support.
I have changed the configurations as suggested by you, i.e , i shifted the the distribute-list command from the rip process to the eigrp 1 process , and it worked
The new configurations are as under:
router eigrp 1
redistribute rip metric 22 22 22 22 22
network 3.0.0.0
distribute-list prefix test out rip
auto-summary
!
router rip
version 2
network 2.0.0.0
!
The same prefix-list was used.
This time the prefix-list worked with the following result:
R4#sh ip route eigrp
D EX 192.168.1.0/24 [170/116394752] via 3.0.0.1, 00:11:31, Ethernet1/2
R4#
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide