H3C Technologies H3C S12500 Series Switches User Manual

Page 402

Advertising
background image

386

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

[SwitchB-ipsec-proposal-tran2] quit

[SwitchB] ipsec policy policy002 10 manual

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

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

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

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

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

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

# On Switch 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.

[SwitchC] ipsec proposal tran2

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

[SwitchC-ipsec-proposal-tran2] transform esp

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

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

[SwitchC-ipsec-proposal-tran2] quit

[SwitchC] ipsec policy policy002 10 manual

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

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

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

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

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

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

5.

Apply IPsec policies to IBGP peers:
# Configure Switch A.

[SwitchA] bgp 65008

[SwitchA-bgp] ipv6-family

[SwitchA-bgp-af-ipv6] peer 1::2 ipsec-policy policy001

[SwitchA-bgp-af-ipv6] quit

[SwitchA-bgp] quit

# Configure Switch B.

[SwitchB] bgp 65008

[SwitchB-bgp] ipv6-family

[SwitchB-bgp-af-ipv6] peer 1::1 ipsec-policy policy001

[SwitchB-bgp-af-ipv6] quit

[SwitchB-bgp] quit

6.

Apply IPsec policies to EBGP peers:
# Configure Switch C.

[SwitchC] bgp 65009

[SwitchC-bgp] ipv6-family

[SwitchC-bgp-af-ipv6] peer ebgp ipsec-policy policy002

[SwitchC-bgp-af-ipv6] quit

[SwitchC-bgp] quit

Advertising