[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Applying Routing Policy
You define routing policy at the [edit policy-options] hierarchy level. To apply policies you have defined for BGP, include
the import and export statements within the BGP
configuration. For information about defining policy, see the JUNOS Policy Framework Configuration Guide.
You can apply policies as follows:
- BGP global import and export statements—Include
these statements at the [edit protocols bgp] hierarchy level
(for routing instances, include these statements at the [edit
routing-instances routing-instance-name protocols
bgp] hierarchy level).
- Group import and export statements—Include
these statements at the [edit protocols bgp group group-name] hierarchy level (for routing instances, include these statements
at the [edit routing-instances routing-instance-name protocols bgp group group-name] hierarchy
level).
- Peer import and export statements—Include
these statements at the [edit protocols bgp group group-name neighbor address] hierarchy level (for
routing instances, include these statements at the [edit routing-instances routing-instance-name protocols bgp group group-name neighbor address] hierarchy level). (A
peer uses its group’s export statement.)
A peer-level import or export statement overrides a group import or export statement.
A group-level import or export statement overrides
a global BGP import or export statement.
To apply policies, see the following sections:
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]