天天看点

华为IPSec vpn 配置

实验

华为IPSec vpn 配置
华为IPSec vpn 配置

思路与配置

     1.配置AR1

                    0端口ip:172.16.10.254 255.255.255.0

                    1端口ip:100.0.0.1 255.255.255.252

               配置默认路由:

                    ip route-static 0.0.0.0 0.0.0.0 100.0.0.2

华为IPSec vpn 配置
华为IPSec vpn 配置

     2.配置AR2

                    0端口ip:100.0.0.2 255.255.255.252

                    1端口ip:200.0.0.2 255.255.255.252

华为IPSec vpn 配置
华为IPSec vpn 配置

     3.配置AR3

                    0端口ip:200.0.0.1 255.255.255.252

                    1端口ip:10.10.33.254 255.255.255.0

               配置默认路由

                    ip route-static 0.0.0.0 0.0.0.0 200.0.0.2

华为IPSec vpn 配置
华为IPSec vpn 配置

      4.配置AR1

                    ike proposal 1

                         encryption-algorithm 3des-cbc

                         authentication-algorithm md5

                         authentication-method pre-share

                         dh group2

                    ike peer 200.0.0.1 v1

                         pre-shared-key simple tedu

                         ike-proposal 1

                         remote-address 200.0.0.1                  

          配置ACL         

                    acl number 3000

                         rule 5 permit ip source 172.16.10.0 0.0.0.255 destination 10.10.33.0 0.0.0.255

华为IPSec vpn 配置
华为IPSec vpn 配置

                    ipsec proposal 1

                         transform ah-esp

                    ipsec policy yf 1 isakmp

                         security acl 3000

                         ike-peer 200.0.0.1

                         proposal 1

将映射集应用在端口

                    interface g0/0/1

                         ipsec policy yf

华为IPSec vpn 配置
华为IPSec vpn 配置

      5.配置AR3

                    ike peer 100.0.0.1 v1

                         remote-address 100.0.0.1

                         rule 5 permit ip source 10.10.33.0 0.0.0.255 destination 172.16.10.0 0.0.0.255

华为IPSec vpn 配置
华为IPSec vpn 配置

                         ike-peer 100.0.0.1

                    interface g0/0/0

华为IPSec vpn 配置
华为IPSec vpn 配置

     6.验证:

               AR1

                         display ike sa

华为IPSec vpn 配置
华为IPSec vpn 配置

                         display ipsec sa

华为IPSec vpn 配置
华为IPSec vpn 配置

              AR3

华为IPSec vpn 配置
华为IPSec vpn 配置
华为IPSec vpn 配置
华为IPSec vpn 配置

          测试:

                         pc1pingpc2

华为IPSec vpn 配置
华为IPSec vpn 配置

继续阅读