第1章 OSPF進程配置命令 1.1 router ospf process-id 配置示例:激活OSPF進程 1.2 route ospf process-id vrf name第2章 OSPF Area命令 2.1 area area-id authentication 配置示例:簡單密碼認證XSH 2.2 area area-id authentication message-digest 配置示例1:MD5密碼認證 配置示例2:更改密鑰和密碼 2.3 area area-id default-cost cost 配置示例:設置通告進stub區域的默認路由的OSPF開銷值 2.4 area area-id nssa 配置示例:配置OSPF NSSA區域 2.5 area area-id nssa default-infromation-originate 配置示例:將OSPF NSSA默認路由通告進OSPF NSSA 2.6 area area-id nssa no-redistribution 配置示例:不讓經過重分發的路由進入OSPF NSSA區域 2.7 area area-id nssa no-summary 配置示例:創建Totally Stubby NSSA區域 2.8 area area-id range ip-address mask 2.9 area area-id range ip-address mask advertise 2.10 area area-id range ip-address mask not-advertise 配置示例1:將OSPF常規(非0)區域的路由匯總通告進OSPF骨乾區域 配置示例2:將OSPF骨乾區域的路由匯總通告進OSPF常規(非0)區域 配置示例3:針對OSPF匯總路由,設置指嚮NULL0的靜態路由 2.11 area area-id stub 配置示例:配置OSPF stub區域 2.12 area area-id stub no-summary 配置示例:配置OSPFtotally stubby區域 2.13 area transit-area-id virtual-link router-id 配置示例:建立OSPF虛電路 2.14 area transit-area-id virtual-link router-id authentication authentication-key password 2.15 area transit-area-id virtual-link router-id authentication message-digest 2.16 area transit-area-id virtual-link router-id authentication null 配置示例1:虛鏈路上的簡單密碼認證 配置示例2:虛鏈路上的MD5認證 配置示例3:更改密鑰和密碼 配置示例4:Null(虛)認證 2.17 area transit-area-id virtual-link router-id authentication-key password 配置示例:虛鏈路上的簡單密碼認證 2.18 area transit-area-id virtual-link router-id dead-interval seconds 配置示例:修改通過虛鏈路發送的OSPF hello數據包所含的router dead interval字段值 2.19 area transit-area-id virtual-link router-id hello-interval seconds 配置示例:修改通過虛鏈路發送的OSPF hello數據包所含的hello interval字段值 2.20 area transit-area-id virtual-link router-id message-digest-key key-id md5 password 配置示例1:虛鏈路上的MD5認證 配置示例2:更改密鑰和密碼 2.21 area transit-area-id virtual-link router-id retransmit-interval seconds 配置示例:更改通過虛鏈路發送的LSA的retransmit-interval值 2.22 area transit-area-id virtual-link router-id transmit-delay seconds 配置示例:更改虛鏈路兩端的 transmit-delay值第3章 Auto Cost 3.1 auto-cost reference-bandwidth bandwidth 配置示例:全局性修改OSPF接口的開銷值第4章 生成默認路由 4.1 default-information originate 配置示例:將默認路由通告進OSPF路由進程域 4.2 default-information originate always 配置示例:無條件地將默認路由通告進OSPF路由進程域 4.3 default-information originate metric cost 4.4 default-information originate always metric cost 配置示例:將默認路由無條件地通告進OSPF路由進程域 4.5 default-information originate metric-type type 4.6 default-information originate always metric-type type 配置示例:設置默認路由的OSPF度量類型 4.7 default-information originate route-map route-map-name 配置示例:利用route-map有條件地通告默認路由第5章 為經過重分發的路由設置默認度量 5.1 default-metric cost 配置示例:為經過重分發的路由設置默認開銷值第6章 管理距離 6.1 distance administrative-distance 配置示例:調整管理距離值,影響路由器對最優路由的選擇 6.2 distance administrative-distance source-ip-address source-ip-mask 6.3 distance administrative-distance source-ip-address source-ip-mask access-list-number 配置示例1:調整學自特定OSPF鄰居的所有路由的管理距離值 配置示例2:調整學自特定OSPF鄰居的 特定路由的管理距離值 6.4 distance ospf external administrative-distance 6.5 distance ospf inter-area administrative-distance 6.6 distance ospf intra-area administrative-distance 配置示例:根據路由類型,調整OSPF路由的管理距離第7章 用distribute-list過濾路由 7.1 distribute-list access-list-number in 配置示例:阻止學自OSPF的路由進駐IP路由錶 7.2 distribute-list access-list-number in interface-type interface-number 配置示例:阻止通過特定接口學得的OSPF路由進駐IP路由錶 7.3 distribute-list access-list-number out 7.4 distribute-list access-list-number out interface-type interface-number 7.5 distribute-list access-list-number out routing-process 配置示例:防止重分發進OSPF的路由“進駐”IP路由錶 7.6 distribute-list access-list-number in 配置示例:防止學自OSPF的路由進駐IP路由錶 7.7 distribute-list access-list-name in interface-type interface-number 配置示例:防止路由器將學自特定接口的OSPF路由安裝進IP路由錶 7.8 distribute-list access-list-name out 7.9 distribute-list access-list-name out interface-type interface-number 7.10 distribute-list access-list-name out routing-process 配置示例:阻止重分發進OSPF的路由進駐OSPF數據庫 7.11 distribute-list prefix prefix-list-name in 配置示例:防止學自OSPF路由“進駐”IP選擇錶 7.12 distribute-list prefix prefix-list-name in interface-type interface-number 配置示例:阻止學自特定接口的OSPF路由進駐IP路由錶 7.13 distribute-list prefix prefix-list-name out 7.14 distribute-list prefix prefix-list-name out interface-type interface-number 7.15 distribute-list prefix prefix-list-name out routing-process 配置示例:防止被重分發進OSPF的路由“進駐”OSPF數據庫第8章 處理MOSPF LSA 8.1 ignore lsa mospf第9章 記錄OSPF鄰接關係的改變 9.1 log-adjacency-changes 9.2 log adjacency-changes detail 配置示例1:在控製颱記錄OSPF鄰接狀態的變化情況 配置示例2:在內存中記錄OSPF鄰接狀態的變化情況第10章 配置多路徑 10.1 maximum-paths number-of-paths 配置示例:設置OSPF路由器可在IP路由錶中安裝的最多並行等價路徑數第11章 OSPFneighbor命令 11.1 neighbor ip-address 配置示例1:在NBMA網絡中,利用neighbor命令激活OSPF 配置示例2:在Hub-to-Spoke(中心-分支)網絡中配置OSPF鄰居,且OSPF鄰居的IP地址隸屬於同一IP子網 配置示例3:在Hub-to-Spoke(中心-分支)網絡中配置OSPF鄰居,且OSPF鄰居的IP地址不屬於同一IP子網 11.2 neighbor ip-address cost cost 配置示例:在OSPF網絡類型為point-to-multipoint的接口上,修改針對OSPF鄰居而設的開銷值 11.3 neighbor ip-address database-filter all out 配置示例:降低冗餘鏈路上的LSA泛洪量 11.4 neighbor ip-address poll-interval interval 配置示例:針對OSPF網絡類型為NBMA的接口設置Poll Interval值 11.5 neighbor ip-address priority priority 配置示例:設置OSPF鄰居的優先級第12章 OSPF network命令 12.1 network ip-address wild-card-mask area area-id 配置示例1:用主機地址作為本命令的參數,讓相關路由器接口參與OSPF進程 配置示例2:使用與接口所設IP地址相對應的網絡/掩碼作為OSPF network命令的參數 配置示例3:使用更為寬泛的network命令(所含的逆嚮子網掩碼參數更短),讓多個路由器接口參與OSPF進程第13章 Passive OSPF接口 13.1 passive-interface interface-name interface-number 配置示例:配置Passive接口,降低網絡中OSPF路由協議流量 13.2 passive-interface default 配置示例:接口多,鄰居少的OSPF路由器第14章 路由重分發 14.1 redistribute routing-process process-id 14.2 redistribute routing-process process-id metricospf-metric 14.3 redistribute routing-process process-id metric-type metric-type 14.4 redistribute routing-process process-id subnets 14.5 redistribute routing-process process-id tag tag-value 配置示例1:以默認度量類型和度量值,將有類路由重分發進OSPF 配置示例2:以默認度量類型和指定的度量值,將有類路由重分發進OSPF 配置示例3:以默認度量類型和指定的度量值,將有類路由重分發進OSPF 配置示例4:以指定的度量值,並以type1路由的形式將有類路由重分發進OSPF 配置示例5:以指定的度量值,並以type1路由的形式,將子網路由重分發進OSPF 配置示例6:以指定的度量值和路由標記值,並以type1路由的形式,將子網路由重分發進OSPF 14.6 redistribute routing-process process-id route-map route-map- name 配置示例1:根據IP地址,來控製路由的重分發 配置示例2:用Route-Map調整經過重分發的路由的度量值 配置示例3:用Route-Map,更改經過重分發的路由的度量類型 配置示例4:用Route-Map,修改經過重分發的路由的標記值 配置示例5:根據路由標記值,控製路由的重分發第15章 掌控OSPF Router-ID 15.1 router-id ip-address 配置示例:選擇OSPF Router-ID第16章 匯總外部路由 16.1 summary-address ip-address mask 16.2 summary-address ip-address mask not-advertise 配置示例:匯總被重分發進OSPF的路由 16.3 summary-address ip-address mask tag value 配置示例1:讓ASBR生成的匯總路由附著路由標記 配置示例2:用路由標記值,來掌控路由的重分發第17章 OSPF計時器 17.1 timers lsa-group-pacing seconds 配置示例:修改LSA組步調延遲值 17.2 timers spf delay interval 配置示例:更改SPF timer值第18章 流量負載均衡 18.1 traffic-share min across-interfaces第19章 接口配置模式命令 19.1 ip ospf authentication 19.2 ip ospf authentication authentication-key password 19.3 ip ospf authentication message-digest 19.4 ip ospf authentication null 配置示例1:OSPF網絡中的簡單密碼認證 配置示例2:在OSPF網絡中啓用MD5認證 配置示例3:更改密鑰和密碼 配置示例4:NULL(虛)認證 19.5 ip ospf cost cost 配置示例:更改接口的OSPF開銷值 19.6 ip ospf database-filter all out 配置示例:降低冗餘鏈路上的LSA泛洪量 19.7 ip ospf dead-interval seconds 配置示例:修改路由器接口所發OSPF Hello數據包的router dead interval字段值 19.8 ip ospf demand-circuit 配置示例:將Point-to-Point鏈路配置為OSPF demand-circuit 19.9 ip ospf flood-reduction 配置示例:在接口上激活ospf flood-reduction特性 19.10 ip ospf hello-interval seconds 配置示例:修改路由器接口所發OSPF Hello數據包的hello interval字段值 19.11 ip ospf message-digest-key key-id md5 password 配置示例1:開啓OSPF接口的MD5認證功能 配置示例2:修改密鑰和密碼 19.12 ip ospf mtu-ignore 配置示例:OSPF鄰接關係和MTU不匹配 19.13 ip ospf network broadcast 配置示例1:在NBMA網絡內形成全互連的OSPF鄰居 配置示例2:NBMA網絡內形成部分互連的OSPF鄰居 19.14 ip ospf network non-broadcast 19.15 ip ospf network point-to-multipoint 19.16 ip ospf network point-to-multipoint non-broadcast 配置示例1:Hub路由器端互連接口的OSPF網絡類型為multipoint,Spoke路由器端互連接口的網絡類型為Point-to-Point 配置示例2:Hub和Spoke路由器互連接口兩端的OSPF網絡類型都為multipoint 19.17 ip ospf network point-to-point 配置示例:Hub和Spoke路由器互連接口兩端的OSPF網絡類型都為Point-to-Point 19.18 ip ospf priority priority 配置示例:“乾涉”指定路由器(DR)的選舉 19.19 ip ospf retransmit-interval seconds 配置示例:修改retransmit interval值 19.20 ip ospf transmit-delay seconds 配置示例:修改OSPF接口的transmit-delay值第20章 show命令 20.1 show ip ospf 20.2 show ip ospf process-id 示例:顯示OSPF進程信息 20.3 show ip ospf border-routers 20.4 show ip ospf process-id border-routers 示例:顯示通往OSPF邊界路由器的路由信息 20.5 show ip ospf database 20.6 show ip ospf process-id database 20.7 show ip ospf database adv-router router-id 20.8 show ip ospf process-id database adv-router router-id 20.9 show ip ospf database asbr-summary 20.10 show ip ospf process-id database asbr-summary 20.11 show ip ospf database asbr-summary asbr-id 20.12 show ip ospf process-id database asbr-summary asbr-id 20.13 show ip ospf database database-summary 20.14 show ip ospf process-id database database-summary 20.15 show ip ospf database external 20.16 show ip ospf process-id database external 20.17 show ip ospf database network 20.18 show ip ospf process-id database network 20.19 show ip ospf database nssa-external 20.20 show ip ospf process-id database nssa-external 20.21 show ip ospf database router 20.22 show ip ospf process-id database router 20.23 show ip ospf database self-originate 20.24 show ip ospf process-id database self-originate 20.25 show ip ospf database summary 20.26 show ip ospf process-id database summary 示例1:顯示由指定OSPF路由器所通告的OSPF數據庫信息 示例2:顯示描述OSPF ASBR路由器的OSPF數據庫信息(type 4 LSA) 20.27 show ip ospf flood-list 20.28 show ip ospf process-id flood-list 20.29 show ip ospf flood-list int-name int-number 20.30 show ip ospf process-id flood-list int-name int-number 示例:顯示所有被路由器緩存的OSPF泛洪列錶內容 20.31 show ip ospf interface 20.32 show ip ospf process-id interface 20.33 show ip ospf interface int-name int-number 20.34 show ip ospf process-id interface int-name int-number 示例1:顯示某個參與OSPF路由進程的接口的信息 示例2:顯示參與OSPF路由進程的接口的OSPF計時器信息 20.35 show ip ospf neighbor 20.36 show ip ospf process-id neighbor 20.37 show ip ospf neighbor neighbor-id 20.38 show ip ospf process-id neighbor neighbor-id 20.39 show ip ospf neighbor int-name int-number 20.40 show ip ospf process-id neighbor int-name int-number 20.41 show ip ospf neighbor detail 20.42 show ip ospf process-id neighbor detail 20.43 show ip ospf neighbor detail neighbor-id 20.44 show ip ospf process-id neighbor detail neighbor-id 20.45 show ip ospf neighbor int-name int-number 20.46 show ip ospf process-id neighbor int-name int-number 示例1:顯示所有OSPF鄰居路由器的信息 示例2:顯示特定OSPF鄰居路由器的詳細信息 20.47 show ip ospf request-list 20.48 show ip ospf process-id request-list 20.49 show ip ospf request-list neighbor-id 20.50 show ip ospf process-id request-list neighbor-id 20.51 show ip ospf request-list int-name int-number 20.52 show ip ospf process-id request-list int-name int-number 示例:顯示某特定OSPF鄰居的鏈路狀態請求列錶信息 20.53 show ip ospf retransmission-list 20.54 show ip ospf process-id retransmission-list 20.55 show ip ospf retransmission neighbor-id 20.56 show ip ospf process-id retransmission neighbor-id 20.57 show ip ospf retransmission int-name int-number 20.58 show ip ospf process-id retransmission int-name int-number 示例:等待某特定路由器接口重傳的LSA列錶 20.59 show ip ospf summary-address 20.60 show ip ospf process-id summary-address 示例:顯示路由器上所配置的匯總地址重分發的信息 20.61 show ip ospf virtual-links 20.62 show ip ospf process-id virtual-links 示例:顯示本路由器上所配置的所有OSPF虛鏈路的狀態信息第21章 debug命令 21.1 debug ip ospf adj 示例1:展示OSPF鄰接關係成功建立的過程 示例2:當OSPF鄰居路由器間區域ID不一緻時,展示OSPF鄰接關係的嘗試建立過程 21.2 debug ip ospf events 示例1:展示OSPF鄰接關係成功建立的過程 示例2:定位OSPF鄰接關係建立過程中的問題 21.3 debug ip ospf flood 21.4 debug ip ospf flood ip-access-list-number 示例1:展示由OSPF泛洪協議生成的所有輸齣 示例2:選擇性地顯示與OSPF協議有關的debug輸齣 21.5 debug ip ospf lsa-generation 21.6 debug ip ospf lsa-generation ip-access-list-number 示例:展示OSPF鄰接關係成功建立的過程 21.7 debug ip ospf packet 示例:顯示OSPF包的信息 21.8 debug ip ospf retransmission 21.9 debug ip ospf spf 21.10 debug ip ospf spf external 21.11 debug ip ospf spf external access-list-number 21.12 debug ip ospf spf inter 21.13 debug ip ospf spf inter access-list-number 21.14 debug ip ospf spf intra 21.15 debug ip ospf spf intra access-list-number 示例:顯示外部的OSPF路由的SPF輸齣第22章 clear命令 22.1 clear ip ospf counters 22.2 clear ip ospf process-id counters 22.3 clear ip ospf process-id counters neighbor 22.4 clear ip ospf process-id counters neighbor int-name int-number 示例:查看並清零記錄OSPF鄰接狀態變遷的計數器 22.5 clear ip ospf process 22.6 clear ip ospf process-id process 22.7 clear ip ospf redistribution 22.8 clear ip ospf process-id redistribition
· · · · · · (
收起)