Date created: Sunday, May 31, 2020 11:19:27 AM. Last modified: Sunday, May 31, 2020 11:20:01 AM
Route Reflector Policy Example
Example RR policy for export to RR clients:
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_ROUTE-DROP from family inet
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_ROUTE-DROP from protocol static
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_ROUTE-DROP from tag 666
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_ROUTE-DROP then community set ROUTE-DROP
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_ROUTE-DROP then accept
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_UP-PUBLIC-SUPERNET from family inet
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_UP-PUBLIC-SUPERNET from protocol static
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_UP-PUBLIC-SUPERNET from tag 12345
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_UP-PUBLIC-SUPERNET then origin igp
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_UP-PUBLIC-SUPERNET then community set UP-PUBLIC-SUPERNET
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_UP-PUBLIC-SUPERNET then accept
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_CUSTOMER-PA-PREFIX from family inet
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_CUSTOMER-PA-PREFIX from protocol static
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_CUSTOMER-PA-PREFIX then origin igp
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_CUSTOMER-PA-PREFIX then community set CUSTOMER-PA-PREFIX
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_CUSTOMER-PA-PREFIX then accept
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_DEFAULT-ROUTE-V4 from family inet
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_DEFAULT-ROUTE-V4 from protocol aggregate
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_DEFAULT-ROUTE-V4 from route-filter 0.0.0.0/0 exact
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_DEFAULT-ROUTE-V4 then local-preference 200
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_DEFAULT-ROUTE-V4 then community set DEFAULT-ROUTE
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_DEFAULT-ROUTE-V4 then accept
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET6_DEFAULT-ROUTE-V6 from family inet6
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET6_DEFAULT-ROUTE-V6 from protocol aggregate
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET6_DEFAULT-ROUTE-V6 from rib inet6.0
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET6_DEFAULT-ROUTE-V6 from route-filter ::/0 exact
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET6_DEFAULT-ROUTE-V6 then local-preference 200
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET6_DEFAULT-ROUTE-V6 then community set DEFAULT-ROUTE
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET6_DEFAULT-ROUTE-V6 then accept
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_BGP from family inet
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_BGP from protocol bgp
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_BGP from community CUSTOMER-PI-PREFIX
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_BGP from community CUSTOMER-PA-PREFIX
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INET_BGP then accept
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INETVPN_PERMIT from family inet-vpn
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term INETVPN_PERMIT then accept
set policy-options policy-statement RR-CLIENT-FILTERED-EXPORT term implicit-deny then reject
Previous page: Prefix Length Filtering
Next page: RTBH IPv6