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 recently created my first Php program. I wanted... Read More
Microsoft Great Plains is now standard mid-market ERP application, serving... Read More
Microsoft Great Plains is now targeting large and midsize businesses... Read More
Professional services firm cuts costs and improves productivity with integrated... Read More
This is a short article, written in question/answer/FAQ style to... Read More
Spyware and malware are large problems for Internet users today... Read More
The destruction of the Soviet Union about 15 years ago,... Read More
Microsoft Business Solutions Great Plains is very popular ERP platform... Read More
IBM Lotus Notes with Domino email server is traditional document... Read More
Bad News - the Threat is Bigger than it SeemedHow... Read More
Your computer cost you from hundreds to thousands of dollars,... Read More
The Microsoft system preparation utility for Windows 2000 is a... Read More
Microsoft Business Solutions Great Plains was historically designed to serve... Read More
Fundraising software lets you connect with donors in a way... Read More
Music downloads are off the charts! We're listening to digital... Read More
In the new era of internet marketing the problem of... Read More
If someone entered your home, uninvited and installed numerous cameras... Read More
The stakes are high when considering security, privacy, and savings,... Read More
Programming Help for BeginnersWe write programs to instruct computers. When... Read More
There is many things more frustrating than surfing a website... Read More
What is Spyware?Spyware monitors your surfing habits and sends the... Read More
Microsoft CRM was designed to be easily customizable. Microsoft CRM... Read More
The US House of Representatives has recently passed the "Spy... Read More
Microsoft Business Solutions Great Plains was purchased from Great Plains... Read More
Whether you are an experienced web programmer or a complete... Read More
In order to implement VLANs in a network environment, you'll... Read More
Microsoft Great Plains, former Great Plains Software Dynamics / eEnterprise... Read More
Shareware has been fighting the stigma of being misunderstood for... Read More
Microsoft Business Solutions Great Plains was designed back in the... Read More
Itâ??s easy to understand why you might be drawn to... Read More
Here is some free software tools to help you build... Read More
If you copy something from a Web site or elsewhere...... Read More
Microsoft CRM is CRM answer from Microsoft Business Solutions. If... Read More
There is many things more frustrating than surfing a website... Read More
In 2004 Oracle, Inc. made its new step toward J2EE... Read More
Icons are used everywhere; right from software applications, to internet... Read More
If you have Microsoft Great Plains as main accounting and... Read More
I have always had a tendency to focus on the... Read More
People often ask me: What image file formats will Photoshop... Read More
Former Great Plains Software Dynamics/eEnterprise, and currently Microsoft Business Solutions... Read More
In today's business world it's all but impossible to escape... Read More
Most computer users use spreadsheets software such as Microsoft Excel... Read More
GroupwareEfforts are continually made to manage the unavoidable ad hoc... Read More
Microsoft Great Plains might be considered as ERP platform to... Read More
Spyware is software or hardware installed on a computer without... Read More
TCO (Total Cost Ownership) is the buzzword in... Read More
Microsoft Business Solutions offers several ERP applications: Great Plains, Navision,... Read More
Microsoft Great Plains as ERP and Microsoft CRM as... Read More
Microsoft Great Plains is becoming more and more popular and... Read More
If you have Microsoft Great Plains and support it for... Read More
Which Type of Shop Can Rely On A Home Built... Read More
Remember nice and prosperous Clinton era? When you implemented innovative... Read More
Document Manager and Version HistoryIn previous articles I have discussed... Read More
Is Photoshop CS2 worth the upgrade? You bet it is!... Read More
The various resume software offered, particularly on the internet, can... Read More
ERP Consulting industry is on the way to serve clients... Read More
When making a decision to buy any piece of software... Read More
Beginning with Domino version R4 it has integration with the... Read More
This is the tutorial where we really get into programming.... Read More
Do you remember that frustrating feeling when you find an... Read More
Disclaimer: All the thoughts expressed are my views only! Your... Read More
Music downloads are off the charts! We're listening to digital... Read More
Are you ready? SQL Server 2005, the next-generation data management... Read More
DBxtra goes ASPGetting to the information hidden within corporate databases... Read More
When it comes to running an office, the SOHO entrepreneur... Read More
It could just be me, but my experiences with document... Read More
Software |