当前位置: 首页 > news >正文

综合实验2

1.根据划分网段配置ip

2.配置静态路由使公网通

3.配置ospf

area3使用进程1 area4使用进程2
在area3和area4使用路由引入

[r9-ospf-1]import-route ospf 2

[r9-ospf-2]import-route ospf 1

将rip引入area2

[r12-ospf-1]import-route rip

4.配置MGRE

[r3-Tunnel0/0/1]ip address 172.16.128.9 29

[r5-Tunnel0/0/1]ip address 172.16.128.10 29

[r6-Tunnel0/0/1]ip address 172.16.128.11 29

[r7-Tunnel0/0/1]ip address 172.16.128.12 29

[r3-Tunnel0/0/1]tunnel-protocol gre p2mp

[r3-Tunnel0/0/1]source 34.0.0.1

[r5-Tunnel0/0/1]tunnel-protocol gre p2mp

[r5-Tunnel0/0/1]source Serial 4/0/0

[r6-Tunnel0/0/1]tunnel-protocol gre p2mp

[r6-Tunnel0/0/1]source Serial 4/0/0

[r7-Tunnel0/0/1]tunnel-protocol gre p2mp

[r7-Tunnel0/0/1]source GigabitEthernet 0/0/0

[r3-Tunnel0/0/1]nhrp network-id 100

[r5-Tunnel0/0/1]nhrp network-id 100

[r5-Tunnel0/0/1]nhrp entry 172.16.128.9 34.0.0.1 register

[r6-Tunnel0/0/1]nhrp network-id 100

[r6-Tunnel0/0/1]nhrp entry 172.16.128.9 34.0.0.1 register

[r7-Tunnel0/0/1]nhrp network-id 100

[r7-Tunnel0/0/1]nhrp entry 172.16.128.9 34.0.0.1 register

在中心站点开启伪广播

[r3-Tunnel0/0/1]nhrp entry multicast dynamic

修改serial线类型

[r5-Tunnel0/0/1]ospf network-type broadcast

[r6-Tunnel0/0/1]ospf network-type broadcast

修改dr的选举

[r6-Tunnel0/0/1]ospf dr-priority 0

[r7-Tunnel0/0/1]ospf dr-priority 0

5.内网出口配置nat

[r3-acl-basic-2000]rule permit source 172.16.0.0 0.0.0.255

[r3-Serial4/0/0]nat outbound 2000

[r6-acl-basic-2000]rule permit source 172.16.32.0 0.0.0.255

[r6-Serial4/0/0]nat outbound 2000

在abr上下放缺省路由

[r3-ospf-1]default-route-advertise

[r5-ospf-1]default-route-advertise

[r6-ospf-1]default-route-advertise

[r7-ospf-1]default-route-advertise

ping测试

6.路由聚合和特殊区域

[r3-ospf-1-area-0.0.0.1]abr-summary 172.16.0.0 255.255.255.0

[r6-ospf-1-area-0.0.0.2]abr-summary 172.16.32.0 255.255.255.0

[r9-ospf-2-area-0.0.0.4]abr-summary 172.16.96.0 255.255.255.0

[r3-ospf-1-area-0.0.0.1]stub no-summary

[r6-ospf-1-area-0.0.0.2]nssa no-summary

[r7-ospf-1-area-0.0.0.3]nssa no-summary

[r1-ospf-1-area-0.0.0.1]stub no-summary

[r2-ospf-1-area-0.0.0.1]stub no-summary

[r8-ospf-1-area-0.0.0.3]nssa no-summary

[r9-ospf-1-area-0.0.0.3]nssa no-summary

[r11-ospf-1-area-0.0.0.2]nssa no-summary

[r12-ospf-1-area-0.0.0.2]nssa no-summary

此时area4无法ping通外网

7.area4配置缺省

[r9-ospf-2]default-route-advertise

8.加快收敛,修改hello时间

[r1-GigabitEthernet0/0/0]ospf timer hello 1

[r2-GigabitEthernet0/0/0]ospf timer hello 1

[r3-GigabitEthernet0/0/0]ospf timer hello 1

[r3-Tunnel0/0/1]ospf timer hello 1

[r5-Tunnel0/0/1]ospf timer hello 1

[r6-Tunnel0/0/1]ospf timer hello 1

[r6-GigabitEthernet0/0/1]ospf timer hello 1

[r7-Tunnel0/0/1]ospf timer hello 1

[r7-GigabitEthernet0/0/1]ospf timer hello 1

[r8-GigabitEthernet0/0/0]ospf timer hello 1

[r8-GigabitEthernet0/0/1]ospf timer hello 1

[r9-GigabitEthernet0/0/0]ospf timer hello 1

[r9-GigabitEthernet0/0/1]ospf timer hello 1

[r10-GigabitEthernet0/0/0]ospf timer hello 1

[r11-GigabitEthernet0/0/0]ospf timer hello 1

[r11-GigabitEthernet0/0/1]ospf timer hello 1

[r12-GigabitEthernet0/0/0]ospf timer hello 1

9.配置OSPF认证

[r1-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher 1234

[r2-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher 1234

[r3-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher 1234

[r3-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher 123321

[r5-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher 123321

[r6-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher 123321

[r7-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher 123321

[r6-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 1234

[r11-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 1234

[r12-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 1234

[r7-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher 123456

[r8-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher 123456

[r9-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher 123456

[r9-ospf-2-area-0.0.0.4]authentication-mode md5 1 cipher 123

[r10-ospf-2-area-0.0.0.4]authentication-mode md5 1 cipher 123

全网ping

http://www.cnnetsun.cn/news/2681394.html

相关文章:

  • 别再为OneDrive账号切换烦恼了!一个Windows用户搞定多个个人版同步(附权限设置避坑指南)
  • 指针引发的内存问题-----无用的知识又增加了
  • C语言内存分配,栈区、堆区、全局区、常量区和代码区都是什么
  • Cortex-A7 L2缓存电源管理机制与优化策略
  • VMware虚拟机里给正点原子ATK-DLRK3568烧录镜像,保姆级避坑指南(Ubuntu 20.04)
  • Skill 是什么?——AI Agent 的“技能包“
  • 通达信.lc1文件格式全解析:从二进制字节到可读的K线数据(Python/Pandas实战)
  • 从零到一:用PX4的uORB机制实现一个自定义消息(保姆级教程)
  • 基于C++实现(控制台)学生选课系统
  • UE5 GAS实战:别再直接扣血了!用Meta Attributes和Set by Caller重构你的RPG伤害系统
  • 别再只用NTP了!手把手教你用LinuxPTP(ptp4l)实现微秒级时间同步
  • Unity3D内嵌网页开发避坑:用ZFBrowser插件搞定PC端,解决打包后网页不显示和中文输入问题
  • 别再死记硬背了!一张图看懂阻尼比ζ如何决定振动系统的‘命运’
  • MATLAB图像质量评估工具:一键算SNR和PSNR,带示例图与说明文档
  • 4款免配置HTML大屏模板:ECharts图表+数字字体+全屏动效一键预览
  • ICStudio工控组态源码包:Qt5.13开发,支持Modbus通信、双模式运行与插件化扩展
  • 从混乱CSV到规整文件夹:一个脚本搞定Mini-ImageNet数据预处理(含百度网盘资源)
  • 如何用Blender3mfFormat插件打通3D打印全流程?
  • 指令制导与制导雷达的角色
  • 告别切图!用BMFont+Unity自制游戏专属字体,从导入图片到生成.fnt文件全流程
  • 手把手教你为Ubuntu 22.04编译安装蓝牙驱动(解决5.15/5.17/5.18内核蓝牙失灵)
  • 别再死记公式了!用Python手撸一个LDA分类器,从鸢尾花数据集开始
  • MATLAB噪声调频干扰信号生成与频谱特性仿真工具包
  • 在Ubuntu 22.04上从零搭建TrinityCore 3.3.5服务器:一份保姆级避坑指南
  • AI 日报 | 2026年5月31日:谷歌 I/O 炸场、Anthropic 估值9000亿、大模型进入“价值验证之年“
  • Qt5.15.2 + MinGW64 编译的 OpenCV 4.5.3 动态库全集(含头文件、CMake配置、分类器与示例程序)
  • 避坑指南:TurtleBot3仿真建图时,Gazebo卡顿、地图不闭合?可能是这些细节没做好
  • 即将2027年了,为什么还都在推荐学习Python编程语言
  • 基于门控Transformer的多维时序分类PyTorch实现,含训练推理脚本与注意力/聚类可视化
  • MATLAB版GA-PSO混合优化代码包:含交叉选择机制、双测试数据与详细中文使用指南