H3C S5830V2 Security Configuration Manual page 274

Hide thumbs Also See for S5830V2:
Table of Contents

Advertisement

[SwitchB-ipsec-transform-set-tran1] quit
# Create a manual IPsec policy entry, with the policy name use1 and sequence number 10.
[SwitchB] ipsec policy use1 10 manual
# Apply ACL 3101.
[SwitchB-ipsec-policy-manual-use1-10] security acl 3101
# Apply IPsec transform set tran1.
[SwitchB-ipsec-policy-manual-use1-10] transform-set tran1
# Specify the remote IP address of the IPsec tunnel as 2.2.2.1.
[SwitchB-ipsec-policy-manual-use1-10] remote-address 2.2.2.1
# Configure the inbound and outbound SPIs for ESP.
[SwitchB-ipsec-policy-manual-use1-10] sa spi outbound esp 54321
[SwitchB-ipsec-policy-manual-use1-10] sa spi inbound esp 12345
# Configure the inbound and outbound SA keys for ESP.
[SwitchB-ipsec-policy-manual-use1-10] sa string-key outbound esp simple gfedcba
[SwitchB-ipsec-policy-manual-use1-10] sa string-key inbound esp simple abcdefg
[SwitchB-ipsec-policy-manual-use1-10] quit
# Apply the IPsec policy use1 to interface VLAN-interface 1.
[SwitchB] interface vlan-interface 1
[SwitchB-Vlan-interface1] ipsec apply policy use1
Verifying the configuration
After the previous configurations, an IPsec tunnel between Switch A and Switch B is established, and the
traffic between the switches is IPsec protected.
Use the display ipsec sa command to display IPsec SAs on Switch A and Switch B. The following example
uses Switch A for illustration.
[SwitchA] display ipsec sa
-------------------------------
Interface: Vlan-interface 1
-------------------------------
-----------------------------
IPsec policy: map1
Sequence number: 10
Mode: manual
-----------------------------
Tunnel id: 549
Encapsulation mode: tunnel
Path MTU: 1443
Tunnel:
local
remote address: 2.2.3.1
Flow:
as defined in ACL 3101
[Inbound ESP SA]
SPI: 54321 (0x0000d431)
Transform set: ESP-ENCRYPT-AES-CBC-192 ESP-AUTH-SHA1
No duration limit for this SA
address: 2.2.2.1
260

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2

Table of Contents