403
[RouterB-ipsec-profile-profile002-manual] sa string-key outbound ah simple hello
[RouterB-ipsec-profile-profile002-manual] sa string-key inbound esp simple byebye
[RouterB-ipsec-profile-profile002-manual] sa string-key outbound esp simple byebye
[RouterB-ipsec-profile-profile002-manual] quit
# On Router C, create an IPsec transform set named
trans
, and set the encapsulation mode to
transport mode, the security protocol to ESP, the encryption algorithm to 3DES, and authentication
algorithm to MD5. Create an IPsec profile named
profile002
, specify the manual mode for it,
reference IPsec transform set
trans
, and set the SPIs of the inbound and outbound SAs to
256
and
the keys for the inbound SA to
hello
and outbound SA using ESP to
byebye
.
[RouterC] ipsec transform-set trans
[RouterC-ipsec-transform-set-trans] encapsulation-mode transport
[RouterC-ipsec-transform-set-trans] esp encryption-algorithm 3des-cbc
[RouterC-ipsec-transform-set-trans] esp authentication-algorithm md5
[RouterC-ipsec-transform-set-trans] ah authentication-algorithm md5
[RouterC-ipsec-transform-set-trans] quit
[RouterC] ipsec profile profile002 manual
[RouterC-ipsec-profile-profile002-manual] transform-set trans
[RouterC-ipsec-profile-profile002-manual] sa spi inbound ah 400000
[RouterC-ipsec-profile-profile002-manual] sa spi outbound ah 400000
[RouterC-ipsec-profile-profile002-manual] sa spi inbound esp 256
[RouterC-ipsec-profile-profile002-manual] sa spi outbound esp 256
[RouterC-ipsec-profile-profile002-manual] sa string-key inbound ah simple hello
[RouterC-ipsec-profile-profile002-manual] sa string-key outbound ah simple hello
[RouterC-ipsec-profile-profile002-manual] sa string-key inbound esp simple byebye
[RouterC-ipsec-profile-profile002-manual] sa string-key outbound esp simple byebye
[RouterC-ipsec-profile-profile002-manual] quit
4.
Apply the IPsec profiles to areas:
# Configure Router A.
[RouterA] ospfv3 1
[RouterA-ospfv3-1] area 1
[RouterA-ospfv3-1-area-0.0.0.1] enable ipsec-profile profile001
[RouterA-ospfv3-1-area-0.0.0.1] quit
[RouterA-ospfv3-1] quit
# Configure Router B.
[RouterB] ospfv3 1
[RouterB-ospfv3-1] area 0
[RouterB-ospfv3-1-area-0.0.0.0] enable ipsec-profile profile002
[RouterB-ospfv3-1-area-0.0.0.0] quit
[RouterB-ospfv3-1] area 1
[RouterB-ospfv3-1-area-0.0.0.1] enable ipsec-profile profile001
[RouterB-ospfv3-1-area-0.0.0.1] quit
[RouterB-ospfv3-1] quit
# Configure Router C.
[RouterC] ospfv3 1
[RouterC-ospfv3-1] area 0
[RouterC-ospfv3-1-area-0.0.0.0] enable ipsec-profile profile002
[RouterC-ospfv3-1-area-0.0.0.0] quit
[RouterC-ospfv3-1] quit