beautypg.com

Verifying the configuration – H3C Technologies H3C SecPath F1000-E User Manual

Page 155

background image

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.