A. You must apply the policy as an export policy within the OSPF configuration.
Export policies in Junos OS are used to control the routes that are advertised to neighboring routing protocols. In this case, the policy "BGP-INTO-OSPF" is defined in the policy-options hierarchy and contains a term "BGP-ONLY" that matches routes from the BGP protocol. The "then" statement "accept" indicates that routes matching this term should be accepted.
To make the BGP routes available to OSPF neighbors, you need to configure the export policy within the OSPF configuration and apply it to the appropriate OSPF routing instance. This export policy will specify that BGP routes should be advertised into OSPF
Redistribute OSPF routes from Area 1 only into BGP, and do not advertise routes learned by BGP.
[edit]
routing-options {
autonomous-system 56;
}
protocols {
bgp {
export ospf-into-bgp;
group {
type external;
peer-as 23;
allow {
0.0.0.0/0;
1. Create an Export-policy to match the BGP routes in the routing-table:
[edit policy-options]
user@srx# show
policy-statement BGP-INTO-OSPF {
term BGP-ONLY {
from protocol bgp;
then {
accept;
}
2. Apply the Export-policy under OSPF:
[edit protocols]
user@srx# show
ospf {
export BGP-INTO-OSPF;
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Thranduilll
Highly Voted 2 years, 1 month agoKyawa
Most Recent 10 months agoMayTin
10 months agoCradical
1 year, 6 months agoachon
1 year, 8 months agojimraynor
1 year, 8 months agoachon
1 year, 8 months agoRac_123
1 year, 8 months agoJoooohn2022
1 year, 10 months agodyaz208
1 year, 11 months agoAyix
2 years agoHariharanM
2 years agoHariharanM
2 years agoachon
2 years, 1 month agoz3roCoo1
2 years, 1 month agomisu112
2 years, 1 month ago