In part III of this ISDN primer, we learned that PPP has two main methods of authentication that Cisco certification candidates need to know how to configure: PAP and CHAP.
PAP has very few advantages over CHAP. PAP passwords are carried over the line in clear-text, which in today's world is a very bad idea. PAP configuration also requires additional configuration with the "ppp pap sent-username" command, so anyone who can see your running configuration can also see the PAP password.
The only advantage PAP has over CHAP is a slim one. With PAP, a different password can be used by the each of the routers involved in the authentication. CHAP requires that the password be the same. Why? We'll see as we examine CHAP authentication.
The First Step to Configuring CHAP
CHAP requires you to configure a username / password combination for any remote device that will be involved in authentication. (We're assuming that the routers have already been configured with their names via the global hostname command.) Both routers will use the password CISCO.
R1:
username R2 password CISCO
int bri0
encapsulation ppp
ppp authentication chap
R2:
username R1 password CISCO
int bri0
encapsulation ppp
ppp authentication chap
Why CHAP Authentication Requires The Same Password On Both Routers
Remember how PAP sends the password over the line in clear-text? CHAP does not actually send the password over the line at all. Instead, CHAP runs a hash algorithm using the password and a random number. It is the result of this hash that is passed over the link. The remote router receives the hash result, and runs the exact same algorithm. If the result is the same, the authentication attempt will be successful. If the result is different, the authentication will fail. For this reason, the passwords must be the same.
Debug The Connection If Authentication Fails
Since two passwords are involved, the chances of one of the passwords being mistyped doubles. If you configure CHAP and the link dials but drops almost immediately, there's an authentication problem. Run debug ppp negotiation and attempt to dial the line again. The output of this particular debug will show you where the problem is.
Chris Bryant, CCIE (TM) #12933, has been active in the Cisco certification community for years. He has written several books that have helped CCNA candidates around the world achieve the coveted CCNA certification, including several concentrating on binary math conversions and subnetting questions that the average CCNA candidate will need to answer on their CCNA exams.
He is the owner of The Bryant Advantage (http://www.thebryantadvantage.com) where he teaches affordable world-class CCNA courses via the Internet, and sells his popular Cisco certification books. He???s proud to have helped CCNA candidates around the world achieve their career goals. Mr. Bryant???s books and courses are sold on his site, on eBay, and on several other major Cisco certification sites.
shuttle from Midway Glen Ellyn ..The most important benefit of XML is its simplicity. Though... Read More
Microsoft Great Plains is main mid-market application from Microsoft Business... Read More
Some introduction into Great Plains Software products, now Microsoft Business... Read More
Customer Relationship Management or CRM is a combination of enterprise... Read More
When you own a small business, time is money. And... Read More
Many Webmasters have never bothered to view their website's server... Read More
Anti-virus software is used to find, remove or fix files... Read More
The objective for Zandi Digital is to make available clever... Read More
Introduction: The creating of a computer program involves a number... Read More
COMMAND LINE FUNCTIONA powerful command line script processor has been... Read More
Since Version 8.0 Microsoft Business Solutions Great Plains & Great... Read More
New post-recession era has new features, which didn't exist in... Read More
In today's business world it's all but impossible to escape... Read More
I have recently created my first Php program. I wanted... Read More
GroupwareEfforts are continually made to manage the unavoidable ad hoc... Read More
If you're online using a dialup Internet connection, you'll probably... Read More
Microsoft Great Plains is main Microsoft Business Solutions accounting package... Read More
Navision Software was purchased by Microsoft and now it is... Read More
Microsoft Client Relation Management system (Microsoft CRM) and Microsoft RMS... Read More
When you double-click a layer in the Layer Palette, you... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
There are certain pluses and minuses in both cases and... Read More
Microsoft CRM is now on the scene and it is... Read More
To all web designers out there, this article is for... Read More
1. Replace Dexterity cursor with SQL Stored Procedure Dexterity... Read More
shuttle from O'Hare North Chicago ..... Read More
Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics... Read More
Many reasons made GBM a unanimous choice for experts, one... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
Mike Dunville* had a decision to make. As the new... Read More
You probably didn't casually invite, or extend a formal attendance... Read More
Now is the time to look at an alternative to... Read More
While several preventive maintenance software manufacturers offer free trials for... Read More
Great Plains Integration Manager scripting and translation - overview for... Read More
Most people don't use Photoshop to its fullest capabilities. Here... Read More
There are two major WYSIWYG(What You See Is What You... Read More
At the end of XX century, in the late 1990th... Read More
Just imagine: you are walking, say, towards your car, and... Read More
The term "document management" and "paperless office" is the subject... Read More
It won't matter how effective your WinRunner Team is if... Read More
A wiki is an editable text-based website. But you don't... Read More
What is RAID RECOVERY?RAID stands for Redundant Array of Inexpensive... Read More
Program Flow is what you think it is. How the... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
Linux essentials:It's free for download but you have to pay... Read More
Introduction: The creating of a computer program involves a number... Read More
Microsoft Business Solutions Great Plains serves to the wide spectrum... Read More
This article is for advanced Microsoft CRM SDK C# developers.... Read More
Beginning with Domino version R4 it has integration with the... Read More
Whether you are a small consultancy firm, a medium sized... Read More
Software |