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

在这里插入图片描述

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