Print This Article Post Comment Add To Favorites Email to Friends Ezine Ready

Cisco Ccna / Ccnp Certification: Ospf E2 Vs. E1 Routes

By: Chris Bryant Home | Computers-and-Technology | Networks


OSPF is a major topic on both the CCNA and CCNP exams, and it's also the topic that requires the most attention to detail. Where dynamic routing protocols such as RIP and IGRP have only one router type, a look at a Cisco routing table shows several different OSPF route types.
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
In this tutorial, we'll take a look at the difference between two of these route types, E1 and E2.
Route redistribution is the process of taking routes learned via one routing protocol and injecting those routes into another routing domain. (Static and connected routes can also be redistributed.) When a router running OSPF takes routes learned by another routing protocol and makes them available to the other OSPF-enabled routers it's communicating with, that router becomes an Autonomous System Border Router (ASBR).
Let's work with an example where R1 is running both OSPF and RIP. R4 is in the same OSPF domain as R1, and we want R4 to learn the routes that R1 is learning via RIP. This means we have to perform route redistribution on the ASBR. The routes that are being redistributed from RIP into OSPF will appear as E2 routes on R4:
R4#show ip route ospf

O E2 5.1.1.1 [110/20] via 172.34.34.3, 00:33:21, Ethernet0

6.0.0.0/32 is subnetted, 1 subnets

O E2 6.1.1.1 [110/20] via 172.34.34.3, 00:33:21, Ethernet0

172.12.0.0/16 is variably subnetted, 2 subnets, 2 masks

O E2 172.12.21.0/30 [110/20] via 172.34.34.3, 00:33:32,
Ethernet0

O E2 7.1.1.1 [110/20] via 172.34.34.3, 00:33:21, Ethernet0

15.0.0.0/24 is subnetted, 1 subnets

O E2 15.1.1.0 [110/20] via 172.34.34.3, 00:33:32, Ethernet0

E2 is the default route type for routes learned via redistribution. The key with E2 routes is that the cost of these routes reflects only the cost of the path from the ASBR to the final destination; the cost of the path from R4 to R1 is not reflected in this cost. (Remember that OSPF's metric for a path is referred to as "cost".)
In this example, we want the cost of the routes to reflect the entire path, not just the path between the ASBR and the destination network. To do so, the routes must be redistributed into OSPF as E1 routes on the ASBR, as shown here.
R1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R1(config)#router ospf 1

R1(config-router)#redistribute rip subnets metric-type 1

Now on R4, the routes appear as E1 routes and have a larger metric, since the entire path cost is now reflected in the routing table.
O E1 5.1.1.1 [110/94] via 172.34.34.3, 00:33:21, Ethernet0

6.0.0.0/32 is subnetted, 1 subnets

O E1 6.1.1.1 [110/100] via 172.34.34.3, 00:33:21, Ethernet0

172.12.0.0/16 is variably subnetted, 2 subnets, 2 masks

O E1 172.12.21.0/30 [110/94] via 172.34.34.3, 00:33:32, Ethernet0

O E1 7.1.1.1 [110/94] via 172.34.34.3, 00:33:21, Ethernet0

15.0.0.0/24 is subnetted, 1 subnets

O E1 15.1.1.0 [110/94] via 172.34.34.3, 00:33:32, Ethernet0

Knowing the difference between E1 and E2 routes is vital for CCNP exam success, as well as fully understanding a production router's routing table. Good luck in your studies!



Article Source: http://www.eArticlesOnline.com

About the Author:
Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage , home of free CCNA and CCNP tutorials! Pass the CCNA exam with Chris Bryant!

Tags: , , , , , , , , , , , , , , ,

Please Rate this Article

 

Not yet Rated

Click the XML Icon Above to Receive Networks Articles Via RSS!

Recent Related Articles From Networks

  • Beauty Has Never Been So Easy For Smokers
    By: jason edworthy | Feb 13th 2009
    With laser teeth whitening you can remove the external type stains caused by smoking and even the deeper stains mainly caused by liquid like tea and coffee. Read

  • How To Get Hemoroid Treatment
    By: Karen Smith | Jan 28th 2010
    Hemorrhoid is characterized by discharges of blood through the anus along with the stool and is an extremely painful ailment that occurs in the anal region. This disease causes extreme pain to the patient, especially if it is of the external type when painful hard lumps or swellings form outside the anus but it is not dange ... Read

  • Cisco Ccnp / Bsci Exam Tutorial: Ospf Route Redistribution Review
    By: Chris Bryant | Apr 13th 2006
    OSPF redistribution is a huge topic on the BSCI exam. Review the basic concepts with Chris Bryant, CCIE #12933. Read

  • Cisco Ccnp / Bsci Exam Tutorial: Using Ospf's "summary-address" Command
    By: Chris Bryant | Mar 21st 2006
    Success on the BSCI exam and working with OSPF in production networks can depend on you knowing the proper usage of the "summary-address" command. Learn how to use this command and see it in action with Chris Bryant, CCIE #12933. Read

  • Treatment For Hemorrhoids Have Grown In Leaps And Bounds
    By: James R Preston | Jul 27th 2007
    Hemorrhoids is a disorder where the lower rectum area is swollen, and various reasons could be the cause. This is highly treatable. Read

  • What Is External Hemorrhoids?
    By: Heather-Jane Hunter.. | Apr 1st 2009
    People who have hemorrhoids will have one of the two types of hemorrhoids: Internal and External. Read

  • Hemorrhoids Cures And Practices You Should Indulge In
    By: Sanjay Joshi | Feb 5th 2011
    Health based issues are resurfacing substantially as the majority of the folks from world over are increasingly becoming conscious about their fitness and health in an unprecedented way. One of the major concerns amid populaces is the growing instances of Hemorrhoids. A majority of the populace believed that this horrible a ... Read

  • Choosing A Fish Tank Filter

    A filter, along with a heater, is probably the most important part of any fish tank set up. Without it the water in your fish tank will become much like a stagnant pond and little will be able to live in it except for a nice film of green algae scum. Read

  • Your Hemorrhoids Faqs Answered
    By: Edward Devane | Aug 4th 2007
    Studies show that hemorrhoids is actually a very common problem. It is estimated that by the age of 50, half of the adult population have had a painful encounter with hemorrhoids. So, what exactly is hemorrhoids? Read

  • Mpls For Dummies
    By: Celeste | Sep 19th 2007
    This article looks into the different options of Virtual Private Networking for businesses and what makes MPLS stand out from the rest. Read


Copyright © 2005-2011 eArticlesOnline, LLC - All Rights Reserved
Terms of Service | Privacy Policy