SwitchB
XGE 0/0/2
VLANIF 30
192.168.2.1/24
SwitchC
XGE 0/0/1
VLANIF 20
192.168.1.2/24
SwitchC
XGE 0/0/2
VLANIF 40
172.16.1.1/24
SwitchD
XGE 0/0/1
VLANIF 30
192.168.2.2/24
SwitchD
XGE 0/0/2
VLANIF 50
172.17.1.1/24
SwitchE
XGE 0/0/1
VLANIF 40
172.16.1.2/24
SwitchF
XGE 0/0/1
VLANIF 50
172.17.1.2/24
Configuration Roadmap
The configuration roadmap is as follows:
1.
Enable OSPF on each Switch and configure basic OSPF functions.
2.
Configure static routes on SwitchD and import them.
3.
Configure Area 1 as a stub area. You need to run the
stub
command on all Switches in
Area 1.
4.
Do not advertise Type3 LSAs to the stub area on SwitchA.
Data Preparation
To complete the configuration, you need the following data:
l
The ID of the VLAN to which each interface belongs is shown in
l
The IP address of each interface is shown in
.
l
The router ID of each Switch, the OSPF process ID, and the area to which each interface
belongs are as follows:
–
The router ID of SwitchA is 1.1.1.1, the OSPF process ID is 1, the network segment of
Area 0 is 192.168.0.0/24, and the network segment of Area 1 is 192.168.1.0/24.
–
The router ID of SwitchB is 2.2.2.2, the OSPF process ID is 1, the network segment of
Area 0 is 192.168.0.0/24, and the network segment of Area 2 is 192.168.2.0/24.
–
The router ID of SwitchC is 3.3.3.3, the OSPF process ID is 1, and the network segments
of Area 1 are 192.168.1.0/24 and 172.16.1.0/24.
–
The router ID of SwitchD is 4.4.4.4, the OSPF process ID is 1, and the network segments
of Area 2 are 192.168.2.0/24 and 172.17.1.0/24.
–
The router ID of SwitchE is 5.5.5.5, the OSPF process ID is 1, and the network segment
of Area 1 is 172.16.1.0/24.
–
The router ID of SwitchF is 6.6.6.6, the OSPF process ID is 1, and the network segment
of Area 2 is 172.17.1.0/24.
Configuration Procedure
1.
4.14.1 Example for Configuring Basic OSPF Functions
.
2.
Configure SwitchD to import static routes.
# Import static routes on SwitchD, as follows:
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.
143