![Huawei S6700 Series Скачать руководство пользователя страница 235](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517235.webp)
# Configure Switch D.
[Switch D]
ospfv3
[Switch D-ospfv3-1]
router-id 4.4.4.4
[Switch D-ospfv3-1]
quit
[Switch D]
interface vlanif 40
[Switch D-Vlanif40]
ospfv3 1 area 2
[Switch D-Vlanif40]
quit
# View the status of the OSPFv3 neighbors of Switch B.
[Switch B]
display ospfv3 peer
OSPFv3 Process (1)
OSPFv3 Area (0.0.0.1)
Neighbor ID Pri State Dead Time Interface Instance ID
1.1.1.1 1 Full/DR 00:00:34 Vlanif20 0
OSPFv3 Area (0.0.0.0)
Neighbor ID Pri State Dead Time Interface Instance ID
3.3.3.3 1 Full/Backup 00:00:32 Vlanif30 0
# View the status of the OSPFv3 neighbors of Switch C.
[Switch C]
display ospfv3 peer
OSPFv3 Process (1)
Area (0.0.0.0)
Neighbor ID Pri State Dead Time Interface Instance ID
2.2.2.2 1 Full/DR 00:00:37 Vlanif30 0
OSPFv3 Area (0.0.0.2)
Neighbor ID Pri State Dead Time Interface Instance ID
4.4.4.4 1 Full/Backup 00:00:33 Vlanif40 0OSPFv3
# View the OSPFv3 routing table of Switch D.
[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 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 4
Configure the stub areas.
# Configure the stub area of Switch D.
[Switch D]
ospfv3
[Switch D-ospfv3-1]
area 2
[Switch D-ospfv3-1-area-0.0.0.2]
stub
[Switch D-ospfv3-1-area-0.0.0.2]
quit
# Configure the stub area of Switch C, and set the cost of the default route advertised to the stub
area to 10.
[Switch C]
ospfv3
[Switch C-ospfv3-1]
area 2
[Switch C-ospfv3-1-area-0.0.0.2]
stub
[Switch C-ospfv3-1-area-0.0.0.2]
default-cost 10
[Switch C-ospfv3-1-area-0.0.0.2]
quit
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.
216