Network requirements, Configuration procedure – H3C Technologies H3C SecPath F1000-E User Manual
Page 154

26
# Create an IPsec policy manually.
[DeviceB] ipsec policy use1 10 manual
# Apply the ACL.
[DeviceB-ipsec-policy-manual-use1-10] security acl 3101
# Apply the IPsec proposal.
[DeviceB-ipsec-policy-manual-use1-10] proposal tran1
# Configure the remote IP address of the tunnel.
[DeviceB-ipsec-policy-manual-use1-10] tunnel remote 2.2.2.1
# Configure the local IP address of the tunnel.
[DeviceB-ipsec-policy-manual-use1-10] tunnel local 2.2.3.1
# Configure the SPIs.
[DeviceB-ipsec-policy-manual-use1-10] sa spi outbound esp 54321
[DeviceB-ipsec-policy-manual-use1-10] sa spi inbound esp 12345
# Configure the keys.
[DeviceB-ipsec-policy-manual-use1-10] sa string-key outbound esp gfedcba
[DeviceB-ipsec-policy-manual-use1-10] sa string-key inbound esp abcdefg
[DeviceB-ipsec-policy-manual-use1-10] quit
# Configure the IP address of the interface.
[DeviceB] interface gigabitethernet 0/2
[DeviceB-GigabitEthernet0/2] ip address 2.2.3.1 255.255.255.0
# Apply the IPsec policy group to the interface.
[DeviceB-GigabitEthernet0/2] ipsec policy use1
After above configuration, an IPsec tunnel between Device A and Device B should be established, and
the traffic between subnet 10.1.1.0/24 and subnet 10.1.2.0/24 should be IPsec protected.
Example for Establishing an IPsec Tunnel in IKE Negotiation
Mode
Network requirements
•
As shown in
, an IPsec tunnel is established between Device A and Device B to protect data
flows between subnet 10.1.1.0/24 and subnet 10.1.2.0/24.
•
The security protocol to be used is ESP, encryption algorithm is DES, and authentication algorithm
is SHA1-HMAC-96.
Configuration procedure
1.
Configure Device A
# Define an ACL to identify data flows from subnet 10.1.1.0/24 to subnet 10.1.2.0/24.
[DeviceA] acl number 3101
[DeviceA-acl-adv-3101] rule permit ip source 10.1.1.0 0.0.0.255 destination 10.1.2.0
0.0.0.255
[DeviceA-acl-adv-3101] quit
# Configure a static route to Host B.
[DeviceA] ip route-static 10.1.2.0 255.255.255.0 2.2.2.2