Skip to main content

3. BGP Identifier and OSPF router ID

The BGP identifier must be the same as the OSPF router id at all times that the router is up.

This characteristic is required for two reasons.

i. Consider the scenario in which 3 routers, RT1, RT2, and RT3, belong to the same autonomous system.

                            +-----+
| RT3 |
+-----+
|

Autonomous System running OSPF

/ \
+-----+ +-----+
| RT1 | | RT2 |
+-----+ +-----+

Both RT1 and RT2 have routes to an external network X and import it into the OSPF routing domain. RT3 is advertising the route to network X to other external BGP speakers. RT3 must use the OSPF router ID to determine whether it is using RT1 or RT2 to forward packets to network X and hence build the correct AS_PATH to advertise to other external speakers.

More precisely, RT3 must use the AS_PATH of the route announced by the ASBR, whose BGP Identifier is the same as the OSPF routerID corresponding to its route for network X.

ii. It will be convenient for the network administrator looking at an ASBR to correlate different BGP and OSPF routes based on the identifier.