background image
Point-to-Point Protocol (PPP)
513
hostname of the router if it is not already set. Then set the username and
password for the remote router connecting to your router.
Router#config t
Enter configuration commands,
one per line. End with CNTL/Z.
Router(config)#hostname RouterA
RouterA(config)#username todd password cisco
When using the hostname command, remember that the username is the
hostname of the remote router connecting to your router. It is case sensitive.
Also, the password on both routers must be the same. It is a plain-text pass-
word and can be seen with a show run command. You can configure the
password to be encrypted by using the command service password-
encryption
. You must have a username and password configured for each
remote system you are going to connect to. The remote routers must also be
configured with usernames and passwords.
After you set the hostname, usernames, and passwords, choose the
authentication type, either CHAP or PAP.
RouterA#config t
Enter configuration commands,
one per line. End with CNTL/Z.
RouterA(config)#int s0
RouterA(config-if)#ppp authentication chap
RouterA(config-if)#ppp authentication pap
RouterA(config-if)#^Z
RouterA#
If both methods are configured, as shown in the preceding configuration
example, then only the first method is used during link negotiation. If the
first method fails, then the second method will be used.
Verifying PPP Encapsulation
Now that we have PPP encapsulation enabled, let's take a look to verify
that it's up and running. You can verify the configuration with the show
interface
command:
RouterA#show int s0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 172.16.20.1/24
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com