cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
843
Views
0
Helpful
2
Replies

how to use distribute-list with redistribution?

daudparvez
Level 1
Level 1

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:

Redistribution Email.png

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 ??????

1 Accepted Solution

Accepted Solutions

Peter Paluch
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

Peter Paluch
Cisco Employee
Cisco Employee

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

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#

Review Cisco Networking products for a $25 gift card