cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
211
Views
0
Helpful
3
Replies
Highlighted
Beginner

Route map question

Hello, can someone please confirm if this will work as expected ?
I have a host 10.23.150.15. I want to modify the next hop for traffic ONLY from this host to ONLY 192.168.8.0, 192.168.9.0, 192.168.10.0 and 192.168.13.0.
All other traffic from this host will follow the normal default gateway configured on their NIC.
Thank you kindly.

Extended IP access list codec
10 permit ip host 10.23.150.15 192.168.8.0 0.0.0.255
20 permit ip host 10.23.150.15 192.168.9.0 0.0.0.255
30 permit ip host 10.23.150.15 192.168.10.0 0.0.0.255
40 permit ip host 10.23.150.15 192.168.11.0 0.0.0.255
50 permit ip host 10.23.150.15 192.168.13.0 0.0.0.255

route-map codec
match ip address codec
set default next-hop 10.21.250.45

Then on the router:
int gi0/0.30
ip policy route-map codec

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Beginner

Re: Route map question

Yes this will work

View solution in original post

Highlighted
Hall of Fame Guru

Re: Route map question

There are a couple of things about your environment that we do not know and which could change our answer. We do not know what platform and version of code this is, and so can not be sure that Policy Based Routing is supported. We do not know whether interface g0/0.30 is the interface where the host is connected.

 

Other than that your suggested config looks correct, except that your ACL includes network 192.168.11.0 and that network was not mentioned in your verbal description of the requirements. Other than that you seem to be correct for PBR.

 

HTH

 

Rick

HTH

Rick

View solution in original post

3 REPLIES 3
Highlighted
Beginner

Re: Route map question

Yes this will work

View solution in original post

Highlighted
Hall of Fame Guru

Re: Route map question

There are a couple of things about your environment that we do not know and which could change our answer. We do not know what platform and version of code this is, and so can not be sure that Policy Based Routing is supported. We do not know whether interface g0/0.30 is the interface where the host is connected.

 

Other than that your suggested config looks correct, except that your ACL includes network 192.168.11.0 and that network was not mentioned in your verbal description of the requirements. Other than that you seem to be correct for PBR.

 

HTH

 

Rick

HTH

Rick

View solution in original post

Highlighted
Participant

Re: Route map question

I would also consider if asymmetric routing is an issue if destination network has multiple ingress/egress points with dynamic routing.

Content for Community-Ad