H3C Technologies H3C SecPath F1000-E User Manual

Page 806

Advertising
background image

781

inbound and outbound SAs to 54321, and the keys for the inbound and outbound SAs using ESP

to gfedcba.

[SecPathB] ipsec proposal tran1

[SecPathB-ipsec-proposal-tran1] encapsulation-mode transport

[SecPathB-ipsec-proposal-tran1] transform esp

[SecPathB-ipsec-proposal-tran1] esp encryption-algorithm des

[SecPathB-ipsec-proposal-tran1] esp authentication-algorithm sha1

[SecPathB-ipsec-proposal-tran1] quit

[SecPathB] ipsec policy policy001 10 manual

[SecPathB-ipsec-policy-manual-policy001-10] proposal tran1

[SecPathB-ipsec-policy-manual-policy001-10] sa spi outbound esp 12345

[SecPathB-ipsec-policy-manual-policy001-10] sa spi inbound esp 12345

[SecPathB-ipsec-policy-manual-policy001-10] sa string-key outbound esp abcdefg

[SecPathB-ipsec-policy-manual-policy001-10] sa string-key inbound esp abcdefg

[SecPathB-ipsec-policy-manual-policy001-10] quit

[SecPathB] ipsec proposal tran2

[SecPathB-ipsec-proposal-tran2] encapsulation-mode transport

[SecPathB-ipsec-proposal-tran2] transform esp

[SecPathB-ipsec-proposal-tran2] esp encryption-algorithm des

[SecPathB-ipsec-proposal-tran2] esp authentication-algorithm sha1

[SecPathB-ipsec-proposal-tran2] quit

[SecPathB] ipsec policy policy002 10 manual

[SecPathB-ipsec-policy-manual-policy002-10] proposal tran2

[SecPathB-ipsec-policy-manual-policy002-10] sa spi outbound esp 54321

[SecPathB-ipsec-policy-manual-policy002-10] sa spi inbound esp 54321

[SecPathB-ipsec-policy-manual-policy002-10] sa string-key outbound esp gfedcba

[SecPathB-ipsec-policy-manual-policy002-10] sa string-key inbound esp gfedcba

[SecPathB-ipsec-policy-manual-policy002-10] quit

# On SecPath C, create an IPsec proposal named tran2, and set the encapsulation mode to

transport mode, the security protocol to ESP, the encryption algorithm to DES, and authentication

algorithm to SHA1; create an IPsec policy named policy002, specify the manual mode for it,
reference IPsec proposal tran2, set the SPIs of the inbound and outbound SAs to 54321, and the

keys for the inbound and outbound SAs using ESP to gfedcba.

[SecPathC] ipsec proposal tran2

[SecPathC-ipsec-proposal-tran2] encapsulation-mode transport

[SecPathC-ipsec-proposal-tran2] transform esp

[SecPathC-ipsec-proposal-tran2] esp encryption-algorithm des

[SecPathC-ipsec-proposal-tran2] esp authentication-algorithm sha1

[SecPathC-ipsec-proposal-tran2] quit

[SecPathC] ipsec policy policy002 10 manual

[SecPathC-ipsec-policy-manual-policy002-10] proposal tran2

[SecPathC-ipsec-policy-manual-policy002-10] sa spi outbound esp 54321

[SecPathC-ipsec-policy-manual-policy002-10] sa spi inbound esp 54321

[SecPathC-ipsec-policy-manual-policy002-10] sa string-key outbound esp gfedcba

[SecPathC-ipsec-policy-manual-policy002-10] sa string-key inbound esp gfedcba

[SecPathC-ipsec-policy-manual-policy002-10] quit

4.

Apply the IPsec policies in areas:
# Configure SecPath A.

Advertising