欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

思科OSPF配置實驗案例詳解

  發(fā)布時間:2020-03-11 15:30:10   作者:atombomb   我要評論
這篇文章主要介紹了思科OSPF配置實驗,結(jié)合具體案例形式詳細分析了思科OSPF配置的相關(guān)原理、操作命令與注意事項,需要的朋友可以參考下

本文實例講述了思科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)文章

最新評論