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.
move in cleaning service Mundelein ...NET platform does not support multiple inheritance. Do not confuse... Read More
This is intermediate level SQL scripting article for DB Administrator,... Read More
Our company, Novaprof Inc., developed unique software - DB Integration.... Read More
All of us know that Microsoft bought former Great Plains... Read More
Fundraising software lets you connect with donors in a way... Read More
This is the tutorial where we really get into programming.... Read More
Vince Lombardi once said that, "The achievements of an organization... Read More
Every organization which creates collaborative documents, whether they are budgets,... Read More
The world of small business accounting software can be a... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
CD and DVD replication is a process that works by... Read More
In our opinion, traditional approach when you select ERP/MRP system... Read More
When you think... Read More
Some companies that are in need of fleet management may... Read More
Icons are used everywhere; right from software applications, to internet... Read More
One of the things we can be as certain of... Read More
Microsoft CRM is CRM answer from Microsoft and attempt to... Read More
Disclaimer: All the thoughts expressed are my views only! Your... Read More
After seeing many people complain about their weak Internet security... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
If you have Microsoft Great Plains as main accounting and... Read More
In our small article we'll consider Microsoft Business Solutions Great... Read More
The first thing that you will notice about Linux Red... Read More
The fact that a software tester is a most infamous... Read More
There are so many different programs that clutter up your... Read More
insured cleaning company Highland Park ..Now that spyware is the single most dangerous threat to... Read More
It's not very often I get excited about a software... Read More
Music downloads are off the charts! We're listening to digital... Read More
A UNIX Shell is in simplest terms, a command line... Read More
Every day millions of new web documents emerge on the... Read More
Currently Microsoft Business Solutions is on the way of creating... Read More
Have you noticed WordPerfect is gearing up for a comeback... Read More
Shareware has been fighting the stigma of being misunderstood for... Read More
Microsoft Great Plains as ERP and Microsoft CRM as... Read More
When reading an article where some term is used often,... Read More
Scrapbooks are very popular these days. I think that almost... Read More
It would be easy to think, like most people apparently... Read More
It won't matter how effective your WinRunner Team is if... Read More
Microsoft Business Solutions Navision is main ERP application for European,... Read More
Spyware is like the new technological nuclear weapon on the... Read More
Several years ago Microsoft purchased Great Plains Software, then Navision... Read More
Before September 1995, Microsoft Windows was an MS-DOS program. DOS... Read More
Microsoft Business Solutions Great Plains is very popular ERP/MRP applications... Read More
Java has come along a long way. Many would agree... Read More
Three highly respected names in Human Resources have joined forces... Read More
And kill the best layout software in the process of... Read More
Microsoft Great Plains may be recommended for international freight forwarding... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
What is Software?Software is a set of instruction written to... Read More
What is Colossus?Colossus is software licensed to about twenty-five insurance... Read More
Software |