HP 12500 Series Configuration Manual page 204

Routing
Table of Contents

Advertisement

[SwitchA-ipsec-policy-isakmp-map1-10] security acl 3101
# Reference IKE peer peer.
[SwitchA-ipsec-policy-isakmp-map1-10] ike-peer peer
# Enable dynamic IPsec RRI and use 1.1.1.2 as the next hop of the static route.
[SwitchA-ipsec-policy-isakmp-map1-10] reverse-route remote-peer 1.1.1.2
[SwitchA-ipsec-policy-isakmp-map1-10] quit
# Apply IPsec policy map1 to interface GigabitEthernet 3/0/1.
[SwitchA] interface gigabitethernet 3/0/1
[SwitchA-GigabitEthernet3/0/1] ipsec policy map1
[SwitchA-GigabitEthernet3/0/1] quit
Configure Switch B:
3.
# Configure ACL 3101 to identify traffic from subnet 10.5.5.0/24 to subnet 10.4.4.0/24.
<SwitchB> system-view
[SwitchB] acl number 3101
[SwitchB-acl-adv-3101] rule permit ip source 10.5.5.0 0.0.0.255 destination 10.4.4.0
0.0.0.255
[SwitchB-acl-adv-3101] quit
# Configure a static route to subnet 10.4.4.0/24.
[SwitchB] ip route-static 10.4.4.0 255.255.255.0 1.1.1.1
# Create IPsec proposal tran1.
[SwitchB] ipsec proposal tran1
# Set the packet encapsulation mode to tunnel.
[SwitchB-ipsec-proposal-tran1] encapsulation-mode tunnel
# Use ESP as the security protocol.
[SwitchB-ipsec-proposal-tran1] transform esp
# Use AES 128 as the encryption algorithm and SHA1-HMAC-96 as the authentication algorithm.
[SwitchB-ipsec-proposal-tran1] esp encryption-algorithm aes 128
[SwitchB-ipsec-proposal-tran1] esp authentication-algorithm sha1
[SwitchB-ipsec-proposal-tran1] quit
# Create IKE peer peer.
[SwitchB] ike peer peer
# Set the pre-shared key.
[SwitchB-ike-peer-peer] pre-shared-key Ab12<><>
# Specify the IP address of the peer security gateway.
[SwitchB-ike-peer-peer] remote-address 1.1.1.1
[SwitchB-ike-peer-peer] quit
# Create an IPsec policy that uses IKE.
[SwitchB] ipsec policy use1 10 isakmp
# Reference ACL 3101 to identify the protected traffic.
[SwitchB-ipsec-policy-isakmp-use1-10] security acl 3101
# Reference IPsec proposal tran1.
[SwitchB-ipsec-policy-isakmp-use1-10] proposal tran1
# Reference IKE peer peer.
[SwitchB-ipsec-policy-isakmp-use1-10] ike-peer peer
[SwitchB-ipsec-policy-isakmp-use1-10] quit
194

Advertisement

Table of Contents
loading

Table of Contents