beautypg.com

Configuring secpath b – H3C Technologies H3C SecPath F1000-E User Manual

Page 216

background image

204

[SecPathA-ike-peer-atob] id-type name

[SecPathA-ike-peer-atob] remote-name SecPathb

[SecPathA-ike-peer-atob] quit

# Create an IPsec proposal named method1. This proposal uses the default settings: the security protocol
of ESP, the encryption algorithm of DES, and the authentication algorithm of MD5.

[SecPathA] ipsec proposal method1

[SecPathA-ipsec-proposal-method1] quit

# Create an IPsec profile named atob.

[SecPathA] ipsec profile atob

# Configure the IPsec profile to reference the IKE peer.

[SecPathA-ipsec-profile-atob] ike-peer atob

# Configure the IPsec profile to reference the IPsec proposal method1.

[SecPathA-ipsec-profile-atob] proposal method1

[SecPathA-ipsec-profile-atob] quit

# Create tunnel interface Tunnel 1.

[SecPathA] interface tunnel 1

# Assign IPv4 address 10.1.1.1/24 to tunnel interface Tunnel 1.

[SecPathA–Tunnel1] ip address 10.1.1.1 24

# Set the tunnel mode of tunnel interface Tunnel 1 to IPsec over IPv4.

[SecPathA–Tunnel1] tunnel-protocol ipsec ipv4

# Set the source interface of the tunnel to GigabitEthernet 0/1 on Tunnel 1.

[SecPathA–Tunnel1] source GigabitEthernet 0/1

# Set the tunnel destination address to 1.1.1.1, the source address of the remote peer.

[SecPathA–Tunnel1] destination 1.1.1.1

# Apply IPsec profile atob to tunnel interface Tunnel 1.

[SecPathA–Tunnel1] ipsec profile atob

[SecPathA–Tunnel1] quit

# Configure a static route to SecPath B.

[SecPathA] ip route-static 192.168.1.0 255.255.255.0 tunnel 1

Configuring SecPath B

# Assign an IP address to interface GigabitEthernet 0/1.

system-view

[SecPathB] interface GigabitEthernet 0/1

[SecPathB-GigabitEthernet0/1] ip address 1.1.1.1 24

[SecPathB-GigabitEthernet0/1] quit

# Name the local gateway SecPathb.

[SecPathB] ike local-name SecPathb

# Configure an IKE peer named btoa. As the remote peer obtains the IP address automatically, set the
IKE negotiation mode to aggressive.

[SecPathB] ike peer btoa

[SecPathB-ike-peer-btoa] exchange-mode aggressive

[SecPathB-ike-peer-btoa] pre-shared-key simple aabb

[SecPathB-ike-peer-btoa] id-type name