1、packettracer510全攻略下十、配置单区域OSPFOSPF(OpenShortestPathFirst开放式最短路径优先)是一个内部网关协议(InteriorGatewayProtocol,简称IGP),用于在单一自治系统(autonomoussystem,AS)内决策路由。OSPF协议比较复杂Fversion2RFC2328标准文档长达224页,可以划分区域是OSPF能多适应大型复杂网络的一个特性,我们只借助完成单个area的简单配置。一、配置实例拓扑图图一二、OSPF配置基本命令Router(config)#routerospf1Router(config-router)#net
2、work0.0.0.255area0?Router(config-router)#router-id三、OSPF配置实例、路由器基本配置图二以Router1为例介绍网络中各个路由器的基本配置、启动OSPF图三图四?Router1的OSPF配置图五?Router的OSPF配置图六?Router3的OSPF配置图七?Router4的OSPF配置图八查看路由器中的路由表、校验、诊断图九showipprotocol查看路由器中所启用的路由计算协议图十showipospf图十一showipospfinterface图十二图十三showipospfneighbor想看邻居图十四showipospfdata
3、base图十五debugipospfevents开启诊断,nodebugipospfevents关闭诊断图十六pc2ping通所有网段内的计算机或路由器在这里只能进行最为简单的OSPF配置了,可以完成CCNA的实验。十一、路由器实现Vlan间通信一、实验拓扑图图一路由器:Cisco2811,交换机:Cisco2950二、创建Vlan2950#vlandatabae2950(vlan)#vlan10namemath2950(vlan)#vlan20namechinese图二三、把交换机端口分配给Vlan2950#conft2950(config)#intrangefa0/2-32950(conf
4、ig-if-range)#switchportmodeaccess2950(config-if-range)#switchportaccessvlan102950(config-if-range)#intrangefa0/4-52950(config-if-range)#switchportmodeaccess2950(config-if-range)#switchportaccessvlan20图三四、配置交换机trunk端口2950(config)intfa0/12950(config-if)switchportmodetrunk图四五、配置路由器子接口Router#conftRouter
5、(config)#intfa0/1.1Router(config-subif)#encapsulationdot1q10Router(config-subif)#ipaddressRouter(config-subif)#intfa0/1.2Router(config-subif)#encapsulationdot1q20Router(config-subif)#ipaddressRouter(config-subif)#intfa0/1Router(config-if)#noshut图五图六查看路由器中的路由表六、配置计算机,测试在本次实验中,pc0与pc1同处于vlan1020图七不同网段
6、中的计算机完全可以ping通十二、PPPPPP(PointtoPointProtocol)数据链路层协议。两种认证方式:一种是PAP,一种是CHAP。相对来说PAP的认证方式安全性没有CHAP高。PAP在传输password是明文的,而CHAP在传输过程中不传输密码,PAP认证是通过两次握手实现的,而CHAP则是通过3次握手实现的。一、实验配置拓扑图图一二、PPP的基本配置命令Router(config-if)#encapsulationPPPRouter(config-if)#PPPmultilinkRouter(config-if)#PPPauthenticationchap三、配置PPP
7、图二路由器Boson上配置PPP的命令图三?Newyork上配置PPP的命令图四启用RIP路由协议,两个路由器要配置RIPBoson路由器的配置:Boston#shrunning-configBuildingconfiguration.Currentconfiguration:652bytes!version12.4noservicepassword-encryption!hostnameBoston!usernameNewyorkpassword0senya!ipsshversion1noipdomain-lookup!interfaceFastEthernet0/0noipaddressd
8、uplexautospeedautoshutdown!interfaceFastEthernet0/1ipaddressduplexautospeedauto!interfaceSerial0/3/0descriptionLinktoRouterNewyorkipaddressencapsulationppppppauthenticationchapclockrate56000!interfaceVlan1noipaddressshutdown!routerripversion2networknetwork!ipclassless!linecon0linevty04login!endNewyo
9、rk路由器的配置:Newyork#shrunning-configBuildingconfiguration.Currentconfiguration:606bytes!version12.4noservicepassword-encryption!hostnameNewyork!usernameBostonpassword0senya!ipsshversion1!interfaceFastEthernet0/0noipaddressduplexautospeedautoshutdown!interfaceFastEthernet0/1ipaddressduplexautospeedauto!
10、interfaceSerial0/3/0descriptionlinktoBostonipaddressencapsulationppppppauthenticationchap!interfaceVlan1noipaddressshutdown!routerripversion2networknetwork!ipclassless!linecon0linevty04login!end图五配置计算机的IP地址及网关图六在计算机PC0上使用ping命令检查网络的连通性十三、帧中继FrameRelay帧中继是一种用于连接计算机系统的面向分组的通信方法。它主要用在公共或专用网上的局域网互联以及广域网
11、连接。大多数公共电信局都提供帧中继服务,把它作为建立高性能的虚拟广域连接的一种途径。帧中继是进入带宽范围从56Kbps到1544Mbps的广域分组交换网的用户接口。帧中继是从综合业务数字网中发展起来的,并在1984年推荐为国际电话电报咨询委员会(CCITT)的一项标准,另外,由美国国家标准协会授权的美国TIS标准委员会也对帧中继做了一些初步工作。数据链路连接标识符(DLCI)这个信息包含标识号,它标识多路复用到通道的逻辑连结。帧中继交换机将两端的DLCI关联起来,它是帧中继帧格式中地字段的一个重要部分之一,这是个6位标识,表示正在进行的客户和服务器之间的连接,用于RFCOMM层。帧中继使用DL
12、CI来标识DTE和服务商交换机之间的虚电路。DLCI字段的长度一般为10bit,但也可扩展为16bit,前者用二字节地址字段,后者是三字节地址字段。23bit用四字节地址字段。DLCI值用于标识永久虚电路(PVC),呼叫控制或管理信息。DLCI只具有本地意义。一、使用PacketTracer5.0构建帧中继仿真添加三个2811路由器和一个云图一图二给2811添加一个具有串口的模块图三图四把路由器2811的串口与云的串口相连,路由器的串口为DTE图五实验拓扑图及IP地址、DLCI分配二、配置FrameRelay以Router2为例,其它两个路由器相似,后是人为添加的注释,在实际配置时不存在Rou
13、teren进入特权配置模式Router#conft进入全局配置模式Enterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#noipdomain-lookup取消名称解析Router(config)#hostnameRouter2配置路由器的名字Router2(config)#intfa0/1进入接口配置模式Router2(config-if)#ipaddressRouter2(config-if)#noshut激活端口%LINK-5-CHANGED:InterfaceFastEthernet0/1,changedst
14、atetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/1,changedstatetoupRouter2(config-if)#intserial0/3/0Router2(config-if)#encapsulationframe-relay对串口serial0/3/0进行frame-relay封装Router2(config-if)#noshut%LINK-5-CHANGED:InterfaceSerial0/3/0,changedstatetoupRouter2(config-if)#%LINEPROTO-5-UPD
15、OWN:LineprotocolonInterfaceSerial0/3/0,changedstatetoupRouter2(config-if)#interfaceserial0/3/0.1point-to-point进入串口的子接口配置模式%LINK-5-CHANGED:InterfaceSerial0/3/0.1,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial0/3/0.1,changedstatetoupRouter2(config-subif)#ipaddress为子接口配置IP地址Router2(c
16、onfig-subif)#descriptionLinkRouter1DLCI30为子接口添加描述Router2(config-subif)#frame-relayinterface-dlci40配置DLCIRouter2(config-subif)#interfaceserial0/3/0.2point-to-point%LINK-5-CHANGED:InterfaceSerial0/3/0.2,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial0/3/0.2,changedstatetoupRouter2(co
17、nfig-subif)#ipaddressRouter2(config-subif)#descriptionlinktoRouter0DLCI20Router2(config-subif)#frame-relayinterface-dlci41Router2(config-subif)#end%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleRouter2#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router2(config)#routereigrp100在路由器上启用EIGRP
18、路由协议Router2(config-router)#networkRouter2(config-router)#networkRouter2(config-router)#networkRouter2(config-router)#%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleRouter2#copyrunning-configstartup-config保存配置Destinationfilenamestartup-config?Buildingconfiguration.OKRouter2#路由器Router0的配置:Router0#shrun
19、ning-configBuildingconfiguration.Currentconfiguration:830bytes!version12.4noservicepassword-encryption!hostnameRouter0!ipsshversion1noipdomain-lookup!interfaceFastEthernet0/0noipaddressduplexautospeedautoshutdown!interfaceFastEthernet0/1ipaddressduplexautospeedauto!interfaceSerial0/3/0noipaddressenc
20、apsulationframe-relay!interfaceSerial0/3/0.1point-to-pointdescriptionLinktoRouter2ipaddressframe-relayinterface-dlci20!interfaceSerial0/3/0.2point-to-pointdescriptionLinktoRouter1ipaddressframe-relayinterface-dlci21!interfaceVlan1noipaddressshutdown!routereigrp100networknetworknetworkauto-summary!ip
21、classless!linecon0linevty04login!end路由器Router1的配置Router1#shrunning-configBuildingconfiguration.Currentconfiguration:843bytes!version12.4noservicepassword-encryption!hostnameRouter1!ipsshversion1noipdomain-lookup!interfaceFastEthernet0/0noipaddressduplexautospeedautoshutdown!interfaceFastEthernet0/1i
22、paddressduplexautospeedauto!interfaceSerial0/3/0noipaddressencapsulationframe-relay!interfaceSerial0/3/0.1point-to-pointdescriptionlinktoRouter2DLCI40ipaddressframe-relayinterface-dlci30!interfaceSerial0/3/0.2point-to-pointdescriptionlinktorouter0DLCI21ipaddressframe-relayinterface-dlci31!interfaceV
23、lan1noipaddressshutdown!routereigrp100networknetworknetworkauto-summary!ipclassless!linecon0linevty04login!end路由器Router2的配置Router2#shrunning-configBuildingconfiguration.Currentconfiguration:841bytes!version12.4noservicepassword-encryption!hostnameRouter2!ipsshversion1noipdomain-lookup!interfaceFastE
24、thernet0/0noipaddressduplexautospeedautoshutdown!interfaceFastEthernet0/1ipaddressduplexautospeedauto!interfaceSerial0/3/0noipaddressencapsulationframe-relay!interfaceSerial0/3/0.1point-to-pointdescriptionLinkRouter1DLCI30ipaddressframe-relayinterface-dlci40!interfaceSerial0/3/0.2point-to-pointdescr
25、iptionlinktoRouter0DLCI20ipaddressframe-relayinterface-dlci41!interfaceVlan1noipaddressshutdown!routereigrp100networknetworknetworkauto-summary!ipclassless!linecon0linevty04login!end路由器配置完毕后,还需要配置Cloud0。图六根据路由器的相关配置,给Cloud0的serial0配置DLCI及LMI类型图七根据路由器的相关配置,给Cloud0的serial1配置DLCI及LMI类型图八根据路由器的相关配置,给Clo
26、ud0的serial2配置DLCI及LMI类型图九根据路由器的相关配置,配置Cloud0的FrameRelay三、配置各个计算机,并使用ping命令校验网络的连通性pc0PCipconfigIPAddress.:SubnetMask.:DefaultGateway.:PCpingPingingwith32bytesofdata:Replyfrombytes=32time=141msTTL=254Replyfrombytes=32time=110msTTL=254Replyfrombytes=32time=143msTTL=254Replyfrombytes=32time=110msTTL=25
27、4Pingstatisticsfor?Packets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:?Minimum=110ms,Maximum=143ms,Average=126msPCpingPingingwith32bytesofdata:Replyfrombytes=32time=62msTTL=255Replyfrombytes=32time=62msTTL=255Replyfrombytes=32time=47msTTL=255Replyfrombytes=32time=63msT
28、TL=255Pingstatisticsfor?Packets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:?Minimum=47ms,Maximum=63ms,Average=58msPCpingPingingwith32bytesofdata:Replyfrombytes=32time=109msTTL=254Replyfrombytes=32time=125msTTL=254Replyfrombytes=32time=93msTTL=254Replyfrombytes=32time=94msTTL=254Pingstatisticsfor?Packets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:?Minimum=93ms,Maximum=125ms,Average=105msPCpingPingingwith32bytesofdata:Replyfrombytes=32time=110msTTL=254Replyfrombytes=32time=112msTTL=2
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1