![Huawei S6700 Series Скачать руководство пользователя страница 236](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517236.webp)
# View the OSPFv3 routing table of Switch D, and you can see a new default route in the routing
table. The cost of the default route is the sum of the cost of the directly connected routes and the
configured cost.
[Switch D]
display ospfv3 routing
Codes : E2 - Type 2 External, E1 - Type 1 External, IA - Inter-Area,
N - NSSA, U - Uninstalled
OSPFv3 Process (1)
Destination Metric
Next-hop
IA ::/0 11
via FE80::1572:0:5EF4:1, vlanif40
IA 1000::/64 2
via FE80::1572:0:5EF4:1, vlanif40
IA 1001::/64 3
via FE80::1572:0:5EF4:1, vlanif40
1002::/64 1
directly-connected, vlanif40
IA 2000::/64 4
via FE80::1572:0:5EF4:1, vlanif40
Step 5
Configure the totally sub area.
# On Switch C, configure Area 2 as the totally stub area.
[Switch C]
ospfv3
[Switch C-ospfv3-1]
area 2
[Switch C-ospfv3-1-area-0.0.0.2]
stub no-summary
[Switch C-ospfv3-1-area-0.0.0.2]
quit
Step 6
Verify the configuration.
# View the OSPFv3 routing table of Switch D, and you can see that the entries in the routing
table are reduced; other non-directly connected routes are suppressed; only the default route is
reserved.
[Switch D]
display ospfv3 routing
Codes : E2 - Type 2 External, E1 - Type 1 External, IA - Inter-Area,
N - NSSA, U - Uninstalled
OSPFv3 Process (1)
Destination Metric
Next-hop
IA ::/0 11
via FE80::1572:0:5EF4:1, vlanif40
1002::/64 1
directly-connected, vlanif40
----End
Configuration Files
l
Configuration file of Switch A
#
sysname Switch A
#
ipv6
#
vlan batch 20
#
interface Vlanif20
ipv6 enable
ipv6 address 1001::2/64
ospfv3 1 area 0.0.0.1
#
interface XGigabitEthernet0/0/1
port hybrid pvid vlan 20
port hybrid untagged vlan 20
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
5 OSPFv3 Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
217