CCNP_OSPF大實驗

實驗要求拓撲圖如下:
在這裏插入圖片描述
對圖中不同區域和網段先進行子網劃分
在這裏插入圖片描述
搭建實驗拓撲圖,並將規劃好的網段進行標記
在這裏插入圖片描述
將每個路由器之間接口先配好地址與環回
在R3,R4,R5,R6,R7之間用MGRE技術打隧道,達到互通
需要先配置缺省路由,達到公網之間互通
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
R4爲運營商,此時R4就已經不需要再進行其他配置,R3爲中心站點,R5,R6,R7爲分支站點,對R3,R5,R6,R7進行配置
R3:

R3(config)#interface tunnel 1
R3(config-if)#ip address 172.16.64.1 255.255.248.0
R3(config-if)#tunnel source 34.1.1.1
R3(config-if)#tunnel mode gre multipoint 
R3(config-if)#ip nhrp map multicast dynamic
R3(config-if)#ip nhrp network-id 100

R5:

R5(config)#interface tunnel 1
R5(config)#ip add 172.16.64.2 255.255.248.0
R5(config-if)#tunnel source serial  2/0
R5(config-if)#tunnel mode gre multipoint 
R5(config-if)#ip nhrp nhs 172.16.64.1 
R5(config-if)#ip nhrp map 172.16.64.1 34.1.1.1
R5(config-if)#ip nhrp network-id 100

R6:

R6(config)#interface tunnel 1
R6(config)#ip add 172.16.64.3 255.255.248.0
R6(config-if)#tunnel source serial  2/0
R6(config-if)#tunnel mode gre multipoint 
R6(config-if)#ip nhrp nhs 172.16.64.1 
R6(config-if)#ip nhrp map 172.16.64.1 34.1.1.1
R6(config-if)#ip nhrp network-id 100

R7:

R7(config)#interface tunnel 1
R7(config)#ip add 172.16.64.4 255.255.248.0
R7(config-if)#tunnel source serial  2/0
R7(config-if)#tunnel mode gre multipoint 
R7(config-if)#ip nhrp nhs 172.16.64.1 
R7(config-if)#ip nhrp map 172.16.64.1 34.1.1.1
R7(config-if)#ip nhrp network-id 100

對隧道進行測試,看是否打通隧道
在這裏插入圖片描述
在這裏插入圖片描述
開始對各個區域中每個路由器起OSPF協議,進行宣告

R1(config)#router ospr 1
R1(config)#router-id 1.1.1.1
R1(config)#network 172.16.0.0 0.0.0.255 a 1

剩餘路由器配置如R1,需要注意環回所在的區域,在ABR上的配置需要注意所在的區域,剩餘路由器配置略
在R12上需要起EIGRP技術
在這裏插入圖片描述
在R5,R6,R7的隧道口上開啓僞廣播,讓它們能接受hello包
R5:

R5(config)#int tunnel 1
R5(config)#ip nhrp map multicast 34.1.1.1

R6:

R6(config)#int tunnel 1
R6(config)#ip nhrp map multicast 34.1.1.1

R7:

R7(config)#int tunnel 1
R7(config)#ip nhrp map multicast 34.1.1.1

將R3,R5,R6,R7改成多到到點模式
R5:

R5(config)#int tunnel 1
R5(config)#ip ospf network point-to-multipoint

R6:

R6(config)#int tunnel 1
R6(config)#ip ospf network point-to-multipoint

R7:

R7(config)#int tunnel 1
R7(config)#ip ospf network point-to-multipoint

R3:

R3(config)#int tunnel 1
R3(config)#ip ospf network point-to-multipoint

進行宣告,然後重發布:
R9:

R9(config)#router ospr 1
R9(config)#router-id 9.9.9.9
R9(config)#network 172.16.144.2 0.0.0.0 a 3
R9(config)#router ospr 2
R9(config)#router-id 99.9.9.9
R9(config)#network 172.16.160.1 0.0.0.0 a 4
R9(config)#network 172.16.168.1 0.0.0.0 a 4
R9(config)#redistribute ospf 2 subnets
R9(config)#router ospf 2
R9(config)#redistribute ospf 1 subnets

R10:

R10(config)#router ospr 1
R10(config)#router-id 10.10.10.10
R10(config)#network 172.16.0.0 0.0.255.255 a 4
R10(config)#router ospr 2
R10(config)#router-id 99.9.9.9
R10(config)#network 172.16.160.1 0.0.0.0 a 4
R10(config)#network 172.16.168.1 0.0.0.0 a 4

R12:

R12(config)#router ospf 1
R12(config)#redistribute eigrp 90 subnets

可以看到
在這裏插入圖片描述
內網全網可達
在這裏插入圖片描述
在這裏插入圖片描述
需要用NAT技術來達到所有設備能訪問R4的環回,並進行下發
R3:

R3(config)#int s 2/0
R3(config)#ip nat outside
R3(config)#int f 0/0
R3(config)#ip nat inside
R3(config)#asscss-list 1 permit 172.16.0.0 0.0.255.255
R3(config)#ip nat inside source list 1 interface serial 2/0
R3(config)#default-information originate

R5:

R5(config)#asscss-list 1 permit 172.16.0.0 0.0.255.255
R5(config)#int s 2/0
R5(config)#ip nat outside
R5(config)#ip nat inside source list 1 interface serial 2/0

R6:

R6(config)#int s 2/0
R6(config)#ip nat outside
R6(config)#int s 2/2
R6(config)#ip nat inside
R6(config)#asscss-list 1 permit 172.16.0.0 0.0.255.255
R6(config)#ip nat inside source list 1 interface serial 2/0
R3(config)#router ospf 1
R3(config)#default-information originate

R7:

R7(config)#asscss-list 1 permit 172.16.0.0 0.0.255.255
R7(config)#int s 2/0
R7(config)#ip nat outside
R7(config)#int s 2/1
R7(config)#ip nat inside
R7(config)#ip nat inside source list 1 interface serial 2/0
R3(config)#router ospf 1
R3(config)#default-information originate

R9:

R9(config)#router ospf 2
R9(config)#default-information originate

在R1上pingR4的環回
在這裏插入圖片描述
可以看到在R12上也有了缺省路由
在這裏插入圖片描述
並在R12上去pingR4的環回
在這裏插入圖片描述
用R10pingR4的環回
在這裏插入圖片描述
全網可達
減少LSA的更新量,通過手工彙總在ABR上進行優化
R3:

R3(config)#router ospf 1
R3(config)#area 1 range 172.16.32.0 255.255.224.0

在這裏插入圖片描述
R6:

R6(config)#area 2 range 172.16.96.0 255.255.224.0

在這裏插入圖片描述
R7:

R7(config)#area 3 range 172.16.128.0 255.255.224.0

在這裏插入圖片描述
R9:

R9(config)#router ospf 1
R9(config)#summary-address 172.16.160 255.255.224.0

在這裏插入圖片描述
R1:

R1(config)#router ospf 1
R1(config)#area 1 stub

R2:

R2(config)#router ospf 1
R2(config)#area 1 stub

R3:

R3(config)#router ospf 1
R3(config)#area 1 stub
R1(config)#area 1 stub no-summary

在這裏插入圖片描述
R6:

R3(config)#area 2 nssa

R11:

R11(config)#area 2 nssa

R12:

R12(config)#area 2 nssa

R6:

R6(config)#area 2 nssa no-summary

在這裏插入圖片描述
R7:

R7(config)#area 3 nssa
R7(config)#area 3 nssa no-summary

R8:

R8(config)#area 3 nssa

R9:

R9(config)#area 3 nssa

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章