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

复杂园区网基本分支的构建

目录

      • 1、各主机进行网络配置。
      • 2、交换机配置。
      • 3、配置路由交换,进行测试。
      • 4、配置路由器接口和静态路由,进行测试。
      • 5、最后测试任意两台主机通信情况

模拟环境链接
拓扑结构
在这里插入图片描述

说明:
VLAN标签在上面的一定是GigabitEthernet接口的,左边的标签是交换机连接左边的接口,右边的标签是交换机连接右边的接口。每个交换机有连接三处就划分了三处VLAN。

主机:
Host-1的ip为192.168.100.11/24,网关为192.168.100.254;
Host-2的ip为192.168.101.12/24,网关为192.168.101.254;
Host-3的ip为192.168.102.21/24,网关为192.168.102.254;
Host-4的ip为192.168.103.22/24,网关为192.168.103.254;
Host-5的ip为192.168.104.13/24,网关为192.168.104.254;
Host-6的ip为192.168.105.14/24,网关为192.168.105.254;
Host-7的ip为192.168.106.23/24,网关为192.168.106.254;
Host-8的ip为192.168.107.24/24,网关为192.168.107.254。

路由交换
RS-1的VLANIF11接口地址(VLAN 11接口地址)192.168.100.254/24;
RS-1的VLANIF12接口地址(VLAN 12接口地址)192.168.101.254/24;
RS-1的VLANIF100接口地址(VLAN 100接口地址)10.0.1.1/30;

RS-2的VLANIF13接口地址(VLAN 13接口地址)192.168.102.254/24;
RS-2的VLANIF14接口地址(VLAN 14接口地址)192.168.103.254/24;
RS-2的VLANIF100接口地址(VLAN 100接口地址)10.0.2.1/30;

RS-3的VLANIF15接口地址(VLAN 15接口地址)192.168.104.254/24;
RS-3的VLANIF16接口地址(VLAN 16接口地址)192.168.105.254/24;
RS-3的VLANIF100接口地址(VLAN 100接口地址)10.0.3.1/30;

RS-4的VLANIF17接口地址(VLAN 17接口地址)192.168.106.254/24;
RS-4的VLANIF18接口地址(VLAN 18接口地址)192.168.107.254/24;
RS-4的VLANIF100接口地址(VLAN 100接口地址)10.0.4.1/30。

静态路由规划:
RS的下一跳地址都是到对应路由器的接口ip,目的地址是0.0.0.0/0。

R-1的下一跳地址为RS-1VLAN 100的地址,目的地址为Host-1的地址。
R-1的下一跳地址为RS-2VLAN 100的地址,目的地址为Host-3的地址。
R-1的下一跳地址为R-2的GE 0/0/0的地址,目的地址为Host-5的地址。

R-2的下一跳地址为R-1的GE 0/0/0的地址,目的地址为Host-1的地址。
R-2的下一跳地址为R-3的GE 0/0/0的地址,目的地址为Host-5的地址。

R-3的下一跳地址为R-2的GE 0/0/1的地址,目的地址为Host-1的地址。
R-3的下一跳地址为RS-3VLAN 100的地址,目的地址为Host-5的地址。
R-3的下一跳地址为RS-4VLAN 100的地址,目的地址为Host-7的地址。

1、各主机进行网络配置。

2、交换机配置。

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysname SW-1
[SW-1]vlan batch 11 12
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW-1]interface Ethernet 0/0/1
[SW-1-Ethernet0/0/1]port link-type access 
[SW-1-Ethernet0/0/1]port default vlan 11
[SW-1-Ethernet0/0/1]quit
[SW-1]interface Ethernet 0/0/2	
[SW-1-Ethernet0/0/2]port link-type access 	
[SW-1-Ethernet0/0/2]port default vlan 12
[SW-1-Ethernet0/0/2]quit
[SW-1]interface GigabitEthernet 0/0/1
[SW-1-GigabitEthernet0/0/1]port link-type trunk 
[SW-1-GigabitEthernet0/0/1]port trunk allow-pass vlan 11 12
[SW-1-GigabitEthernet0/0/1]quit
[SW-1]quit
<SW-1>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<SW-1>

在这里插入图片描述

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysname SW-2
[SW-2]vlan batch 13 14
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW-2]interface Ethernet 0/0/1
[SW-2-Ethernet0/0/1]port link-type access 
[SW-2-Ethernet0/0/1]port default vlan 13
[SW-2-Ethernet0/0/1]quit
[SW-2]interface Ethernet 0/0/2
[SW-2-Ethernet0/0/2]port link-type access 
[SW-2-Ethernet0/0/2]port default vlan 14
[SW-2-Ethernet0/0/2]quit
[SW-2]interface GigabitEthernet 0/0/1
[SW-2-GigabitEthernet0/0/1]port link-type trunk 
[SW-2-GigabitEthernet0/0/1]port trunk allow-pass vlan 13 14
[SW-2-GigabitEthernet0/0/1]quit
[SW-2]quit
<SW-2>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>system-view 
Jan  6 2025 12:33:29-08:00 Huawei %%01PHY/1/PHY(l)[1]:    Ethernet0/0/2: change 
status to up
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysname SW-4
[SW-4]vlan batch 17 18
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW-4]interface Ethernet 0/0/1
[SW-4-Ethernet0/0/1]port link-type access 
[SW-4-Ethernet0/0/1]port default vlan 17
[SW-4-Ethernet0/0/1]quit
[SW-4]interface Ethernet 0/0/2
[SW-4-Ethernet0/0/2]port link-type access 
[SW-4-Ethernet0/0/2]port default vlan 18
[SW-4-Ethernet0/0/2]quit
[SW-4]interface GigabitEthernet 0/0/1
[SW-4-GigabitEthernet0/0/1]port link-type trunk 
[SW-4-GigabitEthernet0/0/1]port trunk allow-pass vlan 17 18
[SW-4-GigabitEthernet0/0/1]quit
[SW-4]quit
<SW-4>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<SW-4>
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysname SW-3
[SW-3]vlan batch 15 16
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW-3]interface Ethernet 0/0/1
[SW-3-Ethernet0/0/1]port link-type access 
[SW-3-Ethernet0/0/1]port default vlan 15
[SW-3-Ethernet0/0/1]quit
[SW-3]interface Ethernet 0/0/2
[SW-3-Ethernet0/0/2]port link-type access 
[SW-3-Ethernet0/0/2]port default vlan 16
[SW-3-Ethernet0/0/2]quit
[SW-3]interface GigabitEthernet 0/0/1
[SW-3-GigabitEthernet0/0/1]port link-type trunk 
[SW-3-GigabitEthernet0/0/1]port trunk allow-pass vlan 15 16
[SW-3-GigabitEthernet0/0/1]quit
[SW-3]quit
<SW-3>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<SW-3>

3、配置路由交换,进行测试。

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysname RS-1
[RS-1]vlan batch 11 12
Info: This operation may take a few seconds. Please wait for a moment...done.
[RS-1]interface vlanif 11
[RS-1-Vlanif11]ip address 192.168.100.254 255.255.255.0
[RS-1-Vlanif11]quit
[RS-1]interface vlanif 12
[RS-1-Vlanif12]ip address 192.168.101.254 255.255.255.0
[RS-1-Vlanif12]quit
[RS-1]interface GigabitEthernet 0/0/24
[RS-1-GigabitEthernet0/0/24]port link-type trunk 
[RS-1-GigabitEthernet0/0/24]port trunk allow-pass vlan 11 12
[RS-1-GigabitEthernet0/0/24]quit
[RS-1]vlan 100
[RS-1-vlan100]quit
[RS-1]interface Vlanif 100
[RS-1-Vlanif100]ip address 10.0.1.1 255.255.255.252
[RS-1-Vlanif100]quit
[RS-1]interface  GigabitEthernet 0/0/1	
[RS-1-GigabitEthernet0/0/1]port link-type access 
[RS-1-GigabitEthernet0/0/1]port default vlan 100
[RS-1-GigabitEthernet0/0/1]quit
[RS-1]ip route-static 0.0.0.0 0.0.0.0 10.0.1.2

测试VLAN10和VLAN11可以正常通信
在这里插入图片描述
设置所有数据包下一跳到R-1路由器。
在这里插入图片描述

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]vlan batch 13 14
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]sysname RS-2
[RS-2]interface Vlanif 13
[RS-2-Vlanif13]ip address 192.168.102.254 255.255.255.0
[RS-2-Vlanif13]quit
[RS-2]interface Vlanif 14
[RS-2-Vlanif14]ip address 192.168.103.254 255.255.255.0
[RS-2-Vlanif14]quit
[RS-2]interface GigabitEthernet 0/0/24
[RS-2-GigabitEthernet0/0/24]port link-type trunk 
[RS-2-GigabitEthernet0/0/24]port trunk allow-pass vlan 13 14
[RS-2-GigabitEthernet0/0/24]quit
[RS-2]vlan 100
[RS-2-vlan100]quit
[RS-2]interface Vlanif 100
[RS-2-Vlanif100]ip address 10.0.2.1 255.255.255.252
[RS-2-Vlanif100]quit
[RS-2]interface GigabitEthernet 0/0/1
[RS-2-GigabitEthernet0/0/1]port link-type access 
[RS-2-GigabitEthernet0/0/1]port default vlan 100
[RS-2-GigabitEthernet0/0/1]quit
[RS-2]ip route-static 0.0.0.0 0.0.0.0 10.0.2.2
[RS-2]quit
<RS-2>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysname RS-3
[RS-3]vlan batch 15 16
Info: This operation may take a few seconds. Please wait for a moment...done.
[RS-3]interface Vlanif 15
[RS-3-Vlanif15]ip address 192.168.104.254 255.255.255.0
[RS-3-Vlanif15]quit
[RS-3]interface Vlanif 16
[RS-3-Vlanif16]ip address 192.168.105.254 255.255.255.0
[RS-3-Vlanif16]quit
[RS-3]interface GigabitEthernet 0/0/24	
[RS-3-GigabitEthernet0/0/24]port link-type trunk 
[RS-3-GigabitEthernet0/0/24]port trunk allow-pass vlan 15 16
[RS-3-GigabitEthernet0/0/24]quit
[RS-3]vlan 100
[RS-3-vlan100]quit
[RS-3]interface Vlanif 100
[RS-3-Vlanif100]ip address 10.0.3.1 255.255.255.252
[RS-3-Vlanif100]quit
[RS-3]interface GigabitEthernet 0/0/1
[RS-3-GigabitEthernet0/0/1]port link-type access 
[RS-3-GigabitEthernet0/0/1]port default vlan 100
[RS-3-GigabitEthernet0/0/1]quit
[RS-3]ip route-static 0.0.0.0 0.0.0.0 10.0.3.2
[RS-3]quit
<RS-3>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysname RS-4
[RS-4]vlan batch 17 18
Info: This operation may take a few seconds. Please wait for a moment...done.
[RS-4]interface Vlanif 17
[RS-4-Vlanif17]ip address 192.168.106.254 255.255.255.0
[RS-4-Vlanif17]quit
[RS-4]interface Vlanif 18
[RS-4-Vlanif18]ip address 192.168.107.254 255.255.255.0
[RS-4-Vlanif18]quit
[RS-4]interface GigabitEthernet 0/0/24
[RS-4-GigabitEthernet0/0/24]port link-type trunk 
[RS-4-GigabitEthernet0/0/24]port trunk allow-pass vlan 17 18
[RS-4-GigabitEthernet0/0/24]quit
[RS-4]vlan 100
[RS-4-vlan100]quit
[RS-4]interface Vlanif 100
[RS-4-Vlanif100]ip address 10.0.4.1 255.255.255.252
[RS-4-Vlanif100]quit
[RS-4]interface GigabitEthernet 0/0/1
[RS-4-GigabitEthernet0/0/1]port link-type access 
[RS-4-GigabitEthernet0/0/1]port default vlan 100
[RS-4-GigabitEthernet0/0/1]quit
[RS-4]ip route-static 0.0.0.0 0.0.0.0 10.0.4.2
[RS-4]quit
<RS-4>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.

这步完成后,同一个交换机下的两台主机是可以互相通信的,其他情况则不可以。

4、配置路由器接口和静态路由,进行测试。

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysname R-1
[R-1]interface GigabitEthernet 0/0/0
[R-1-GigabitEthernet0/0/0]ip address 10.0.0.1 255.255.255.252
[R-1-GigabitEthernet0/0/0]quit
[R-1]interface GigabitEthernet 0/0/1
[R-1-GigabitEthernet0/0/1]ip address 10.0.1.2 255.255.255.252
[R-1-GigabitEthernet0/0/1]quit
[R-1]interface GigabitEthernet 0/0/2
[R-1-GigabitEthernet0/0/2]ip address 10.0.2.2 255.255.255.252
[R-1-GigabitEthernet0/0/2]quit
[R-1]ip route-static 192.168.100.0 23 10.0.1.1
[R-1]ip route-static 192.168.102.0 23 10.0.2.1
[R-1]ip route-static 192.168.104.0 22 10.0.0.2   //注意子网掩码为22
[R-1]quit
<R-1>save 

在这里插入图片描述

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysname R-2
[R-2]interface GigabitEthernet 0/0/0
[R-2-GigabitEthernet0/0/0]ip address 10.0.0.2 255.255.255.252
[R-2-GigabitEthernet0/0/0]quit
[R-2]interface GigabitEthernet 0/0/1
[R-2-GigabitEthernet0/0/1]ip address 10.0.0.5 255.255.255.252
[R-2-GigabitEthernet0/0/1]quit
[R-2]ip route-static 192.168.100.0 22 10.0.0.1
[R-2]ip route-static 192.168.104.0 22 10.0.0.6
[R-2]quit
<R-2>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 17.
Save the configuration successfully.

R-2路由比较特殊,因为是作为8台主机通信的总中转站,所以对静态路由的范围需要确认清楚,子网掩码需要合理分配。

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysname R-3
[R-3]interface GigabitEthernet 0/0/0
[R-3-GigabitEthernet0/0/0]ip address 10.0.0.6 255.255.255.252
[R-3-GigabitEthernet0/0/0]quit
[R-3]interface GigabitEthernet 0/0/1
[R-3-GigabitEthernet0/0/1]ip address 10.0.3.2 255.255.255.252
[R-3-GigabitEthernet0/0/1]quit
[R-3]interface GigabitEthernet 0/0/2
[R-3-GigabitEthernet0/0/2]ip address 10.0.4.2 255.255.255.252
[R-3-GigabitEthernet0/0/2]quit
[R-3]ip route-static 192.168.104.13 23 10.0.3.1
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.104.0/23 was generated.
[R-3]ip route-static 192.168.104.0 23 10.0.3.1
Error: The route already exists.
[R-3]undo ip route-static 192.168.104.13 23 10.0.3.1
Warning: The destination address and the mask do not match, and thus the static 
route 192.168.104.0/23 will be deleted. Continue?[Y/N]:y
[R-3]ip route-static 192.168.104.0 23 10.0.3.1
[R-3]ip route-static 192.168.106.0 23 10.0.4.1
[R-3]ip route-static 192.168.100.0 22 10.0.0.5
[R-3]quit
<R-3>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 17.
Save the configuration successfully.

5、最后测试任意两台主机通信情况

配置没问题的情况下,最终测试结果是任意两台主机都可以相互通信的。
在这里插入图片描述
注意:
在路由器做静态路由的时候,可以看到R-1到Host-3的子网掩码给的是23位,目的是为了把Host-4的网段包含进去,也可以单独写Host-4,这时子网掩码写24位。
像R-2的路由,目的地址一般是包含四个网段的主机的,这时子网掩码写22位,同理也可以写24位,然后单独写给每一台主机。

相关文章:

复杂园区网基本分支的构建

目录 1、各主机进行网络配置。2、交换机配置。3、配置路由交换&#xff0c;进行测试。4、配置路由器接口和静态路由&#xff0c;进行测试。5、最后测试任意两台主机通信情况 模拟环境链接 拓扑结构 说明&#xff1a; VLAN标签在上面的一定是GigabitEthernet接口的&#xff0c…...

如何很快将文件转换成另外一种编码格式?编码?按指定编码格式编译?如何检测文件编码格式?Java .class文件编码和JVM运行期内存编码?

如何很快将文件转换成另外一种编码格式? 利用VS Code右下角的"选择编码"功能&#xff0c;选择"通过编码保存"可以很方便将文件转换成另外一种编码格式。尤其&#xff0c;在测试w/ BOM或w/o BOM, 或者ANSI编码和UTF编码转换&#xff0c;特别方便。VS文件另…...

《C++11》Lambda 匿名函数从入门到进阶 优缺点分析 示例

Lambda 匿名函数从入门到进阶 C11 引入了 lambda 表达式&#xff0c;这是一种非常强大的功能&#xff0c;可以让我们在代码中定义匿名函数。它们不仅使代码更加简洁&#xff0c;而且在处理回调、算法和多线程编程时极为方便。本文将带你从入门到进阶&#xff0c;全面了解 C11 …...

连接Milvus

连接到Milvus 验证Milvus服务器正在侦听哪个本地端口。将容器名称替换为您自己的名称。 docker port milvus-standalone 19530/tcp docker port milvus-standalone 2379/tcp docker port milvus-standalone 192.168.1.242:9091/api/v1/health 使用浏览器访问连接地址htt…...

Linux——修改文件夹的所属用户组和用户

一、命令 举例&#xff1a; 授权 MOT17 文件夹 给 hust_xxx 用户&#xff1a; sudo chown -R hust_xxx:hust_xxx MOT17参考 Linux授权文件夹给用户...

Vue Amazing UI 组件库(Vue3+TypeScript+Vite 等最新技术栈开发)

Vue Amazing UI 一个 Vue 3 组件库 使用 TypeScript&#xff0c;都是单文件组件 (SFC)&#xff0c;支持 tree shaking 有点意思 English | 中文 Vue Amazing UI 是一个基于 Vue 3、TypeScript、Vite 等最新技术栈开发构建的现代化组件库&#xff0c;包含丰富的 UI 组件和常…...

计算机Steam报错failedtoloadsteamui.dll怎么解决?DLL报错要怎么修复?

计算机Steam报错“Failed to Load SteamUI.dll”&#xff1f;这里有专业的解决方案&#xff01; 作为软件开发领域的一名从业者&#xff0c;我深知电脑在运行过程中可能会遇到的各种问题&#xff0c;尤其是像Steam这样的大型游戏平台。今天&#xff0c;我将为大家科普一下Stea…...

如何开发一个简单的 dApp

后端合约 执行 sui move new resource_manage 创建一个包 接着就可以开始编写合约了 首先创建两个 Struct 用来创建 Profile 并记录在 State 中 public struct State has key {id: UID,users: Table<address, address>, }public struct Profile has key {id: UID,nam…...

TDengine 签约智园数字,助力化工园区智联未来

近年来&#xff0c;随着化工行业对安全、环保、高效运营的要求日益提高&#xff0c;化工园区的数字化转型成为必然趋势。从数据孤岛到全面互联&#xff0c;从基础监控到智能分析&#xff0c;如何高效管理和利用时序数据已成为化工园区智能化升级的关键环节。作为一家专注于时序…...

《Python游戏编程入门》注-第9章8

2 游戏信息的显示 在游戏窗口的上部会显示游戏分数、游戏关卡、剩余砖块数以及剩余小球数等信息,如图12所示。 图12 游戏信息显示 使用如图13所示的代码实现以上功能。 图13 显示游戏信息的代码 其中,print_text()函数MyLibrary....

js逆向实战(1)-- 某☁️音乐下载

下载某云音乐源文件.mp4格式 首先随便点进一首歌&#xff0c;如图所示获取该音乐id&#xff0c;然后点击播放键&#xff0c;打开F12进行查询XHR 由此可知&#xff0c;实际请求网址是 https://music.163.com/weapi/song/enhance/player/url/v1?csrf_token「你的token」url需带…...

AIA - APLIC之三(附APLIC处理流程图)

本文属于《 RISC-V指令集基础系列教程》之一,欢迎查看其它文章。 1 APLIC复位 APLIC复位后,其所有状态都变得有效且一致,但以下情况除外: 每个中断域的domaincfg寄存器(spec第 4.5.1 节);可能是machine-level interrupt domain的MSI地址配置寄存器(spec第4.5.3 和4.5…...

React Router 向路由组件传state参数浏览器回退历史页面显示效果问题

昨天在看尚硅谷张天禹老师讲的 React教程p90&#xff0c;老师讲到 React路由的 replace模式和push模式&#xff0c;老师的演示效果与自己本地操作不太一样。 老师的效果&#xff1a;点击查看消息1&#xff0c;消息2&#xff0c;消息3 再点回退&#xff0c;可以依次查看到 消息…...

线程池与并发工具:Java的分身管理器

1 线程池的概念 线程池是一种执行器&#xff08;Executor&#xff09;&#xff0c;用于在一个后台线程中执行任务。线程池的主要目的是减少在创建和销毁线程时所产生的性能开销。通过重用已经创建的线程来执行新的任务&#xff0c;线程池提高了程序的响应速度&#xff0c;并且提…...

字玩FontPlayer开发笔记8 Tauri2文件系统

字玩FontPlayer开发笔记8 Tauri2文件系统 字玩FontPlayer是笔者开源的一款字体设计工具&#xff0c;使用Vue3 ElementUI开发&#xff0c;源代码&#xff1a; github: https://github.com/HiToysMaker/fontplayer gitee: https://gitee.com/toysmaker/fontplayer 笔记 字玩目…...

头歌python实验:网络安全应用实践3-验证码识别

第1关:简单的验证码识别 本关任务:编写一个能简单识别验证码的小程序。 为了完成本关任务,你需要掌握: 使用 pytesseract 库与 PIL 库解析图片;环境配置;读取图片文本信息。使用 pytesseract 库与 PIL 库解析图片 pytesseract 库可以从图像中提取文本。Tesseract 是一…...

客户案例:基于慧集通(DataLinkX)集成平台的金蝶云星空与HIS系统集成案例--凭证模板的配置(一)

当前的原型客户是一家医院&#xff0c;财务系统使用的是金蝶云星空&#xff0c;需要与医院专用的HIS系统进行集成。本文档主要是介绍其中的凭证模板的配置功能。 凭证模板组件旨在生成凭证前&#xff0c;通过内部整理整合原始单据数据&#xff0c;将其转化为可生成一张凭证的数…...

基于 Python 的大学教室资源管理系统的设计与实现

标题:基于 Python 的大学教室资源管理系统的设计与实现 内容:1.摘要 摘要&#xff1a;随着高校教育的不断发展&#xff0c;教室资源的管理变得越来越重要。为了提高教室资源的利用率&#xff0c;本文设计并实现了一个基于 Python 的大学教室资源管理系统。该系统采用了 B/S 架…...

nginx-灰度发布策略(split_clients)

一. 简述&#xff1a; 基于客户端的灰度发布&#xff08;也称为蓝绿部署或金丝雀发布&#xff09;是一种逐步将新版本的服务或应用暴露给部分用户&#xff0c;以确保在出现问题时可以快速回滚并最小化影响的技术。对于 Nginx&#xff0c;可以通过配置和使用不同的模块来实现基于…...

nginx正向代理从安装到使用一网打尽系列(二)使用

一、背景 使用场景大总结&#xff0c;可作为参考手册用 nginx正向代理从安装到使用一网打尽系列&#xff08;一&#xff09;安装 nginx正向代理从安装到使用一网打尽系列&#xff08;二&#xff09;使用 二、使用场景 1、所有内网应用都不能直接访问外网&#xff0c;但需要…...

手游刚开服就被攻击怎么办?如何防御DDoS?

开服初期是手游最脆弱的阶段&#xff0c;极易成为DDoS攻击的目标。一旦遭遇攻击&#xff0c;可能导致服务器瘫痪、玩家流失&#xff0c;甚至造成巨大经济损失。本文为开发者提供一套简洁有效的应急与防御方案&#xff0c;帮助快速应对并构建长期防护体系。 一、遭遇攻击的紧急应…...

3.3.1_1 检错编码(奇偶校验码)

从这节课开始&#xff0c;我们会探讨数据链路层的差错控制功能&#xff0c;差错控制功能的主要目标是要发现并且解决一个帧内部的位错误&#xff0c;我们需要使用特殊的编码技术去发现帧内部的位错误&#xff0c;当我们发现位错误之后&#xff0c;通常来说有两种解决方案。第一…...

Auto-Coder使用GPT-4o完成:在用TabPFN这个模型构建一个预测未来3天涨跌的分类任务

通过akshare库&#xff0c;获取股票数据&#xff0c;并生成TabPFN这个模型 可以识别、处理的格式&#xff0c;写一个完整的预处理示例&#xff0c;并构建一个预测未来 3 天股价涨跌的分类任务 用TabPFN这个模型构建一个预测未来 3 天股价涨跌的分类任务&#xff0c;进行预测并输…...

C++中string流知识详解和示例

一、概览与类体系 C 提供三种基于内存字符串的流&#xff0c;定义在 <sstream> 中&#xff1a; std::istringstream&#xff1a;输入流&#xff0c;从已有字符串中读取并解析。std::ostringstream&#xff1a;输出流&#xff0c;向内部缓冲区写入内容&#xff0c;最终取…...

Axios请求超时重发机制

Axios 超时重新请求实现方案 在 Axios 中实现超时重新请求可以通过以下几种方式&#xff1a; 1. 使用拦截器实现自动重试 import axios from axios;// 创建axios实例 const instance axios.create();// 设置超时时间 instance.defaults.timeout 5000;// 最大重试次数 cons…...

tree 树组件大数据卡顿问题优化

问题背景 项目中有用到树组件用来做文件目录&#xff0c;但是由于这个树组件的节点越来越多&#xff0c;导致页面在滚动这个树组件的时候浏览器就很容易卡死。这种问题基本上都是因为dom节点太多&#xff0c;导致的浏览器卡顿&#xff0c;这里很明显就需要用到虚拟列表的技术&…...

RNN避坑指南:从数学推导到LSTM/GRU工业级部署实战流程

本文较长&#xff0c;建议点赞收藏&#xff0c;以免遗失。更多AI大模型应用开发学习视频及资料&#xff0c;尽在聚客AI学院。 本文全面剖析RNN核心原理&#xff0c;深入讲解梯度消失/爆炸问题&#xff0c;并通过LSTM/GRU结构实现解决方案&#xff0c;提供时间序列预测和文本生成…...

html-<abbr> 缩写或首字母缩略词

定义与作用 <abbr> 标签用于表示缩写或首字母缩略词&#xff0c;它可以帮助用户更好地理解缩写的含义&#xff0c;尤其是对于那些不熟悉该缩写的用户。 title 属性的内容提供了缩写的详细说明。当用户将鼠标悬停在缩写上时&#xff0c;会显示一个提示框。 示例&#x…...

HashMap中的put方法执行流程(流程图)

1 put操作整体流程 HashMap 的 put 操作是其最核心的功能之一。在 JDK 1.8 及以后版本中&#xff0c;其主要逻辑封装在 putVal 这个内部方法中。整个过程大致如下&#xff1a; 初始判断与哈希计算&#xff1a; 首先&#xff0c;putVal 方法会检查当前的 table&#xff08;也就…...

【笔记】WSL 中 Rust 安装与测试完整记录

#工作记录 WSL 中 Rust 安装与测试完整记录 1. 运行环境 系统&#xff1a;Ubuntu 24.04 LTS (WSL2)架构&#xff1a;x86_64 (GNU/Linux)Rust 版本&#xff1a;rustc 1.87.0 (2025-05-09)Cargo 版本&#xff1a;cargo 1.87.0 (2025-05-06) 2. 安装 Rust 2.1 使用 Rust 官方安…...