Examples: Applying Routing Policies
Configure the router to export to IS-IS the routes that match the
dmzandlocal-customersrouting policies:[edit]protocols {isis {export [dmz local-customers];}}For three BGP peer groups, apply various export and import filters:
[edit]protocols {bgp {group 1 {type external;peer-as 47;export local-customers;import [martian-filter long-prefix-filter as47-filter];neighbor 192.168.1.4;neighbor 192.168.1.5;}group 2 {type external;peer-as 42;export local-customers;import [martian-filter long-prefix-filter as42-filter];neighbor 192.168.1.4;neighbor 192.168.1.5;}group 3 {type internal;export local-customers;neighbor 10.1.1.1;}}}Apply the
long-prefix-filterprefix only to routes learned from a particular peer within a group:[edit]protocols {bgp {group 4 {type external;peer-as 47;export local-customers;import [martian-filter as47-filter];neighbor 192.168.1.4;neighbor 192.168.1.5;neighbor 192.168.1.6 {import [martian-filter as47-filter long-prefix-filter];}}}}