HP 12500 Series Configuration Manual page 197

Routing
Table of Contents

Advertisement

[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
# Configure the IKE peer.
[SwitchA] ike peer peer
[SwitchA-ike-peer-peer] pre-shared-key Ab12<><>
[SwitchA-ike-peer-peer] remote-address 2.2.3.1
[SwitchA-ike-peer-peer] quit
# Create an IPsec policy that uses IKE for IPsec SA negotiation.
[SwitchA] ipsec policy map1 10 isakmp
# Apply the IPsec proposal.
[SwitchA-ipsec-policy-isakmp-map1-10] proposal tran1
# Apply the ACL.
[SwitchA-ipsec-policy-isakmp-map1-10] security acl 3101
# Apply the IKE peer.
[SwitchA-ipsec-policy-isakmp-map1-10] ike-peer peer
[SwitchA-ipsec-policy-isakmp-map1-10] quit
# Configure IP addresses for VLAN-interface 1 and VLAN-interface 2.
[SwitchA] interface vlan-interface 1
[SwitchA-Vlan-interface1] ip address 2.2.2.1 255.255.255.0
[SwitchA-Vlan-interface1] quit
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 10.1.1.1 255.255.255.0
[SwitchA-Vlan-interface2] quit
# Apply the IPsec policy group to VLAN-interface 1.
[SwitchA] interface vlan-interface 1
[SwitchA-Vlan-interface1] ipsec policy map1
Configure Switch B:
2.
# Define an ACL to identify data flows from subnet 10.1.2.0/24 to subnet 10.1.1.0/24.
<SwitchB> system-view
[SwitchB] acl number 3101
187

Advertisement

Table of Contents
loading

Table of Contents