IPsec ×××点对多点

IPsec×××点对多点

AR1
<Huawei>DIS CU
[V200R003C00]
#
acl number 3000
rule 10 permit ip source 192.168.10.0 0.0.0.255 destination 10.10.10.0 0.0.0.255
acl number 3500
rule 5 permit ip source 192.168.10.0 0.0.0.255 destination 172.16.10.0 0.0.0.255
#
ipsec proposal 10
#
ike proposal 10
ike peer 23.23.23.3 v1
pre-shared-key simple 1
ike-proposal 10
remote-address 23.23.23.3
ike peer 24.24.24.4 v1
pre-shared-key simple 1
ike-proposal 10
remote-address 24.24.24.4
#
ipsec policy zb 100 isakmp
security acl 3500
ike-peer 23.23.23.3
proposal 10
ipsec policy zb 110 isakmp
security acl 3000
ike-peer 24.24.24.4
proposal 10
#
interface GigabitEthernet0/0/0
ip address 12.12.12.1 255.255.255.0
ipsec policy zb
#
interface GigabitEthernet0/0/1
ip address 192.168.10.254 255.255.255.0
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 12.12.12.2
return
<Huawei>

AR2

interface GigabitEthernet0/0/0
ip address 12.12.12.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 23.23.23.2 255.255.255.0
#
interface GigabitEthernet2/0/0
ip address 24.24.24.2 255.255.255.0
#

AR3
<to2>DIS CU
[V200R003C00]
#
dhcp enable
#
acl number 3000
rule 5 permit ip source 172.16.10.0 0.0.0.255 destination 192.168.10.0 0.0.0.255
acl number 3500
rule 5 deny ip source 172.16.10.0 0.0.0.255 destination 192.168.10.0 0.0.0.255
rule 10 permit ip source 172.16.10.0 0.0.0.255
#
ipsec proposal 10

ike proposal 10
#
ike peer 10 v1
pre-shared-key simple 1
ike-proposal 10
remote-address 12.12.12.1
#
ipsec policy 10 10 isakmp
security acl 3000
ike-peer 10
proposal 10
#
interface GigabitEthernet0/0/0
ip address 172.16.10.254 255.255.255.0
dhcp select interface
#
interface GigabitEthernet0/0/1
ip address 23.23.23.3 255.255.255.0
ipsec policy 10
nat outbound 3500
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 23.23.23.2
#
return
<to2>

AR4
<Huawei>DIS CU
[V200R003C00]
#
dhcp enable
#
acl number 3000
rule 5 permit ip source 10.10.10.0 0.0.0.255 destination 192.168.10.0 0.0.0.255
#
ipsec proposal 10
#
ike proposal 10
#
ike peer 12.12.12.1 v1
pre-shared-key simple 1
ike-proposal 10
remote-address 12.12.12.1
#
ipsec policy fb 10 isakmp
security acl 3000
ike-peer 12.12.12.1
proposal 10
#
interface GigabitEthernet0/0/0
ip address 10.10.10.254 255.255.255.0
dhcp select interface
#
interface GigabitEthernet0/0/1
ip address 24.24.24.4 255.255.255.0
ipsec policy fb
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 24.24.24.2
#
return
<Huawei>

验证
IPsec×××点对多点