Upload
httpheiserzcom
View
248
Download
0
Embed Size (px)
Citation preview
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 1/81
Chapter 2 – PPP
CCNA Ex loration 4.0
Please purchase apersonal license.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 2/81
Introduction
Hc vin mng Bach Khoa - Website: www.bkacad.com 2
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 3/81
Serial Point-to-Point Links
Hc vin mng Bach Khoa - Website: www.bkacad.com 3
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 4/81
Introducing Serial Communications
Hc vin mng Bach Khoa - Website: www.bkacad.com 4
• Computers make use of relatively short parallel connections betweeninterior components, but use a serial bus to convert signals for mostexternal communications.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 5/81
Introducing Serial Communications
Hc vin mng Bach Khoa - Website: www.bkacad.com 5
• In a parallel connection, it is wrong to assume that the 8 bits leaving the senderat the same time arrive at the receiver at the same time. Rather, some of thebits get there later than others. This is known as clock skew.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 6/81
Introducing Serial Communications
Hc vin mng Bach Khoa - Website: www.bkacad.com 6
• Parallel wires are physically bundled in a parallel cable, and signals can imprintthemselves on each other. The possibility of crosstalk across the wiresrequires more processing, especially at higher frequencies.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 7/81
Introducing Serial Communications
Hc vin mng Bach Khoa - Website: www.bkacad.com 7
• Serial Communication Standards – All long-haul communications and most computer networks use serial connections,
because the cost of cable and synchronization difficulties make parallel connectionsimpractical.
– The most significant advantage is simpler wiring. Also, serial cables can be longerthan parallel cables, because there is much less interaction (crosstalk) among theconductors in the cable.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 9/81
TDM
Hc vin mng Bach Khoa - Website: www.bkacad.com 9
• Time Division Multiplexing – Bell Laboratories invented time-division multiplexing (TDM) to maximize
the amount of voice traffic carried over a medium.
– TDM divides the bandwidth of a single link into separate channels or timeslots.
– TDM transmits two or more channels over the same link by allocating adifferent time interval (time slot) for the transmission of each channel.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 10/81
TDM
Hc vin mng Bach Khoa - Website: www.bkacad.com 10
• Statistical Time Division Multiplexing (STDM) – STDM uses a variable time slot length allowing channels to compete for
any free slot space. It employs a buffer memory that temporarily stores thedata during periods of peak traffic.
– STDM does not waste high-speed line time with inactive channels usingthis scheme.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 12/81
TDM Examples
Hc vin mng Bach Khoa - Website: www.bkacad.com 12
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 13/81
Demarcation Point
Hc vin mng Bach Khoa - Website: www.bkacad.com 13
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 14/81
DTE-DCE
Hc vin mng Bach Khoa - Website: www.bkacad.com 14
• The CPE, which is generally a router, is the DTE. The DTE could alsobe a terminal, computer, printer, or fax machine if they connect directlyto the service provider network.
• The DCE, commonly a modem or CSU/DSU, is the device used toconvert the user data from the DTE into a form acceptable to the WANservice provider transmission link. This signal is received at the remoteDCE, which decodes the signal back into a sequence of bits. Theremote DCE then signals this sequence to the remote DTE.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 15/81
Cable Standards
Hc vin mng Bach Khoa - Website: www.bkacad.com 15
• The DTE/DCE interface for a particular standard defines the following
specifications: – Mechanical/physical - Number of pins and connector type – Electrical - Defines voltage levels for 0 and 1 – Functional - Specifies the functions that are performed by assigning
meanings to each of the signaling lines in the interface – Procedural - Specifies the sequence of events for transmitting data
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 16/81
Cable Standards
Hc vin mng Bach Khoa - Website: www.bkacad.com 16
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 17/81
Cable Standards
Hc vin mng Bach Khoa - Website: www.bkacad.com 17
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 18/81
Parallel to Serial Conversion
Hc vin mng Bach Khoa - Website: www.bkacad.com 18
• Your PC also has a Universal Asynchronous Receiver/Transmitter (UART) chip
on the motherboard. Since the data in your PC flows along parallel circuits, theUART chip converts the groups of bits in parallel to a serial stream of bits.• To work faster, a UART chip has buffers so it can cache data coming from the
system bus while it processes data going out the serial port.
• The UART is the DTE agent of your PC and communicates with the modem orother serial device, which, in accordance with the RS-232C standard, has a
complementary interface called the DCE interface.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 19/81
HDLC Encapsulation
Hc vin mng Bach Khoa - Website: www.bkacad.com 19
• HDLC - The default encapsulation type on point-to-point connections,dedicated links, and circuit-switched connections when the link usestwo Cisco devices. HDLC is now the basis for synchronous PPP usedby many servers to connect to a WAN, most commonly the Internet.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 20/81
HDLC Encapsulation
Hc vin mng Bach Khoa - Website: www.bkacad.com 20
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 21/81
Configuring HDLC Encapsulation
Hc vin mng Bach Khoa - Website: www.bkacad.com 21
• Cisco HDLC is the default encapsulation method used by Ciscodevices on synchronous serial lines.• You use Cisco HDLC as a point-to-point protocol on leased lines
between two Cisco devices. If you are connecting to a non-Ciscodevice, use synchronous PPP.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 22/81
Troubleshooting a Serial Interface
Hc vin mng Bach Khoa - Website: www.bkacad.com 22
• You can identify any of the following five possible problem states in the interface statusline:
1. Serial x is down, line protocol is down2. Serial x is up, line protocol is down3. Serial x is up, line protocol is up (looped)4. Serial x is up, line protocol is down (disabled)
5. Serial x is administratively down, line protocol is down
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 23/81
Troubleshooting a Serial Interface
Hc vin mng Bach Khoa - Website: www.bkacad.com 23
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 24/81
Troubleshooting a Serial Interface
Hc vin mng Bach Khoa - Website: www.bkacad.com 24
• The command syntax varies, depending on the platform. Cisco 7000series routers use a cBus controller card for connecting serial links.With these routers, use the show controllers cbus command.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 25/81
Troubleshooting a Serial Interface
Hc vin mng Bach Khoa - Website: www.bkacad.com 25
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 26/81
Troubleshooting a Serial Interface
Hc vin mng Bach Khoa - Website: www.bkacad.com 26
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 27/81
Troubleshooting a Serial Interface
Hc vin mng Bach Khoa - Website: www.bkacad.com 27
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 28/81
Troubleshooting a Serial Interface
Hc vin mng Bach Khoa - Website: www.bkacad.com 28
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 29/81
Troubleshooting a Serial Interface
• Activity 2.1.7.3
Hc vin mng Bach Khoa - Website: www.bkacad.com 29
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 30/81
Troubleshooting a Serial Interface
• Activity 2.1.7.3
Hc vin mng Bach Khoa - Website: www.bkacad.com 30
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 31/81
Troubleshooting a Serial Interface
• Activity 2.1.7.3
Hc vin mng Bach Khoa - Website: www.bkacad.com 31
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 32/81
Troubleshooting a Serial Interface
• Activity 2.1.7.3
Hc vin mng Bach Khoa - Website: www.bkacad.com 32
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 33/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 33
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 34/81
Introducing PPP
• What is PPP? – Cisco HDLC is the default serial
encapsulation method when youconnect two Cisco routers.
– When you need to connect to a
non-Cisco router, you should usePPP encapsulation. – PPP establishes a direct
connection using serial cables,phone lines, trunk lines, cellulartele hones s ecialized radio links
Hc vin mng Bach Khoa - Website: www.bkacad.com 34
or fiber-optic links.
– There are many features notavailable in HDLC:
• The link quality managementfeature monitors the quality ofthe link. If too many errors aredetected, PPP takes the link
down.• PPP supports PAP and CHAPauthentication. This feature isexplained and practiced in alater section.
PPP contains 3 main components:
1. HDLC protocol for encapsulatingdatagrams over point-to-point links.
2. Extensible Link Control Protocol(LCP) to establish, configure, and testthe data link connection.
3. Family of Network Control Protocols(NCPs) for establishing andconfiguring different network layer
protocols.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 35/81
PPP Layered Architecture
Hc vin mng Bach Khoa - Website: www.bkacad.com 35
• At the physical layer, you can configure PPP on a range of interfaces,
including: – Asynchronous serial – Synchronous serial – HSSI – ISDN
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 36/81
PPP Architecture - Link Control Protocol Layer
Hc vin mng Bach Khoa - Website: www.bkacad.com 36
• The LCP provides automatic configuration of the interfaces at each end, including:
– Handling varying limits on packet size – Detecting common misconfiguration errors – Terminating the link – Determining when a link is functioning properly or when it is failing
• PPP also uses the LCP to agree automatically on encapsulation formats (authentication,compression, error detection) as soon as the link is established.
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 37/81
PPP Architecture - Network Control Protocol Layer
Hc vin mng Bach Khoa - Website: www.bkacad.com 37
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 38/81
PPP Frame Structure
Hc vin mng Bach Khoa - Website: www.bkacad.com 38
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 39/81
Establishing a PPP Session
Hc vin mng Bach Khoa - Website: www.bkacad.com 39
• Phase 1: Link establishment and configuration negotiation
• Phase 2: Link quality determination (optional)
• Phase 3: Network layer protocol configuration negotiation
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 40/81
Extra: PPP Session Establishment (Detail)
Hc vin mng Bach Khoa - Website: www.bkacad.com 40
1. Link establishment - (LCPs)
2. Authentication - Optional (LCPs)
3. Link quality determination - Optional (LCPs)4. Network layer protocol configuration (NCPs)
5. Link termination (LCPs)
C
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 41/81
Establishing a Link with LCP
Hc vin mng Bach Khoa - Website: www.bkacad.com 41
• LCP operation uses three classes of LCP frames to accomplish the work of each of theLCP phases: – Link-establishment frames establish and configure a link (Configure-Request,
Configure-Ack, Configure-Nak, and Configure-Reject) – Link-maintenance frames manage and debug a link (Code-Reject, Protocol-Reject,
Echo-Request, Echo-Reply, and Discard-Request)
– Link-termination frames terminate a link (Terminate-Request and Terminate-Ack)
E bli hi Li k i h LCP
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 42/81
Establishing a Link with LCP
Hc vin mng Bach Khoa - Website: www.bkacad.com 42
LCP P k t
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 43/81
LCP Packet
Hc vin mng Bach Khoa - Website: www.bkacad.com 43
LCP P k t
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 44/81
LCP Packet
Hc vin mng Bach Khoa - Website: www.bkacad.com 44
PPP Configuration Options
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 45/81
PPP Configuration Options
Hc vin mng Bach Khoa - Website: www.bkacad.com 45
• PPP can be configured to support various functions including:1. Authentication using either PAP or CHAP2. Compression using either Stacker or Predictor3. Multilink which combines two or more channels to increase the
WAN bandwidth
PPP Configuration Options
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 46/81
PPP Configuration Options
Hc vin mng Bach Khoa - Website: www.bkacad.com 46
NCP Explained
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 47/81
NCP Explained
Hc vin mng Bach Khoa - Website: www.bkacad.com 47
NCP Explained
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 48/81
NCP Explained
• Activity 2.2.6.2
Hc vin mng Bach Khoa - Website: www.bkacad.com 48
NCP Explained
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 49/81
NCP Explained
• Activity 2.2.6.2
Hc vin mng Bach Khoa - Website: www.bkacad.com 49
NCP Explained
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 50/81
NCP Explained
• Activity 2.2.6.2
Hc vin mng Bach Khoa - Website: www.bkacad.com 50
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 51/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 51
PPP Configuration Options
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 52/81
PPP Configuration Options
Hc vin mng Bach Khoa - Website: www.bkacad.com 52
• PPP may include the following LCP options: – Authentication – Compression – Error Detection – Multilink – PPP Callback
PPP Configuration Commands
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 53/81
PPP Configuration Commands
Hc vin mng Bach Khoa - Website: www.bkacad.com 53
PPP Configuration Commands
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 54/81
PPP Configuration Commands
• Example 1: Enabling PPP on an Interface – R3#configure terminal – R3(config)#interface serial 0/0
– R3(config-if)#encapsulation ppp• Example 2: Compression – R3(config)#interface serial 0/0 – R3(config-if)#encapsulation ppp
Hc vin mng Bach Khoa - Website: www.bkacad.com 54
– R3(config-if)#compress [predictor | stac]
• Example 3: Link Quality Monitoring – R3(config)#interface serial 0/0 – R3(config-if)#encapsulation ppp – R3(config-if)#ppp quality 80
• Example 4: Load Balancing Across Links – Router(config)#interface serial 0/0 – Router(config-if)#encapsulation ppp – Router(config-if)#ppp multilink
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 55/81
Extra: More Information on Compression
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 56/81
Extra: More Information on Compression
Important notes on compression:
– The highest compression ratio is usually reached with highly compressible
text files.
– Already compressed files such as JPEG graphics or MPEG files, or filesthat were compressed with software such as PKZIP or StuffIt, are onlycompressed 1:1, or even less.
–
Hc vin mng Bach Khoa - Website: www.bkacad.com 56
transferring the data without compression.
– Compressing data can cause performance degradation because it issoftware, not hardware compression.
– Compression can be CPU or memory intensive.
– Predictor is more memory intensive and less CPU intensive, whereasStacker and MPPC are more CPU intensive and less memory intensive.
Memory intensive means that an extra memory allowance is required.
Extra: Enable Link Quality Monitoring (LQM)
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 57/81
y g ( )
• Link Quality Monitoring (LQM) is available on all serial interfaces runningPPP. LQM will monitor the link quality, and if the quality drops below aconfigured percentage, the router shuts down the link.
• The percentages are calculated for both the incoming and outgoingdirections. – The outgoing quality is calculated by comparing the total number of
packets and bytes sent with the total number of packets and bytes
Hc vin mng Bach Khoa - Website: www.bkacad.com 57
.
– The incoming quality is calculated by comparing the total number ofpackets and bytes received with the total number of packets andbytes sent by the destination peer.
• When LQM is enabled, Link Quality Reports (LQRs) are sent, in place ofkeepalives, every keepalive period. All incoming keepalives areresponded to properly. If LQM is not configured, keepalives are sentevery keepalive period and all incoming LQRs are responded to with anLQR.
• LQR is specified in RFC 1989, PPP Link Quality Monitoring , by WilliamA. Simpson of Computer Systems Consulting Services.
Verifying a Serial PPP Encapsulation Configuration
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 58/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 58
Troubleshooting PPP Encapsulation
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 59/81
g p
Hc vin mng Bach Khoa - Website: www.bkacad.com 59
Troubleshooting PPP Encapsulation
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 60/81
g p
Hc vin mng Bach Khoa - Website: www.bkacad.com 60
Troubleshooting PPP Encapsulation
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 61/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 61
Troubleshooting PPP Encapsulation
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 62/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 62
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 63/81
Configuring PPP
Hc vin mng Bach Khoa - Website: www.bkacad.com 63
with Authentication
PPP Authentication Protocols
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 64/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 64
• The authentication phase of a PPP session is optional. If used, you canauthenticate the peer after the LCP establishes the link and choose theauthentication protocol. If it is used, authentication takes place beforethe network layer protocol configuration phase begins.
Password Authentication Protocol (PAP)
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 65/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 65
Challenge Handshake Authentication Protocol (CHAP)
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 66/81
• Initiating CHAP
Hc vin mng Bach Khoa - Website: www.bkacad.com 66
• Responding CHAP
•• Completing CHAP
PPP Encapsulation and Authentication Process
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 67/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 67
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 68/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 68
Configuring PPP with Authentication
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 69/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 69
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 70/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 70
Example: Configuring PAP
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 71/81
172.25.3.0/24
Serial .1/S0.2/S0
DCEDTE
hostname SantaCruzusername HQ password HQpass
interface Serial0
ip address 172.25.3.2 255.255.255.0
hostname HQusername SantaCruz password SantaCruzpass
interface Serial0
ip address 172.25.3.1 255.255.255.0
Hc vin mng Bach Khoa - Website: www.bkacad.com 71
Notes:
- sent-username and password must match remote username and password.
- Passwords are case-sensitive, but usernames are not.
- Hostnames are not involved.
encapsulation ppp
ppp authentication pap
ppp pap sent-username SantaCruz password SantaCruzpass
encapsulation ppp
ppp authentication pap
ppp pap sent-username HQ password HQpass
Extra: One-way PAP authentication
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 72/81
(config)# hostname RA
(config)# interface serial 0
encapsulation ppp
Hc vin mng Bach Khoa - Website: www.bkacad.com 72
ppp pap sent-username RA-X password CISCO-X
(config)# hostname RB
(config)# username RA-X password CISCO-X
(config)# interface serial 0
encapsulation ppp
ppp authentication pap
Extra: Two-way PAP authentication
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 73/81
(config)# hostname RA
(config)# username RB-X password CISCO-B
(config)# interface serial 0
encapsulation ppp
Hc vin mng Bach Khoa - Website: www.bkacad.com 73
ppp authentication pap
ppp pap sent-username RA-X password CISCO-A
(config)# hostname RB
(config)# username RA-X password CISCO-A
(config)# interface serial 0
encapsulation ppp
ppp authentication pap
ppp pap sent-username RB-X password CISCO-B
Example: Configuring CHAP
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 74/81
172.25.3.0/24
Serial .1/S0.2/S0
DCEDTE
hostname SantaCruzusername HQ password boardwalk
ppp chap hostname SantaCruz (optional)
interface Serial0
hostname HQusername SantaCruz password boardwalk
ppp chap hostname HQ (optional)
interface Serial0
Hc vin mng Bach Khoa - Website: www.bkacad.com 74
Notes:
- Hostnames are involved unless the ppp chap hostname command is used, and
must match remote router’s username command (not case-sensitive).
- Passwords are case-sensitive and must match
ip address 172.25.3.2 255.255.255.0
encapsulation ppp
ppp authentication chap
ip address 172.25.3.1 255.255.255.0
encapsulation ppp
ppp authentication chap
Extra: One-way CHAP authentication
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 75/81
(config)# hostname RA-X
(config)# username RB password CISCO(config)# interface serial 0
encapsulation pppOR
Hc vin mng Bach Khoa - Website: www.bkacad.com 75
(config)# hostname RA
(config)# interface serial 0encapsulation pppppp chap hostname RA-Xppp chap password CISCO
(config)# hostname RB(config)# username RA-X password CISCO(config)# interface serial 0
encapsulation pppppp authentication chap
Troubleshooting a PPP Configuration with Authentication
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 76/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 76
• In the last line, the code = 4 means a failure has occurred. Other code values are as
follows: – 1 = Challenge – 2 = Response – 3 = Success – 4 = Failure
Extra: Configuring PPP Multilink (MLP)
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 77/81
Router(config)#interface serial 0/0
Router(config-if)#encapsulation ppp
Router(config-if)# ppp multilink
Hc vin mng Bach Khoa - Website: www.bkacad.com 77
• In some environments, it may be necessary to bundle multiple seriallinks to act as single link with aggregated bandwidth.
• Multilink PPP provides load balancing over the router interfaces thatPPP uses.
Extra: Configuring PPP Multilink
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 78/81
hostname SantaCruz
multilink Virtual-Template 1
interface loopback 0
ip address 192.168.1.1 255.255.255.0
hostname HQ
multilink Virtual-Template 1
interface loopback 0
ip address 192.168.1.2 255.255.255.0
Hc vin mng Bach Khoa - Website: www.bkacad.com 78
interface Virtual-Template1
ip unnumbered loopback0 ppp multilink
interface Serial0
no ip address
encapsulation ppp
ppp multilink
interface Serial1
no ip address
encapsulation ppp
ppp multilink
interface Serial2
no ip address
encapsulation ppp
ppp multilink
interface Virtual-Template1
ip unnumbered loopback0 ppp multilink
interface Serial0
no ip address
encapsulation ppp
ppp multilink
interface Serial1
no ip address
encapsulation ppp
ppp multilink
interface Serial2
no ip address
encapsulation ppp
ppp multilink
Extra: Configuring PPP Multilink
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 79/81
(config)# interface Multilink 1ip address 1.2.3.4 255.255.255.0
Hc vin mng Bach Khoa - Website: www.bkacad.com 79
(config)# interface Serial 0/0
no ip addressencapsulation pppppp multilinkppp multilink group 1
(config)# interface Serial 0/1
no ip addressencapsulation ppp
ppp multilinkppp multilink group 1
Labs
8/3/2019 CCNA Exp4 - Chapter02 - PPP
http://slidepdf.com/reader/full/ccna-exp4-chapter02-ppp 80/81
Hc vin mng Bach Khoa - Website: www.bkacad.com 80
Summary