12-19-2004 07:03 AM - edited 03-02-2019 08:40 PM
thank you.
Solved! Go to Solution.
12-19-2004 08:12 AM
The basic difference between a N type as well as E type is that they belong to two different types of LSAs. Type 5 is E and Type 7 is N. An external route (redistributed from another routing protocol, static route or connected route) will be tagged as a Type 5 LSA (E route). This LSA is circulated throughout the OSPF domain except for Stub, Totally Stubby and Not-so-stubby areas.
Stub areas are not allowed to have external routes, which means there should be no ASBR in a Stub area. But if you have a situation where you have to have a ASBR in your Stub area the only solution is to configure the Stub area as Not-So-Stubby Area or NSSA. A route redistributed (from a connected, static or other routing protocol) inside an NSSA area is a Type 7 LSA or N route. This LSA is circulated only within the NSSA area.
E1 or E2 or N1 or N2 type routes are based upon cost of the route.
E2 or N2 routes tell OSPF routers to set the metric as the metric at the point of redistribution.(At the ASBR)
E1 or N1 routes tell OSPF routers to add the internal costs to reach the ASBR to the cost set at the point of redistrbution (At the ASBR)
Consider this example. ASBR,R1 R2 R3 are connected in line via Ethernet interface with cost of 10 each.
ASBR(default-metric 50)-------R1-----R2---R3
The cost of routes redistributed at the ASBR into OSPF is set to 50 using "default-metric"command. The cost of the same route in routing table of R1, R2 and R3 will be 50 if the route is tagged as E2. (same applies for N2)
The cost of the same route in routing table of R1 will be 60, R2 will be 70, R3 will be 80, if the route is tagged as E1 (same applies for N1) The costs to reach the ASBR is cumulatively added to the cost of the route set at the ASBR
Hope that helps!
12-19-2004 08:12 AM
The basic difference between a N type as well as E type is that they belong to two different types of LSAs. Type 5 is E and Type 7 is N. An external route (redistributed from another routing protocol, static route or connected route) will be tagged as a Type 5 LSA (E route). This LSA is circulated throughout the OSPF domain except for Stub, Totally Stubby and Not-so-stubby areas.
Stub areas are not allowed to have external routes, which means there should be no ASBR in a Stub area. But if you have a situation where you have to have a ASBR in your Stub area the only solution is to configure the Stub area as Not-So-Stubby Area or NSSA. A route redistributed (from a connected, static or other routing protocol) inside an NSSA area is a Type 7 LSA or N route. This LSA is circulated only within the NSSA area.
E1 or E2 or N1 or N2 type routes are based upon cost of the route.
E2 or N2 routes tell OSPF routers to set the metric as the metric at the point of redistribution.(At the ASBR)
E1 or N1 routes tell OSPF routers to add the internal costs to reach the ASBR to the cost set at the point of redistrbution (At the ASBR)
Consider this example. ASBR,R1 R2 R3 are connected in line via Ethernet interface with cost of 10 each.
ASBR(default-metric 50)-------R1-----R2---R3
The cost of routes redistributed at the ASBR into OSPF is set to 50 using "default-metric"command. The cost of the same route in routing table of R1, R2 and R3 will be 50 if the route is tagged as E2. (same applies for N2)
The cost of the same route in routing table of R1 will be 60, R2 will be 70, R3 will be 80, if the route is tagged as E1 (same applies for N1) The costs to reach the ASBR is cumulatively added to the cost of the route set at the ASBR
Hope that helps!
12-19-2004 08:44 AM
thank you so much!
08-13-2013 04:32 PM
Wow, you should write books man, that's a great explanation. Thanks a million
07-06-2015 11:14 PM
Thank You for your explanation , I have question here ! we have E2&E2 and we understood the different between them . WHY we need N2&N1?
in another word what is the Benefit for LSA 7 ?
Thank You ,
02-25-2017 04:44 AM
You won the internet with your great explanation. Thank you!
02-14-2019 06:17 AM
@thisisshanky @Julio E. Moisa @Georg Pauwen
Hello shanky which route will prefered best route OE1 vs OE2. I believe whichever route has lowest metric, which means OE2 will be prefered over OE1. Is that correct ?
10-09-2019 08:09 AM
Path selection on OSPF was different earlier which was O>> O IA >> E1 >> E2 >>N1 >> N2 which has been replaced by the below path preference.
O>> O IA >> E1 >> N1 >>E2 >> N2
OSPF will always look at the path type and then metric.
To answer your question, though E2 routes have a lower metric than E1 routes the path selection will always be followed based on the path type.
09-28-2023 12:13 PM
thanks for the explanation! Great answer.
01-14-2013 12:40 PM
thisisshanky, thanks a lot!! that's an incredible explanation, kudos to you.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide