




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、CCNA 200-301, Volume IChapter 20Implementing OSPFObjectivesImplementing Single-Area OSPFv2OSPFv2 Interface ConfigurationAdditional OSPFv2 FeaturesStep 1. Use the router ospf process-id global command to enter OSPF configuration mode for a particular OSPF process.Step 2. (Optional) Configure the OSPF
2、 router ID by doing the following:A. Use the router-id id-value router subcommand to define the router ID.B. Use the interface loopback number global command, along with an ip address address mask command, to configure an IP address on a loopback interface (chooses the highest IP address of all work
3、ing loopbacks).C. Rely on an interface IP address (chooses the highest IP address of all working nonloopbacks).Step 3. Use one or more network ip-address wildcard-mask area area-id router subcommands to enable OSPFv2 on any interfaces matched by the configured address and mask, enabling OSPF on the
4、interface for the listed area.Step 4. (Optional) Use the passive-interface type number router subcommand to configure any OSPF interfaces as passive if no neighbors can or should be discovered on the interface.Implementing Single-Area OSPFImplementing Single-Area OSPFSample Network for OSPF Single-A
5、rea ConfigurationIPv4 Address Configuration on R1 (Including VLAN Trunking)The router ospf 1 global command puts the users into OSPF configuration mode and sets the OSPF process-id to 1.This process-id just needs to be unique on the local router and be between 1 and 65,535.The OSPF network command t
6、ells the router to find its local interfaces that match the first two parameters in the command. Those interfaces then discover neighbors, create neighbor relationships and assign the interface to the area listed.Implementing Single-Area OSPFThe wildcard mask gives the local router its rules for mat
7、ching its own interfaces:Wildcard 0.0.0.0: Compare all 4 octets. In other words, the numbers must exactly match.Wildcard 0.0.0.255: Compare the first 3 octets only. Ignore the last octet when comparing the numbers.Wildcard 0.0.255.255: Compare the first 2 octets only. Ignore the last 2 octets when c
8、omparing the numbers.Wildcard 0.255.255.255: Compare the first octet only. Ignore the last 3 octets when comparing the numbers.Wildcard 255.255.255.255: Compare nothingthis wildcard mask means that all addresses will match the network command.Matching with the OSPF network CommandMatching with the O
9、SPF network CommandMatching with the OSPF network CommandOSPF Verification CommandsInterface: This is the local routers interface connected to the neighbor. For example, the first neighbor in the list is reachable through R3s S0/0/0 interface.Address: This is the neighbors IP address on that link. A
10、gain, for this first neighbor, the neighbor, which is R1, uses IP address 10.1.13.1.State: While many possible states exist, for the details discussed in this chapter, FULL is the correct and fully working state in this case.Neighbor ID: This is the router ID of the neighbor.Verifying OSPFv2 Single
11、AreaWhen OSPF is working correctly in the internetwork with a single-area design, all of the routers will have the same LSDB contents.For the purposes of the CCNA knowledge of the specifics about the output of this command are not required.Verifying OSPFv2 Single Area IPv4 Routes Added by OSPF Route
12、r R3 Configuration and the show ip protocols Commandshow ip ospf interface brief CommandOSPF speaking routers must have a router-ID (RID) for proper operation.By default, routers will choose an interface IP address to use as the RID.Typically, engineers prefer to choose each routers RID.A Cisco rout
13、er uses the following process when the router reloads and brings up the OSPF process to find the RID:If the router-id rid OSPF subcommand is configured, this value is used as the RID.If any loopback interfaces have an IP address configured, and the interface has an interface status of up, the router
14、 picks the highest numeric IP address among these loopback interfaces.The router picks the highest numeric IP address from all other interfaces whose interface status code (first status code) is up. (In other words, an interface in up/down state will be included by OSPF when choosing its router ID.)
15、Configuring the OSPF Router IDOSPF Router ID Configuration ExamplesImplementing Multiarea OSPFOSPF Single-Area Configuration OSPF Single-Area ConfigurationAn OSPF interface configured as passive will do the following:Quit sending OSPF Hellos on the interface.Ignore received Hellos on the interface.D
16、o not form neighbor relationships over the interface.OSPF does not form neighbor relationships over interfaces configured as passive, but does still advertise about the subnet connected to that interface.OSPF Passive InterfacesTo configure an interface as passive there are two options:Adding the pas
17、sive-interface type number command under router configuration mode.Configuring interfaces as passive by default with the passive-interface default command under global configuration mode and using the no passive-interface type number command to disable passive of specific interfaces.OSPF Passive Int
18、erfacesOSPF makes it interesting to figure out which interfaces are passive:The show ip ospf interface brief command lists all interfaces on which OSPF is enabled including passive interfaces.The show ip ospf interface command lists a single line that mentions that the interface is passive.OSPF Pass
19、ive InterfacesThe most classic case for using a routing protocol to advertise a default route has to do with an enterprises connection to the Internet.The enterprise engineer uses the following design goals:All routers learn specific routes for subnets inside the company; a default route is not need
20、ed when forwarding packets to these destinations.One router connects to the Internet, and it has a default route that points toward the Internet.All routers should dynamically learn a default route, used for all traffic going to the Internet, so that all packets destined to locations in the Internet
21、 go to the one router connected to the Internet.OSPF Default RoutesR1 has a static default route with a next-hop address of the ISP router.R1 uses the OSPF default-information originate command to advertise a default route using OSPF to B1 and B2.R1 needs a default route, either defined as a static
22、default route, learned from the ISP with DHCP or learned from the ISP with a routing protocol like eBGP unless the always parameter is used.OSPF Default RoutesThe branch routers then place the learned OSPF default route into their routing tables.OSPF Default RoutesR1 uses DHCP to learn its IP addres
23、s on its Gi0/3 interface from the ISP.R1 then creates a static default route with the ISP routers IP address of 192.0.2.1 as the next-hop address.OSPF Default RoutesCisco routers allow three different ways to change the OSPF interface cost:Directly, using the interface subcommand ip ospf cost x.Usin
24、g the default calculation per interface, and changing the interface bandwidth setting, which changes the calculated value.Using the default calculation per interface, and changing the OSPF reference bandwidth setting, which changes the calculated value.IOS uses the Reference_bandwidth / Interface_bandwidth formula to choose an interfaces cost.With this formula the following sequence of logic happens:A higher interface bandwidththat is, a faster bandwidthresults in a lower number in the calculation.A lower number
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 足療店經(jīng)營(yíng)中財(cái)務(wù)預(yù)算與成本控制的策略
- 購(gòu)物中心的多媒體營(yíng)銷策略研究
- 跨國(guó)公司如何利用全球資源進(jìn)行成本控制
- 四年級(jí)信息技術(shù)下冊(cè)第7課收集多媒體素材下教案粵教版
- 追求卓越不斷突破-以蘋果公司為例談企業(yè)創(chuàng)新
- 浙江專用2025版高考語(yǔ)文二輪復(fù)習(xí)語(yǔ)用考點(diǎn)分類練一擴(kuò)展語(yǔ)句壓縮語(yǔ)段
- 金融領(lǐng)域的財(cái)務(wù)分析與報(bào)表解讀技巧
- 北京專版2024年中考數(shù)學(xué)復(fù)習(xí)第一單元數(shù)與式課時(shí)訓(xùn)練01實(shí)數(shù)的有關(guān)概念
- 浙江國(guó)企招聘2024浙江清嶺科技有限公司招聘3人筆試參考題庫(kù)附帶答案詳解
- 廣西2025年01月柳州市柳北區(qū)柳長(zhǎng)街道辦事處2025年度公開(kāi)招考1名專職化城市社區(qū)工作者筆試歷年典型考題(歷年真題考點(diǎn))解題思路附帶答案詳解
- 2025年湖南工業(yè)職業(yè)技術(shù)學(xué)院?jiǎn)握新殬I(yè)適應(yīng)性測(cè)試題庫(kù)完整版
- 作品集合同范本
- 保安員綜合理論考試題庫(kù)備考500題(含各題型)
- 山泉水公司《質(zhì)量管理手冊(cè)》
- X證書(shū)失智老年人照護(hù)身體綜合照護(hù)講解
- 2025年日歷(日程安排-可直接打印)
- 2輸變電工程施工質(zhì)量驗(yàn)收統(tǒng)一表式(變電工程土建專業(yè))-2024年版
- QCT457-2023救護(hù)車技術(shù)規(guī)范
- 中國(guó)鐵路總公司環(huán)境保護(hù)管理辦法(鐵總計(jì)統(tǒng)〔2015〕260號(hào))
- 技術(shù)分析介紹教程課件
- 汽車新能源汽車產(chǎn)業(yè)專利趨勢(shì)分析
評(píng)論
0/150
提交評(píng)論