# OSPF E1 route

Jul 14th, 2008

Can I know what the does the following statement means?

For OSPF E1 router, it is external to the autonomous system. E1 includes the internal cost to the ASBR added to the

external cost.

Does it mean that the cost to reach a other AS is the internal cost + external advertised cost?

Hi,

E1 means that you can advertise the route by the ASBR, ie the router advertising the non ospf route, and specify the metric.

Then the routers will add the metric to the ASBR to the advertised metric for the external routes.

This is used when you want to make sure that internal routers take their OWN best path to the ASBR. Whereas E2 you just advertise the metric on the ASBR and it is hard set throughout the ospf domain.

For E1 the metric will change the further away from the ASBR that the routes propogates. Whereas E2 it is the same value on all ospf routers in the ospf domain.

HTH

LR

Overall Rating: 4 (3 ratings)

## Replies

• Silver, 250 points or more

Hi,

E1 means that you can advertise the route by the ASBR, ie the router advertising the non ospf route, and specify the metric.

Then the routers will add the metric to the ASBR to the advertised metric for the external routes.

This is used when you want to make sure that internal routers take their OWN best path to the ASBR. Whereas E2 you just advertise the metric on the ASBR and it is hard set throughout the ospf domain.

For E1 the metric will change the further away from the ASBR that the routes propogates. Whereas E2 it is the same value on all ospf routers in the ospf domain.

HTH

LR

chrislau388 Tue, 07/15/2008 - 04:32

Can I know how does ospf calculate the metric value? Is it using the same method to calculate ospf cost?

cost = 100000000 /ref BW bps

• Silver, 250 points or more

Hi,

That is correct, a router will use its interface ospf cost to determine what the real metric is for a route, for E1.

HTH

LR

rsgamage1 Tue, 07/15/2008 - 05:44
• Bronze, 100 points or more

Cost is the OSPF metric, expressed as an unsigned 16-bit integer in the range of 1 to 65535.

Cisco default 10^8/BW

Here 10^8 is the reference bandwidth, thus for an interface having a configured bandwidth of 512K,

the Cost is 10^8/512K ~ 195

HTH