当前位置: 首页 > 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.rkmt.cn/news/1437956.html

相关文章:

  • 别再只用plot了!Matlab双Y轴绘图保姆级教程(从yyaxis到plotyy全解析)
  • 福州合同纠纷律师排行:福州劳动仲裁律师、福州婚姻家庭律师、福州工伤赔偿律师、福州律师咨询、福州律师委托、福州律师抚养费选择指南 - 优质品牌商家
  • 2026珠三角简约logo设计优质公司推荐榜:简约商标设计/餐饮logo设计/餐饮商标设计/高端商标设计/logo设计全包/选择指南 - 优质品牌商家
  • 8位Wallace树乘法器设计与优化实践
  • 罗技G HUB 2023.10版开机自启的正确姿势:为什么你禁用了启动项还要用任务计划?
  • C语言考试经典999题--编程题--持续更新中-----
  • Linux系统编程—库制作与原理
  • 避坑指南:UE5 Control Rig绑定骨骼后,为什么在Sequencer里动不了?(附排查步骤)
  • 告别刻盘时代!用Ventoy一个U盘搞定Win11、Ubuntu、黑苹果多系统安装(保姆级教程)
  • 告别网络依赖:用pip download和ms-playwright文件夹实现Playwright自动化环境一键离线部署
  • 别再搞混了!ROS机器人建图时,map、odom、base_link三个坐标系到底该怎么用?
  • 如何永久收藏心爱小说:fanqienovel-downloader番茄小说下载工具完整指南
  • 2026年专业北斗定位器技术解析与标杆产品盘点:定位器产品/微型定位器/无线定位器/汽车北斗定位器/汽车定位器/选择指南 - 优质品牌商家
  • 2026年5月评价高的电机轴承源头公司哪家可靠?这份专业选型指南给你答案 - 2026年企业资讯
  • 2026年6月唐山GEO优化营销服务团队选择指南:河北即问网络科技有限公司专业解析 - 2026年企业资讯
  • Win11更新后Ubuntu引导界面消失?手把手教你修复机械革命极光Pro双系统启动
  • 2026年|如何把论文AI率降至6%?4大DeepSeek改写指令+5款降AI工具亲测(附去AI痕迹全流程)
  • Hermes Agent 安装 - Windows 11
  • 手把手教你用ESP32和MQTT协议,从零搭建一个智能温湿度监测站(附阿里云平台配置)
  • YOLOv8实战调参:NMS和IoU这两个参数到底怎么调?附代码示例
  • 用Python+Tushare搭建你的第一个多因子选股数据工厂(附完整代码与避坑指南)
  • Unity内置管线也能做丝绸?手把手教你用Standard Shader实现PBR各向异性光泽
  • 告别DIY烦恼:手把手教你为3D扫描/打印项目选配工业级DLP光机(从TI芯片到镜头接口全解析)
  • 手把手教你用STM32F103C8T6+ESP8266连接OneNet旧版平台(附完整代码与避坑指南)
  • 从MT2492到MT3608:手把手教你为常见DCDC芯片匹配电感电容(附实测波形)
  • 量子密钥分发安全挑战与QLSTM防护技术解析
  • 亲亲袋鼠的价格怎么样?多层级学习内容性价比高 - mypinpai
  • 告别玄学调参:用Zernike多项式+SPGD算法,5分钟搞定自适应光学相位校正
  • Python 函数专项练习:6 道编程题从入门到精通
  • 告别模糊:如何用Gram-Schmidt方法将高分七号影像提升至0.65米(附冬季雪地案例效果对比)