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.
![]() |
|
![]() |
|
![]() |
|
![]() |
People often ask me: What image file formats will Photoshop... Read More
The adware and spyware definitions list is very long. But... Read More
Accounts payable is just one area of office management where... Read More
The fact that a software tester is a most infamous... Read More
Microsoft Great Plains and Microsoft Retail Management System (Microsoft RMS)... Read More
Need software to record your voice, streaming audio or musical... Read More
Sales are all about leverage, because there is only so... Read More
Research bears that less than 70 percent of development projects... Read More
The first topic we are going to discuss... Read More
Stealing company information used to be the specialty of spies... Read More
There are two major WYSIWYG(What You See Is What You... Read More
Manufacturing in the USA is far away down from mid... Read More
Bill of Lading is required report for Logistics and Freight... Read More
Are you lost in the mess of documents that get... Read More
Spyware is like the new technological nuclear weapon on the... Read More
Corporate ERP/MRP selection might be tough one, especially considering very... Read More
Great Plains Fixed Assets Management module is a robust tool... Read More
Microsoft Great Plains is main mid-market application from Microsoft Business... Read More
Executive SummaryAn effective plan for entering, cleaning and updating the... Read More
We were recently faced with a decision: either to let... Read More
There are two approaches for application integration:? Programmer's approach ?... Read More
So, why should you use any O/R mapping tool? I... Read More
We would like first emphasize the change in the paradigm.... Read More
Creating a new markup language.Introduction.General Reuse Markup Langauge, or GRML,... Read More
Ad-Aware and Spybot are probably the two most well known... Read More
Microsoft Business Solutions Great Plains has substantial market share and... Read More
The intentions of this short tutorial are not to teach... Read More
Healthcare facilities such as clinics, hospitals, and biomedical laboratories can... Read More
There are certain pluses and minuses in both cases and... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
This article is the first of a series of articles... Read More
Does Microsoft care for WebmastersIt's always been a problem with... Read More
When you first think about multicurrency ? you probably have... Read More
After almost two decades of existence, Quark has become the... Read More
When my daughter was getting into AOL instant messaging (AIM)... Read More
Whether you need to close a sale, gather end-user feedback,... Read More
Many Webmasters have never bothered to view their website's server... Read More
Intro This concise article will tell you in plain English... Read More
Running Applications in Compatibility Mode With Windows XP, you can... Read More
I have always regretted how Microsoft price gouges and rips... Read More
Software development is a risky business.Many software developers are barely... Read More
Every organization which creates collaborative documents, whether they are budgets,... Read More
The major reason I recommend getting your hands on real... Read More
Although we don't know whether Microsoft ever envisioned such a... Read More
Itâ??s easy to understand why you might be drawn to... Read More
When you double-click a layer in the Layer Palette, you... Read More
When making a decision to buy any piece of software... Read More
Microsoft released Service Pack 2 (SP2) for the Windows XP... Read More
The destruction of the Soviet Union about 15 years ago,... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
Lotus Notes Domino is very efficient in electronic document workflow... Read More
Microsoft Business Solutions Great Plains is very good fit for... Read More
Microsoft Business Solutions CRM is web-based CRM application, deploying all... Read More
Having from five to ten and more favorite screensavers is... Read More
In the Clinton era the status quo was simple: you... Read More
Looking at all the ads which promise to get rid... Read More
COMMAND LINE FUNCTIONA powerful command line script processor has been... Read More
Are you ready? SQL Server 2005, the next-generation data management... Read More
Each Industry and market niche has business specific and unique... Read More
Accounts payable is just one area of office management where... Read More
Healthcare facilities such as clinics, hospitals, and biomedical laboratories can... Read More
Need software to record your voice, streaming audio or musical... Read More
When reading an article where some term is used often,... Read More
Since its release in 1987, QuarkXpress had made an immediate... Read More
We'll give you non formal view, based on our consulting... Read More
Spyware and malware are large problems for Internet users today... Read More
Software |