Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

Procedure

There are two steps for configuring OSPF import and export:

  1. Configure the routing policy to detail the routing filter conditions and actions;
  2. Use OSPF import a policy to filter OSPF routes added into RIB, or OSPF exporting a policy to filter routes advertised from RIB or introduce routes learned by other protocols into OSPF routing table.

The detailed CLI command are as follows:

Step 1     Configure the routing policy to detail the routing filter conditions and corresponding

set policy policy-statement <policy-name> term <term-name> from <filter-conditions>

set policy policy-statement <policy-name> term <term-name> to <filter-conditions>

set policy policy-statement <policy-name> term <term-name> then accept

set policy policy-statement <policy-name> term <term-name> then reject

set policy policy-statement <policy-name> term <term-name> then <actions>

Step 2     Use OSPF import or OSPF export a routing policy.

set protocols ospf4 [vrf <vrf-name>import <policy-name>

set protocols ospf4 [vrf <vrf-name>] export <policy-name>

  • No labels