I am trying to setup a policy route at a remote site that routes to a different router over BGP/MPLS. We need to move this network traffic for testing reasons. Instead of the 10.1.1.0 network going to 184.108.40.206 to get to 10.5.5.0 (another remote site), I need it to go to 220.127.116.11. Currently, the remote has a subinterface and a policy route that I have already created along with the HQ router..see below. (Ive changed IPs for security purposes)
encapsulation dot1q 10
ip address 10.1.1.1 255.255.255.0
ip flow ingress
ip flow egress
ip policy route-map TEMP-ROUTE
ip address 18.104.22.168 255.255.255.252
route-map TEMP permit 10
set ip next-hop recursive 10.2.2.1
router bgp 65001
network 10.1.1.0 mask 255.255.255.0
neighbor 22.214.171.124 remote-as 1 (Provider)
neighbor 126.96.36.199 allowas-in
B 10.2.2.0 255.255.255.0 [20/0] via 188.8.131.52, 00:00:01
B 10.5.5.0 255.255.255.0 [20/0] via 184.108.40.206, 00:00:01
ip address 220.127.116.11 255.255.255.252
ip address 10.2.2.1
I know 10.2.2.1 is not a next hop so I used the recursive option but it still uses the 18.104.22.168 BGP route to get to 10.5.5.0. We are tracing from vlan 10 inside a switch with the IP of 10.1.1.254. Is there a different way to do this? If not...what am I missing? Thanks.
Target IP address: 10.5.5.1
Source address: 10.1.1.254
Numeric display [n]:
Timeout in seconds :
Probe count :
Minimum Time to Live :
Maximum Time to Live :
Port Number :
Loose, Strict, Record, Timestamp, Verbose[none]:
Type escape sequence to abort.
Tracing the route to 10.5.5.1
1 10.5.5.1 0 msec 1 msec 2 msec
2 22.214.171.124 7 msec 4 msec 10 msec
The policy map that's applied is a different name than the route-map that you have created. Is that a typo?
*** Please rate all useful posts ***
It was a good catch by John about the mismatching names. But I believe that there is a more fundamental problem. The route map is setting the next hop to 126.96.36.199. But when you look for 2.2.2 in the routing table it turns out that it results in the next hop really being 188.8.131.52, which is not any different from the normal route.
B 10.2.2.0 255.255.255.0 [20/0] via 184.108.40.206,
Hey John and Richard,
Thanks for comments and yes...I have two typos in my config.
1. The name is wrong on my route-map
2. My route should be --> B 10.2.2.0 255.255.255.0 [20/0] via 220.127.116.11, 00:00:01
Should'nt the config work like shown above or is there another way to do this? I feel like I am overthinking this at this point.
So how does the remote site get to 18.104.22.168? From what you give us in the original post the remote router has one inside interface and one outside interface. How will it get to 22.214.171.124 that is different from its normal route?