Basic PPP Configuration
Basic PPP Configuration
Basic PPP Configuration
Addressing Table
Interface
IP Address
Subnet Mask
Default
Gateway
Fa0/1
192.168.10.1
255.255.255.0
N/A
S0/0/0
10.1.1.1
255.255.255.252
N/A
Lo0
209.165.200.225
255.255.255.224
N/A
S0/0/0
10.1.1.2
255.255.255.252
N/A
S0/0/1
10.2.2.1
255.255.255.252
N/A
Fa0/1
192.168.30.1
255.255.255.0
N/A
S0/0/1
10.2.2.2
255.255.255.252
N/A
PC1
NIC
192.168.10.10
255.255.255.0
192.168.10.1
PC3
NIC
192.168.30.10
255.255.255.0
192.168.30.1
Device
R1
R2
R3
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 1 of 16
CCNA Exploration
Accessing the WAN: PPP
Learning Objectives
Upon completion of this lab, you will be able to:
Erase the startup configuration and reload a router to the default state.
Learn about the debug ppp negotiation and debug ppp packet commands.
Learn how to change the encapsulation on the serial interfaces from PPP to HDLC.
Scenario
In this lab, you will learn how to configure PPP encapsulation on serial links using the network
shown in the topology diagram. You will also learn how to restore serial links to their default
HDLC encapsulation. Pay special attention to what the output of the router looks like when you
intentionally break PPP encapsulation. This will assist you in the Troubleshooting lab associated
with this chapter. Finally, you will configure PPP PAP authentication and PPP CHAP
authentication.
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 2 of 16
CCNA Exploration
Accessing the WAN: PPP
R1#ping 192.168.30.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.30.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
R1#
R2#show ip route
<output omitted>
O
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 3 of 16
CCNA Exploration
Accessing the WAN: PPP
O
C
C
C
R2#ping 192.168.30.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.30.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/16 ms
R2#ping 192.168.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/16 ms
R2#
R3#show ip route
<output omitted>
C
O
O
C
O
R3#ping 209.165.200.225
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 209.165.200.225, timeout is 2
seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/16 ms
R3#ping 192.168.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
R3#
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 4 of 16
CCNA Exploration
Accessing the WAN: PPP
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 5 of 16
CCNA Exploration
Accessing the WAN: PPP
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 6 of 16
CCNA Exploration
Accessing the WAN: PPP
R2(config-if)#
*Aug 17 19:06:48.860: Se0/0/0
(0x050663BD388C)
R2(config-if)#
*Aug 17 19:06:50.864: Se0/0/0
*Aug 17 19:06:50.864: Se0/0/0
*Aug 17 19:06:50.864: Se0/0/0
(0x050663BD388C)
*Aug 17 19:06:50.868: Se0/0/0
link[ppp]
*Aug 17 19:06:50.868: Se0/0/0
*Aug 17 19:06:50.868: Se0/0/0
(0x050663BDB9A8)
*Aug 17 19:06:50.868: Se0/0/0
*Aug 17 19:06:50.868: Se0/0/0
(0x050663BDB9A8)
*Aug 17 19:06:50.868: Se0/0/0
link[ppp]
*Aug 17 19:06:50.868: Se0/0/0
*Aug 17 19:06:50.868: Se0/0/0
(0x050663BD388C)
*Aug 17 19:06:50.868: Se0/0/0
*Aug 17 19:06:50.872: Se0/0/0
Forward
*Aug 17 19:06:50.872: Se0/0/0
*Aug 17 19:06:50.872: Se0/0/0
*Aug 17 19:06:50.872: Se0/0/0
*Aug 17 19:06:50.872: Se0/0/0
(0x03060A010102)
*Aug 17 19:06:50.872: Se0/0/0
*Aug 17 19:06:50.872: Se0/0/0
*Aug 17 19:06:50.876: Se0/0/0
link[ip]
*Aug 17 19:06:50.876: Se0/0/0
*Aug 17 19:06:50.876: Se0/0/0
(0x03060A010101)
*Aug 17 19:06:50.876: Se0/0/0
link[cdp]
*Aug 17 19:06:50.876: Se0/0/0
*Aug 17 19:06:50.876: Se0/0/0
(0x03060A010101)
*Aug 17 19:06:50.876: Se0/0/0
*Aug 17 19:06:50.876: Se0/0/0
*Aug 17 19:06:50.876: Se0/0/0
link[ip]
*Aug 17 19:06:50.876: Se0/0/0
R2(config-if)#nt] id 1 len 10
*Aug 17 19:06:50.876: Se0/0/0
(0x03060A010102)
*Aug 17 19:06:50.876: Se0/0/0
*Aug 17 19:06:50.876: Se0/0/0
link[cdp]
*Aug 17 19:06:50.876: Se0/0/0
*Aug 17 19:06:50.880: Se0/0/0
*Aug 17 19:06:50.880: Se0/0/0
*Aug 17 19:06:50.880: Se0/0/0
LCP:
MagicNumber 0x63BD388C
Address 10.1.1.2
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 7 of 16
CCNA Exploration
Accessing the WAN: PPP
*Aug 17 19:06:50.880: Se0/0/0 IPCP: Add link info for cef entry
10.1.1.1
*Aug 17 19:06:50.884: Se0/0/0 PPP: I pkt type 0x0021, datagramsize 80
link[ip]
*Aug 17 19:06:51.848: %LINEPROTO-5-UPDOWN: Line protocol on Interface
Serial0/0/0, changed state to up
R2(config-if)#
*Aug 17 19:06:51.888: Se0/0/0 LCP-FS: I ECHOREQ [Open] id 1 len 12
magic 0x63BDB9A8
*Aug 17 19:06:51.888: Se0/0/0 LCP-FS: O ECHOREP [Open] id 1 len 12
magic 0x63BD388C
<output omitted>
*Aug 17 19:07:00.936: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.10.1 on
Serial0/0/0 from LOADING to FULL, Loading Done
What happens when one end of the serial link is encapsulated with PPP and the other
end of the link is encapsulated with HDLC?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
What steps does PPP go through when the other end of the serial link on R2 is
configured with PPP encapsulation?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
What happens when PPP encapsulation is configured on each end of the serial link?
_____________________________________________________________________
_____________________________________________________________________
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 8 of 16
CCNA Exploration
Accessing the WAN: PPP
Step 6: Verify that PPP is now the encapsulation on the serial interfaces.
R1#show interface serial0/0/0
Serial0/0/0 is up, line protocol is up
Hardware is GT96K Serial
Internet address is 10.1.1.1/30
MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Open
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 9 of 16
CCNA Exploration
Accessing the WAN: PPP
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 10 of 16
CCNA Exploration
Accessing the WAN: PPP
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 11 of 16
CCNA Exploration
Accessing the WAN: PPP
What happens when PPP PAP authentication is only configured on one end of the
serial link?
_____________________________________________________________________
_____________________________________________________________________
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 12 of 16
CCNA Exploration
Accessing the WAN: PPP
Step 2: Configure PPP CHAP authentication on the serial link between R2 and R3.
In PAP authentication, the password is not encrypted. While this is certainly better than no
authentication at all, it is still highly preferable to encrypt the password that is being sent across
the link. CHAP encrypts the password.
R2(config)#username R3 password cisco
R2(config)#int s0/0/1
R2(config-if)#ppp authentication chap
R2(config-if)#
*Aug 23 18:06:00.935: %LINEPROTO-5-UPDOWN: Line protocol on Interface
Serial0/0/1, changed state to down
R2(config-if)#
*Aug 23 18:06:01.947: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.30.1 on
Serial0/0/1 from FULL to DOWN, Neighbor Down: Interface down or
detached
R2(config-if)#
R3(config)#username R2 password cisco
*Aug 23 18:07:13.074: %LINEPROTO-5-UPDOWN: Line protocol on Interface
Serial0/0/1, changed state to up
R3(config)#int s0/0/1
R3(config-if)#
*Aug 23 18:07:22.174: %OSPF-5-ADJCHG: Process 1, Nbr 209.165.200.225 on
Serial0/0/1 from LOADING to FULL, Loading Done
R3(config-if)#ppp authentication chap
R3(config-if)#
Notice that the line protocol on interface serial 0/0/1 changes state to UP even before
the interface is configured for CHAP authentication. Can you guess why this is the
case?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
Step 3: Review the debug output.
To better understand the CHAP process, view the output of the debug ppp authentication
command on R2 and R3. Then shut down interface serial 0/0/1 on R2, and issue the no
shutdown command on interface serial 0/0/1 on R2.
R2#debug ppp authentication
PPP authentication debugging is on
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int s0/0/1
R2(config-if)#shutdown
R2(config-if)#
*Aug 23 18:19:21.059: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.30.1 on
Serial0/0/1 from FULL to DOWN, Neighbor Down: Interface down or
detached
R2(config-if)#
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 13 of 16
CCNA Exploration
Accessing the WAN: PPP
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 14 of 16
CCNA Exploration
Accessing the WAN: PPP
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 15 of 16
CCNA Exploration
Accessing the WAN: PPP
After reloading, what is the status of the line protocol on serial 0/0/1?
_____________________________________________________________________
_____________________________________________________________________
Step 4: Restore PPP CHAP authentication by changing the password on R3.
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#username R2 password cisco
R3(config)#
*Aug 24 16:11:10.679: %LINEPROTO-5-UPDOWN: Line protocol on Interface
Serial0/0/1, changed state to up
R3(config)#
*Aug 24 16:11:19.739: %OSPF-5-ADJCHG: Process 1, Nbr 209.165.200.225 on
Serial0/0/1 from LOADING to FULL, Loading Done
R3(config)#
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 16 of 16