思科OSPF配置實驗案例詳解

本文實例講述了思科OSPF配置實驗。分享給大家供大家參考,具體如下:
實驗拓撲圖
IPv4地址表
Device |
Interface |
IP Address |
R1 |
F 0/0 |
10.1.65.1 |
S 1/0 |
192.168.65.1 |
|
R3 |
S 1/0 |
192.168.65.3
|
R4 |
S 1/0 |
192.168.65.4 |
R5 |
F 0/0 |
10.1.65.5 |
S 1/0 |
12.1.65.5 |
|
R6 |
F 0/0 |
10.1.65.6 |
F 0/1 |
11.1.65.6 |
|
R8 |
F 0/1 |
11.1.65.7 |
S 1/0 |
12.1.65.7 |
步驟1:開啟幀中繼交換功能
R2(config)#frame-relay switching
步驟2:配置接口封裝
R2(config)#int s 1/2 R2(config-if)#no shutdown R2(config-if)#clock rate 128000 R2(config-if)#encapsulation frame-relay R2(config)#int s 1/0 R2(config-if)#no shutdown R2(config-if)#clock rate 128000 R2(config-if)#encapsulation frame-relay R2(config)#int s 1/1 R2(config-if)#no shutdown R2(config-if)#clock rate 128000 R2(config-if)#encapsulation frame-relay
(3) 步驟3:配置LMI類型
R2(config)#int s 1/2 R2(config-if)#frame-relay lmi-type cisco R2(config-if)#frame-relay intf-type dce R2(config)#int s 1/0 R2(config-if)#frame-relay lmi-type cisco R2(config-if)#frame-relay intf-type dce R2(config)#int s 1/1 R2(config-if)#frame-relay lmi-type cisco R2(config-if)#frame-relay intf-type dce
(4) 步驟4:配置幀中繼交換表
R2(config)#int s 1/2 R2(config-if)#frame-relay route 103 interface s 1/0 301 R2(config-if)#frame-relay route 104 interface s 1/1 401 R2(config)#int Serial 1/0 R2(config-if)#frame-relay route 301 interface Serial1/2 103 R2(config)#int Serial 1/1 R2(config-if)#frame-relay route 401 interface Serial1/2 104
此時“show frame-relay route”
檢查幀中繼交換機是否正常
(5)步驟5:配置R1、R3、R4,使得它們能夠互相通信
R1(config)#int s 1/0 R1(config-if)#ip address 192.168.65.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#encapsulation frame-relay R1(config-if)#frame-relay lmi-type cisco R1(config-if)#no frame-relay inverse-arp //關(guān)閉自動映射 R1(config-if)#frame-relay map ip 192.168.65.3 103 broadcast R1(config-if)#frame-relay map ip 192.168.65.4 104 broadcast
R3(config)#int s 1/0 R3(config-if)#ip address 192.168.65.3 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#encapsulation frame-relay R3(config-if)#no frame-relay inverse-arp R3(config-if)#frame-relay map ip 192.168.65.1 301 broadcast
R4(config)#int s 1/0 R4(config-if)#ip address 192.168.65.4 255.255.255.0 R4(config-if)#no shutdown R4(config-if)#encapsulation frame-relay R4(config-if)#no frame-relay inverse-arp R4(config-if)#frame-relay map ip 192.168.65.1 401 broadcast
進行ping命令測試
從R1ping到R3與R4
R1#show frame-relay map R1#show frame-relay pvc
發(fā)現(xiàn)已有兩條本地連接
步驟6:開始配置ospf
先配置外部路由器ospf (R6、R1為例,R5.R8同理)
先配置外部路由器ospf (R6、R1為例,R5.R8同理)
R6(config)#router ospf 1 R6(config-router)#router-id 6.6.6.6 R6 (config-router)#area 1 nssa――配置區(qū)域 1 為 NSSA 區(qū)域 R6(config)#interface loopback 0 R6(config-if)#ip add 6.6.6.6 255.255.255.255 R6(config)#int f 0/0 R6(config-if)#ip add 10.1.65.6 255.255.255.0 R6(config-if)#no shut R6(config-if)#ip ospf 1 area 0 R6(config-if)#int f 0/1 R6(config-if)#ip add 11.1.65.6 255.255.255.0 R6(config-if)#no shut R6(config-if)#ip ospf 1 area 1 R6(config-if)#ex R6(config)#router ospf 1 R6(config-router)#network 6.6.6.6 0.0.0.0 area 0 R6(config-router)#network 10.1.65.0 0.0.0.255 area 0 R6(config-router)#network 11.1.65.0 0.0.0.255 area 0
R1(config)#router ospf 1 R1(config-router)#router-id 1.1.1.1 R1(config)#interface loopback 0 R1(config-if)#ip add 1.1.1.1 255.255.255.255 R1(config)#int f 0/0 R1(config-if)#ip add 10.1.65.1 255.255.255.0 R1(config-if)#no shut R1(config-if)#ip ospf 1 area 0 R1(config-if)#int s 1/0 R1(config-if)#ip ospf 1 area 0 R1(config-if)#ex R1(config)#router ospf 1 R1(config-router)#network 1.1.1.1 0.0.0.0 area 0 R1(config-router)#network 10.1.65.0 0.0.0.255 area 0 R1(config-router)#network 192.168.65.0 0.0.0.255 area 0 R1(config-router)#neighbor 192.168.65.3 R1(config-router)#neighbor 192.168.65.4
步驟7:配置幀中繼中路由器的ospf (R3為例,R4同理)
R3(config)#router ospf 1 R3(config-router)#router-id 3.3.3.3 R3(config-router)#ex R3(config)#int loopback 0 R3(config-if)#ip add 3.3.3.3 255.255.255.255 R3(config-if)#ip ospf 1 area 2 R3(config-if)#int s 1/0 R3(config-if)# ip ospf 1 area 2 R3(config-if)# ip ospf priority 0 R3(config)#router ospf 1 R3(config-router)#network 3.3.3.3 0.0.0.0 area 2 R3(config-router)#network 192.168.65.0 0.0.0.255 area 2
已完成OSPFv2配置,在R1上查ospf鄰居關(guān)系
R1#show ipv6 ospf neighbor
測試路由通斷情況
在R5上測試得出結(jié)果如下(從內(nèi)部到外部皆ping通,實驗完成)
因為RIPNG是針對IPV6設(shè)計的一種路由協(xié)議,不支持IPV4,所以在OSPFv2里并沒有做RIPNG路由配置。
相關(guān)文章
思科CCNA路由器配置——OSPF基于區(qū)域的MD5認證實驗詳解
這篇文章主要介紹了思科CCNA路由器OSPF基于區(qū)域的MD5認證實驗,結(jié)合實例形式詳細分析了思科CCNA OSPF基于區(qū)域的MD5認證具體步驟、配置命令與相關(guān)操作注意事項,需要的朋友可2020-03-03思科CCNA路由器配置——基于區(qū)域的OSPF簡單認證配置實驗詳解
這篇文章主要介紹了思科CCNA基于區(qū)域的OSPF簡單認證配置實驗,結(jié)合實例形式分析了思科路由器配置區(qū)域OSPF認證的具體步驟、配置命令與相關(guān)操作注意事項,需要的朋友可以參考下2020-03-03思科CCNA路由器配置——廣播多路訪問鏈路上的OSPF配置實驗詳解
這篇文章主要介紹了思科CCNA路由器廣播多路訪問鏈路上的OSPF配置實驗,結(jié)合實例形式總結(jié)分析了思科路由器作廣播形式的OSPF訪問配置相關(guān)步驟、配置命令與操作注意事項,需要的2020-03-02思科CCNA路由器配置——基于OSPF協(xié)議實現(xiàn)全網(wǎng)互通效果配置實驗詳解
這篇文章主要介紹了思科CCNA路由器基于OSPF協(xié)議實現(xiàn)全網(wǎng)互通效果配置實驗,結(jié)合實例形式分析了思科路由器使用OSPF協(xié)議進行全網(wǎng)互聯(lián)配置的相關(guān)步驟、配置命令與操作技巧,需要2020-03-02思科Cisco路由器配置——使用OSPF協(xié)議實現(xiàn)的全網(wǎng)互通配置實驗詳解
這篇文章主要介紹了思科Cisco使用OSPF協(xié)議實現(xiàn)的全網(wǎng)互通配置實驗,結(jié)合具體實驗案例詳細分析了思科基于OSPF實現(xiàn)的全網(wǎng)互通具體配置步驟、命令與操作注意事項,需要的朋友可2020-02-28思科Cisco路由器配置——基于OSPF協(xié)議的路由重分布配置實驗詳解
這篇文章主要介紹了思科Cisco基于OSPF協(xié)議的路由重分布配置實驗,結(jié)合具體實驗案例形式詳細分析了思科Cisco基于OSPF協(xié)議的路由重分布全網(wǎng)互通相關(guān)原理、配置命令與操作注意2020-02-27- 這篇文章主要介紹了思科CCNA認證OSPF擴展配置,總結(jié)分析了思科CCNA認證OSPF擴展配置相關(guān)原理、配置命令與操作注意事項,需要的朋友可以參考下2020-02-19
- 這篇文章主要介紹了思科CCNA認證OSPF基本原理與配置,總結(jié)分析了CCNA認證考試中OSPF的基本概念、原理、配置方法與相關(guān)操作技巧,需要的朋友可以參考下2020-02-19
思科Sisco GNS3配置RIP與OSPF路由重發(fā)布
GNS3是一款優(yōu)秀的具有圖形化界面可以運行在多平臺,那么怎么用GNS3配置RIP與OSPF路由重發(fā)布?下面腳本之家的小編帶大家一起學習一下,用GNS3配置RIP與OSPF路由重發(fā)布的步2014-09-26思科CCNA認證EIGRP——增強型內(nèi)部網(wǎng)關(guān)路由協(xié)議詳解
這篇文章主要介紹了思科CCNA認證EIGRP——增強型內(nèi)部網(wǎng)關(guān)路由協(xié)議,詳細總結(jié)分析了EIGRP增強型內(nèi)部網(wǎng)關(guān)路由協(xié)議的具體概念、原理、使用方法與操作注意事項,需要的朋友可以參2020-03-10