資源描述:
《實驗OSPF路由協(xié)議的配置與應(yīng)用.doc》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、OSPF路由協(xié)議的配置與應(yīng)用一、實驗?zāi)康?.理解三層交換機(jī)的工作原理;2.理解OSPF路由協(xié)議的工作原理;3.掌握虛擬局域網(wǎng)VLAN的設(shè)置;4.掌握OSPF路由協(xié)議的配置方法。二、實驗內(nèi)容1?根據(jù)網(wǎng)絡(luò)拓?fù)鋱D,組建網(wǎng)絡(luò);2.配置VLAN、設(shè)備互聯(lián)地址、模擬終端IP地址;3.配置OSPF路由協(xié)議,計算動態(tài)路由表;4.測試網(wǎng)絡(luò)互聯(lián)互通。三、實驗步驟IP:I9LI61.102324M走192J68J02.IM尢19116U0UVLASI20、19116^101124PC!RoutcrlF?l:l91l6tl0Ll30Switch卜10202JJJ30S
2、IgOXU二30(ROUTFR/j.「ROUTFRRoutcfZ1、根據(jù)網(wǎng)絡(luò)拓?fù)鋱D,組建網(wǎng)絡(luò)。IP:l91I6SJ01l/32EI/O2EIXKM:192J6<101230(VLANIO)如圖所示,其中路由器Router!和Router3之間使用V.35DTE/DCE線纜進(jìn)行連接,三層交換機(jī)Switch中端口Ethernet1/0/1-Ethernet1/0/2屬于VLAN20,而端口Ethernet1/0/24屬于VLAN10o2.三層交換機(jī)Switch的配置#進(jìn)入系統(tǒng)視圖system-view#創(chuàng)建VLAN10,并配置接口I
3、P地址[Switch]vlan10[Switch-vlanlO]interfacevlan?inteiface10[Switch-Vlan-interfacelO]ipaddress192.168.111.2255.255.255.252#將端口Ethernet1/0/24加入到VLAN10中[Switch-Vlan-interface10]vlan10[Switch-vlan10]portEthernetI/0/24#創(chuàng)建VLAN20,并配置接口IP地址[Switch-Vlan-interface10]vlan20[Switch-vlan20
4、]interfacevlan?interface20[Switch-Vlan-interface20]ipaddress192.168.112.1255.255.255.0#將端口Ethernet1心1?1心2加入到VLAN20中[Switch-Vlan-interface20]vlan20[Switch-vlan20]portEthernet1/0/1toEthernet1/0/2#退出VLAN視圖,進(jìn)入系統(tǒng)視圖[Switch-vlan20]quit#配置交換機(jī)Router-ID[Switch]routerid1.1」」#創(chuàng)建OSPF進(jìn)程并進(jìn)
5、入OSPF視圖[Switch]ospf#在OSPF視圖下創(chuàng)建區(qū)域0并進(jìn)入?yún)^(qū)域視圖[Switch-ospf-1]area0#指定屬于該區(qū)域的接口網(wǎng)段[Switch-ospf-1]network192.168.111.00.0.0.3[Switch-ospf-1]network192.168.112.00.0.0.2552.路由器Router1的配置#進(jìn)入系統(tǒng)視圖system-view#配置端口Ethernet0/1的IP地址[Router1Jinterfaceethernet0/1[Router1-EthernetO/1]ipa
6、ddress192.168.111.1255.255.255.252#配置端口Serial1/0的IP地址[Router1-EthernetO/lJinterfaceserial1/0[Router1-Seriall/0]ipaddress202.1.1.1255.255.255.252#配置路由器Router-ID[Router1-Seriall/0]quit[Router1jrouterid2.2.2.2#創(chuàng)建OSPF進(jìn)程并進(jìn)入OSPF視圖[RouterI]ospf#在OSPF視圖下創(chuàng)建區(qū)域0并進(jìn)入?yún)^(qū)域視圖[Router1-ospf-1Ja
7、rea0#指定屬于該區(qū)域的接口網(wǎng)段[Router1-ospf-1-area-0.0.0.0]network192」6&111.00.0.0.3[RouterI-ospf-1-area-0.0.0.0]network202.1.1.00.0.0.33.路由器Router2的配置#進(jìn)入系統(tǒng)視圖systeview#配置以太網(wǎng)接口0/1的IP地址[Router2]interfaceloopback0lRouter2-LoopbackO]ipaddress192.168.113.1255.255.255.255#配置端口Serial1/
8、0的IP地址[Router21interfaceserial1/0[Router2-Seriall/0]ipaddress202.1.1.2255.2