|
Navigate to the Policy statement level in the configuration
hierarchy.
|
In the configuration editor hierarchy, select Policy
options>Policy statement.
|
From the top of the configuration hierarchy, enter
edit policy-options policy-statement
|
|
Create an injection policy and term—for example, injectpolicy1 and injectterm1.
|
- In the Policy name box, type injectpolicy1.
- Next to Term, click Add new entry.
- In the Term name box, type injectterm1.
|
Enter
set injectpolicy1 term injectterm1
|
|
Specify the OSPF routes.
|
- In the From option, click Configure.
- In the Protocol box, click Add new entry.
- In the Value drop box, select ospf.
- Click OK.
|
Specify the OSPF match condition:
set from ospf
|
|
Specify the routes from a particular OSPF area—for example, area 1.
|
- In the Area box, type 1.
- Click OK.
|
Specify Area 1 as a match condition:
set from area 1
|
|
Specify that the route is to be accepted if the previous conditions
are matched.
Set the default option to reject other OSPF routes.
|
- Next to Then, click Configure.
- From the Accept reject list, Select accept.
- From the Default action list, Select reject.
- Click OK until you return to the Configuration
page.
|
Specify the action to accept:
set then accept
|
|
Navigate to the Bgp level in the configuration
hierarchy.
|
In the configuration editor hierarchy, select Protocols>Bgp.
|
From the top of the configuration hierarchy, enter
edit protocols bgp
|
|
Apply the routing policy injectpolicy1 to BGP.
|
- Next to Export, click Add new entry.
- In the Value option, type injectpolicy1.
- Click OK.
|
Specify the OSPF match condition:
set export injectpolicy1
|