Configuring BGP Default Route Redistribution into OSPF

Redistributing a Default BGP Route into OSPF

Prev Question Next Question

Question

You have received a default route through BGP from your ISP and you want to redistribute it into OSPF.

Which method will accomplish this?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A

To redistribute a default route received through BGP into OSPF, the correct method is to apply an export policy to OSPF that exports the default route. Therefore, the correct answer is A.

Let's break down each of the options:

A. Apply an export policy to OSPF that exports the default route.

This method involves creating an export policy in Junos that matches the default route received from BGP and exports it into OSPF. The policy can be applied to the OSPF routing instance using the export statement. This method is the correct answer.

B. Apply an import policy to OSPF that imports the default route.

This method involves creating an import policy in Junos that matches the default route received from BGP and imports it into OSPF. However, this method does not redistribute the default route received from BGP into OSPF. It only allows the default route to be imported into OSPF if it is already present in the OSPF routing table.

C. Apply the default-network command to OSPF.

This method involves using the default-network command to advertise a default route into OSPF. However, this command only advertises a default route if one is already present in the routing table. Since we are trying to redistribute a default route received through BGP, this method is not applicable.

D. Apply the redistribute-igp command to BGP.

This method involves using the redistribute-igp command to redistribute OSPF routes into BGP. This is not the correct method for redistributing a default route received through BGP into OSPF.

Therefore, the correct answer is A. Apply an export policy to OSPF that exports the default route. This method will create an export policy that matches the default route received through BGP and exports it into OSPF.