Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

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

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
Bronze

Re: how to create a route-map policy that will route a particula

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,

6 REPLIES
Bronze

Re: how to create a route-map policy that will route a particula

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,

New Member

Re: how to create a route-map policy that will route a particula

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?

Bronze

Re: how to create a route-map policy that will route a particula

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

New Member

Re: how to create a route-map policy that will route a particula

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?

Bronze

Re: how to create a route-map policy that will route a particula

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,

New Member

Re: how to create a route-map policy that will route a particula

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!

333
Views
0
Helpful
6
Replies
CreatePlease to create content