Creating and Applying the Route Filter Policy

Description

The policy described in this section is applied to Router A and does the following:

  • Denies routes in network 172.16.1.0/24
  • Sets the values of community and MED for routes in network 10.1.0.0/16
  • Sets the values of community and MED for routes that contains AS path 64499

The following is a route filter policy named custFilter:

entry et1 {
if match all {
nlri 172.16.1.0/24;
} then {
deny;
}
}
entry et2 {
if match any {
nlri 10.1.0.0/16;
as-path 64499;
} then {
med set 100;
community set "2342:6788";
permit;
}
}
  • Apply the custFilter inbound policy.

    * (pacman) DUTA.53 # configure bgp neighbor 10.10.10.2 route-policy in custfilter