资源描述:
《《计算机网络》实验指导书:ppp封装pap验证配置》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、海量资料超值下载PPP封装PAP验证配置一、实验目的1.掌握PAP验证配置2.理解验证过程二、实验描述基于安全的考虑,需要路由器双方验证通过后才能建立连接三、实验拓扑四、实验设备1.R28012台2.串口线1根五、实验步骤第1步:接口地址配置参照前面的讲解Router-A:S1/1:192.168.1.1Router-B:S1/0:192.168.1.2第2步:Router-A的配置Router-A>enRouter-A#configtRouter-A(config)#ints1/1Router-A(config-if)#ipaddress192.168.1.1255.255.25
2、5.0②海量资料超值下载Router-A(config-if)#noshutRouter-A(config-if)#exitRouter-A(config)#usernameRouter-Bpassjsj414设置账号与密码Router-A(config)#ints1/1Router-A(config-if)#encapsulationppp封装PPPRouter-A(config-if)#pppauthenticationpap选择PPP认证方式Router-A(config-if)#ppppapsent-usernameRouter-Apasswordjsj414设置发送给对方
3、的账号与密码Router-A(config-if)#clockrate64000Router-A(config-if)#exit第3步:查看接口配置Router-A#showinterfaceserial1/1Serial1/1isup,lineprotocolisdown(disabled)对端没有配置PPP,因此downHardwareisHD64570Internetaddressis192.168.1.1/24MTU1500bytes,BW128Kbit,DLY20000usec,rely255/255,load1/255EncapsulationPPP,loopbackn
4、otset,keepaliveset(10sec)LCPClosedClosed:LEXCP,BRIDGECP,IPCP,CCP,CDPCP,LLC2,BACPLastinputnever,outputnever,outputhangnever第4步:Route-B的配置Router-B>enRouter-B#configtRouter-B(config)#usernameRouter-Apasswordjsj414Router-B(config)#ints1/0Router-B(config-if)#ipaddress192.168.1.2255.255.255.0Router-
5、B(config-if)#encapsulationpppRouter-B(config-if)#pppauthenticationpapRouter-B(config-if)#ppppapsent-usernameRouter-Bpasswordjsj414Router-B(config-if)#noshut%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial1/0,changedstatetoupRouter-B(config-if)#exit第5步:查看接口配置Router-B#showinterfaceserial1/0Seri
6、al1/0isup,lineprotocolisup(双方通过PPP认证,所以UPconnected)HardwareisHD64570Internetaddressis192.168.1.2/24MTU1500bytes,BW128Kbit,DLY20000usec,rely255/255,load1/255EncapsulationPPP,loopbacknotset,keepaliveset(10sec)LCPOpenOpen:IPCP,CDPCPLastinputnever,outputnever,outputhangneverLastclearingof"showinte
7、rface"countersnever省略第6步:测试连通性Router-B#ping192.168.1.1②海量资料超值下载Typeescapesequencetoabort.Sending5,100-byteICMPEchosto192.168.1.1,timeoutis2seconds:!!!!!Successrateis100percent(5/5无丢包),round-tripmin/avg/max=31/31/32msRouter-B#六、注意事项1.账号与