实验指导比赛版PPP配置实验.pdf
Cisco路由器实用技术—PPP配置实验
PPP(PointtoPointProtocol)数据链路层协议。两种认证方式:一种是PAP,
一种是CHAP。相对来说PAP的认证方式安全性没有CHAP高。PAP在传输password
是明文的,而CHAP在传输过程中不传输密码,PAP认证是通过两次握手实现的,
而CHAP则是通过3次握手实现的。
一、实验配置拓扑图
二、实验步骤:
1.路由器Boston上配置PPP:
Routeren
Router#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#hostnameBoston
Boston(config)#ints0/3/0
Boston(config-if)clockrate56000
Boston(config-if)#descriptionlinktoRouterNewYork
Boston(config-if)#ipaddress192.168.2.1255.255.255.0
Boston(config-if)#encapsulationppp
Boston(config-if)#pppauthenticationchap
Boston(config-if)#noshut
%LINK-5-CHANGED:InterfaceSerial0/3/0,changedstatetodown
Boston(config-if)#exit
Boston(config)#usernameNewYorkpasswordsenya
Boston(config)#exit
%SYS-5-CONFIG_I:Configuredfromconsolebyconsole
Boston#copyrunning-configstartup-config
Destinationfilename[startup-config]?
Buildingconfiguration...
[OK]
2.启用RIP路由协议,两个路由器要配置RIP
Boston#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Boston(config)#routerrip
Boston(config-router)#version2
Boston(config-router)#network192.168.1.0
Boston(config-router)#network192.168.2.0
Boston(config-router)#end
%SYS-5-CONFIG_I:Configuredfromconsolebyconsole
3.给路由器接口配置IP地址
Boston#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Boston(config)#intf0/0
Boston(config-if)#ipadd192.168.1.1255.255.255.0
Boston(config-if)#noshut
%LINK-5-CHANGED:InterfaceFastEthernet0/0,changedstatetoup
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/0,changed
statetoup
Boston路由器的配置:
Boston#shrunning-config
Buildingconfiguration...
Currentconfiguration:652bytes
version12.4
noservicepassword-encryption
hostnameBoston
usernameNewyorkpassword0senya
ipsshversion1
noipdomain-lookup
interfaceFastEthernet0/0
noipaddress
duplexauto
speedauto