資源描述:
《eNSP:配置單區(qū)域OSPF網(wǎng)絡(luò)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、eNSP實(shí)驗(yàn):配置單區(qū)域的OSPF網(wǎng)絡(luò)一、實(shí)驗(yàn)?zāi)康?、理解Route-id的意義2、掌握配置單區(qū)域的OSPF網(wǎng)絡(luò)的方法3、理解OSPF?hello-interval與dead-interval的意義二、實(shí)驗(yàn)拓?fù)淙?、?shí)驗(yàn)步驟?1、基本的配置與OSPF配置AR1:sysysname?AR1int?Gi0/0/0ip?add?192.168.12.1?30int?loop0ip?add?1.1.1.1?32qospf?1?router-id?1.1.1.1area?0network?192.168.12.0?0.0.0.3network?1.1.1.1?0.0.0.0qqsave
2、[AR1]AR2:sysysname?AR2int?Gi0/0/0ip?add?192.168.12.2?30int?Gi0/0/1ip?add?192.168.23.1?30int?loop0ip?add?2.2.2.2?32qospf?1?router-id?2.2.2.2area?0network?192.168.12.0?0.0.0.3network?192.168.23.0?0.0.0.3network?1.1.1.1?0.0.0.0qqsave[AR2]AR3:sysysname?AR3int?Gi0/0/0ip?add?192.168.23.2?30int?l
3、oop0ip?add?3.3.3.3?32qospf?1?router-id?3.3.3.3area?0network?192.168.23.0?0.0.0.3network?3.3.3.3?0.0.0.0qqsave[AR3]說(shuō)明:一臺(tái)路由器如果要運(yùn)行OSPF協(xié)議,必須存在Router?ID。路由器的ID是一個(gè)32比特?zé)o符號(hào)整數(shù),是一臺(tái)路由器在自治系統(tǒng)中的唯一標(biāo)識(shí)。路由器的ID可以手工配置,如果沒(méi)有通過(guò)命令指定ID號(hào),系統(tǒng)會(huì)從當(dāng)前接口的IP地址中自動(dòng)選取一個(gè)作為路由器的ID號(hào)。其選擇順序是:優(yōu)先從Loopback地址中選擇最大的IP地址作為路由器的ID號(hào),如果沒(méi)有配置Lo
4、opback接口,則在接口地址中選取最大的IP地址作為路由器的ID號(hào)。只有重新配置系統(tǒng)的Router?ID或OSPF的Router?ID,并且重新啟動(dòng)OSPF進(jìn)程后,才會(huì)進(jìn)行Router?ID的重新選取。(在用戶(hù)視圖下用“reset?ospf?process”來(lái)重啟進(jìn)程)2、查看ospf路由表[AR1]displayiprouting-tableRouteFlags:R-relay,D-downloadtofib------------------------------------------------------------------------------Rout
5、ingTables:PublicDestinations:10Routes:10Destination/MaskProtoPreCostFlagsNextHopInterface1.1.1.1/32Direct00D127.0.0.1LoopBack03.3.3.3/32OSPF102D192.168.12.2GigabitEthernet0/0/0127.0.0.0/8Direct00D127.0.0.1InLoopBack0127.0.0.1/32Direct00D127.0.0.1InLoopBack0127.255.255.255/32Direct00D127.0.
6、0.1InLoopBack0192.168.12.0/30Direct00D192.168.12.1GigabitEthernet0/0/0192.168.12.1/32Direct00D127.0.0.1GigabitEthernet0/0/0192.168.12.3/32Direct00D127.0.0.1GigabitEthernet0/0/0192.168.23.0/30OSPF102D192.168.12.2GigabitEthernet0/0/0255.255.255.255/32Direct00D127.0.0.1InLoopBack0[AR2]dispipr
7、outing-tableRouteFlags:R-relay,D-downloadtofib------------------------------------------------------------------------------RoutingTables:PublicDestinations:13Routes:13Destination/MaskProtoPreCostFlagsNextHopInterface1.1.1.1/32OSPF101D192.168.12.1GigabitEthern