对于实际项目中应用比较简单,不带加密的VPN方式就要数GRE了。
以GRE形式的VPN配置
下面以从北京到长沙的网络配置。结构示意图如下图所示
![](https://www.cntworld.cn/wp-content/uploads/2023/12/1701881548-31f0d8489f75c89.png)
北京端的GRE配置。
![](https://www.cntworld.cn/wp-content/uploads/2023/12/1701881584-ac0929dd17c18a1.png)
北京端的静态路由配置。
![](https://www.cntworld.cn/wp-content/uploads/2023/12/1701881611-59ef9d439d6056b.png)
长沙端的GRE配置。
![](https://www.cntworld.cn/wp-content/uploads/2023/12/1701881635-40ff2088c939728.png)
长沙端的静态路由配置。
![](https://www.cntworld.cn/wp-content/uploads/2023/12/1701881658-d5485dc6ff77c39.png)
以IPSec形式配置的VPN
以从北京到长沙的网络配置。结构示意图如下图所示
![](https://www.cntworld.cn/wp-content/uploads/2023/12/1701881548-31f0d8489f75c89.png)
北京的配置
![](https://www.cntworld.cn/wp-content/uploads/2023/12/1701881827-f1e89803a035e2f.png)
![](https://www.cntworld.cn/wp-content/uploads/2023/12/1701881843-8cd6a1a9f48296a.png)
如果是两端的路由器是相同品牌参数的话配置是比较简单的,但是实际项目中多数是不相同的,各种配置的路由器或防火墙都有的。那就要注意配置相同的加密算法,
![](https://www.cntworld.cn/wp-content/uploads/2023/12/1701881985-84c37750d566b9c.png)
长沙端的配置
![](https://www.cntworld.cn/wp-content/uploads/2023/12/1701882110-aa6e60b090a1f6f.png)
![](https://www.cntworld.cn/wp-content/uploads/2023/12/1701882181-b42ace8c3998d00.png)
Post Views: 222