cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
705
Views
0
Helpful
6
Replies

how to create a route-map policy that will route a particular subnet

the_crooked_toe
Level 1
Level 1

I am having trouble routing one particular subnet. I have no experience in policy-based routing so I'm asking the gurus.

I have 5 cities:

A = 10.110.0.0

B = 10.120.0.0

C = 10.130.0.0

D = 10.140.0.0

E = 10.150.0.0

How do i create some sort of policy-based route that says:

10.A.2.0, 10.B.2.0, 10.C.2.0, 10.D.2.0and 10.E.2.0 to send to one particular router?

At the same time, leave all other routing in place.

Thanks!

Or something else.

How do you stop a particular router from advertising a particular route via EIGRP?

If i could make one router no advertise 10.120.2.0, 10.130.2.0, 10.140.2.0, and 10.150.2.0, from a particular interface, I think it would accomplish this problem also.

1 Accepted Solution

Accepted Solutions

I would permit the desired subnets and use a deny at the end of the statement

ip access-list standard PERMIT-SUBNETS-OUT

remark allowed SUBNETS

permit x.x.x.0 0.0.0.255

permit y.y.y.0 0.0.0.255

deny any

router eigrp 10

network z.z.z.0 0.0.0.3

passive-interface default

distribute-list PERMIT-SUBNETS-OUT out int fa0/0.2

no auto-summary

regards,

View solution in original post

6 Replies 6

Tshi M
Level 5
Level 5

you could use acl

ip access-list stand 99

permit ip 10.A.2.0 0.0.0.255 any

permit ip 10.B.2.0 0.0.0.255 any

...

...

...

route-map permit_subnets permit 10

match ip address 99

set ip next-hop x.x.x.x

For the EIGRP you could use redistribute ACL.

Regards,

ok i'm thinking out of the box again.

Forget the first question all together.

How would I be able to stop the router from advertising 10.A.2.0, 10.B.2.0, 10.C.2.0, 10.D.2.0, and 10.E.2.0 from being advertised via EIGRP through one particular interface. While allowing all other routes be advertised through that interface?

use distribute-list on your eigrp process. you create an ACL that permit the desired subnets and denied the others. you then use distribute-list acl out int x

regards

access-list 99 deny 10.120.2.0

access-list 99 deny 10.130.2.0

access-list 99 deny 10.140.2.0

access-list 99 deny 10.150.2.0

access-list 99 permit any

router eigrp 101

distribute-list 99 out Fa0/0.2

would this work?

Is the acl 99 permit any necessary?

I would permit the desired subnets and use a deny at the end of the statement

ip access-list standard PERMIT-SUBNETS-OUT

remark allowed SUBNETS

permit x.x.x.0 0.0.0.255

permit y.y.y.0 0.0.0.255

deny any

router eigrp 10

network z.z.z.0 0.0.0.3

passive-interface default

distribute-list PERMIT-SUBNETS-OUT out int fa0/0.2

no auto-summary

regards,

thanks. this worked. I went the other way by denying the networks, then permitting the rest. Granted, I know with your config there is a lot more control of what is routed, but mine doesn't need all that maintenance.

Thanks again!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco