Switch F XGE 0/0/1 VLANIF 50 172.17.1.2/24
Configuration Roadmap
The configuration roadmap is as follows:
1. Create the ID of a VLAN to which each interface belongs.
2. Assign an IP address to each VLANIF interface.
3. Enable OSPF on each Switch and specify network segments in different areas.
4. Check the routing table and LSDB.
Data Preparation
To complete the configuration, you need the following data:
l The ID of the VLAN that each interface belongs to is shown in Figure 4-5.
l The IP address of each interface is shown in Figure 4-5.
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 Switch A 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 Switch B 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 Switch C is 3.3.3.3, the OSPF process ID is 1, the network segments
of Area 1 are 192.168.1.0/24 and 172.16.1.0/24.
– The router ID of Switch D 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 Switch E 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 Switch F 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. Create a VLAN to which each interface belongs.
The configuration details are not mentioned here.
2. Assign an IP address to each interface.
The configuration details are not mentioned here.
3. Configuring Basic OSPF Functions.
# Configure Switch A.
[SwitchA] router id 1.1.1.1
[SwitchA] ospf
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
[SwitchA-ospf-1] area 1
[SwitchA-ospf-1-area-0.0.0.1] network 192.168.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.1] quit
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.
137