Avatar of jskfan
jskfan
Flag for Cyprus asked on

Filtering with Route Map and prefix-list

I have EIGRP routes advertised from R1 to R2 as shown below:

R2#sh ip route eigrp 1      


      10.0.0.0/8 is variably subnetted, 13 subnets, 7 masks
D        10.10.10.10/32 
           [90/156160] via 192.168.12.1, 00:00:09, FastEthernet0/0
      20.0.0.0/32 is subnetted, 1 subnets
D        20.20.20.20 [90/156160] via 192.168.12.1, 00:00:09, FastEthernet0/0
      172.16.0.0/16 is variably subnetted, 5 subnets, 3 masks
D        172.16.0.0/24 [90/156160] via 192.168.12.1, 00:00:09, FastEthernet0/0
D        172.16.2.0/24 [90/156160] via 192.168.12.1, 00:00:09, FastEthernet0/0
D        172.16.3.0/24 [90/156160] via 192.168.12.1, 00:00:09, FastEthernet0/0
D        172.16.12.0/22 
           [90/156160] via 192.168.12.1, 00:00:09, FastEthernet0/0
D        172.16.22.0/26 
           [90/156160] via 192.168.12.1, 00:00:09, FastEthernet0/0
R2#

Open in new window


on R1 I have configured route map and prefix list to block (filter out)network 172.16.0.0 /16 le 26,  but it does not seem to work

route-map FILTER_OUT deny 10
 match ip address prefix-list SMALL_PREFIXES
ip prefix-list SMALL_PREFIXES seq 10 permit 172.16.0.0/16 le 26

route-map FILTER_OUT permit 20

Open in new window


Any Help ?

thank you
RoutersSwitches / HubsNetworking

Avatar of undefined
Last Comment
jskfan

8/22/2022 - Mon
SOLUTION
Hemil Aquino

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Mitul Prajapati

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jskfan

ASKER
route-map FILTER_OUT deny 10
 match ip address prefix-list SMALL_PREFIXES
ip prefix-list SMALL_PREFIXES seq 10 permit 172.16.0.0/16 le 26

route-map FILTER_OUT permit 20

Open in new window


it is route map that matches a prefix list
jskfan

ASKER
my configuration above should deny 172.16.0.0/16 le 26
but it is not
SOLUTION
Mitul Prajapati

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Predrag Jovic

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
jskfan

ASKER
router eigrp 1
 network 0.0.0.0
distribute-list route-map FILTER_OUT out

no auto-summary

I did not have the Distribute-List in my Configuration. Do I have to add it ?
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Predrag Jovic

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
jskfan

ASKER
Thank you very much Guys!