![Huawei S6700 Series Configuration Manual Download Page 157](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517157.webp)
[SwitchA-ospf-1]
quit
# Configure Switch B.
[SwitchB]
router id 2.2.2.2
[SwitchB]
ospf
[SwitchB-ospf-1]
area 0
[SwitchB-ospf-1-area-0.0.0.0]
network 192.168.0.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0]
quit
[SwitchB-ospf-1]
area 2
[SwitchB-ospf-1-area-0.0.0.2]
network 192.168.2.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.2]
quit
[SwitchB-ospf-1]
quit
# Configure Switch C.
[SwitchC]
router id 3.3.3.3
[SwitchC]
ospf
[SwitchC-ospf-1]
area 1
[SwitchC-ospf-1-area-0.0.0.1]
network 192.168.1.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.1]
network 172.16.1.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.1]
quit
[SwitchC-ospf-1]
quit
# Configure Switch D.
[SwitchD]
router id 4.4.4.4
[SwitchD]
ospf
[SwitchD-ospf-1]
area 2
[SwitchD-ospf-1-area-0.0.0.2]
network 192.168.2.0 0.0.0.255
[SwitchD-ospf-1-area-0.0.0.2]
network 172.17.1.0 0.0.0.255
[SwitchD-ospf-1-area-0.0.0.2]
quit
[SwitchD-ospf-1]
quit
# Configure Switch E.
[SwitchE]
router id 5.5.5.5
[SwitchE]
ospf
[SwitchE-ospf-1]
area 1
[SwitchE-ospf-1-area-0.0.0.1]
network 172.16.1.0 0.0.0.255
[SwitchE-ospf-1-area-0.0.0.1]
quit
[SwitchE-ospf-1]
quit
# Configure Switch F.
[SwitchF]
router id 6.6.6.6
[SwitchF]
ospf
[SwitchF-ospf-1]
area 2
[SwitchF-ospf-1-area-0.0.0.2]
network 172.17.1.0 0.0.0.255
[SwitchF-ospf-1-area-0.0.0.2]
quit
[SwitchF-ospf-1]
quit
4.
Verify the configuration.
# Check OSPF neighbors of Switch A.
[SwitchA]
display ospf peer
OSPF Process 1 with Router ID 1.1.1.1
Neighbors
Area 0.0.0.0 interface 192.168.0.1(Vlanif10)'s neighbors
Router ID: 2.2.2.2
Address: 192.168.0.2 GR State: Normal
State: Full
Mode:Nbr is Master Priority: 1
DR: 192.168.0.1 BDR: 192.168.0.2 MTU: 0
Dead timer due in 36 sec
Neighbor is up for 00:15:04
Authentication Sequence: [ 0 ]
Neighbors
Area 0.0.0.1 interface 192.168.1.1(Vlanif20)'s neighbors
Router ID: 3.3.3.3
Address: 192.168.1.2 GR State: Normal
State: Full
Mode:Nbr is Master Priority: 1
DR: 192.168.1.1 BDR: 192.168.1.2 MTU: 0
Dead timer due in 39 sec
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
4 OSPF Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
138