beautypg.com

H3C Technologies H3C SecPath F1000-E User Manual

Page 835

background image

810

# Configure SecPath B.

system-view

[SecPathB] ipv6

[SecPathB] bgp 65008

[SecPathB-bgp] router-id 2.2.2.2

[SecPathB-bgp] ipv6-family

[SecPathB-bgp-af-ipv6] group ibgp internal

[SecPathB-bgp-af-ipv6] peer 1::1 group ibgp

[SecPathB-bgp-af-ipv6] quit

[SecPathB-bgp] quit

3.

Configure the EBGP connection:
# Configure SecPath C.

system-view

[SecPathC] ipv6

[SecPathC] bgp 65009

[SecPathC-bgp] router-id 3.3.3.3

[SecPathC-bgp] ipv6-family

[SecPathC-bgp-af-ipv6] group ebgp external

[SecPathC-bgp-af-ipv6] peer 3::1 as-number 65008

[SecPathC-bgp-af-ipv6] peer 3::1 group ebgp

[SecPathC-bgp-af-ipv6] quit

[SecPathC-bgp] quit

# Configure SecPath B.

[SecPathB-bgp] ipv6-family

[SecPathB-bgp-af-ipv6] group ebgp external

[SecPathB-bgp-af-ipv6] peer 3::2 as-number 65009

[SecPathB-bgp-af-ipv6] peer 3::2 group ebgp

[SecPathB-bgp-af-ipv6] quit

[SecPathB-bgp] quit

4.

Configure IPsec policies:
# On SecPath A, create an IPsec proposal named tran1, 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 policy001, specify the manual mode for it,

reference IPsec proposal tran1, set the SPIs of the inbound and outbound SAs to 12345, and the

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

[SecPathA] ipsec proposal tran1

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

[SecPathA-ipsec-proposal-tran1] transform esp

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

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

[SecPathA-ipsec-proposal-tran1] quit

[SecPathA] ipsec policy policy001 10 manual

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

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

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

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

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