![Huawei S6700 Series Configuration Manual Download Page 177](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517177.webp)
–
The router ID of SwitchA is 1.1.1.1, the OSPF process ID is 1, and the network segments
of Area 0 are 10.1.1.0/24, 10.1.2.0/24, and 172.16.1.0/24.
–
The router ID of SwitchB is 2.2.2.2, the OSPF process ID is 1, and the network segments
of Area 0 are 10.1.1.0/24 and 192.168.0.0/24.
–
The router ID of SwitchC is 3.3.3.3, the OSPF process ID is 1, and the network segments
of Area 0 are 10.1.2.0/24 and 192.168.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 0 are 172.17.1.0/24, 192.168.0.0/24, and 192.168.1.0/24.
–
The number of routes for load balancing on SwitchA is 1.
–
The preference of the equal-cost route of SwitchC 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
.
4.
Cancel load balancing on SwitchA.
[SwitchA]
ospf
[SwitchA-ospf-1]
maximum load-balancing 1
[SwitchA-ospf-1]
quit
Check the routing table of SwitchA.
[SwitchA]
display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 13 Routes : 13
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/24 Direct 0 0 D 10.1.1.1 Vlanif10
10.1.1.1/32 Direct 0 0 D 127.0.0.1
InLoopBack0
10.1.1.2/32 Direct 0 0 D 10.1.1.2 Vlanif10
10.1.2.0/24 Direct 0 0 D 10.1.2.1 Vlanif20
10.1.2.1/32 Direct 0 0 D 127.0.0.1
InLoopBack0
10.1.2.2/32 Direct 0 0 D 10.1.2.2 Vlanif20
127.0.0.0/8 Direct 0 0 D 127.0.0.1
InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1
InLoopBack0
172.16.1.0/24 Direct 0 0 D 172.16.1.1 Vlanif50
172.16.1.1/32 Direct 0 0 D 127.0.0.1
InLoopBack0
172.17.1.0/24 OSPF 10 3 D 10.1.1.2 Vlanif10
192.168.0.0/24 OSPF 10 2 D 10.1.1.2 Vlanif10
192.168.1.0/24 OSPF 10 2 D 10.1.2.2 Vlanif20
As shown in the routing table, when the maximum number of the equal-cost routes is 1,
the next hop to the destination network segment 172.17.1.0 is 10.1.1.2.
NOTE
In the preceding example, 10.1.1.2 is selected as the optimal next hop. This is because OSPF selects
the next hop of the equal-cost route randomly.
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.
158