02-08-2022 11:42 AM
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?
02-08-2022 01:19 PM
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 ?
02-09-2022 08:22 AM
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
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