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

OSPF小实验

根据题目完成下列实验: 

 

拓扑图详细设计如下: 

1.基础配置 

 R1:

[R1]interface s4/0/0
[R1-Serial4/0/0]ip address 12.1.1.1 24
[R1]interface LoopBack 0
[R1-LoopBack0]ip address 1.1.1.1 24

 

R2:

[R2]interface s4/0/1
[R2-Serial4/0/1]ip address 12.1.1.2 2[R2]interface s4/0/0
[R2-Serial4/0/0]ip address 23.1.1.1 24	[R2]interface LoopBack 0
[R2-LoopBack0]ip address 2.2.2.2 24

 

R3:

[R3]interface s4/0/1
[R3-Serial4/0/1]ip address 23.1.1.2 24[R3]interface g0/0/0
[R3-GigabitEthernet0/0/0]ip address 34.1.1.1 24[R3]interface LoopBack 0
[R3-LoopBack0]ip address 3.3.3.3 24

R4:

[R4]interface g0/0/0
[R4-GigabitEthernet0/0/0]ip address 34.1.1.2 24[R4]interface g0/0/1
[R4-GigabitEthernet0/0/1]ip address 45.1.1.1 24[R4]interface g0/0/2
[R4-GigabitEthernet0/0/2]ip address 46.1.1.1 24

 

R5:

[R5]interface g0/0/0
[R5-GigabitEthernet0/0/0]ip address 45.1.1.2 24[R5]interface LoopBack 0
[R5-LoopBack0]ip address 5.5.5.5 24

R6: 

[R6]interface g0/0/0	
[R6-GigabitEthernet0/0/0]ip address 46.1.1.2 24[R6]interface LoopBack 0
[R6-LoopBack0]ip address 6.6.6.6 24

2.启用ospf

R1:

[R1]ospf 100 router-id 91.1.1.1
[R1-ospf-100]area 0
[R1-ospf-100-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-100-area-0.0.0.0]network 12.1.1.1 0.0.0.0ospf enable 100 area 0

 

R2:

[R2]ospf 100 router-id 92.2.2.2	
[R2-ospf-100]area 0
[R2-ospf-100-area-0.0.0.0]network 12.1.1.1 0.0.0.0
[R2-ospf-100-area-0.0.0.0]network 23.1.1.1 0.0.0.0
[R2-ospf-100-area-0.0.0.0]network 2.2.2.2 0.0.0.0ospf enable 100 area 0

 

R3:

[R3]ospf 100 router-id 93.3.3.3
[R3-ospf-100]area 0
[R3-ospf-100-area-0.0.0.0]network 23.1.1.2 0.0.0.0
[R3-ospf-100-area-0.0.0.0]network 34.1.1.1 0.0.0.0
[R3-ospf-100-area-0.0.0.0]network 3.3.3.3 0.0.0.0ospf enable 100 area 0

 

R4:

[R4]ospf 100 router-id 94.4.4.4
[R4-ospf-100]area 0
[R4-ospf-100-area-0.0.0.0]network 34.1.1.2 0.0.0.0
[R4-ospf-100-area-0.0.0.0]network 45.1.1.1 0.0.0.0
[R4-ospf-100-area-0.0.0.0]network 46.1.1.1 0.0.0.0  ospf enable 100 area 0

 

R5:

[R5]ospf 100 router-id 95.5.5.5
[R5-ospf-100]area 0	
[R5-ospf-100-area-0.0.0.0]network 5.5.5.5 0.0.0.0
[R5-ospf-100-area-0.0.0.0]network 45.1.1.2 0.0.0.0ospf enable 100 area 0

 

R6:

[R6]ospf 100 router-id 96.6.6.6	
[R6-ospf-100]area 0
[R6-ospf-100-area-0.0.0.0]network 6.6.6.6 0.0.0.0
[R6-ospf-100-area-0.0.0.0]network 46.1.1.2 0.0.0.0ospf enable 100 area 0

 

3.R1和R2之间启用PPP的PAP的单向认证 

R1:

[R1]aaa
[R1-aaa]local-user hcip password cipher 123
Info: Add a new user.
[R1-aaa]local-user hcip service-type ppp
[R1]interface s4/0/0
[R1-Serial4/0/0]ppp authentication-mode pap

R2:

[R2]interface s4/0/1
[R2-Serial4/0/1]link-protocol ppp
[R2-Serial4/0/1]ppp pap local-user hcip password cipher 123

 

 

4.R2和R3之间启用PPP的chap的双向认证 

R2:

[R2]aaa	
[R2-aaa]local-user hcia password cipher 123
Info: Add a new user.
[R2-aaa]q
[R2]interface s4/0/0
[R2-Serial4/0/0]link-protocol ppp
[R2-Serial4/0/0]ppp authentication-mode chap [R2]interface s4/0/0
[R2-Serial4/0/0]link-protocol ppp
[R2-Serial4/0/0]ppp chap user hcie
[R2-Serial4/0/0]ppp chap password cipher 123

R3:

[R3]interface s4/0/1
[R3-Serial4/0/1]link-protocol ppp
[R3-Serial4/0/1]ppp chap user hcia
[R3-Serial4/0/1]ppp chap password cipher 123[R3]aaa
[R3-aaa]local-user hcie password cipher 123
Info: Add a new user.
[R3-aaa]q
[R3]interface s4/0/1
[R3-Serial4/0/1]link-protocol ppp
[R3-Serial4/0/1]ppp authentication-mode chap 

 5.R3-R5-R6之间的MGRE

R3:

[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ip address 100.1.1.1 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R3-Tunnel0/0/0]source 34.1.1.1
Aug  7 2024 21:00:57-08:00 R3 %%01IFNET/4/LINK_STATE(l)[34]:The line protocol IPon the interface Tunnel0/0/0 has entered the UP state. 
[R3-Tunnel0/0/0]nhrp network-id 100
[R3-Tunnel0/0/0]nhrp entry multicast dynamic 
[R3-Tunnel0/0/0]ospf network-type broadcast [R3]ip route-static 0.0.0.0 0 34.1.1.2

R5:

[R5]interface Tunnel 0/0/0
[R5-Tunnel0/0/0]ip address 100.1.1.2 24
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R5-Tunnel0/0/0]source 45.1.1.2
Aug  7 2024 21:07:36-08:00 R5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R5-Tunnel0/0/0]nhrp network-id 100
[R5-Tunnel0/0/0]nhrp entry 100.1.1.1 34.1.1.1 register
[R5-Tunnel0/0/0]ospf network-type broadcast  [R5]ip route-static 0.0.0.0 0 45.1.1.1

R6:

[R6]interface Tunnel 0/0/0
[R6-Tunnel0/0/0]ip address 100.1.1.3 24
[R6-Tunnel0/0/0]source 46.1.1.2
Aug  7 2024 21:12:17-08:00 R6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R6-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R6-Tunnel0/0/0]nhrp network-id 100
[R6-Tunnel0/0/0]nhrp entry 100.1.1.1 34.1.1.1 register 
[R6-Tunnel0/0/0]ospf network-type broadcast [R6]ip route-static 0.0.0.0 0 46.1.1.1

6.实现全网通 

 

http://www.lryc.cn/news/417903.html

相关文章:

  • 蛋白质生物学:从序列到结构和疾病 下载并同时打开1LYZ和1H6M的PDB文件(提交图片)。描述这种蛋白质的二级和三级结构。(10分)
  • 用VBA在Word中随机打乱单词表,进行分列
  • UNI-APP_点击,长按,触摸,结束触摸事件
  • 【QT】Qt 音视频
  • CSP-J 复赛 模拟题6
  • 拷贝函数的三种调用方式
  • C语言 | Leetcode C语言题解之第327题区间和的个数
  • 统计学:条件概率模型
  • 前端工程师学习springboot2.x之配置idea热更新实现高效率开发节奏
  • 文本rerank与图像rerank
  • Docker 在 Windows 系统下的使用指南:数据卷和数据库
  • [数据集][目标检测]轴承缺陷划痕检测数据集VOC+YOLO格式1166张1类别
  • 将本地微服务发布到docker镜像二:
  • 前端构建工具|vite快速入门
  • 拯救PyCharm:击退IDE内存泄漏的策略
  • 在vue3的开发环境中为什么使用vite而不是用webpack
  • mybatis结合generator进行分页插件PluginAdapter开发
  • 面试:ArrayList和LinkedList
  • 【uniapp】uniapp+vue2微信小程序实现分享功能
  • WEB渗透Web突破篇-目录爆破
  • Windows设备文件同步平台
  • 用九方智投学习机,学会应对回撤风险
  • maven打包加入本地jar包
  • 从TiDB迁移到OceanBase的实践分享
  • DL00765-光伏故障检测高分辨率无人机热红外图像细粒度含数据集4000+张
  • CICD流水线
  • Sass/Scss基础
  • 【sx sb sz】Centos/Linux sx、sb、sz命令详细介绍
  • 【网络层】IP报文解析和网段划分
  • [GXYCTF2019]禁止套娃1