Routing Table :
Summary Count : 1
Destination
NextHop
IpPrecedence :
RelayNextHop : ::
Neighbor
Interface
State
Tunnel ID
Age
The output shows that Switch A communicates with Switch B through VLAN-interface 11.
OSPFv3 IPsec policies configuration example
Network requirements
As shown in
•
Configure OSPFv3 on the switches. The AS is divided into two areas.
•
Configure IPsec policies on the switches to authenticate and encrypt protocol packets.
Figure 94 Network diagram
Configuration procedure
Configure IPv6 addresses for interfaces. (Details not shown.)
1.
Configure OSPFv3 basic functions:
2.
# Configure Switch A: enable OSPFv3 and configure the router ID as 1.1.1.1.
<SwitchA> system-view
[SwitchA] ipv6
[SwitchA] ospfv3 1
[SwitchA-ospfv3-1] router-id 1.1.1.1
[SwitchA-ospfv3-1] quit
[SwitchA] interface vlan-interface 200
[SwitchA-Vlan-interface200] ospfv3 1 area 1
[SwitchA-Vlan-interface200] quit
# Configure Switch B: enable OSPFv3 and configure the router ID as 2.2.2.2.
<SwitchB> system-view
: 2001:4::
: 2001:2::2
: ::
: Vlan-interface11
: Active Adv
: 0x0
: 4610sec
Figure
94,
297
PrefixLength : 64
Preference
: 10
QosLcId
:
Tag
: 0H
ProcessID
: 0
Protocol
: OSPFv3
Cost
: 2
Label
: NULL