資源描述:
《實(shí)驗(yàn)ospf路由協(xié)議的配置與應(yīng)用》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、OSPF路由協(xié)議的配置與應(yīng)用一、實(shí)驗(yàn)?zāi)康?.理解三層交換機(jī)的工作原理;2.理解0SPF路由協(xié)議的工作原理;3.掌握虛擬局域網(wǎng)VLAN的設(shè)置;4.掌握0SPF路由協(xié)議的配置方法。二、實(shí)驗(yàn)內(nèi)容1.根據(jù)網(wǎng)絡(luò)拓?fù)鋱D,組建網(wǎng)絡(luò);2.配置VLAN、設(shè)備互聯(lián)地址、模擬終端IP地址;3.配置0SPF路由協(xié)議,計(jì)算動態(tài)路由表;4.測試網(wǎng)絡(luò)互聯(lián)互通。三、實(shí)驗(yàn)步驟1、根據(jù)網(wǎng)絡(luò)拓?fù)鋱D,組建網(wǎng)絡(luò)。RoulcrlRoutctZ如圖所示,其中路由器Routerl和Router3之間使用V.35DTE/DCE線纜進(jìn)行連接,三層交換機(jī)Switch中端口Ethernet1/0/1?Eth
2、ernet1/0/2屬于VLAN20,而端口Ethernet1/0/24屬于VLAN10o2.三層交換機(jī)Switch的配置#進(jìn)入系統(tǒng)視圖system-view#創(chuàng)建VLAN10,并配置接口IP地址[Switch]vlan10[Switch-vlanlO]interfacevlan?interface10[Switch-Vlan-interfacelOJipaddress192」68.111.2255.255.255.252#將端口Ethernet1/0/24加入到VLAN10中[Switch-Vlan-interface10]vlan1
3、0[Switch-vlan10]portEthernet1/0/24#創(chuàng)建VLAN20,并配置接口IP地址[Switch-Vlan-interface10]vlan20[Switch-vlan20]interfacevlan-interface20[Switch-Vlan-inlerface20]ipaddress192.168.112.1255.255.255.0#將端口Ethernet1/0/1?1/0/2加入到VLAN20中[Switch-Vlan-interface20]vlan20[Switch-vlan20JportEthernet1/0/
4、1toEthernet1/0/2#退;1!VLAN視圖,進(jìn)入系統(tǒng)視圖[Swilch-vlan20]quit#配置交換機(jī)Router-ID[Switchjrouterid1.1.1.1#創(chuàng)建OSPF進(jìn)程并進(jìn)入OSPF視圖fSwitch]ospf#在OSPF視圖下創(chuàng)建區(qū)域0并進(jìn)入?yún)^(qū)域視圖[Switch-ospf-1]area0#指定屬于該區(qū)域的接口網(wǎng)段[Switch-ospf-l]network192.168.111.00.0.0.3fSwitch-ospf-l]network192.168.112.00.0.0.2552.路由器Router1的配置#進(jìn)入
5、系統(tǒng)視圖system-view#配置端口Ethernet0/1的IP地址[Routerl]interfaceethernet0/1[Routerl-EthernetO/l]ipaddress192.168.111.1255.255.255.252#配置端口Serial1/0的IP地址[Router1-EthernetO/1]interfaceserial1/0[Router1-Serial1/0]ipaddress202.1.1.1255.255.255.252#配置路由器Router-ID[Routerl-Serial1/OJqui
6、t[Routerl]routerid2.2.2.2#創(chuàng)建OSPF進(jìn)程并進(jìn)入OSPF視圖[Routerl]ospf#在OSPF視圖下創(chuàng)建區(qū)域0并進(jìn)入?yún)^(qū)域視圖[Router1-ospf-1]area0#指定屬于該區(qū)域的接口網(wǎng)段[Routerl-ospf-1-area-0.0.0.0]network192.16&111.00.0.0.3[Routerl-ospf-1-area-0.0.0.0]network202」」.00.0.0.33.路由器Router2的配置#進(jìn)入系統(tǒng)視圖system-view#配置以太網(wǎng)接口0/1的【P地址[Rout
7、er2]interfaceloopback0[Routerz-LoopbackOJipaddress192.16&113.1255.255.255.255#配置端口Serial1/()的IP地址[Router2]interfaceserial1/0[Router2-Seriall/0]ipaddress202.1.1.2255.255.255.252#配置路由器Router-ID[Router2-Serial1/O]quit[Router2]routerid3.3.3.3#創(chuàng)建OSPF進(jìn)程并進(jìn)入OSPF視圖[Router2]ospf#在OSPF視圖卜?
8、創(chuàng)建區(qū)域0并進(jìn)入?yún)^(qū)域視圖[Router2-ospf-1]area0#指定屬于該區(qū)域的接口網(wǎng)段[