当前位置:网站首页>ospf 综合实验(重发布,特殊区域)
ospf 综合实验(重发布,特殊区域)
2022-07-30 03:45:00 【Co_ml】
设计拓扑,配置ip;
配置MGRE:(R3为中心进行注册)
[r3-Tunnel0/0/0]interface Tunnel0/0/0 创建tunnel口
[r3-Tunnel0/0/0]ip address 10.1.1.1 255.255.255.0 配置接口ip地址
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp 先修改接口模式为多点GRE
[r3-Tunnel0/0/0]source 172.16.6.1 再定义公有的源IP地址
[r3-Tunnel0/0/0]nhrp entry multicast dynamic 本地成为NHRP中心,同时可以进行伪广播
[r3-Tunnel0/0/0]nhrp network-id 100 默认为0号,该网段内所有节点tunnel接口必须为相同域
R5R6R7到R3注册:
[r5-Tunnel0/0/0]interface Tunnel0/0/0
[r5-Tunnel0/0/0]ip address 10.1.1.5 255.255.255.0
[r5-Tunnel0/0/0]tunnel-protocol gre p2mp
[r5-Tunnel0/0/0]source GigabitEthernet0/0/0 假设分支站点ip地址不固定
[r5-Tunnel0/0/0]nhrp network-id 100
[r5-Tunnel0/0/0]nhrp entry 10.1.1.1 172.16.6.1 register 分支需要到中心站点注册
访问:isp;配置缺省路由,nat共有私有地址转换:
[r3]ip route-static 0.0.0.0 0 172.16.6.2
[r3]acl 2000
[r3-acl-basic-2000]rule permit source 172.16.1.0 0.0.0.255
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]nat outbound 2000
ospf宣告:骨干区域0需要宣告tunnel口;
如r7:--------
[r7]ospf 1
[r7-ospf-1-area-0.0.0.0]dis th
[V200R003C00]
#
area 0.0.0.0
network 10.1.1.7 0.0.0.0
network 172.16.10.0 0.0.0.255
#
return
而r4需要进行重发布:远离骨干区域的非骨干区域------
[r9]ospf 1
[r9-ospf-1]import-route ospf 2 导入OSPF 2
[r9-ospf-1]q
[r9]ospf 2
[r9-ospf-2]import-route ospf 1 导入OSPF 1
[r9-ospf-1-area-0.0.0.3]dis th
[V200R003C00]
#
area 0.0.0.3
network 172.16.3.0 0.0.0.255
nssa no-summary
#
return
[r9-ospf-2-area-0.0.0.4]dis th
[V200R003C00]
#
area 0.0.0.4
abr-summary 172.16.4.0 255.255.255.0
network 172.16.4.0 0.0.0.255
#
return
r12;重发布rip----
[r12-ospf-1]import-route rip 将rip重发布到OSPF的进程1
----减少lsa数量;汇总
[r3]ospf 1
[r3-ospf-1]area 1 来源区域(一定是ABR通过该区域的1、2类计算所得路由)
[r3-ospf-1-area-0.0.0.1]abr-summary 172.16.1.0 255.255.255.0
将R2设置为末梢区域:
[r3]ospf 1
[r3-ospf-1]area 1
[r3-ospf-1-area-0.0.0.1]stub
[r3-ospf-1-area-0.0.0.1]stub no-summary
将R7 R6设置为 完全nssa
[r7]ospf 1
[r7-ospf-1]area 3
[r7-ospf-1-area-0.0.0.3]nssa no-summary
更新安全:
[r3]ospf 1
[r3-ospf-1]area 1
[r3-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher 123456
配置完成后,该设备所有属于区域1的接口全部基于该秘钥认证
由r5查看lsadb:
[r5-ospf-1]dis ospf lsdb
OSPF Process 1 with Router ID 5.5.5.5
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 7.7.7.7 7.7.7.7 494 48 80000006 0
Router 6.6.6.6 6.6.6.6 448 48 80000005 0
Router 5.5.5.5 5.5.5.5 1558 48 80000005 0
Router 3.3.3.3 3.3.3.3 1013 36 8000000B 1562
Network 10.1.1.1 3.3.3.3 1013 40 80000005 0
Sum-Net 172.16.3.0 7.7.7.7 77 28 80000007 2
Sum-Net 172.16.2.0 6.6.6.6 216 28 80000006 2
Sum-Net 172.16.1.0 3.3.3.3 400 28 80000005 1
AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric
External 0.0.0.0 7.7.7.7 494 36 80000001 1
External 0.0.0.0 6.6.6.6 448 36 80000001 1
External 172.16.4.0 9.9.9.9 201 36 80000003 2
External 172.16.4.0 7.7.7.7 76 36 80000001 2
External 172.16.5.0 12.12.12.12 399 36 80000003 2
External 172.16.5.0 6.6.6.6 216 36 80000001 2
External 172.16.2.16 12.12.12.12 428 36 80000002 1
边栏推荐
- 北京bgp机房和普通机房的区别
- 发给你的好友,让 TA 请你吃炸鸡!
- WeChat second-hand transaction small program graduation design finished works (8) graduation design thesis template
- 淘宝/天猫获得淘宝店铺详情 API
- Monitor page deployment
- LoadBalancer 负载均衡
- Nacos service registration and discovery
- OpenFeign realize load balance
- AI智能安防视频平台EasyCVR如何配置音视频同时传输?
- WPF递归获取窗体中指定控件类型列表
猜你喜欢
分类之决策树分类
Mini Program Graduation Works WeChat Second-hand Trading Mini Program Graduation Design Finished Work (2) Mini Program Function
26 basic models in 6 categories that operators must master
如何有效进行回顾会议(上)?
Send it to your friends and let TA treat you to fried chicken!
一起来学习flutter 的布局组件
Open address method hash implementation - linear detection method
sqlmap使用教程大全命令大全(图文)
Nacos service registration and discovery
发给你的好友,让 TA 请你吃炸鸡!
随机推荐
一起来学习flutter 的布局组件
Drools(7):WorkBench
护网行动基本介绍
Small application project works WeChat integral mall small program of graduation design (4) the opening report of finished product
Stimulsoft ReportsJS and DashboardsJS. 2022.3.3
小程序毕设作品之微信二手交易小程序毕业设计成品(2)小程序功能
STM32 SPI+WM8978语音回环
精品:淘宝/天猫获取购买到的商品订单详情 API
2022-07-29 第四小组 修身课 学习笔记(every day)
Summary of Rpc and gRpc Introduction
微服务CAP原则
List获取差集产生的问题
Send it to your friends and let TA treat you to fried chicken!
MySQ死锁
phpoffice 编辑excel文档
HCIP OSPF
The curl command to get the network IP
小程序毕设作品之微信积分商城小程序毕业设计成品(3)后台功能
Nacos服务注册与发现
AI智能安防视频平台EasyCVR如何配置音视频同时传输?