配置OSPFv3区域

如下图所示,使用OSPFv3完成路由器互联,R2和R3作为ABR转发域间路由,减少Area 2区域内的LSA数量;
HuaWei ❀ 配置OSPFv3区域_五类
配置接口IPv6地址:

[r1]ipv6
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ipv6 enable
[r1-GigabitEthernet0/0/0]ipv6 address 1001::1/64

配置OSPFv3:

[r1]ospfv3 100
[r1-ospfv3-100]router-id 91.1.1.1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ospfv3 100 area 1

[r2]ospfv3 100
[r2-ospfv3-100]router-id 92.2.2.2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ospfv3 100 area 1
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ospfv3 100 area 0

[r3]ospfv3 100
[r3-ospfv3-100]router-id 93.3.3.3
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]ospfv3 100 area 0
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ospfv3 100 area 2

[r4]ospfv3 100
[r4-ospfv3-100]router-id 94.4.4.4
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ospfv3 100 area 2

配置Stub区域:

[r3]ospfv3 100
[r3-ospfv3-100]area 2
[r3-ospfv3-100-area-0.0.0.2]stub no-summary

[r4]ospfv3 100
[r4-ospfv3-100]area 2
[r4-ospfv3-100-area-0.0.0.2]stub

查看配置结果:

[r3]display ospfv3 peer 
OSPFv3 Process (100)
OSPFv3 Area (0.0.0.0)
Neighbor ID Pri State Dead Time Interface Instance ID
92.2.2.2 1 Full/Backup 00:00:39 GE0/0/1 0
OSPFv3 Area (0.0.0.2)
Neighbor ID Pri State Dead Time Interface Instance ID
94.4.4.4 1 Full/DR 00:00:34 GE0/0/0 0

[r4]display ospfv3 100 routing

Codes : E2 - Type 2 External, E1 - Type 1 External, IA - Inter-Area,
N - NSSA, U - Uninstalled

OSPFv3 Process (100)
Destination Metric
Next-hop
IA ::/0 2
via FE80::2E0:FCFF:FE55:617C, GigabitEthernet0/0/0
1003::/64 1
directly connected, GigabitEthernet0/0/0

[r4]display ospfv3 lsdb ?
area Area parameters
external External Link State Advertisements 五类LSA
grace Grace Link State Advertisements
inter-prefix Inter-area Prefix Link State Advertisements 三类LSA
inter-router Inter-area Router Link State Advertisements 四类LSA
intra-prefix Intra-area Prefix Link State Advertisements 九类LSA
link Link-Local Link State Advertisements 八类LSA
network Network Link State Advertisements 二类LSA
nssa NSSA Link State Advertisements 七类LSA
originate-router Specify Advertising Router
router Router Link State Advertisements 一类LSA
self-originate Self-Originated LSAs
statistics Statistics of the LSDB
| Matching output
<cr> Please press ENTER to execute command