【正文】
R3配置:Conf tHost R1int lo1ip add no shutExitInt s1Ip add No shut添加rip路由R1:Router ripNetwork Network R2:Router ripNetwork Network R3:Router ripNetwork Network 配置完成后,我在路由器模擬器上進(jìn)行實(shí)驗(yàn),但發(fā)現(xiàn)模擬器無(wú)論是從R3pingR1的lo1口還是R1pingR3的lo1口都能Ping通,我換到R2繼續(xù)PingR1的lo1口或是R3的lo1口都能全部Ping通,和崔老師的演示結(jié)果不一至,估計(jì)是是這個(gè)模擬器的軟件問(wèn)題,無(wú)法看出實(shí)驗(yàn)的真正結(jié)果.正確結(jié)果:R2pingPingR1的lo1口或是R3的lo1口時(shí),發(fā)出去的包應(yīng)該一個(gè)能到達(dá)一個(gè)無(wú)法到達(dá),而R3無(wú)法PING通R1的lo1口,而R1也一樣PING通R3的lo1口.原因:因?yàn)槭褂昧薘IP路由,RIP是有類路由,會(huì)進(jìn)行匯總,告訴R2自己匯總的路由,,所以會(huì)出現(xiàn)一個(gè)包通,另一個(gè)包不通的結(jié)果.,R1看自己的匯總路由發(fā)現(xiàn)這個(gè)地址就是在自己的網(wǎng)段里,就不會(huì)向外發(fā),.擴(kuò)展實(shí)驗(yàn):更改R1/R2/R3的各個(gè)端口.R1 S0 R2 S1 S0 R3 S1 配置:R1:EnConf tInt s0No ip add Ip add No shutExitRouter ripNo network Network R2:EnConf tInt s1No ip add Ip add No shutExitInt s0No ip add Ip add No shutexitRouter ripNo network No network Netwokr Network R3:EnConf tInt s1No ip add Ip add No shutExitRouter ripno network Network 結(jié)果:通過(guò)一系列的IP改變,R3同樣也能ping通R3的lo1口.原因:因?yàn)槊颗_(tái)路由器中的IP地址都是同網(wǎng)段,連續(xù)子網(wǎng)的有類路由,所以路由路沒(méi)有起用匯總,就不會(huì)出現(xiàn)原來(lái)的問(wèn)題,R1不會(huì)以為R3的lo1口就在自己網(wǎng)段,R3一樣也不會(huì)以為R1的lo1口在自己網(wǎng)段,而R2也不會(huì)認(rèn)為R1和R3在同一網(wǎng)段而不知道發(fā)給誰(shuí)了. 徐來(lái) mobil phone:13913912276 Email:breeze365@該生用模擬器輸入配置,且直接拷屏,沒(méi)有做一引起處理,內(nèi)容不可取,暫不修改purpose:目標(biāo)static router(ip route [network] [subnetwork] [ip]) 靜態(tài)路由default router 默認(rèn)路由 ip route [ip] ip defaultnetwork [network]dynamic router (rip) 動(dòng)態(tài)路由Network Topology網(wǎng)絡(luò)拓?fù)鋱DWe need: 要求1. configure RIP between R1,R2 and R3 在R1,R2 and R3配置RIP路由協(xié)議2. configure default network in R1,配置默認(rèn)路由問(wèn)題:在模擬器中R1的(config)中不能配置defaultnetworkproblem:i can39。t configure defaultnetwork in R1 with simulationR1Press Enter to StartRouterenRouterconf tEnter configuration mands, one per line. End with CNTL/Z.Router(config)hostname R1 更改主機(jī)名R1(config)int s0 配置serial0R1(configif)ip add 配置ipR1(configif)clock rate 56000 在DCE端配置時(shí)鐘頻率R1(configif)no shut 開啟端口%LINK3UPDOWN: Interface Serial0, changed state to upR1(configif)exit%LINK3UPDOWN: Interface Serial0, changed state to down%LINEPROTO5UPDOWN: Line protocol on Interface Serial0, changed state to downR1(config)int e0 配置Ethernet0R1(configif)ip add 配置ipR1(configif)no shut 開啟端口%LINK3UPDOWN: Interface Ethernet0, changed state to upR1(configif)exitR1(config)int s1 配置serial1R1(configif)ip add 配置ipR1(configif)no shut 開啟端口%LINK3UPDOWN: Interface Serial1, changed state to up%LINK3UPDOWN: Interface Serial1, changed state to down%LINEPROTO5UPDOWN: Line protocol on Interface Serial1, changed state to downR1(configif)%LINK3UPDOWN: Interface Serial0, changed state to up%LINEPROTO5UPDOWN: Line protocol on Interface Serial0, changed state to up%LINK3UPDOWN: Interface Serial1, changed state to up%LINEPROTO5UPDOWN: Line protocol on Interface Serial1, changed state to upR1(configif)eixt% Invalid input detected at 39。^39。 marker.R1(configif)exitR1(config)^Z%SYS5CONFIG_I: Configured from console by consoleR1show ip route 顯示路由表Codes: C connected, S static, I IGRP, R RIP, M mobile, B BGP D EIGRP, EX EIGRP external, O OSPF, IA OSPF inter area E1 OSPF external type 1, E2 OSPF external type 2, E EGP i ISIS, L1 ISIS level1, L2 ISIS level2, * candidate default U peruser static routeGateway of last resort is not setC , Ethernet0C , Serial0C , Serial1R1conf tEnter configuration mands, one per line. End with CNTL/Z.R1(config)router rip 啟用rip路由協(xié)議R1(configrouter)net 設(shè)置宣告網(wǎng)段R1(configrouter)net 設(shè)置宣告網(wǎng)段R1(configrouter)net 設(shè)置宣告網(wǎng)段R1(configrouter)^Z%SYS5CONFIG_I: Configured from console by consoleR1show ip routeCodes: C connected, S static, I IGRP, R RIP, M mobile, B BGP D EIGRP, EX EIGRP external, O OSPF, IA OSPF inter area E1 OSPF external type 1, E2 OSPF external type 2, E EGP i ISIS, L1 ISIS level1, L2 ISIS level2, * candidate default U peruser static routeGateway of last resort is not setC , Ethernet0C , Serial0C , Serial1R1conf tEnter configuration mands, one per line. End with CNTL/Z.R1(config)ip ? 問(wèn)題?這里沒(méi)有配置default(模擬器上沒(méi)有此命令) accesslist Named accesslistdhcp Configure DHCP server and relay parametersdomainlookup Enable IP Domain Name System hostname translationhost Add an entry to the ip hostname table HTTP server configurationnat NAT configuration mandsroute Establish static routessubnetzero Allow 39。subnet zero39。 subnetsR1(config)ip defaultnetwork % Invalid input detected at 39。^39。 marker.R1(config)^Z%SYS5CONFIG_I: Configured from console by consoleR1show ip routeCodes: C connected, S static, I IGRP, R RIP, M mobile, B BGP D EIGRP, EX EIGRP external, O OSPF, IA OSPF inter area E1 OSPF external type 1, E2 OSPF external type 2, E EGP i ISIS, L1 ISIS level1, L2 ISIS level2, * candidate default U peruser static routeGateway of last resort is not setC , Ethernet0C , Serial0C , Serial1R [120/1] via , 00:03:23, Serial0R [120/1] via , 00:05:41, Serial1R1(config)ip ?accesslist Named accesslistdhcp Configure DHCP server and relay parametersdomainlookup Enable IP Domain Name System hostname translationhost Add an entry to the ip hostname table HTTP server configurationnat NAT configuration mandsroute Establish static routessubnetzero Allow 39。subne