当前位置:网站首页>【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环回和外网
边栏推荐
- RHCE命令练习(二)
- Common functions and usage of numpy
- [idea] where to use the query field
- [ManageEngine] what is the LAN monitoring software and what is its function
- 新1688 API 接入说明
- IT硬件故障的主要原因和预防的最佳实践
- Prometheus 的 API 稳定性保障
- Flink SQL Hudi 实战
- Openpyxl border
- (perfect solution) why is the effect of using train mode on the train/val/test dataset good, but it is all very poor in Eval mode
猜你喜欢
如何选择专业、安全、高性能的远程控制软件
This article enables you to understand the underlying principle of MySQL- Internal structure, index, lock, cluster
Learning summary of time complexity and space complexity
Digital twin rail transit: "intelligent" monitoring to clear the pain points of urban operation
第二轮Okaleido Tiger热卖的背后,是背后生态机构战略支持
Connect with Alipay payment
SQL injection of DVWA
Linux Redis 源码安装
[leetcode sliding window problem]
【Leetcode-滑动窗口问题】
随机推荐
(update 20211130) about the download and installation of Jupiter notebook and its own configuration and theme
Django reports an error using pymsql module django.db.utils.operationalerror
[MySQL] string to int
跨模态对齐 20220728
uniapp createSelectorQuery().select 获取返回null报错
ValueError: Colors must be aRGB hex values
Intel introduces you to visual recognition -- openvino
DVWA之SQL注入
Google play APK uploads other international app stores
How to smoothly go online after MySQL table splitting?
过去10年的10起重大网络安全事件
教你一文解决 js 数字精度丢失问题
测试/开发程序员靠技术渡过中年危机?提升自己本身的价值......
Self-attention neural architecture search for semantic image segmentation
Seven SQL performance optimizations that spark 3.0 must know
DocuWare 移动劳动力解决方案可帮助您构建新的生产力模式:随时随地、任何设备
nep 2022 cat
Learning summary of time complexity and space complexity
Flask generates image verification code
Hilbert transform and instantaneous frequency