vpn report finished

This commit is contained in:
2025-10-23 16:54:42 +08:00
parent 4b15c1b0be
commit c71d9eaf87
26 changed files with 39 additions and 63 deletions

BIN
6_vpn/IP表.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 126 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

View File

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View File

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

View File

@ -65,7 +65,7 @@
= 实验环境
== 实验背景
#para[
网工系的学生正在学习VPN技术需要通过实验验证VPN实例在网络隔离中的应用。为此需要搭建一个简单的网络拓扑包括三台路由器和四台PC通过配置VPN实例实现不同网络之间的数据隔离
本实验模拟企业网络场景。利用VPN实例技术实现公司内员工所用电脑 client1 不可访问管理client4和client2公司内管理员所用电脑client2不可访问管理client3和client1
]
== 实验设备
@ -78,7 +78,8 @@
[*设备名称*], [*设备型号*], [*设备数量*]
),
"路由器", "华为AR6120-S", "3",
"路由器", "华为AR6120-S", "2",
"交换机", "华为S5735", "1",
"PC", "联想启天M410\nWindows 10", "4",
)]
#para[
@ -90,88 +91,63 @@
#para[
按实验背景,绘制拓扑图如下:
]
#figure(image("实验拓扑.png",format: "png",fit:"stretch",width: 100%),caption: "实验拓扑图")
#figure(image("拓扑.png",format: "png",fit:"stretch",width: 100%),caption: "实验拓扑图")
#para[
要求将红框内的PC1、PC3划分到一个VPN实例中。
要求将CLIENT1、CLIENT3和CLIENT2、CLIENT4分别划分到一个VPN实例中。
]
#pagebreak()
== 按照拓扑图接线
#para[
按照拓扑图接线。
]
#figure(image("机柜正面连线.jpg",format: "jpg",fit:"stretch",width: 50%),caption: "机柜正面接线图")
#figure(image("机柜背面连线.jpg",format: "jpg",fit:"stretch",width: 50%),caption: "机柜背面接线图")
#figure(image("正面.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "机柜正面接线图")
#figure(image("背面.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "机柜背面接线图")
#pagebreak()
== 配置基本网络
=== 配置PC
- 配置PC1的IP地址为`192.168.10.1/24`,网关为`192.168.10.2`
- 配置PC2的IP地址为`192.168.20.1/24`,网关为`192.168.20.2`
- 配置PC3的IP地址为`192.168.30.1/24`,网关为`192.168.30.2`
- 配置PC4的IP地址为`192.168.40.1/24`,网关为`192.168.40.2`
=== 配置PC和路由器以及交换机Vlanif的IP地址
#para[
步骤简单,展示图略。
配置IP如下表所示
]
=== 配置路由器IP地址
#figure(image("IP表.png",format: "png",fit:"stretch",width: 80%),caption: "IP地址表")
#para[
按照拓扑图配置路由器的IP地址。配置AR1的G0/0/0口IP地址为
具体配置命令较为简单,此处不再赘述,以下为部分步骤截图:
]
1. 配置AR1路由器
- 接口 `GE 0/0/0` 连接到 `AR3`IP地址为 `192.168.60.2`
- 接口 `GE 0/0/1` 连接到 `PC3`IP地址为 `192.168.30.2`
#figure(image("ar1ip.png",format: "png",fit:"stretch",width: 60%),caption: "配置AR1的IP地址")
#figure(image("step1.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "IP配置步骤示例(1)")
#figure(image("step2.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "IP配置步骤示例(2)")
#figure(image("step3.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "IP配置步骤示例(3)")
#figure(image("step4.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "IP配置步骤示例(4)")
2. 配置AR2路由器
- 接口 `GE 0/0/0` 连接到 `AR3`IP地址为 `192.168.80.2`
- 接口 `GE 0/0/1` 连接到 `PC4`IP地址为 `192.168.40.2`
#figure(image("ar2ip.png",format: "png",fit:"stretch",width: 60%),caption: "配置AR2的IP地址")
3. 配置AR3路由器
- 接口 `GE 0/0/0` 连接到 `PC1`IP地址为 `192.168.10.2`
- 接口 `GE 0/0/1` 连接到 `PC2`IP地址为 `192.168.20.2`
注意拓扑图中的`Ethernet0/0/0``Ethernet0/0/1`分别对应`GE 0/0/3``GE 0/0/2`
- 接口 `GE 0/0/2` 连接到 `AR2`IP地址为 `192.168.80.1`
- 接口 `GE 0/0/3` 连接到 `AR1`IP地址为 `192.168.60.1`
#figure(image("ar3ip.jpg",format: "jpg",fit:"stretch",width: 70%),caption: "配置AR3的IP地址")
=== 配置RIP协议使互通
=== 在LSW1上建立VPN实例
#para[
本次实验使用RIP协议配置路由器使得各个网络互通
首先需要在LSW1上创建两个VPN实例分别用于隔离Vlan 20和Vlan 200上的流量。
]
#figure(image("ar1rip.png",format: "png",fit:"stretch",width: 60%),caption: "在AR1上配置RIP协议")
#figure(image("ar2rip.png",format: "png",fit:"stretch",width: 60%),caption: "在AR2上配置RIP协议")
#figure(image("ar3rip.jpg",format: "jpg",fit:"stretch",width: 60%),caption: "在AR3上配置RIP协议")
#figure(image("step8.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "激活Vlanif接口")
#figure(image("step9.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "创建VPN实例vpn_employee和vpn_admin")
#figure(image("step9.5.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "创建管理VPN实例 (vpn_admin)")
#pagebreak()
#para[
此时在PC4(`192.168.40.1/24`)上ping其他三台主机发现可以互通
]
#figure(image("配置vpn前_2.jpg",format: "jpg",fit:"stretch",width: 90%),caption: "PC2 ping其他主机")
== 配置VPN实例
=== 创建VPN实例
接下来需要将VLAN接口绑定到对应的VPN实例并配置IP。
]
#figure(image("step5.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "在Vlan 20上绑定VPN实例并设置IP地址")
#figure(image("step6.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "在Vlan 200上绑定VPN实例并设置IP地址")
#figure(image("step7.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "在Vlan 10上绑定VPN实例并设置IP地址")
#para[
在AR1上创建VPN实例`wlxvpn`并为该实例设置RD值为`100:1`
最后只需要在LSW上配置路由并在路由器配置回程路由即可。
]
#figure(image("ar3vpn.jpg",format: "jpg",fit:"stretch",width: 70%),caption: "创建VPN实例并设置RD值")
#para[
并配置接口`GE 0/0/0``GE 0/0/2`绑定到该实例:
]
#figure(image("ar3binding.jpg",format: "jpg",fit:"stretch",width: 70%),caption: "绑定接口")
#para[
如下图@qingkong绑定之后接口的配置会被清空需要重新设置接口的IP地址
]
#figure(image("ar3ip_2.jpg",format: "jpg",fit:"stretch",width: 70%),caption: "重新设置接口IP地址")<qingkong>
=== 配置VPN实例的路由
#para[
`wlxvpn`的路由表中创建RIP进程进程号为100并且该进程与VPN实例`wlxvpn`进行绑定。设备在该RIP进程中所学习到的路由会加载到`wlxvpn`的路由表中。
]
#figure(image("ar3vpnrip.png",format: "png",fit:"stretch",width: 50%),caption: "配置RIP进程")
#para[
此时可以测试一下VPN的连通性
]
#figure(image("vpnpingPC1.png",format: "png",fit:"stretch",width: 80%),caption: "AR3 ping PC1")
#figure(image("step11.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "在 LSW1 上为VPN实例配置路由")
#figure(image("step12.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "在 AR1 上配置回程路由AR2 同理")
#pagebreak()
== 结果检验
#para[
PC1上分别ping PC2与PC3发现PC1与PC2无法通信PC1与PC3可以通信
LSW1上查看VPN实例信息确认配置成功
]
#figure(image("配置vpn后.jpg",format: "jpg",fit:"stretch",width: 100%),caption: "PC1分别ping VPN内外的主机")
#figure(image("step10.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "查看VPN实例信息")
#para[
说明VPN实例`wlxvpn`的配置成功实现了PC1与PC2等的数据隔离。
在CLIENT1上分别ping CLIENT2, CLIENT3与CLIENT4发现CLIENT1与CLIENT2, CLIENT4无法通信CLIENT1与CLIENT3可以通信
]
#figure(image("step13.jpg",format: "jpg",fit:"stretch",width: 80%),caption: "CLIENT1分别ping VPN内外的主机")
#para[
说明VPN实例`vpn_employee``vpn_admin`的配置成功实现了CLIENT1与CLIENT2等的数据隔离。
]
= 实验总结
#para[
@ -184,5 +160,5 @@
// #h(0.5em)
#it.body
]
// #pagebreak()
// #bibliography("ref.yml",full: true,title: "参考文献",style:"gb-7714-2015-numeric")
#pagebreak()
#bibliography("ref.yml",full: true,title: "参考文献",style:"gb-7714-2015-numeric")

BIN
6_vpn/拓扑图.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 MiB

After

Width:  |  Height:  |  Size: 3.9 MiB

View File

Before

Width:  |  Height:  |  Size: 3.6 MiB

After

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB