HP 12500 Series Configuration Manual page 194

Routing
Table of Contents

Advertisement

Figure 64 Network diagram
Configuration procedure
Configure Switch A:
1.
# Define an ACL to identify data flows from subnet 10.1.1.0/24 to subnet 10.1.2.0/24.
<SwitchA> system-view
[SwitchA] acl number 3101
[SwitchA-acl-adv-3101] rule 0 permit ip source 10.1.1.0 0.0.0.255 destination
10.1.2.0 0.0.0.255
[SwitchA-acl-adv-3101] rule 5 permit ip source 10.1.2.0 0.0.0.255 destination
10.1.1.0 0.0.0.255
[SwitchA-acl-adv-3101] quit
# Configure a static route to Host B.
[SwitchA] ip route-static 10.1.2.0 255.255.255.0 vlan-interface 1
# Create an IPsec proposal named tran1.
[SwitchA] ipsec proposal tran1
# Specify the encapsulation mode as tunnel.
[SwitchA-ipsec-proposal-tran1] encapsulation-mode tunnel
# Specify the security protocol as ESP.
[SwitchA-ipsec-proposal-tran1] transform esp
# Specify the algorithms for the proposal.
[SwitchA-ipsec-proposal-tran1] esp encryption-algorithm aes 128
[SwitchA-ipsec-proposal-tran1] esp authentication-algorithm sha1
[SwitchA-ipsec-proposal-tran1] quit
# Create manual IPsec policy map1.
[SwitchA] ipsec policy map1 10 manual
# Apply the ACL.
[SwitchA-ipsec-policy-manual-map1-10] security acl 3101
# Apply the IPsec proposal.
[SwitchA-ipsec-policy-manual-map1-10] proposal tran1
# Configure the remote IP address of the tunnel.
[SwitchA-ipsec-policy-manual-map1-10] tunnel remote 2.2.3.1
# Configure the local IP address of the tunnel.
[SwitchA-ipsec-policy-manual-map1-10] tunnel local 2.2.2.1
# Configure the SPIs.
184

Advertisement

Table of Contents
loading

Table of Contents