CCNA實驗4:HDLC和PPP

image

一.HDLC封裝

 

router9和11上分別配置s0/0以下服務器

conf trouter

int s0/0blog

encapsulation hdlcip

do show int s0/0ci

ip address x.x.x.1 255.255.255.0get

no shutdownit

image

便可互相ping通io

image

二.PPP封裝

2.1無認證

conf t服務器端

int s0/0配置

encapsution ppp

no sh

便可.PAP或者CHAP認證是可選的.

image

 

2.2單向認證pap

客戶端:

ppp pap sent-username r1 password 0 mypass

 

服務器端:

conf t

username r1 password 0 mypass

int s0/0

encapsution ppp

ppp authentication pap

2.3雙向認證pap

客戶端:

conf t

username bill password 0 good

int s0/0

encapsution ppp

ppp pap sent-username r1 password 0 mypass

ppp authentication pap

服務器端:

conf t

username r1 password 0 mypass

int s0/0

encapsution ppp

ppp authentication pap

ppp pap sent-username bill password 0 good

2.4 CHAP雙向認證

R1:

conf t

username r1 password 0 good

int s0/0

encapsution ppp

ppp authentication chap

R2:

conf t

username r2 passord 0 good

encapsution ppp

ppp authentication chap

 

2.5 CHAP單向認證—cisco paket tracer中作不了此實驗,未驗證

r1(config)#username r2 password cisco

r1(config)#int s1/1

r1(config-if)#encapsulation ppp

r1(config-if)#ppp authentication chap

r2(config)#int s1/0

r2(config-if)# encapsulation ppp

r2(config-if)#ppp chap hostname r2  // 設置本端用戶名

r2(config-if)#ppp chap password cisco

相關文章
相關標籤/搜索