Cisco CCNA / CCNP Certification: OSPF ASBRs Explained And Illustrated

When I first started studying for my CCNP, some of the concepts of OSPF really confused me. This was especially true for the ASBR, stub areas, and total stub areas. Sure, I could memorize the LSA types associated with these devices and area types, but there just weren't any illustrations that explained exactly what was going on.

This CCNP tutorial shows an ASBR in operation, and also introduces you to a basic example of route redistribution. Don't worry, it gets more complicated. :)

Here's the network we'll be working with in this tutorial:

R5

|

R1

/

R2 R3

Networks:

R1 - R5 Ethernet Segment: 10.1.1.0 /24

R1 - R2 - R3 Serial Segment: 172.16.123.0 /24 (Preconfigured with OSPF)

R1 and R5 are running RIP over their common Ethernet segment, 10.1.1.0 /24. R5 has three loopbacks it will be advertising into the RIP domain.

R1 is also running OSPF, with R2 and R3 as neighbors. Even though R1 knows about the loopbacks on R5, its OSPF neighbors do not. R1 has these routes in its RIP routing table, and for OSPF neighbors to learn of these routes, route redistribution must be manually configured.

R5#conf t
R5(config)#router rip
R5(config-router)#version 2
R5(config-router)#no auto-summary
R5(config-router)#network 5.0.0.0
R5(config-router)#network 10.0.0.0

R1#conf t
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 10.0.0.0

R1#show ip route rip
5.0.0.0/24 is subnetted, 3 subnets
R 5.1.1.0 [120/1] via 10.1.1.5, 00:00:10, Ethernet0
R 5.2.1.0 [120/1] via 10.1.1.5, 00:00:10, Ethernet0
R 5.3.1.0 [120/1] via 10.1.1.5, 00:00:10, Ethernet0

R1 has a route for all three of R5's loopback interfaces, learned via RIP. R1 is also running OSPF, but its neighbors R2 and R3 don't know about these RIP routes:

R2#show ip route ospf

R2# < no output from show command means no routes! >

R3#show ip route ospf

R3#

Be careful when configuring redistribution use IOS Help to make sure you're not missing any vital options. IOS Help shows that there is a "subnets" option when redistributing RIP into OSPF. If that is left off, only classful networks are redistributed (as the router is kind enough to tell us). In this case, we have no classful networks, so there will be no redistribution. R2 will not see the RIP routes.

R1(config)#router ospf 1
R1(config-router)#redistribute rip ?

metric Metric for redistributed routes
metric-type OSPF/IS-IS exterior metric type for redistributed routes
route-map Route map reference
subnets Consider subnets for redistribution into OSPF
tag Set tag for routes redistributed into OSPF

R1(config-router)#redistribute rip
% Only classful networks will be redistributed

R2#show ip route ospf

R2#clear ip route *

R2#show ip route ospf

R2#

On R1, we'll now use the "subnets" option, and the RIP subnets are successfully redistributed into OSPF.

R1(config)#router ospf 1

R1(config-router)#redistribute rip subnets

R2 now sees the redistributed routes.

R2#show ip route ospf

5.0.0.0/24 is subnetted, 3 subnets

O E2 5.1.1.0 [110/20] via 172.12.123.1, 00:00:08, Serial0.123

O E2 5.2.1.0 [110/20] via 172.12.123.1, 00:00:08, Serial0.123

O E2 5.3.1.0 [110/20] via 172.12.123.1, 00:00:08, Serial0.123

10.0.0.0/24 is subnetted, 1 subnets

O E2 10.1.1.0 [110/20] via 172.12.123.1, 00:00:08, Serial0.123

Notice that the routes are marked as "E2". The E indicates that these are external routes these are routes that were learned by OSPF via redistribution.

Naturally, you'll want to ping these networks to make sure you have two-way communication. Even though the routes to these loopbacks are in the routing table, pings fail:

R2#ping 5.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 5.1.1.1, timeout is 2 seconds:

.....

Success rate is 0 percent (0/5)

Keep this in mind when troubleshooting: It's not enough to have a route to a destination for pings to succeed there's got to be a path back. At this point, R5 doesn't know where the 172.12.123.0 network is, so there's no way the ping can get back. More route redistribution is necessary on R1.

Your first instinct may be to redistribute OSPF routes into RIP to make this work, but remember that the 172.12.123.0 /24 network isn't known to R1 via OSPF it's a directly connected network. We can redistribute connected networks into RIP to give R5 a route to 172.12.123.0 /24, which will give the ICMP packets a path back to R2, which will allow pings to succeed.

R1(config)#router rip

R1(config-router)#redistribute connected

R5#show ip route rip

1.0.0.0/32 is subnetted, 1 subnets

R 1.1.1.1 [120/1] via 10.1.1.1, 00:00:02, Ethernet0

172.12.0.0/24 is subnetted, 1 subnets

R 172.12.123.0 [120/1] via 10.1.1.1, 00:00:02, Ethernet0

R2#ping 5.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 5.1.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 68/69/76 ms

Performing this redistribution makes R1 an ASBR, as shown here with show ip ospf. This command even shows you what protocol(s) are being redistributed into OSPF.

R1#show ip ospf

Routing Process "ospf 1" with ID 1.1.1.1

Supports only single TOS(TOS0) routes

Supports opaque LSA

It is an autonomous system boundary router

Redistributing External Routes from,

rip, includes subnets in redistribution

Knowing exactly what the ASBR does and how to configure route redistribution are just a few of the many OSPF skills you'll need to earn your CCNP. Like any other Cisco skill, breaking a complex topic like OSPF down into smaller, manageable pieces is the best way to master these topics and pass the CCNP exams.

Keep watching The Bryant Advantage website for more free CCNA and CCNP tutorials!

To your success,
Chris Bryant
CCIE #12933
chris@thebryantadvantage.com

Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage. The Bryant Advantage offers dozens of FREE CCNA, CCNP, and Home Lab tutorials and articles. The Bryant Advantage sells the world's most comprehensive CCNA Study Guide, and my exclusive Binary Math and Subnetting Mastery book. My CCNA Online Fast Track is the world's fastest-growing CCNA course. Get your CCNA and CCNP today at http://www.thebryantadvantage.com

In The News:


Daily Mail

Intel's Learning Computer Experiments Could Be The Future Of Personal Tech
Huffington Post
By Tova Cohen TEL AVIV (Reuters) - Intel Corp is launching research in Israel into technology that mimics the human brain and develops devices that "learn" about their user. "Machine learning is such a huge opportunity," Justin Rattner, Intel's chief ...
The phone that reminds you where you've put your keys - Intel designs ...Daily Mail

all 105 news articles »

Should Schools Go Modern?
Huffington Post
However, according to KQED, a new study called "Speak Up 2011" shows that students frequently use Facebook and Twitter on their personal technology to connect about academic subjects and homework. Still, the study shows that 65 percent of principals ...


PERSONAL TECHNOLOGY - Android rivals intent on closing Apple gap
Business Day
The inclusion of Beats Audio technology for better sound is a bonus and the kickstand is still there, neatly stored as part of a red metal band at the rear. The Evo 4G is available for $200 with a two-year contract with Sprint in the US, ...

and more »

While Tech Giants Struggle, Which Leading Electronic-Device Maker Is Thriving?
Minyanville.com
America's favorite personal computer stocks are in big trouble. On Tuesday, Dell (DELL) collapsed 17% after reporting terrible earnings. The third-largest PC maker shed $4.5 billion of its $22 billion market cap in 24 hours.
Dell (DELL) Dives as Profit Plunges 33%InvestorGuide

all 3 news articles »

ZDNet

Personal Technology: Microsoft Gives Windows a Clean Sweep
All Things Digital
For a long time, some Microsoft officials have privately griped that PC makers don't present Windows in its best light. They clutter desktops with icons that are often little more than ads for third-party products; include confusing utilities that ...
Microsoft's 'Signature' PCs Provide Users With Better Experience: MossbergFox Business

all 160 news articles »

Daily Bhaskar

Badal seeks tech to treat underground water
Indian Express
To ensure safe drinking water, especially in the rural areas, Chief Minister Parkash Singh Badal on Friday sought personal intervention of the Chairman, Atomic Energy Commission (AEC) and Secretary, Department of Atomic Energy Dr Ratan Kumar Sinha to ...
Badal seeks best technology to treat underground water in Punjab for drinking ...Punjab Newsline

all 3 news articles »

Faceless but connected: Welcome to Airport 2025
Reuters
Personal devices are set to become far more important than mere notification receptacles; Near Field Communication technology embedded in passengers' smartphones or travel documents will fast-track them through check-in and airport touch-points.

and more »

Quest shares climb on report of Dell bid
Austin American-Statesman
As part of a technology change, commenting will not be available on some articles for a number of months. Read more about the change here. The Associated Press NEW YORK — Shares of Quest Software Inc. rose Friday on a published report that personal ...

and more »

Smartphone Avalanche Burying Computer Industry Dinosaurs
HispanicBusiness.com
Technology giant Hewlett-Packard, whose business is still built on personal computers and printers, this week announced it would slash its payroll by 27000 workers, or 8 per cent, by 2014 to eventually save at least 3 billion dollars a year.

and more »

'Facebook parenting' is destroying our children's privacy
CNN
Technology is making an indelible imprint on modern parenting, and there is a sense that our data, our personal information, are no longer within our control. But new research findings indicate that openness and information sharing are a way of life ...

and more »
Google News

The Ipod Mini: Why Its Not that Hot

I got my eyes set on a iPod mini, as... Read More

EDTV: What You Should Know Before You Make That Purchase

Enhanced Definition Television ? also known as EDTV ? is... Read More

How To Remove One Operating System from a Dual Boot Windows XP Computer

In Windows Xp, you can install two operating systems on... Read More

Spyware Remover

Your first step in removing dangerous infections from your computer... Read More

HTML Explained: Part 2

Get started creating web pages using text files and HTML... Read More

Home Video? Bring it On

So you got yourself a digital camcorder. If you want... Read More

An All Too Familar Pain

Lost & Found for the 21st CenturyIn today's hectic world... Read More

Deleting and Destroying Data Forever

Peoples' private information needs to stay private, even after it... Read More

Why Using an Ad Blocker Can be a Bad Idea

Ad Blocking is getting to be a common sport on... Read More

Smart Apple iPod Tips and Techniques

Are you thinking of buying an Apple iPod? Or have... Read More

Looking For an MP3 Player?

If you don't have an mp3 player, and even if... Read More

Home Electronics: The Facts About Plasma TV

Not so many years ago, homes across the country watched... Read More

How Do MP3 Players Work? Digital Audio Technology Revolutionizes Music Enjoyment

Millions have enjoyed recorded music since 1877 when Thomas Edison... Read More

What Exactly are Screensavers? - part I

After reading this good article you will know some important... Read More

PC Owners - The Largest Criminal Gang Ever?

The year is 1981. IBM has just released the Personal... Read More

Build Your Own Computer

I'm eighty-one years old and I bought my first computer... Read More

Palm PC critique

I met an entrepreneur who hole heartedly disagree with an... Read More

Why Get a Microsoft MCSE Certification?

In the years of the dot com boom and bust,... Read More

DVD The Ultimate Consumer Digital Media

Digital Video Disc or as it is sometimes referred to... Read More

Emulation Manual - A Complete Guide on How to Change Your Windows XP to Mac OS X

IntroductionMac OS X is the most technologically advanced operating system... Read More

Bios Term

BIOS - Basic Input Output SystemThe central processing unit of... Read More

The Benefits of Open Source

If you are a building a website or a forum,... Read More

10 Easy Steps to Speed Up Your Computer - Without Upgrading

1. Empty the Temp directory regularly. To do this, make... Read More

Does Microsoft Show Hackers How To Attack?

After another security hole recently surfaced in Microsoft's Windows operating... Read More

Gain Control Over Your Screensavers With These Simple Steps

We all enjoy our favorite screensavers but in the same... Read More