cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
631
Views
0
Helpful
2
Replies

IOS XR RPL set next-hop based on source and destination address

JRU
Level 1
Level 1

Hi,

 

I need to loadbalance the traffic on static routes between two next hops, based on a source ip address/subnet on a vrf.

Im thinking about:

route-policy next-hop
if source in (10.0.0.0/8) and destination in (20.20.20.0/24) then
set next-hop 1.1.1.1
else
set next-hop 2.2.2.2
endif
end-policy

 

and then redistribute static with this route map.

Im wondering if i need to have a static route configured in router static vrf XXX?

Is this policy going to work?

2 Replies 2

Hello,

 

the routing policy looks good, I am not sure I understand the redistribute part. Can you explain a bit more what you want to configure ?

On our edge router i will have point to point connection with static route on a vrf. On this VRF i want to route the traffic to next hop based on source address. Im wondering about route policy attach point. Should this look like this:

router bgp 12345

 vrf vrf-a

 addres family ipv4 unicst

  redistribute static route-policy next-hop

 

should i also have an entry on :

router static
 vrf vrf-a

 20.20.20.0/24 1.1.1.1

Review Cisco Networking for a $25 gift card