ā07-13-2010 02:42 AM - edited ā03-06-2019 12:00 PM
Hi
I have a router cisco 7604 VXR with two outside connections, each one associated to a set of addresses. I have defined a default gateway for one of the set of addresses and a source routing to define the gateway for the other set but it doesn't work. The configuration is:
interface FastEthernet0/1.5
encapsulation dot1Q 5
ip address 147.13.30.161 255.255.255.224
ip flow monitor flow-monitor-smart-1 output
ip flow ingress
ip flow egress
ip policy route-map CCA_GATEWAY
ip ospf message-digest-key 1 md5 7 1A4D169404421B1F027A7A
access-list 101 permit ip 147.13.30.160 0.0.0.31 any
route-map CCA_GATEWAY permit 10
match ip address 101
set ip default next-hop 172.31.50.2 (address of the next router. I arrive to it)
When I do a show route-map CCA_GATEWAY I see that "the number of policy routing matches" increase but the router is sending the packets to the wrong gateway.
route-map CCA_GATEWAY, permit, sequence 10
Match clauses:
ip address (access-lists): 101
Set clauses:
ip default next-hop 172.31.50.2
Policy routing matches: 2336130 packets, 2068948582 bytes
What does it happen?
IOS version 15.1
Thanks
Albert
Solved! Go to Solution.
ā07-13-2010 05:03 AM
Albert
I suspect that the issue is in the way that you are doing the set in the route map. You are setting the default netxt hop:
set ip default next-hop 172.31.50.2
but based on what you have described I believe that it would be better to set the next hop directly:
set ip next-hop 172.31.50.2
can you give this a try and let us know if it improves the situation?
HTH
Rick
ā07-13-2010 05:03 AM
Albert
I suspect that the issue is in the way that you are doing the set in the route map. You are setting the default netxt hop:
set ip default next-hop 172.31.50.2
but based on what you have described I believe that it would be better to set the next hop directly:
set ip next-hop 172.31.50.2
can you give this a try and let us know if it improves the situation?
HTH
Rick
ā07-14-2010 02:58 AM
Thanks Rick, Now it is working.
ā07-14-2010 04:53 AM
Albert
I am glad that my suggestion did help you to resolve your problem. Thank you for posting back to the forum indicating that the problem was solved (and thank you for the rating). It makes the forum more useful when people can read about a problem and can tell from the marking of the post that they will read suggestions which lead to the solution of the problem.
I encourage you to continue your participation in the forum.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide