Verifying the configuration – H3C Technologies H3C SecPath F1000-E User Manual
Page 155
143
[SecPathB-acl-adv-3101] rule permit ip source 10.1.2.0 0.0.0.255 destination
10.1.1.0
0.0.0.255
[SecPathB-acl-adv-3101] quit
[SecPathB] ipsec proposal tran1
# Create IPsec proposal tran1.
[SecPathB] ipsec proposal tran1
# Set the packet encapsulation mode to tunnel.
[SecPathB-ipsec-proposal-tran1] encapsulation-mode tunnel
# Use security protocol ESP.
[SecPathB-ipsec-proposal-tran1] transform esp
# Specify encryption and authentication methods.
[SecPathB-ipsec-proposal-tran1] esp encryption-algorithm des
[SecPathB-ipsec-proposal-tran1] esp authentication-algorithm sha1
[SecPathB-ipsec-proposal-tran1] quit
# Create IKE peer peer.
[SecPathB] ike peer peer
# Set the pre-shared key.
[SecPathB-ike-peer-peer] pre-shared-key abcde
# Specify the IP address of the peer security gateway.
[SecPathB-ike-peer-peer] remote-address 1.1.1.1
[SecPathB-ike-peer-peer] quit
# Create an IPsec policy that uses IKE negotiation.
[SecPathB] ipsec policy use1 10 isakmp
# Reference ACL 3101 to identify the protected traffic.
[SecPathB-ipsec-policy-isakmp-use1-10] security acl 3101
# Reference IPsec proposal tran1.
[SecPathB-ipsec-policy-isakmp-use1-10] proposal tran1
# Reference IKE peer peer.
[SecPathB-ipsec-policy-isakmp-use1-10] ike-peer peer
[SecPathB-ipsec-policy-isakmp-use1-10] quit
# Assign an IP address to interface GigabitEthernet 0/2.
[SecPathB] interface GigabitEthernet 0/2
[SecPathB-GigabitEthernet0/2] ip address 10.1.2.1 255.255.255.0
[SecPathB-GigabitEthernet0/2] quit
# Assign an IP address to interface GigabitEthernet 0/1.
[SecPathB] interface GigabitEthernet 0/1
[SecPathB-GigabitEthernet0/1] ip address 2.2.2.2 255.255.255.0
# Apply the IPsec policy to interface GigabitEthernet 0/1.
[SecPathB-GigabitEthernet0/1] ipsec policy use1
# Configure a static route to subnet 10.1.1.0/24.
[SecPathB] ip route-static 10.1.1.0 255.255.255.0 1.1.1.1
Verifying the configuration
# Check the IKE proposal configuration.
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS