Command Reference Guide PPP Interface Configuration Command Set
61200510L1-35E Copyright © 2005 ADTRAN 1098
Configuring CHAP Example 5: Using the ppp chap hos tname command as an alternate solution.
On the local router (hostn ame Local):
Local(config-ppp 1)#ppp authentication chap
Local(config-ppp 1)#username farend password far
Local(config-ppp 1)#ppp chap hostname nearend
Local(config-ppp 1)#ppp chap password near
On the peer (hostname Peer):
Peer(config-ppp 1)#ppp authentication chap
Peer(config-ppp 1)#username nearend password near
Peer(config-ppp 1)#ppp chap hostname farend
Peer(config-ppp 1)#ppp chap password far
Notice the local router is expecting username "farend" even though the peer router's hostname is "Peer."
Therefore the peer router can use the ppp chap hostname command to send the correct name on the
challenge.

Notice this example has both ends using different sets of passwords.