![H3C S5500-EI series Configuration Manual Download Page 371](http://html2.mh-extra.com/html/h3c/s5500-ei-series/s5500-ei-series_configuration-manual_3726960371.webp)
354
[SwitchB-bgp] quit
3.
Configure the eBGP connection.
# Configure Switch C.
<SwitchC> system-view
[SwitchC] ipv6
[SwitchC] bgp 65009
[SwitchC-bgp] router-id 3.3.3.3
[SwitchC-bgp] ipv6-family
[SwitchC-bgp-af-ipv6] group ebgp external
[SwitchC-bgp-af-ipv6] peer 3::1 as-number 65008
[SwitchC-bgp-af-ipv6] peer 3::1 group ebgp
[SwitchC-bgp-af-ipv6] quit
[SwitchC-bgp] quit
# Configure Switch B.
[SwitchB-bgp] ipv6-family
[SwitchB-bgp-af-ipv6] group ebgp external
[SwitchB-bgp-af-ipv6] peer 3::2 as-number 65009
[SwitchB-bgp-af-ipv6] peer 3::2 group ebgp
[SwitchB-bgp-af-ipv6] quit
[SwitchB-bgp] quit
4.
Configure IPsec policies.
# On Switch 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.
[SwitchA] ipsec proposal tran1
[SwitchA-ipsec-proposal-tran1] encapsulation-mode transport
[SwitchA-ipsec-proposal-tran1] transform esp
[SwitchA-ipsec-proposal-tran1] esp encryption-algorithm des
[SwitchA-ipsec-proposal-tran1] esp authentication-algorithm sha1
[SwitchA-ipsec-proposal-tran1] quit
[SwitchA] ipsec policy policy001 10 manual
[SwitchA-ipsec-policy-manual-policy001-10] proposal tran1
[SwitchA-ipsec-policy-manual-policy001-10] sa spi outbound esp 12345
[SwitchA-ipsec-policy-manual-policy001-10] sa spi inbound esp 12345
[SwitchA-ipsec-policy-manual-policy001-10] sa string-key outbound esp abcdefg
[SwitchA-ipsec-policy-manual-policy001-10] sa string-key inbound esp abcdefg
[SwitchA-ipsec-policy-manual-policy001-10] quit
# On Switch B, 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; 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