H3C Technologies H3C SR8800 User Manual

Page 343

Advertising
background image

327

[RouterA] ospfv3 1

[RouterA-ospfv3-1] router-id 1.1.1.1

[RouterA-ospfv3-1] quit

[RouterA] interface GigabitEthernet 3/1/2

[RouterA-GigabitEthernet3/1/2] ospfv3 1 area 1

[RouterA-GigabitEthernet3/1/2] quit

# Configure Router B: enable OSPFv3 and configure the Router ID as 2.2.2.2.

<RouterB> system-view

[RouterB] ipv6

[RouterB] ospfv3 1

[RouterB-ospfv3-1] router-id 2.2.2.2

[RouterB-ospfv3-1] quit

[RouterB] interface GigabitEthernet 3/1/2

[RouterB-GigabitEthernet3/1/2] ospfv3 1 area 1

[RouterB-GigabitEthernet3/1/2] quit

[RouterB] interface GigabitEthernet 3/1/1

[RouterB-GigabitEthernet3/1/1] ospfv3 1 area 0

[RouterB-GigabitEthernet3/1/1] quit

# Configure Router C: enable OSPFv3 and configure the Router ID as 3.3.3.3.

<RouterC> system-view

[RouterC] ipv6

[RouterC] ospfv3 1

[RouterC-ospfv3-1] router-id 3.3.3.3

[RouterC-ospfv3-1] quit

[RouterC] interface GigabitEthernet 3/1/1

[RouterC-GigabitEthernet3/1/1] ospfv3 1 area 0

[RouterC-GigabitEthernet3/1/1] quit

3.

Configure OSPFv3 IPsec policies:
# On Router 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.

[RouterA] ipsec proposal tran1

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

[RouterA-ipsec-proposal-tran1] transform esp

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

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

[RouterA-ipsec-proposal-tran1] quit

[RouterA] ipsec policy policy001 10 manual

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

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

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

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

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

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

# On Router 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

Advertising