[c-nsp] IOS-XR: 6PE - next-hop manipulation in route-policy.
John Neiberger
jneiberger at gmail.com
Mon Feb 3 10:53:29 EST 2014
I don't have time at the moment to look up the details, but I seem to
recall that beginning in XR 4.2, there are limitations (or maybe flat
out restrictions) on setting the next-hop on an ingress route policy.
I do know that we had to change several of our route policies to get
around this when doing upgrades to 4.2 or beyond.
John
On Mon, Feb 3, 2014 at 8:17 AM, Jonathan Hart <johathan.hart at gmail.com> wrote:
> Hi list,
>
>
>
> I am trying to manipulate the next-hop for community-tagged routes, inbound
> on a 6PE router. Routes are received from route-reflectors, and should be
> treated inbound. In this specific scenario I am trying to change a
> next-hop. The configuration is based on what we have in production on IOS
> today, where this works just fine.
>
>
>
> PE is ASR9000 running IOS-XR 4.3.2.
>
>
>
> My configuration;
>
> Non-essential configuration has been omitted.
>
>
>
> router static
>
> address-family ipv6 unicast
>
> 2001:db8::160/128 Null0
>
> ::ffff:192.168.0.1/128 Null0
>
>
>
> router bgp <asn>
>
> neighbor-group IPv6RR
>
> address-family ipv6 labeled-unicast
>
> route-policy rr-edge-in in
>
>
>
>
>
> route-policy rr-edge-in
>
> if community matches-any (1000:6) and destination in (::/0 ge 64) then
>
> set next-hop 2001:db8::160
>
> endif
>
> pass
>
> end-policy
>
>
>
> Also tried this..
>
>
> route-policy rr-edge-in
>
> if community matches-any (1000:6) and destination in (::/0 ge 64) then
>
> set next-hop ::ffff:192.168.0.1
>
> endif
>
> pass
>
> end-policy
>
>
>
> The defined policy is processing the routes. I tried swapping the
> "next-hop" statement for a simple "drop", and the prefix was dropped. In
> IOS, I use an IPv6 next-hop which works just fine. In IOS-XR, I tried with
> both a normal IPv6 unicast address, and with IPv4-mapped address - without
> success.
>
>
>
> I am sure there is a reasonable explanation for this, and I have a feeling
> it lies in the 6PE part of the next-hop magic. As it seems to be working
> just fine in IOS, I'm fairly confident it should be possible to do in XR as
> well.
>
>
>
> Any help is appreciated!
> _______________________________________________
> cisco-nsp mailing list cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
More information about the cisco-nsp
mailing list