当前位置:网站首页>Huawei Router: IPSec Technology
Huawei Router: IPSec Technology
2022-06-24 08:56:00 【Rabbit king cool】
The topology

R1 Configured according to topology IP Address
It is omitted here .
R2 To configure
[R2]ip route-static 0.0.0.0 0 10.10.10.2 # Add a route , Make two public networks IP Interworking
[R2]acl 3000
[R2-acl-adv-3000]rule permit ip source 192.168.11.0 0.0.0.255 destination 192.16
8.12.0 0.0.0.255
establish ipsec Your security proposal
[R2]ipsec proposal pokes
[R2-ipsec-proposal-pokes]q
[R2]dis ipsec proposal name pokes # Let's have a look at
IPSec proposal name: pokes
Encapsulation mode: Tunnel # Encapsulation
Transform : esp-new # Transport level
ESP protocol : Authentication MD5-HMAC-96 # Authentication algorithm
Encryption DES # encryption algorithm
Create security policy
[R2]ipse
[R2]ipsec policy zhpr 10 manual # Create a manual security policy zhpr 10
[R2-ipsec-policy-manual-zhpr-10]security acl 3000 # call acl
[R2-ipsec-policy-manual-zhpr-10]proposal pokes # Call security proposal
[R2-ipsec-policy-manual-zhpr-10]tunnel local 10.10.10.1 # Specify the tunnel source address
[R2-ipsec-policy-manual-zhpr-10]tunnel remote 10.10.20.1 # Specify the tunnel destination address
[R2-ipsec-policy-manual-zhpr-10]sa spi inbound esp 123456 # Set the security index of the security federation SPI
[R2-ipsec-policy-manual-zhpr-10]sa string-key inbound esp simple 234567 # Set the authentication key of the security federation
[R2-ipsec-policy-manual-zhpr-10]sa spi outbound esp 123456
[R2-ipsec-policy-manual-zhpr-10]sa string-key outbound esp simple 234567
Interface policy Strategy
[R2]in g0/0/0 # Public network exit
[R2-GigabitEthernet0/0/0]ipsec policy zhpr
[R2]dis ipsec policy brief # see ipsec Interface information
Number of policies group : 1
Number of policies : 1
Policy name Mode ACL Peer name Local address Remote address
--------------------------------------------------------------------------------
zhpr-10 manual 3000 10.10.10.1 10.10.20.1
[R2]
matters needing attention :
sa spi inbound esp 123456To be connected with the opposite end outbound bring into correspondence with .sa string-key inbound esp simple 234567To be connected with the opposite end outbound bring into correspondence with .
It is recommended to copy and paste after configuring one end , Change the source address and destination address when pasting .
R3 To configure
[R3]ip route-static 0.0.0.0 0 10.10.20.2
[R3]acl 3000
[R3-acl-adv-3000]rule permit ip source 192.168.12.0 0.0.0.255 destination 192.16
8.11.0 0.0.0.255
[R2]ipse
[R2]ipsec policy zhpr 10 manual
[R3-ipsec-policy-manual-zhpr-10] security acl 3000
[R3-ipsec-policy-manual-zhpr-10] proposal pokes
[R3-ipsec-policy-manual-zhpr-10] tunnel local 10.10.20.1
[R3-ipsec-policy-manual-zhpr-10] tunnel remote 10.10.10.1
[R3-ipsec-policy-manual-zhpr-10] sa spi inbound esp 123456
[R3-ipsec-policy-manual-zhpr-10] sa string-key inbound esp simple 234567
[R3-ipsec-policy-manual-zhpr-10] sa spi outbound esp 123456
[R3-ipsec-policy-manual-zhpr-10] sa string-key outbound esp simple 234567
[R3-ipsec-policy-manual-zhpr-10]q
[R3]in g0/0/0
[R3-GigabitEthernet0/0/0]ips
[R3-GigabitEthernet0/0/0]ipsec po
[R3-GigabitEthernet0/0/0]ipsec policy zhpr
[R3]dis ipsec policy brief
Number of policies group : 1
Number of policies : 1
Policy name Mode ACL Peer name Local address Remote address
--------------------------------------------------------------------------------
zhpr-10 manual 3000 10.10.20.1 10.10.10.1
test result
PC>ping 192.168.12.1
Ping 192.168.12.1: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.12.1: bytes=32 seq=2 ttl=127 time=15 ms
From 192.168.12.1: bytes=32 seq=3 ttl=127 time=16 ms
From 192.168.12.1: bytes=32 seq=4 ttl=127 time=31 ms
From 192.168.12.1: bytes=32 seq=5 ttl=127 time=16 ms
--- 192.168.12.1 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 0/19/31 ms
PC>
PC>ping 192.168.11.1
Ping 192.168.11.1: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.11.1: bytes=32 seq=2 ttl=127 time=16 ms
From 192.168.11.1: bytes=32 seq=3 ttl=127 time=15 ms
From 192.168.11.1: bytes=32 seq=4 ttl=127 time=32 ms
From 192.168.11.1: bytes=32 seq=5 ttl=127 time=31 ms
--- 192.168.11.1 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 0/23/32 ms
PC>
In fact, during the generation process , build ipset They are all realized by purchasing hardware equipment , And it's powerful , Using a router is a bit low.
边栏推荐
- À propos de ETL il suffit de lire cet article, trois minutes pour vous faire comprendre ce qu'est ETL
- 数据中台:民生银行的数据中台实践方案
- [pytorch basic tutorial 30] code analysis of DSSM twin tower model
- 【PyTorch基础教程30】DSSM双塔模型代码解析
- 偶然间得到的framework工具类 自用
- The pie chart with dimension lines can set various parameter options
- 数据中台:数据治理概述
- 【牛客】把字符串转换成整数
- mysql写的代码数据 增删查改等等
- MySQL——SQL语句
猜你喜欢

uniapp 开发多端项目如何配置环境变量以及区分环境打包

2022.06.23(LC_144,94,145_二叉树的前序、中序、后序遍历)

One article explains in detail | those things about growth

MBA-day25 最值问题-应用题

MySQL | store notes of Master Kong MySQL from introduction to advanced

关于ETL看这篇文章就够了,三分钟让你明白什么是ETL

input的聚焦后的边框问题

开源之夏中选名单已公示,基础软件领域成为今年的热门申请

【PyTorch基础教程30】DSSM双塔模型代码解析

every()、map()、forEarch()方法。数组里面有对象的情况
随机推荐
What is SRE? A detailed explanation of SRE operation and maintenance system
1528. rearrange strings
tcpdump抓包实现过程
GradScaler MaxClipGradScaler
1844. 将所有数字用字符替换
JS to find and update the specified value in the object through the key
[MySQL from introduction to mastery] [advanced part] (I) character set modification and underlying principle
KaFormer个人笔记整理
基于QingCloud的地理信息企业研发云解决方案
leetcode 1642. Furthest building you can reach
Qingcloud based R & D cloud solution for geographic information enterprises
520. 检测大写字母
用VNC Viewer的方式远程连接无需显示屏的树莓派
【LeetCode】415. 字符串相加
[quantitative investment] discrete Fourier transform to calculate array period
什么是图神经网络?图神经网络有什么用?
110. balanced binary tree recursive method
1528. 重新排列字符串
Liunx Mysql安装
String to Base64