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

HCIP小型园区网拓扑实验

1.拓扑以及需求

2.需求分析

需要的核心技术

1、虚拟局域网(VLAN)

2、链路聚合(E-trunk)

3、多生成树协议(MSTP)

4、VLANIF三层逻辑接口

5、虚拟路由冗余协议(VRRP)

6、动态主机配置协议(DHCP)

7、放式最短路径优先(OSPF)

8、网络地址转换协议(NAT)

第一步先从接入层入手划分vlan并放通,进行链路聚合等操作,第二步防止成环并给交换机做备份配置MSTP与VRRP,然后配置DHCP给PC分配IP(这里的DHCP也要做备份),此时二层交换部分就已经做完了。到了三层部分配置动态路由协议OSPF,在边界路由器配置NAT访问外网。

3.详细配置

3.1VLAN规划

LSW3

<SW3>system-view //进入用户试图
[SW3]vlan batch 2 3 20 30 //创建VLAN
[SW3]interface GigabitEthernet 0/0/1 //进入接口
[SW3-GigabitEthernet0/0/1]port link-type access //将接口设为接入模式
[SW3-GigabitEthernet0/0/1]port default vlan 2 //将VLAN划入接口<SW3>system-view 
[SW3]vlan batch 2 3 20 30
[SW3]interface GigabitEthernet 0/0/2
[SW3-GigabitEthernet0/0/2]port link-type access 
[SW3-GigabitEthernet0/0/2]port default vlan 3<SW3>system-view 
[SW3]vlan batch 2 3 20 30
[SW3]port-group group-member GigabitEthernet 0/0/3 GigabitEthernet 0/0/4 //创建组接口批量操作
[SW3-GigabitEthernet0/0/3]port link-type trunk  //将接口设为干道模式
[SW3-port-group]port trunk allow-pass vlan 2 3 20 30 //放行接口

LSW4

<SW4>system-view
[SW4]vlan batch 2 3 20 30
[SW4]interface GigabitEthernet 0/0/1 
[SW4-GigabitEthernet0/0/1]port link-type access 
[SW4-GigabitEthernet0/0/1]port default vlan 20 <SW4>system-view 
[SW4]vlan batch 2 3 20 30
[SW4]interface GigabitEthernet 0/0/2
[SW4-GigabitEthernet0/0/2]port link-type access 
[SW4-GigabitEthernet0/0/2]port default vlan 30<SW4>system-view 
[SW4]vlan batch 2 3 20 30
[SW4]port-group group-member GigabitEthernet 0/0/3 GigabitEthernet 0/0/4 
[SW4-GigabitEthernet0/0/3]port link-type trunk 
[SW4-port-group]port trunk allow-pass vlan 2 3 20 30 

LSW1

<SW1>system-view	
[SW1]port-group group-member GigabitEthernet 0/0/3 GigabitEthernet 0/0/4
[SW1-port-group]port link-type trunk 
[SW1-port-group]port trunk allow-pass vlan 2 3 20 30

LSW2

<SW2>system-view	
[SW2]port-group group-member GigabitEthernet 0/0/3 GigabitEthernet 0/0/4
[SW2-port-group]port link-type trunk 
[SW2-port-group]port trunk allow-pass vlan 2 3 20 30

3.2链路聚合

将多个物理接口捆绑成一个逻辑接口起到增加带宽,负载分担的作用。逻辑接口也要放通VLAN。

LSW1

[SW1]int Eth-Trunk 0 //创建逻辑接口
[SW1-Eth-Trunk0]trunkport GigabitEthernet 0/0/1 to 0/0/2 

LSW2

[SW2]int Eth-Trunk 0 //创建逻辑接口
[SW2-Eth-Trunk0]trunkport GigabitEthernet 0/0/1 to 0/0/2 

3.3配置MSTP

LSW1

[SW1]stp enable //启用生成树协议
[SW1]stp mode mstp //将模式设置为mstp
[SW1]stp region-configuration //进入mstp域配置视图
[SW1-mst-region]region-name aa //修改域名,默认域名为本地MAC地址
[SW1-mst-region]instance 1 vlan 2 3 //配置实例与VLAN的映射关系
[SW1-mst-region]instance 2 vlan 20 30
[SW1-mst-region]active region-configuration //激活域配置,如果没有激活,则前面的配置无效
[SW1]quit [SW1]stp instance 1 root primary //将SW1设定为实例1的主根
[SW1]stp instance 2 root secondary // //将SW1设定为实例2的副根

LSW2

[SW2]stp enable 
[SW2]stp mode mstp 
[SW2]stp region-configuration 
[SW2-mst-region]region-name aa 
[SW2-mst-region]instance 1 vlan 2 3 
[SW2-mst-region]instance 2 vlan 20 30
[SW2-mst-region]active region-configuration 
[SW2]quit [SW2]stp instance 2 root primary 
[SW2]stp instance 1 root secondary 

LSW3

[SW3]stp enable 
[SW3]stp mode mstp 
[SW3]stp region-configuration 
[SW3-mst-region]region-name aa 
[SW3-mst-region]instance 1 vlan 2 3 
[SW3-mst-region]instance 2 vlan 20 30
[SW3-mst-region]active region-configuration 

LSW4

[SW4]stp enable 
[SW4]stp mode mstp 
[SW4]stp region-configuration 
[SW4-mst-region]region-name aa 
[SW4-mst-region]instance 1 vlan 2 3 
[SW4-mst-region]instance 2 vlan 20 30
[SW4-mst-region]active region-configuration [SW1]display stp region-configuration 
[SW1]display stp brief 

3.4配置VLANIF

LSW1

[SW1]int Vlanif 2 //创建vlanif接口---逻辑三层接口
[SW1-Vlanif2]ip address 10.0.2.1 24[SW1]int Vlanif 3
[SW1-Vlanif3]ip address 10.0.3.1 24[SW1]int Vlanif 20
[SW1-Vlanif20]ip address 10.0.20.1 24[SW1]int Vlanif 30
[SW1-Vlanif30]ip address 10.0.30.1 24

LSW2

[SW2]int Vlanif 2 //创建vlanif接口---逻辑三层接口
[SW2-Vlanif2]ip address 10.0.2.129 24 //主机位配置129方便后续配置DHCP排除IP[SW2]int Vlanif 3
[SW2-Vlanif3]ip address 10.0.3.129 24[SW2]int Vlanif 20
[SW2-Vlanif20]ip address 10.0.20.129 24[SW2]int Vlanif 30
[SW2-Vlanif30]ip address 10.0.30.129 24

3.5配置VRRP

LSW1

[SW1]int Vlanif 2
[SW1-Vlanif2]vrrp vrid 2 virtual-ip 10.0.2.254 //配置虚拟路由器IP作为PC网关
[SW1-Vlanif2]vrrp vrid  2 priority 120 //提高优先级为master状态[SW1]int Vlanif 3
[SW1-Vlanif3]vrrp vrid 3 virtual-ip 10.0.3.254
[SW1-Vlanif3]vrrp vrid  3 priority 120[SW1]int Vlanif 20
[SW1-Vlanif20]vrrp vrid 20 virtual-ip 10.0.20.254 //作为虚拟路由器的备份网关,不需要提高优先级[SW1]int Vlanif 30
[SW1-Vlanif30]vrrp vrid 30 virtual-ip 10.0.30.254

LSW2

[SW1]int Vlanif 2
[SW1-Vlanif2]vrrp vrid 2 virtual-ip 10.0.2.254[SW1]int Vlanif 3
[SW1-Vlanif3]vrrp vrid 3 virtual-ip 10.0.3.254[SW1]int Vlanif 20
[SW1-Vlanif20]vrrp vrid 20 virtual-ip 10.0.20.254
[SW1-Vlanif20]vrrp vrid  20 priority 120[SW1]int Vlanif 30
[SW1-Vlanif30]vrrp vrid 30 virtual-ip 10.0.30.254
[SW1-Vlanif30]vrrp vrid  30 priority 120<SW1>display vrrp brief 

3.6配置DHCP

配置的DHCP也要备份,因此采用排除一半地址池的办法 ,留一半给备份设备分配

LSW1

[SW1]dhcp enable 
[SW1]ip pool vlan2 //创建名为vlan2的IP地址池
[SW1-ip-pool-vlan2]network 10.0.2.0 mask 24 //宣告网段
[SW1-ip-pool-vlan2]gateway-list 10.0.2.254 //设置网关
[SW1-ip-pool-vlan2]dns-list 8.8.8.8 //域名解析服务器
[SW1-ip-pool-vlan2]excluded-ip-address 10.0.2.129 10.0.2.253 //排除地址池一半的IP[SW1]int Vlanif 2
[SW1-Vlanif2]dhcp select global [SW1]ip pool vlan3 
[SW1-ip-pool-vlan3]network 10.0.3.0 mask 24 
[SW1-ip-pool-vlan3]gateway-list 10.0.3.254 
[SW1-ip-pool-vlan3]dns-list 8.8.8.8 
[SW1-ip-pool-vlan3]excluded-ip-address 10.0.3.129 10.0.3.253 [SW1]int Vlanif 3
[SW1-Vlanif3]dhcp select global [SW1]ip pool vlan20 
[SW1-ip-pool-vlan20]network 10.0.20.0 mask 24 
[SW1-ip-pool-vlan20]gateway-list 10.0.20.254 
[SW1-ip-pool-vlan20]dns-list 8.8.8.8 
[SW1-ip-pool-vlan20]excluded-ip-address 10.0.20.129 10.0.20.253 [SW1]int Vlanif 20
[SW1-Vlanif3]dhcp select global[SW1]ip pool vlan30
[SW1-ip-pool-vlan30]network 10.0.30.0 mask 24 
[SW1-ip-pool-vlan30]gateway-list 10.0.30.254 
[SW1-ip-pool-vlan30]dns-list 8.8.8.8 
[SW1-ip-pool-vlan30]excluded-ip-address 10.0.30.129 10.0.30.253 [SW1]int Vlanif 30
[SW1-Vlanif3]dhcp select global 

LSW2

[SW1]dhcp enable 
[SW1]ip pool vlan2 
[SW1-ip-pool-vlan2]network 10.0.2.0 mask 24 
[SW1-ip-pool-vlan2]gateway-list 10.0.2.254 
[SW1-ip-pool-vlan2]dns-list 8.8.8.8 
[SW1-ip-pool-vlan2]excluded-ip-address 10.0.2.1 10.0.2.128 [SW1]int Vlanif 2
[SW1-Vlanif2]dhcp select global [SW1]ip pool vlan3 
[SW1-ip-pool-vlan3]network 10.0.3.0 mask 24 
[SW1-ip-pool-vlan3]gateway-list 10.0.3.254 
[SW1-ip-pool-vlan3]dns-list 8.8.8.8 
[SW1-ip-pool-vlan3]excluded-ip-address 10.0.3.1 10.0.3.128[SW1]int Vlanif 3
[SW1-Vlanif3]dhcp select global [SW1]ip pool vlan20 
[SW1-ip-pool-vlan20]network 10.0.20.0 mask 24 
[SW1-ip-pool-vlan20]gateway-list 10.0.20.254 
[SW1-ip-pool-vlan20]dns-list 8.8.8.8 
[SW1-ip-pool-vlan20]excluded-ip-address 10.0.20.1 10.0.20.128[SW1]int Vlanif 20
[SW1-Vlanif3]dhcp select global[SW1]ip pool vlan30
[SW1-ip-pool-vlan30]network 10.0.30.0 mask 24 
[SW1-ip-pool-vlan30]gateway-list 10.0.30.254 
[SW1-ip-pool-vlan30]dns-list 8.8.8.8 
[SW1-ip-pool-vlan30]excluded-ip-address 10.0.30.1 10.0.30.128[SW1]int Vlanif 30
[SW1-Vlanif3]dhcp select global 

PC1的IP

PC3的IP

此时二层的配置就已经全部做完了

3.7配置接口IP

AR1

<R1>system-view 
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip address 202.1.1.1 24[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip address 10.0.0.2 30[R1]int g0/0/2
[R1-GigabitEthernet0/0/2]ip address 10.0.0.6 30

AR2

<R2>system-view 
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 202.1.1.2 30[R2]int LoopBack 0
[R2-LoopBack0]ip add 100.100.100.100 32

SW1

<SW1>system-view 
[SW1]vlan 13 101
[SW1]interface Vlanif 13
[SW1-Vlanif101]ip address 10.0.0.9 30
[SW1]interface Vlanif 101
[SW1-Vlanif101]ip address 10.0.0.1 30[SW1]int Eth-Trunk 12
[SW1-Eth-Trunk12]port link-type trunk 
[SW1-Eth-Trunk12]port trunk allow-pass vlan 13[SW1]int g0/0/5
[SW1-GigabitEthernet0/0/5]port link-type access
[SW1-GigabitEthernet0/0/5]port default vlan 101

SW2

<SW2>system-view 
[SW2]vlan 13 102
[SW2]interface Vlanif 13
[SW2-Vlanif13]ip address 10.0.0.10 30[SW2]interface Vlanif 102
[SW2-Vlanif101]ip address 10.0.0.5 30[SW2]int Eth-Trunk 12
[SW1-Eth-Trunk12]port link-type trunk 
[SW1-Eth-Trunk12]port trunk allow-pass vlan 13[SW2]int g0/0/5
[SW2-GigabitEthernet0/0/5]port link-type access
[SW2-GigabitEthernet0/0/5]port default vlan 102

3.8配置OSPF

这里防止防止上行链路故障SW1与SW2也要建立邻接关系

AR1

<R1>system-view 
[R1]ospf 1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 10.0.0.2 0.0.0.0 
[R1-ospf-1-area-0.0.0.0]network 10.0.0.6 0.0.0.0

SW1

<SW1>system-view 
[SW1]ospf 1
[SW1-ospf-1]area 0
[SW1-ospf-1-area-0.0.0.0]network 10.0.0.1 0.0.0.0
[SW1-ospf-1-area-0.0.0.0]network 10.0.0.9 0.0.0.0
[SW1-ospf-1-area-0.0.0.0]network 10.0.2.1 0.0.0.0
[SW1-ospf-1-area-0.0.0.0]network 10.0.3.1 0.0.0.0
[SW1-ospf-1-area-0.0.0.0]network 10.0.20.1 0.0.0.0
[SW1-ospf-1-area-0.0.0.0]network 10.0.30.1 0.0.0.0[SW1-ospf-1]display ospf peer brief 

SW2

<SW2>system-view 
[SW2]ospf 1
[SW2-ospf-1]area 0
[SW2-ospf-1-area-0.0.0.0]network 10.0.0.5 0.0.0.0
[SW2-ospf-1-area-0.0.0.0]network 10.0.0.10 0.0.0.0
[SW2-ospf-1-area-0.0.0.0]network 10.0.2.129 0.0.0.0
[SW2-ospf-1-area-0.0.0.0]network 10.0.3.129 0.0.0.0
[SW2-ospf-1-area-0.0.0.0]network 10.0.20.129 0.0.0.0
[SW2-ospf-1-area-0.0.0.0]network 10.0.30.129 0.0.0.0[SW1-ospf-1]display ospf peer brief 

从邻居表中可以看到数据的重复更新,可以配置静默接口来使接口不发送与接收OSPF报文

[SW1-ospf-1]silent-interface Vlanif 2
[SW1-ospf-1]silent-interface Vlanif 3
[SW1-ospf-1]silent-interface Vlanif 20
[SW1-ospf-1]silent-interface Vlanif 30[SW2-ospf-1]silent-interface Vlanif 2
[SW2-ospf-1]silent-interface Vlanif 3
[SW2-ospf-1]silent-interface Vlanif 20
[SW2-ospf-1]silent-interface Vlanif 30

3.9配置NAT

AR1

<R1>system-view 
[R1]acl 2000 //创建ACL列表2000  2000-2999为标准ACL,一个编号为一张大表
[R1-acl-basic-2000]rule 5 permit source 10.0.0.0 0.0.255.255 使用通配符进行匹配,通配符支持0,1混编[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]nat outbound 2000 //出接口调用acl 2000

实验补充

边界路由器配置缺省

[R1]ip route-static 0.0.0.0 0 202.1.1.2

OSPF边界路由器下发缺省

[R1]ospf 1
[R1-ospf-1]default-route-advertise //后面不用跟always,因为已经配置了指向外网的静态缺省路由

使用PC1去ping100.100.100.100

相关文章:

HCIP小型园区网拓扑实验

1.拓扑以及需求 2.需求分析 需要的核心技术 1、虚拟局域网&#xff08;VLAN&#xff09; 2、链路聚合&#xff08;E-trunk&#xff09; 3、多生成树协议&#xff08;MSTP&#xff09; 4、VLANIF三层逻辑接口 5、虚拟路由冗余协议&#xff08;VRRP&#xff09; 6、动态主…...

GRR测量系统的重复性和再现性

GRR&#xff08;GaugeRepeatabilityandReproducibility&#xff09;即测量系统的重复性和再现性&#xff0c;是用于评估测量系统性能的一个重要指标。以下是对GRR的详细解释&#xff1a; 一、定义 • 重复性&#xff08;Repeatability&#xff09;&#xff1a;在相同条件下&…...

133.鸿蒙基础01

鸿蒙基础 1.自定义构建函数1. 构建函数-[Builder ](/Builder )2. 构建函数-传参传递(单向)3. 构建函数-传递参数(双向)4. 构建函数-传递参数练习5. 构建函数-[BuilderParam ](/BuilderParam ) 传递UI 2.组件状态共享1. 状态共享-父子单向2. 状态共享-父子双向3. 状态共享-后代组…...

科技查新小知识

首先科技查新是什么&#xff1f; 科技查新是文献检索和情报调研相结合的情报研究工作&#xff0c;它以文献为基础&#xff0c;以文献检索和情报调研为手段&#xff0c;以检出结果为依据&#xff0c;通过综合分析&#xff0c;对查新项目的新颖性进行情报学审查&#xff0c;写出有…...

docker安装portainer

1、拉取镜像 docker pull portainer/portainer-ce:latest2、执行 docker run -d --restartalways --name portainer -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v /data/portainer/data:/data -v /data/portainer/public:/public portainer/portain…...

【Word2Vec】传统词嵌入矩阵训练方法

目录 1. Word2Vec 简介2. Word2Vec 的训练方法2.1 Skip-Gram模型2.2 CBOW&#xff08;Continuous Bag of Words&#xff09;模型 3. Word2Vec 中的词嵌入表示4. 训练过程中是否使用独热编码&#xff1f; 1. Word2Vec 简介 Word2Vec 是一种词嵌入模型&#xff0c;主要通过无监督…...

电脑不显示wifi列表怎么办?电脑不显示WiF列表的解决办法

有用户会遇到电脑总是不显示wifi列表的问题&#xff0c;但是不知道要怎么解决。随着无线网络的普及和使用&#xff0c;电脑无法显示WiFi列表的问题有时会让人感到困扰。电脑不显示WiFi列表是很常见的问题&#xff0c;但这并不意味着你无法连接到网络。不用担心&#xff0c;这个…...

详解 Dockerfile:从入门到实践

Docker 是一个开源的应用容器引擎&#xff0c;它允许开发者将应用及其依赖包打包到一个可移植的容器中&#xff0c;然后发布到任何流行的 Linux 机器或 Windows 机器上&#xff0c;也可以实现虚拟化。Dockerfile 是一个文本文件&#xff0c;其中包含了一系列命令&#xff0c;用…...

随机变量的概率分布

第 5 章——概率分布 5.2 随机变量的概率分布 【例5-1】 计算期望值、方差、标准差 【代码框5-1】 计算期望值、方差、标准差 import pandas as pd import numpy as np example5_1 = pd.read_csv(./pydata/example/chap05/example5_1.csv)# 计算期望值 mymean = sum...

Kafka生产者如何提高吞吐量?

批量发送&#xff1a;生产者可以配置 batch.size 参数&#xff0c;将多个消息打包成一个批次发送。这样可以减少网络通信的次数&#xff0c;提高吞吐量。inger.ms&#xff1a;设置 linger.ms 参数&#xff0c;可以让生产者在发送消息前等待一段时间&#xff0c;以便收集更多的消…...

mysql:解决windows启动失败无报错(或长时间未响应)

前言 遇到好多次在修改配置文件后&#xff0c;mysql无法启动的问题了&#xff0c;这里给出一个可能原因的解决方案。 由于mysql需要修改配置文件&#xff0c;所以我在winserver2012服务器上更改了配置文件my.ini mysql5.7配置文件默认地址&#xff1a;C:\ProgramData\MySQL\MyS…...

【山——回文判断】

题目 代码 #include <bits/stdc.h> using namespace std; bool check(int num) {string s to_string(num);int l 0, r s.size() - 1;while (l < r){if (l && s[l] - s[l - 1] < 0)return false;if (s[l] ! s[r--])return false;}if (l && l r…...

FPGA学习笔记#7 Vitis HLS 数组优化和函数优化

本笔记使用的Vitis HLS版本为2022.2&#xff0c;在windows11下运行&#xff0c;仿真part为xcku15p_CIV-ffva1156-2LV-e&#xff0c;主要根据教程&#xff1a;跟Xilinx SAE 学HLS系列视频讲座-高亚军进行学习 学习笔记&#xff1a;《FPGA学习笔记》索引 FPGA学习笔记#1 HLS简介及…...

欧几里得算法python

一、问题描述 求最大公约数 class Fraction:def __init__(self, a, b):self.a aself.b bx self.gcd(a, b)self.a / xself.b / xdef gcd(self, a, b):while b >0:r a % ba bb rreturn adef zgs(self, a, b):x self.gcd(a, b)return a / x * bdef __add__(self, other…...

【layui】echart的简单使用

图表类型切换&#xff08;柱形图和折线图相互切换&#xff09; <title>会员数据</title><div class"layui-card layadmin-header"><div class"layui-breadcrumb" lay-filter"breadcrumb"><a lay-href""&g…...

ios打包文件上传App Store windows工具

在苹果开发者中心上架IOS APP的时候&#xff0c;在苹果开发者中心不能直接上传打包文件&#xff0c;需要下载mac的xcode这些工具进行上传&#xff0c;但这些工具无法安装在windows或linux电脑上。 这里&#xff0c;我们可以不用xcode这些工具来上传&#xff0c;可以用国内的香…...

vue2项目启用tailwindcss - 开启class=“w-[190px] mr-[20px]“ - 修复tailwindcss无效的问题

效果图 步骤 停止编译"npm run dev"安装依赖 npm install -D tailwindcssnpm:tailwindcss/postcss7-compat postcss^7 autoprefixer^9 创建文件/src/assets/tailwindcss.css&#xff0c;写入内容&#xff1a; tailwind base; tailwind components; tailwind utiliti…...

mysql中数据不存在却查询到记录?

前言 首先看下面的查询语种 select * from AudioKnowledgeChatInfo where AudioId297795550566600706; 查询结果如下 看到上面的查询结果&#xff0c;是不是一脸懵&#xff1f;这audioId明显不对啊&#xff0c;怎么查询到了&#xff1f; 原因剖析 首先我们来看看数据库表…...

vue3+elementplus+虚拟树el-tree-v2+多条件筛选过滤filter-method

筛选条件 <el-inputv-model"searchForm.searchTreeValue"input"searchTreeData"style"flex: 1; margin-right: 0.0694rem"placeholder"请输入要搜索的设备"clearable/><imgclass"refresh-img"src"com_refres…...

【C#设计模式(4)——构建者模式(Builder Pattern)】

前言 C#设计模式(4)——构建者模式(Builder Pattern) 运行结果 代码 public class Computer {private string part1 "CPU";private string part2 "主板";private string part3 "内存";private string part4 "显卡";private st…...

Vim 调用外部命令学习笔记

Vim 外部命令集成完全指南 文章目录 Vim 外部命令集成完全指南核心概念理解命令语法解析语法对比 常用外部命令详解文本排序与去重文本筛选与搜索高级 grep 搜索技巧文本替换与编辑字符处理高级文本处理编程语言处理其他实用命令 范围操作示例指定行范围处理复合命令示例 实用技…...

【位运算】消失的两个数字(hard)

消失的两个数字&#xff08;hard&#xff09; 题⽬描述&#xff1a;解法&#xff08;位运算&#xff09;&#xff1a;Java 算法代码&#xff1a;更简便代码 题⽬链接&#xff1a;⾯试题 17.19. 消失的两个数字 题⽬描述&#xff1a; 给定⼀个数组&#xff0c;包含从 1 到 N 所有…...

Web 架构之 CDN 加速原理与落地实践

文章目录 一、思维导图二、正文内容&#xff08;一&#xff09;CDN 基础概念1. 定义2. 组成部分 &#xff08;二&#xff09;CDN 加速原理1. 请求路由2. 内容缓存3. 内容更新 &#xff08;三&#xff09;CDN 落地实践1. 选择 CDN 服务商2. 配置 CDN3. 集成到 Web 架构 &#xf…...

Qemu arm操作系统开发环境

使用qemu虚拟arm硬件比较合适。 步骤如下&#xff1a; 安装qemu apt install qemu-system安装aarch64-none-elf-gcc 需要手动下载&#xff0c;下载地址&#xff1a;https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x…...

一些实用的chrome扩展0x01

简介 浏览器扩展程序有助于自动化任务、查找隐藏的漏洞、隐藏自身痕迹。以下列出了一些必备扩展程序&#xff0c;无论是测试应用程序、搜寻漏洞还是收集情报&#xff0c;它们都能提升工作流程。 FoxyProxy 代理管理工具&#xff0c;此扩展简化了使用代理&#xff08;如 Burp…...

归并排序:分治思想的高效排序

目录 基本原理 流程图解 实现方法 递归实现 非递归实现 演示过程 时间复杂度 基本原理 归并排序(Merge Sort)是一种基于分治思想的排序算法&#xff0c;由约翰冯诺伊曼在1945年提出。其核心思想包括&#xff1a; 分割(Divide)&#xff1a;将待排序数组递归地分成两个子…...

Xcode 16 集成 cocoapods 报错

基于 Xcode 16 新建工程项目&#xff0c;集成 cocoapods 执行 pod init 报错 ### Error RuntimeError - PBXGroup attempted to initialize an object with unknown ISA PBXFileSystemSynchronizedRootGroup from attributes: {"isa">"PBXFileSystemSynchro…...

C++中vector类型的介绍和使用

文章目录 一、vector 类型的简介1.1 基本介绍1.2 常见用法示例1.3 常见成员函数简表 二、vector 数据的插入2.1 push_back() —— 在尾部插入一个元素2.2 emplace_back() —— 在尾部“就地”构造对象2.3 insert() —— 在任意位置插入一个或多个元素2.4 emplace() —— 在任意…...

SpringCloud优势

目录 完善的微服务支持 高可用性和容错性 灵活的配置管理 强大的服务网关 分布式追踪能力 丰富的社区生态 易于与其他技术栈集成 完善的微服务支持 Spring Cloud 提供了一整套工具和组件来支持微服务架构的开发,包括服务注册与发现、负载均衡、断路器、配置管理等功能…...

开源项目实战学习之YOLO11:12.6 ultralytics-models-tiny_encoder.py

👉 欢迎关注,了解更多精彩内容 👉 欢迎关注,了解更多精彩内容 👉 欢迎关注,了解更多精彩内容 ultralytics-models-sam 1.sam-modules-tiny_encoder.py2.数据处理流程3.代码架构图(类层次与依赖)blocks.py: 定义模型中的各种模块结构 ,如卷积块、残差块等基础构建…...