F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Configuration Guide-6PW100
792
[RouterA-ospfv3-1] router-id 1.1.1.1
[RouterA-ospfv3-1] quit
[RouterA] interface gigabitethernet 0/2
[RouterA-GigabitEthernet0/2] ospfv3 1 area 1
[RouterA-GigabitEthernet0/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 0/2
[RouterB-GigabitEthernet0/2] ospfv3 1 area 1
[RouterB-GigabitEthernet0/2] quit
[RouterB] interface gigabitethernet 0/1
[RouterB-GigabitEthernet0/1] ospfv3 1 area 0
[RouterB-GigabitEthernet0/1] quit
# Configure Firewall: enable OSPFv3 and configure the Router ID as 3.3.3.3.
<Firewall> system-view
[Firewall] ipv6
[Firewall] ospfv3 1
[Firewall-ospfv3-1] router-id 3.3.3.3
[Firewall-ospfv3-1] quit
[Firewall] interface gigabitethernet 0/1
[Firewall-GigabitEthernet0/1] ospfv3 1 area 0
[Firewall-GigabitEthernet0/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 transform-set tran1
[RouterA-ipsec-transform-set-tran1] encapsulation-mode transport
[RouterA-ipsec-transform-set-tran1] transform esp
[RouterA-ipsec-transform-set-tran1] esp encryption-algorithm des
[RouterA-ipsec-transform-set-tran1] esp authentication-algorithm sha1
[RouterA-ipsec-transform-set-tran1] quit
[RouterA] ipsec policy policy001 10 manual
[RouterA-ipsec-policy-manual-policy001-10] transform-set 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
to SHA1. Create an IPsec policy named policy001, specify the manual mode for it, reference IPsec