10-21-2014 02:47 AM
Hi,
During testing, I try following policy:
route-policy PL-BGP-DOWN-VPN-TEST
if destination in (0.0.0.0/0) then
if protocol is static then
done
endif
endif
drop
end-policy
!
After applying that policy to VPNv4 BGP neighbor, I get following commit error:
!!% Policy [PL-BGP-DOWN-VPN-TEST] uses the 'protocol' attribute. There is no 'protocol' attribute at the bgp neighbor-out-dflt attach point.
Then, I tried another policy:
route-policy PL-BGP-DOWN-VPN-EXP
if tag is 41202 then
done
endif
drop
end-policy
But again, got commit error
Could not find entry in list: Policy [PL-BGP-DOWN-VPN-EXP] uses the 'tag' attribute. There is no 'tag' attribute at the bgp neighbor-out-dflt attach point.
As visible, neither is working (I get constatntly commit errors). What I wnat to implement is following:
a) I have couple of static routes inside my VRF
b) Those static routes are marked with some tag (e.g. tag=41202)
c) from my PE, I have couple of BGP sessions with address-family vpnv4 enabled
d) I would like to send those static routes from my VRF only to one vpnv4 BGP neighbor
How should I write policy to achieve that?
Solved! Go to Solution.
10-22-2014 05:42 AM
Hi,
Add different RT on those route with rt export map, and use this RT as a filter on vpn4 neighbor.
10-22-2014 05:42 AM
Hi,
Add different RT on those route with rt export map, and use this RT as a filter on vpn4 neighbor.
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