chapter 16 - hdlc & ppp
TRANSCRIPT
-
8/10/2019 Chapter 16 - HDLC & PPP
1/16
2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-1
LAN Extension into a WAN
Establishing a
Point-to-Point WANConnection withPPP
-
8/10/2019 Chapter 16 - HDLC & PPP
2/16
2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-2
Typical WAN Encapsulation Protocols
-
8/10/2019 Chapter 16 - HDLC & PPP
3/16
2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-3
HDLC and Cisco HDLC
-
8/10/2019 Chapter 16 - HDLC & PPP
4/16
2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-4
RouterX(config-if)# encapsulation hdlc
Enables Cisco HDLC encapsulation
Uses the default encapsulation on
synchronous serial interfaces
Configuring HDLC Encapsulation
-
8/10/2019 Chapter 16 - HDLC & PPP
5/16
2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-5
An Overview of PPP
PPP can carry packets from several protocol suites using NCP.
PPP controls the setup of several link options using LCP.
-
8/10/2019 Chapter 16 - HDLC & PPP
6/16
2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-6
PPP Session Establishment
PPP session establishment:
1. Link establishment phase2. Authentication phase (optional)
Two PPP authentication protocols: PAP and CHAP
3. Network layer protocol phase
-
8/10/2019 Chapter 16 - HDLC & PPP
7/16 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-7
PPP Authentication Protocols: PAP
Passwords sent in plaintext
Peer in control of attempts
-
8/10/2019 Chapter 16 - HDLC & PPP
8/16
-
8/10/2019 Chapter 16 - HDLC & PPP
9/16 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-9
Configuring PPP and AuthenticationOverview
-
8/10/2019 Chapter 16 - HDLC & PPP
10/16 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-10
Configuring PPP and Authentication
RouterX(config-if)# encapsulation ppp
Enables PPP encapsulation
RouterX(config)# hostname name
Assigns a hostname to your router
RouterX(config)# username namepasswordpassword
Identifies the username and password of remote router
RouterX(config-if)# ppp authentication
{chap | chap pap | pap chap | pap}
Enables PAP or CHAP authentication
-
8/10/2019 Chapter 16 - HDLC & PPP
11/16 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-11
PPP and CHAP Configuration Example
hostname RouterXusername RouterY password sameone!int serial 0
ip address 10.0.1.1 255.255.255.0encapsulation pppppp authentication chap
hostname RouterYusername RouterX password sameone!int serial 0
ip address 10.0.1.2 255.255.255.0encapsulation pppppp authentication chap
-
8/10/2019 Chapter 16 - HDLC & PPP
12/16 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-12
Verifying the PPP EncapsulationConfiguration
RouterX# show interface s0Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 10.140.1.2/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation PPP, loopback not set, keepalive set (10 sec)
LCP Open
Open: IPCP, CDPCPLast input 00:00:05, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
38021 packets input, 5656110 bytes, 0 no buffer
Received 23488 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
38097 packets output, 2135697 bytes, 0 underruns
0 output errors, 0 collisions, 6045 interface resets
0 output buffer failures, 0 output buffers swapped out
482 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
-
8/10/2019 Chapter 16 - HDLC & PPP
13/16 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-13
Verifying PPP Authentication
RouterX# debug ppp authentication4d20h: %LINK-3-UPDOWN: Interface Serial0, changed state to up4d20h: Se0 PPP: Treating connection as a dedicated line4d20h: Se0 PPP: Phase is AUTHENTICATING, by both4d20h: Se0 CHAP: O CHALLENGE id 2 len 28 from left"4d20h: Se0 CHAP: I CHALLENGE id 3 len 28 from right"4d20h: Se0 CHAP: O RESPONSE id 3 len 28 from left"
4d20h: Se0 CHAP: I RESPONSE id 2 len 28 from right"4d20h: Se0 CHAP: O SUCCESS id 2 len 44d20h: Se0 CHAP: I SUCCESS id 3 len 44d20h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
The debug ppp authentication command shows successful
CHAP output
-
8/10/2019 Chapter 16 - HDLC & PPP
14/16
-
8/10/2019 Chapter 16 - HDLC & PPP
15/16 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.08-15
Summary
PPP is a common Layer 2 protocol for the WAN. There are twocomponents of PPP: LCP negotiates the connection and NCPencapsulates traffic.
You can configure PPP to use PAP or CHAP. PAP sends
everything in plaintext. CHAP uses an MD5 hash. Common PPP verification commands include show interfaceto
verify PPP encapsulation and debug ppp negotiationto verifythe LCP handshake.
-
8/10/2019 Chapter 16 - HDLC & PPP
16/16