实验16 PPP PAP 认证
一、【实验目的】
掌握PPP PAP 认证的过程和配置
二、【实验拓扑】
三、【实验步骤】
步骤1 路由器的基本配置 Router(config)#host RouterA
RouterA(config)#int s2/0
RouterA(config-if)#ip address 172.16.2.1 255.255.255.0 RouterA(config-if)#encapsulation ppp RouterA(config-if)#clock rate 64000 Router(config)#host RouterB
RouterB(config)#int s2/0
RouterB(config-if)#ip address 172.16.2.2 255.255.255.0 RouterB(config-if)#encapsulation ppp 步骤2 配置PAP认证 RouterA(config)#int s2/0
RouterA(config-if)#ppp pap sent-username RouterA password 0 123 RouterB(config)#username RouterA password 0 123 RouterB(config)#int s2/0
RouterB(config-if)#ppp authentication pap 步骤3 验证PAP认证
RouterA#show interfaces serial 2/0
Serial2/0 is up, line protocol is up (connected) Hardware is HD64570
Internet address is 172.16.2.1/24
1
本实验报告有本人自己所写,详情联系xiamengyu@hotmail.com http://lucygirls.taobao.com
MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, loopback not set, keepalive set (10 sec) LCP Open
Open: IPCP, CDPCP
Last input never, output never, output hang never Last clearing of \"show interface\" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/0/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 96 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 output buffer failures, 0 output buffers swapped out 0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
四、【查看配置】
RouterA#show run Building configuration...
Current configuration : 703 bytes !
version 12.2
no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !
hostname RouterA
2
本实验报告有本人自己所写,详情联系xiamengyu@hotmail.com http://lucygirls.taobao.com
!
interface FastEthernet0/0 no ip address duplex auto speed auto shutdown !
interface FastEthernet1/0 no ip address duplex auto speed auto shutdown !
interface Serial2/0
ip address 172.16.2.1 255.255.255.0 encapsulation ppp
ppp pap sent-username RouterA password 0 123 clock rate 64000 !
interface Serial3/0 no ip address shutdown !
interface FastEthernet4/0 no ip address shutdown
!
interface FastEthernet5/0 no ip address shutdown !
ip classless !
line con 0 line vty 0 4 login ! end
3
本实验报告有本人自己所写,详情联系xiamengyu@hotmail.com http://lucygirls.taobao.com
RouterB#show run Building configuration...
Current configuration : 697 bytes !
version 12.2
no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !
hostname RouterB
!
username RouterA password 0 123 !
interface FastEthernet0/0 no ip address duplex auto speed auto shutdown !
interface FastEthernet1/0 no ip address duplex auto speed auto shutdown !
interface Serial2/0
ip address 172.16.2.2 255.255.255.0 encapsulation ppp
ppp authentication pap !
interface Serial3/0 no ip address shutdown !
interface FastEthernet4/0 no ip address shutdown
4
本实验报告有本人自己所写,详情联系xiamengyu@hotmail.com http://lucygirls.taobao.com
!
interface FastEthernet5/0 no ip address shutdown !
ip classless !
line con 0 line vty 0 4 login ! end
5
因篇幅问题不能全部显示,请点此查看更多更全内容