cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11734
Views
8
Helpful
2
Replies

OSPF metric-type

moses12315
Level 1
Level 1

What's the meaning when a route in OSPF routing table is a type-1 or type-2 .

Thanks

moses

2 Replies 2

Jon Marshall
Hall of Fame
Hall of Fame

Hi Moses

Both are to external destinations outside the OSPF autonomous system. When a route is redistributed into an OSPF AS it needs a metric.

E1's have a path cost that is the sum of the external cost plus the cost to the ASBR (Autonomous System Border Router) ie. the router that redistributes the route into the OSPF AS.

E2's only have external cost attached to the route ie. they do not include the cost of the path to the ASBR.

HTH

Jon

bvsnarayana03
Level 5
Level 5

Routes redistributed in to ospf are advertised within the ospf domain by ASBR. These routes are marked as E1 or E2.

In the redistribution command if no cost or metric-type are mentioned, then default cost is 20 & metric-typr is E2. However for E1, you have to specifically mention it in redistribution command.

E1: Cost of path for E1 routes is a sum of cost to reach the ASBR + the cost with which routes were redistributed.

E2 : doesnt calculate cost to ABR, they only have a cost with which these toutes were redistributed.

hope that clarifies.

pls rate all helpful posts.

sorry Jon, i started replying & went on con-call. After the call i finished & posted but u've already replied the same.

Review Cisco Networking products for a $25 gift card