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.
I have yet to see a business that, sometimes in... Read More
Microsoft Great Plains is one of the Microsoft Business Solutions... Read More
Microsoft Outlook is one of the most widely used software... Read More
Make-or-Break Factors in Success and ProfitabilityFor quick printers, estimating can... Read More
XML parser is a software module to read documents and... Read More
Microsoft released Service Pack 2 (SP2) for the Windows XP... Read More
Features Additionally, Vista will include many other new features.Aero Vista... Read More
Our opinion is based on our Microsoft Business Solutions Great... Read More
Best Software Act! is very popular CRM for small and... Read More
Every organization which creates collaborative documents, whether they are budgets,... Read More
One day, you suddenly realize that your computer started to... Read More
Microsoft Business Solutions Great Plains is very good fit for... Read More
Spyware and Adware infest over 90 percent of computers in... Read More
Adobe Photoshop is one of the world's leading graphics editing... Read More
As Mozilla Firefox nears 10% market share, with well over... Read More
This article is the third of a series of articles... Read More
With any good luck and a good amount of hard... Read More
Microsoft Great Plains may be recommended for international freight forwarding... Read More
Great Plains Integration Manager scripting and translation - overview for... Read More
All your software is stored on a hard-drive. But how... Read More
The major reason I recommend getting your hands on real... Read More
If you have Microsoft Great Plains and support it... Read More
Configuring PPP PAP AuthenticationNow we know how the ISDN link... Read More
Buying accounting software is a major investment. It's an important... Read More
1. What determines the software price? Is it Per Seat... Read More
Anyone who has ever used Microsoft Word knows that it... Read More
Microsoft Business Solutions ? Great Plains is designed to meet... Read More
Microsoft Business Solutions Great Plains serves multiple industries in the... Read More
It is really interesting that a bug can create problem... Read More
If someone entered your home, uninvited and installed numerous cameras... Read More
After almost two decades of existence, Quark has become the... Read More
You might think you don't need a firewall... Read More
Microsoft CRM is winning market share step-by-step from such the... Read More
Itâ??s easy to understand why you might be drawn to... Read More
Looks like Microsoft Great Plains becomes more... Read More
Let's first look at your ERP system selection (without Retail... Read More
In the real world a "fire wall" is a fireproof... Read More
Cyberspace has opened up a new frontier with exciting possibilities... Read More
Imagine something that follows you home and sets itself up... Read More
With many manufacturing shops heading over seas in favor of... Read More
In this short FAQ style article we would like to... Read More
IBM Lotus Notes with Domino email server is traditional document... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
Microsoft CRM and IBM Lotus Notes Domino seem to be... Read More
When it comes to running an office, the SOHO entrepreneur... Read More
A wiki is an editable text-based website. But you don't... Read More
Lotus Domino/Notes ? Microsoft Great Plains tandem as ERP with... Read More
Handling character strings in Java is supported through two final... Read More
And kill the best layout software in the process of... Read More
Bar charts, bar graphs, and any other chart or graph... Read More
If you have Great Plains Dynamics/eEnterprise (version 6.0 or earlier)... Read More
Microsoft Business Solutions CRM is now approaching the phase of... Read More
Programming Help for BeginnersWe write programs to instruct computers. When... Read More
The first thing that you will notice about Linux Red... Read More
We would like to give you pluses and minuses of... Read More
As we could imagine, if you are reading this article... Read More
After seeing many people complain about their weak Internet security... Read More
Linux essentials:It's free for download but you have to pay... Read More
When reading an article where some term is used often,... Read More
There are certain pluses and minuses in both cases and... Read More
TCO (Total Cost Ownership) is the buzzword in... Read More
Professional services firm cuts costs and improves productivity with integrated... Read More
ERP (Enterprise Resource Planning) Overview covers What is ERP, Brief... Read More
Executive SummaryAn effective plan for entering, cleaning and updating the... Read More
If you are software developer or database administrator - we... Read More
Sticky Noteshttp://www.deprice.com/stickynote.htmWith StickyNote 9.0, you can create beautiful 3D notes... Read More
Software |