路由器ppp协议配置和认证:Router0的配置:---SystemConfigurationDialog---Continuewithconfigurationdialog?[yes/no]:noPressRETURNtogetstarted!RouterenRouterenableRouter#confRouter#configureRouter#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#intRouter(config)#interfacefRouter(config)#interfacefastEthernet0/0Router(config-if)#ipaddRouter(config-if)#ipaddress2.2.2.1255.0.0.0Router(config-if)#noshutRouter(config-if)#noshutdown%LINK-5-CHANGED:InterfaceFastEthernet0/0,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/0,changedstatetoupRouter(config-if)#exitRouter(config)#intRouter(config)#interfacesRouter(config)#interfaceserial0/0Router(config-if)#ipaddRouter(config-if)#ipaddress1.1.1.1255.0.0.0Router(config-if)#noshutRouter(config-if)#noshutRouter(config-if)#noshutdown%LINK-5-CHANGED:InterfaceSerial0/0,changedstatetodownRouter(config-if)#Router(config-if)#%LINK-5-CHANGED:InterfaceSerial0/0,changedstatetoupRouter(config-if)#exitRouter(config)#iproutRouter(config)#iproute3.3.3.0255.0.0.0sRouter(config)#iproute3.3.3.0255.0.0.0serial0/0Router(config)#noshutRouter(config)#noshutRouter(config)#end%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleRouter#showiprouRouter#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetC2.0.0.0/8isdirectlyconnected,FastEthernet0/0Router#ping3.3.3.2Typeescapesequencetoabort.Sending5,100-byteICMPEchosto3.3.3.2,timeoutis2seconds:.....Successrateis0percent(0/5)Router#confRouter#configureRouter#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#intRouter(config)#interfacesRouter(config)#interfaceserial0/0Router(config-if)#enRouter(config-if)#encapsulation?frame-relayFrameRelaynetworkshdlcSerialHDLCsynchronouspppPoint-to-PointprotocolRouter(config-if)#encapsulationppp?crRouter(config-if)#encapsulationpppRouter(config-if)#?bandwidthSetbandwidthinformationalparametercdpCDPinterfacesubcommandsclockConfigureserialinterfaceclockdelaySpecifyinterfacethroughputdelaydescriptionInterfacespecificdescriptionencapsulationSetencapsulationtypeforaninterfaceexitExitfrominterfaceconfigurationmodeframe-relaySetframerelayparametersipInterfaceInternetProtocolconfigcommandskeepaliveEnablekeepalivenoNegateacommandorsetitsdefaultspppPoint-to-PointProtocolshutdownShutdowntheselectedinterfaceRouter(config-if)#noshutRouter(config-if)#noshutdownRouter(config-if)#exitRouter(config)#intRouter(config)#interfacesRouter(config)#interfaceserial0/0Router(config-if)#clRouter(config-if)#clock?rateConfigureserialinterfaceclockspeedRouter(config-if)#clockrRouter(config-if)#clockrate64000Router(config-if)#%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial0/0,changedstatetoupnoshutRouter(config-if)#noshutRouter(config-if)#noshutdownRouter(config-if)#Router(config-if)#Router#confRouter#configureRouter#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#interfaceserial0/0Router(config-if)#ppp?authenticationSetPPPlinkauthenticationmethodpapSetPAPauthenticationparametersRouter(config-if)#pppaRouter(config-if)#pppauthenticationchRouter(config-if)#pppauthenticationchap%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial0/0,changedstatetodownRouter(config-if)#exitRouter(config)#hoRouter(config)#hostname111111(config)#enablepassword112111(config)#?Configurecommands:access-listAddanaccesslistentrybannerDefinealoginbannerbootModifysystembootparameterscdpGlobalCDPconfigurationsubcommandsclockConfiguretime-of-dayclockconfig-registerDefinetheconfigurationregistercryptoEncryptionmoduledoTorunexeccommandsinconfigmodeenableModifyenablepasswordparametersendExitfromconfiguremodeexitExitfromconfiguremodehostnameSetsystem'snetworknameinterfaceSelectaninterfacetoconfigureipGlobalIPconfigurationsubcommandslineConfigureaterminallinenoNegateacommandorsetitsdefaultsrouterEnablearoutingprocessserviceModifyuseofnetworkbasedservicesusernameEstablishUserNameAuthentication111(config)#username221p111(config)#username221password222111(config)#111(config)#Router1配置:---SystemConfigurationDialog---Continuewithconfigurationdialog?[yes/no]:noPressRETURNtogetstarted!RouterenRouterenableRouter#confRouter#configureRouter#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#intRouter(config)#interfaceRouter(config)#interfacefRouter(config)#interfacefastEthernet0/0Router(config-if)#ipaddRouter(config-if)#ipaddress3.3.3.1255.0.0.0Router(config-if)#noshutRouter(config-if)#noshutdown%LINK-5-CHANGED:InterfaceFastEthernet0/0,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/0,changedstatetoupRouter(config-if)#exitRouter(config)#intRouter(config)#interfacefRouter(config)#interfacesRouter(config)#interfaces