Configuring secpath b – H3C Technologies H3C SecPath F1000-E User Manual
Page 154
142
[SecPathA-ipsec-proposal-tran1] esp authentication-algorithm sha1
[SecPathA-ipsec-proposal-tran1] quit
# Create IKE peer peer.
[SecPathA] ike peer peer
# Set the pre-shared key.
[SecPathA-ike-peer-peer] pre-shared-key abcde
# Specify the IP address of the peer security gateway.
[SecPathA-ike-peer-peer] remote-address 2.2.2.2
[SecPathA-ike-peer-peer] quit
# Create an IKE proposal numbered 10.
[SecPathA] ike proposal 10
# Set the authentication algorithm to MD5.
[SecPathA-ike-proposal-10] authentication-algorithm md5
# Set the authentication method to pre-shared key.
[SecPathA-ike-proposal-10] authentication-method pre-share
# Set the ISAKMP SA lifetime to 5,000 seconds.
[SecPathA-ike-proposal-10] sa duration 5000
[SecPathA-ike-proposal-10] quit
# Create an IPsec policy that uses IKE negotiation.
[SecPathA] ipsec policy map1 10 isakmp
# Reference IPsec proposal tran1.
[SecPathA-ipsec-policy-isakmp-map1-10] proposal tran1
# Reference ACL 3101 to identify the protected traffic.
[SecPathA-ipsec-policy-isakmp-map1-10] security acl 3101
# Reference IKE peer peer.
[SecPathA-ipsec-policy-isakmp-map1-10] ike-peer peer
[SecPathA-ipsec-policy-isakmp-map1-10] quit
# Assign an IP address to interface GigabitEthernet 0/2.
[SecPathA] interface GigabitEthernet 0/2
[SecPathA-GigabitEthernet0/2] ip address 10.1.1.1 255.255.255.0
[SecPathA-GigabitEthernet0/2] quit
# Assign an IP address to interface GigabitEthernet 0/1.
[SecPathA] interface GigabitEthernet 0/1
[SecPathA-GigabitEthernet0/1] ip address 1.1.1.1 255.255.255.0
# Apply the IPsec policy to interface GigabitEthernet 0/1.
[SecPathA-GigabitEthernet0/1] ipsec policy map1
# Configure a static route to subnet 10.1.2.0/24.
[SecPathA] ip route-static 10.1.2.0 255.255.255.0 2.2.2.2
Configuring SecPath B
# Configure ACL 3101 to identify traffic from subnet 10.1.2.0/24 to subnet 10.1.1.0/24.
[SecPathB] acl number 3101
- 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