Configuring PPP for CHAP Authentication

Before we move on to options for PPP, you should know how to configure the basics. Any true geek should be champing at the bit by this point to get going. If you're not champing, then we still have a ways to go to fully convert you.

Basic PPP Configuration Commands

The first thing you need to do is set up PPP on a serial interface using Router(config-if)#encapsulation <PPP | SLIP>. You also need to specify whether the user has a choice about how she wants to access the router. Use the command Router(config-if)#async mode dedicated if you want the user to only access the internal network via this method. If you want the user to be able to run PPP, SLIP, or EXEC tasks, you need to use Router(config-if)#async mode interactive. If you are configuring the async interface for user access only, then you should use the async mode dedicated command. If you need to connect to configure the router, use the async mode interactive command.

graphics/note_icon.gif

Although you have the option of setting up either PPP or SLIP, SLIP isn't a protocol that is being rolled out en masse. You need to know that you can implement SLIP, but most of the knowledge required for the exam is about PPP.


Chances are that the user is using IP so we discuss those commands necessary for addressing. The Router(config-if)# peer default ip address <IP address | pool pool-name | dhcp> command specifies how the user gets an address generated by one of your devices. The pool name option also requires the command Router(config)#ip local pool pool-name starting-address ending-address. If you want the user to specify an address, use Router(config-if)#async dynamic address. You use this command when the user has a static address and the called interface must be in interactive mode. Finally, you can also use IP unnumbered. Table 4.2 explains the commands line-by-line.

Table 4.2. PPP Configuration Commands

Command

Explanation

Router(config-if)#encapsulation <ppp | slip>

This command sets PPP or SLIP encapsulation on the interface. Remember, SLIP is IP only.

Router(config-if)#async mode dedicated

This command places the interface into dedicated SLIP or PPP access mode with no EXEC capability.

Router(config-if)#async mode interactive

This mode is required for either SLIP or PPP to access EXEC on the router.

Router(config-if)#peer default ip address <address | pool pool-name | dhcp >

This command says what IP address the client will receive. You can specify an address or a pool of addresses or that the client should use DHCP. Using DHCP might require additional DCHP configuration, depending on your network.

Router(config-if)#async dynamic address

This command allows the client to specify his own IP address with a static configuration. The dial-in interface must be in interactive mode for it to work.

Router(config-if)#ip unnumbered interface-type interface-number

Because an unnumbered interface does not have an IP address, it uses the address of the specified interface. Use only on point-to-point connections.

Router(config)#ip local pool pool-name starting-address ending-address

To use a pool of addresses, you actually have to configure a pool. The command ip local pool XYZCorp 10.1.1.1 10.1.1.254 establishes a set of 254 addresses for dial-up use.

Router(config)#ip address-pool dhcp-proxy client

This command tells the router to act as a proxy client for DHCP addressing. For it to work, it's helpful to also have the command Router(config)#ip dhcp-server <ip-address | name> because otherwise, the router doesn't know where to get an address.

Configuring CHAP

Once PPP and addressing are established, it only takes a couple more lines to set up CHAP authentication on two routers. Table 4.3 is a side-by-side comparison. It omits the other configuration information to avoid confusing the issue. Each configuration starts in global configuration mode, with each line explained in the bullet list after the configuration.

Table 4.3. CHAP Configuration Comparision

Router "One"

Router "Two"

Hostname One

Hostname Two

Username Two password Cisco

Username One password Cisco

Interface serial1

Interface serial1

Encapsulation ppp

PPP authentication CHAP

Encapsulation ppp

PP authentication CHAP

  • The first line tells the router what its name is. It is the username that actually gets sent when authenticating.

  • The second line says, "When authenticating with this device, use this password." So when device One wants to call device Two, it sends its hostname and the listed password. Both the username and password are case sensitive.

  • The third line just tells the router we are about to configure interface Serial 1.

  • The fourth line tells the router to use PPP encapsulation on this interface.

  • The last line tells the router to use CHAP authentication.

Protecting Configuration Contents

Hiding the password as it crosses the circuit is only half the battle; you need to make sure that the password can't be viewed by anyone who isn't supposed to view it. If you're sitting at a console, logged into a router, and viewing the contents of the configuration file when someone walks up behind you, there is a chance that person could view username and password pairs.

Passwords are not scrambled by default, but it is easy to make them scrambled when viewing the configuration file. You can use the command service router-encryption to scramble passwords associated with Telnet, console, usernames in all forms, and so on.

Enabling this command is a one-way process for a password. If there is a password on the system when the command is enabled, the password gets scrambled. If the command is reversed, the scrambled passwords do not become clear text again, but any new passwords remain in clear-text mode in the configuration file. It is not necessary to enable this command to use CHAP. The service password-encryption command only protects passwords as they are stored; CHAP only protects passwords as they cross the WAN.



CCNP BCRAN Remote Access Exam Cram 2 (Exam Cram 640 - XXX)
CCNP BCRAN Remote Access Exam Cram 2 (Exam Cram 640 - XXX)
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net