当前位置:网站首页>【HCIP】MGRE环境下OSPF实验,含多进程双向重发布及OSPF特殊区域
【HCIP】MGRE环境下OSPF实验,含多进程双向重发布及OSPF特殊区域
2022-07-29 00:33:00 【1ta-chi】
实验要求
- R4为ISP,其上配置公网IP
- R3-5/6/7 为
MGRE环境,R3为中心站点 - 整个OSPF环境IP地址为
172.16.0.0/16 - 所有设备均可访问R4的环回
- 减少LSA的更新量,加快收敛,保障更新安全
- 全网可达

实验过程
子网划分
拓扑中有6个区域,总体上划分6大网段 — 划 8 段借 3 位
172.16.0.0/16
-------------
172.16.0.0/19
172.16.32.0/19
172.16.64.0/19
172.16.96.0/19
172.16.128.0/19
172.16.160.0/19
172.16.192.0/19 //舍弃
172.16.224.0/19 //舍弃
area 0中需要 1 个Tunnel和 1 个环回 — 划 2 段借 1 位
172.16.0.0/19
-------------
172.16.0.0/20
172.16.16.0/20
area 1中需要 1 段MA网络和 3 个环回 — 划 4 段借 2 位
172.16.32.0/19
--------------
172.16.32.0/21
172.16.40.0/21
172.16.48.0/21
172.16.56.0/21
area 2中需要 2 段MA网络和 2 个环回 — 划 4 段借 2 位
172.16.64.0/19
--------------
172.16.64.0/21
172.16.72.0/21
172.16.80.0/21
172.16.88.0/21
area 3中需要 2 段MA网络和 2 个环回 — 划 4 段借 2 位
172.16.96.0/19
--------------
172.16.96.0/21
172.16.104.0/21
172.16.112.0/21
172.16.120.0/21
area 4中需要 1 个MA网络和 2 个环回 — 划 4 段借 2 位
172.16.128.0/19
---------------
172.16.128.0/21
172.16.136.0/21
172.16.144.0/21
172.16.152.0/21 //舍弃
rip中需要 2 个环回 — 划 2 段借 1 位
172.16.160.0/19
---------------
172.16.160.0/20
172.16.176.0/20
配置IP地址
R1 ping R3:
R3 ping R4:
缺省路由+NAT地址转换
//R3 - 例
#
ip route-static 0.0.0.0 0.0.0.0 34.1.1.4
#
acl number 2000
rule 1 permit
#
interface Serial4/0/0
link-protocol ppp
ip address 34.1.1.3 255.255.255.0
nat outbound 2000
#
R7 ping R4环回:
MGRE
//R3 - 中心站点
interface Tunnel0/0/0
ip address 172.16.0.3 255.255.240.0
tunnel-protocol gre p2mp
source 34.1.1.3
nhrp entry multicast dynamic
nhrp network-id 100
//R5
interface Tunnel0/0/0
ip address 172.16.0.5 255.255.240.0
tunnel-protocol gre p2mp
source Serial4/0/0
nhrp network-id 100
nhrp entry 172.16.0.3 34.1.1.3 register
//R6
interface Tunnel0/0/0
ip address 172.16.0.6 255.255.240.0
tunnel-protocol gre p2mp
source Serial4/0/0
nhrp network-id 100
nhrp entry 172.16.0.3 34.1.1.3 register
//R7
interface Tunnel0/0/0
ip address 172.16.0.7 255.255.240.0
tunnel-protocol gre p2mp
source Serial4/0/0
nhrp network-id 100
nhrp entry 172.16.0.3 34.1.1.3 register
OSPF
//R3 - 例
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 172.16.0.3 0.0.0.0
area 0.0.0.1
network 172.16.32.3 0.0.0.0
network 172.16.56.1 0.0.0.0
由于R3-5/6/7处于MGRE环境中,需要将其Tunnel接口修改为p2mp
//R3 - 例
[R3]int t0/0/0
[R3-Tunnel0/0/0]ospf network-type p2mp
此时除RIP和OSPF area 4外全网可达
路由表展示:
RIP及重发布
先将OSPF的area 4重发布
//R9
#
ospf 1 router-id 9.9.9.9
import-route ospf 2
area 0.0.0.3
network 172.16.104.9 0.0.0.0
#
ospf 2 router-id 9.9.9.9
import-route ospf 1
area 0.0.0.4
network 172.16.128.9 0.0.0.0
network 172.16.136.1 0.0.0.0
#
RIP及重发布
//R12
#
rip 1
version 2
network 172.16.0.0
import-route ospf 1
#
ospf 1 router-id 12.12.12.12
import-route rip 1
area 0.0.0.2
network 172.16.72.12 0.0.0.0
#
路由表展示(R3):
R10环回 ping R12环回:
路由汇总
域内路由汇总:
//R6 - 例
[R6]ospf 1
[R6-ospf-1]area 2
[R6-ospf-1-area-0.0.0.2]abr-summary 172.16.64.0 255.255.224.0
//空接口防环路由
[R6]ip route-static 172.16.64.0 19 NULL 0
域外路由汇总:
//R9
[R9]ospf 1
[R9-ospf-1]asbr-summary 172.16.128.0 255.255.224.0
//空接口防环路由
[R9]ip route-static 172.16.128.0 19 NULL 0
//R12
[R12]ospf 1
[R12-ospf-1]asbr-summary 172.16.160.0 255.255.224.0
[R12-ospf-1]q
[R12]ip route-static 172.16.160.0 19 NULL 0
路由表展示:
特殊区域
完全末梢区域
//R1
[R1]ospf 1
[R1-ospf-1]area 1
[R1-ospf-1-area-0.0.0.1]stub
//R2
[R2]ospf 1
[R2-ospf-1]area 1
[R2-ospf-1-area-0.0.0.1]stub
//R3
[R3]ospf 1
[R3-ospf-1]area 1
[R3-ospf-1-area-0.0.0.1]stub no-summary
完全NSSA
//R6
[R6]ospf 1
[R6-ospf-1]area 2
[R6-ospf-1-area-0.0.0.2]nssa no-summary
//R11
[R11]ospf 1
[R11-ospf-1]area 2
[R11-ospf-1-area-0.0.0.1]nssa
//R12
[R12]ospf 1
[R12-ospf-1]area 2
[R12-ospf-1-area-0.0.0.2]nssa
---------------------------------------
//R7
[R7]ospf 1
[R7-ospf-1]area 3
[R7-ospf-1-area-0.0.0.3]nssa no-summary
//R8
[R8]ospf 1
[R8-ospf-1]area 3
[R8-ospf-1-area-0.0.0.3]nssa
//R9
[R9]ospf 1
[R9-ospf-1]area 3
[R9-ospf-1-area-0.0.0.3]nssa
路由表展示:


此时R10也应写一条指向R9的缺省
[R10]ip route-static 0.0.0.0 0 172.16.128.9
加快收敛及认证
//R9
[R9]interface s4/0/1
[R9-Serial4/0/1]ospf timer hello 5
[R9-Serial4/0/1]ospf authentication-mode md5 1 cipher huawei
//R10
[R10]interface s4/0/0
[R10-Serial4/0/0]ospf timer hello 5
[R10-Serial4/0/0]ospf authentication-mode md5 1 cipher huawei
路由表展示及连通性测试





连通性测试:
R1环回 ping R12环回和外网
R10环回 ping R12环回和外网
边栏推荐
- Recommended Spanish translation of Beijing passport
- Summary of process and thread knowledge points 1
- Digital twin rail transit: "intelligent" monitoring to clear the pain points of urban operation
- 什么是原码、反码和补码
- 【ManageEngine】局域网监控软件是什么,有什么作用
- FLV文件简介
- Day2: 130 questions in three languages
- 过去10年的10起重大网络安全事件
- Test / development programmers rely on technology to survive the midlife crisis? Improve your own value
- Learning summary of time complexity and space complexity
猜你喜欢

Flask project architecture (First Edition

SQL question brushing: find the current salary details and department number Dept_ no

C language 300 lines of code to achieve mine sweeping (deployable + markable + changeable difficulty level)

梅克尔工作室——HarmonyOS实现列表待办

面试官:程序员,请你告诉我是谁把公司面试题泄露给你的?

瑞吉外卖项目实战Day01

Thread lock and its ascending and descending levels

C语言300行代码实现扫雷(可展开+可标记+可更改困难级别)

Oozie job scheduling

Principle and usage setting of large page memory
随机推荐
[idea] where to use the query field
Django uses the existing data table method of MySQL database
ActiveMQ basic details
nep 2022 cat
PLATO上线LAAS协议Elephant Swap,用户可借此获得溢价收益
Transfer: cognitive subculture
云原生应用综合练习上
Beginner's Guide to electronic bidding
Letax record \documentclass{}, authoryear attribute is used
Test / development programmers rely on technology to survive the midlife crisis? Improve your own value
uniapp createSelectorQuery().select 获取返回null报错
Google Play APK 上传其他国际应用商店
Textkit custom uilabel identification link
vm options、program arguments、environment property
log4j动态加载配置文件
How to smoothly go online after MySQL table splitting?
Teach you a text to solve the problem of JS digital accuracy loss
DocuWare 移动劳动力解决方案可帮助您构建新的生产力模式:随时随地、任何设备
CSDN modify column name
J9数字论:什么因素决定NFT的价值?