redistribution report finished

This commit is contained in:
2025-10-12 09:59:52 +08:00
parent 1f4338f6b8
commit 5624a7319c
32 changed files with 22 additions and 20 deletions

Binary file not shown.

View File

@ -49,11 +49,14 @@
= 实验原理
== 动态路由
#para[
动态路由是指路由器之间通过路由协议自动交换路由信息根据网络的拓扑结构和网络的状态动态调整路由表实现路由的自动学习和自动更新。通过动态路由协议路由器能够发现有哪些邻居路由器学习到网络中有哪些网段以及某个网段的所有路径从而选择最佳路径并维护和更新路由信息。同时动态路由协议还提供了防止路由环路的机制例如RIP的分割视域和触发更新功能。此外动态路由支持根据实际需要关闭自动汇总功能以传播精确的子网路由信息适应复杂的无类别路由CIDR环境。动态路由的优点是能够提高网络的可靠性和可扩展性常用的动态路由协议包括RIP、OSPF、EIGRP、BGP等。
]
=== RIP协议
#para[
RIPRouting Information Protocol是一种基于距离向量的动态路由协议采用跳数作为路由选择的度量标准认为到达目标网络经过的路由器最少的路径就是最佳路径并通过路由表中的cost值记录跳数。RIP协议的工作原理是每隔30秒向所有激活的接口发送完整的路由表根据接收到的路由更新信息动态更新路由表。然而RIP限制了最大跳数为15跳超过16跳的网络将被认为不可达这对自治系统AS的规模构成了限制。此外由于相邻路由器之间交换的是完整的路由表随着网络规模的扩大路由信息的传递开销也随之增加。
为防止路由环路RIP协议采用了水平分割默认开启、毒性反转等机制。同时可以通过关闭自动汇总功能支持更精确的子网路由传播。然而RIP在更新过程中的“坏消息传播得慢”特性会导致收敛时间过长进一步限制了其在大型网络中的应用。因此对于规模较大的自治系统AS建议使用更高效的动态路由协议如 OSPF。尽管如此RIP因其简单易用的特点仍适用于小型网络环境。
]
=== OSPF协议
#para[
OSPFOpen Shortest Path First是一种基于链路状态的动态路由协议采用链路状态和最短路径算法SPF作为路由选择的基础。OSPF通过交互问候Hello分组来建立和维护邻居关系相邻路由器每隔10秒发送一次Hello分组。如果在40秒内未收到邻居的Hello分组路由器将认为该邻居不可达并从邻居表中移除。每个路由器维护一张邻居表和链路状态数据库通过链路状态更新实现全网同步。
@ -78,8 +81,7 @@ OSPF的优势在于其更新效率高、收敛速度快不受网络规模限
== 实验背景
#para[
在大型的企业中可能在同一网内使用到多种路由协议为了实现多种路由协议的协同工作路由器可以使用路由重分发route redistribution将其学习到的一种路由协议的路由通过另一种路由协议广播出去这样网络的所有部分都可以连通
了。使用路由器R1分别连接两家公司网络R1左侧公司A内部网络运行RIP协议公司B内部网络运行OSPF协议。由于业务发展需要两家公司人员需要能够互相通信但是为了保护自身网络的私密性双方都不愿意对方知道自己网络的明
细路由。通过配置路由协议以自动发布默认路由的方式来完成此需求。
了。使用路由器R1分别连接两家公司网络R1左侧公司A内部网络运行RIP协议公司B内部网络运行OSPF协议。由于业务发展需要两家公司人员需要能够互相通信但是为了保护自身网络的私密性双方都不愿意对方知道自己网络的明细路由。通过配置路由协议以自动发布默认路由的方式来完成此需求。
]
== 实验设备
#align(center)[#table(
@ -109,27 +111,27 @@ OSPF的优势在于其更新效率高、收敛速度快不受网络规模限
#para[
按照拓扑图接线。
]
#figure(image("step1.jpg",format: "jpg",fit:"stretch",width: 55%),caption: "机柜正面接线图")
#figure(image("step2.jpg",format: "jpg",fit:"stretch",width: 90%),caption: "机柜背面接线图")
#figure(image("接线图1.jpg",format: "jpg",fit:"stretch",width: 55%),caption: "机柜正面接线图")
#figure(image("接线图2.jpg",format: "jpg",fit:"stretch",width: 90%),caption: "机柜背面接线图")
== 配置PC
#para[
设置网安系PC1的IP地址为`8.8.8.1`,网关为`8.8.8.8`网工系PC2的IP地址为`6.6.6.1`,网关为`6.6.6.6`
设置公司A的PC1的IP地址为`172.16.1.1`,网关为`172.16.1.254`公司B的PC2的IP地址为`192.168.11.1`,网关为`192.168.11.254`
]
== 配置路由器
== 配置Router ID
#para[
配置网安系路由器AR2的Router ID为`1.1.1.1`
配置路由器AR2的Router ID为`1.1.1.1`
]
#figure(image("step3.0.jpg",format: "png",fit:"stretch",width: 60%),caption: "配置Router ID")
#figure(image("step1.jpg",format: "jpg",fit:"stretch",width: 60%),caption: "配置Router ID")
#para[
用同样的方式,配置寝室楼间路由器AR1的Router ID为`2.2.2.2`网工系AR3的Router ID为`3.3.3.3`
用同样的方式配置路由器AR1的Router ID为`2.2.2.2`AR3的Router ID为`3.3.3.3`
]
=== 配置IP
#para[
按照拓扑图配置路由器各接口的IP地址。
配置路由器AR2两个接口的IP地址
]
#figure(image("step3.jpg",format: "png",fit:"stretch",width: 60%),caption: "配置IP(1)")
#figure(image("step2.jpg",format: "jpg",fit:"stretch",width: 60%),caption: "配置IP(1)")
#para[
配置路由器AR3两个接口的IP地址
]
@ -140,31 +142,31 @@ OSPF的优势在于其更新效率高、收敛速度快不受网络规模限
stroke: 0pt,
table.header(
image("step4.jpg",format: "jpg",fit:"stretch",width: 79%),
),image("step4.1.jpg",format: "png",fit:"stretch",width: 67%)
),
),caption: "配置IP(2)",kind:image)
#para[
配置路由器AR1两个接口的IP地址
]
#figure(image("step5.jpg",format: "png",fit:"stretch",width: 67%),caption: "配置IP(3)")
#figure(image("step5.jpg",format: "jpg",fit:"stretch",width: 67%),caption: "配置IP(3)")
=== 配置RIP与OSPF协议
#para[
在路由器AR2上配置RIP协议
]
#figure(image("step6.jpg",format: "png",fit:"stretch",width: 40%),caption: "配置动态路由(1)")
#figure(image("step6.jpg",format: "jpg",fit:"stretch",width: 60%),caption: "配置动态路由(1)")
#para[
在路由器AR3上配置OSPF协议此处将与AR1相连的区域设为主干区域0
]
#figure(image("step7.jpg",format: "png",fit:"stretch",width: 65%),caption: "配置动态路由(2)")
#figure(image("step7.jpg",format: "jpg",fit:"stretch",width: 65%),caption: "配置动态路由(2)")
#para[
在路由器AR1上配置两种协议
]
#figure(image("step8.jpg",format: "png",fit:"stretch",width: 82%),caption: "配置动态路由(3)")
#figure(image("step8.jpg",format: "jpg",fit:"stretch",width: 82%),caption: "配置动态路由(3)")
=== 配置路由重发布
#para[
在路由器AR3上配置路由重发布策略将RIP协议学习到的路由信息重新发布到OSPF协议中并将OSPF协议学习到的路由信息重新发布到RIP协议中
]
#figure(image("step9.jpg",format: "png",fit:"stretch",width: 40%),caption: "配置路由重发布")
#figure(image("step9.jpg",format: "jpg",fit:"stretch",width: 60%),caption: "配置路由重发布")
== 配置后检验
#para[
@ -177,16 +179,16 @@ OSPF的优势在于其更新效率高、收敛速度快不受网络规模限
#figure(image("step11.jpg",format: "jpg",fit:"stretch",width: 85%),caption: "AR2的路由表")
#figure(image("step12.jpg",format: "jpg",fit:"stretch",width: 85%),caption: "AR3的路由表")
#para[
让PC1与PC2互相ping查看是否能够ping通。结果如下:
让PC1与PC2互相ping并使用tracert进行追踪。结果如下:
]
#figure(image("step13.jpg",format: "jpg",fit:"stretch",width: 100%),caption: "PC1 ping PC2")
#figure(image("step14.jpg",format: "jpg",fit:"stretch",width: 100%),caption: "PC2 ping PC1")
#figure(image("step14.jpg",format: "jpg",fit:"stretch",width: 100%),caption: "PC1 tracert PC2")
#para[
说明PC1与PC2互相能够通信网络连接正常网安系与网工系寝室楼能够通信。实验完成。
说明PC1与PC2互相能够通信网络连接正常公司A与公司B能够通信。实验完成。
]
= 实验总结
#para[
本次实验通过配置动态路由与路由重发布,成功实现了网安系与网工系两栋寝室楼之间的网络互联验证了动态路由协议和路由重发布策略的正确性和实用性。实验中使用了两种动态路由协议RIP和OSPF。通过实验理解了这两种协议的适用场景及优缺点。路由重发布是连接不同路由协议的关键方法。通过配置AR3上的路由重发布策略将RIP和OSPF协议的路由信息互相传播实现了两种协议网络之间的互通。实验中分别验证了静态路由重发布和动态路由重发布的配置方法并通过观察路由表确认了路由信息的正确传播。
本次实验通过配置动态路由与路由重发布,成功实现了公司A与公司B之间的网络互联验证了动态路由协议和路由重发布策略的正确性和实用性。实验中使用了两种动态路由协议RIP和OSPF。通过实验理解了这两种协议的适用场景及优缺点。路由重发布是连接不同路由协议的关键方法。通过配置AR3上的路由重发布策略将RIP和OSPF协议的路由信息互相传播实现了两种协议网络之间的互通。实验中分别验证了静态路由重发布和动态路由重发布的配置方法并通过观察路由表确认了路由信息的正确传播。
]
#para[
在实验过程中部分操作需要手动输入容易出现配置错误。若能借助脚本化管理工具进行批量配置将有效提高配置效率。此外可以进一步研究BGP等高级动态路由协议的配置与优化以适应更大规模网络的需求。

BIN
3_redistribution/step1.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 31 KiB

BIN
3_redistribution/step10.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 113 KiB

BIN
3_redistribution/step11.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 104 KiB

BIN
3_redistribution/step12.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 KiB

After

Width:  |  Height:  |  Size: 113 KiB

BIN
3_redistribution/step13.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 38 KiB

BIN
3_redistribution/step14.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 64 KiB

BIN
3_redistribution/step2.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 43 KiB

BIN
3_redistribution/step4.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 54 KiB

BIN
3_redistribution/step5.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 34 KiB

BIN
3_redistribution/step6.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 12 KiB

BIN
3_redistribution/step7.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 25 KiB

BIN
3_redistribution/step8.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 52 KiB

BIN
3_redistribution/step9.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 MiB

After

Width:  |  Height:  |  Size: 3.9 MiB

View File

Before

Width:  |  Height:  |  Size: 3.9 MiB

After

Width:  |  Height:  |  Size: 3.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB