1. Create the ID of a VLAN to which each interface belongs.
2. Assign an IP address to each VLANIF interface.
3. Configure the router ID of each Switch, enable OSPF, and specify network segments.
4. Check the DR or BDR status of each Switch.
5. Set the DR priority of the interface and check the DR or BDR status.
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 Figure 4-8.
l The IP address of each interface is shown in Figure 4-8.
l The router ID of each Switch, the OSPF process ID, the area to which each interface
belongs, and DR priority 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.1.0/24, and the DR priority is 100.
– 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.1.0/24, and the DR priority is 0.
– The router ID of Switch C is 3.3.3.3, the OSPF process ID is 1, the network segment of
Area 0 is 192.168.1.0/24, and the DR priority is 2.
– The router ID of Switch B is 4.4.4.4, the OSPF process ID is 1, the network segment of
Area 0 is 192.168.1.0/24, and the DR priority is 1.
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. 4.14.1 Example for 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.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
[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.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] quit
# Configure Switch C.
[SwitchC] router id 3.3.3.3
[SwitchC] ospf
[SwitchC-ospf-1] area 0
[SwitchC-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.0] quit
[SwitchC-ospf-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.
152