S6700 Series Ethernet Switches
Configuration Guide - IP Routing
l
l
4.14.5 Example for Configuring OSPF Load Balancing
Networking Requirements
As shown in
l
l
l
Issue 01 (2012-03-15)
Configuration file of SwitchC
#
sysname SwitchC
#
router id 3.3.3.3
#
vlan batch 10
#
interface Vlanif10
ip address 192.168.1.3 255.255.255.0
ospf dr-priority 2
#
interface XGigabitEthernet0/0/1
port trunk allow-pass vlan 10
#
ospf 1
area 0.0.0.0
network 192.168.1.0 0.0.0.255
#
return
Configuration file of SwitchD
#
sysname SwitchD
#
router id 4.4.4.4
#
vlan batch 10
#
interface Vlanif10
ip address 192.168.1.4 255.255.255.0
#
interface XGigabitEthernet0/0/1
port trunk allow-pass vlan 10
#
ospf 1
area 0.0.0.0
network 192.168.1.0 0.0.0.255
#
return
Figure
4-9:
SwitchA, SwitchB, SwitchC, and SwitchD connect to each other through OSPF.
SwitchA, SwitchB, SwitchC, and SwitchD belong to Area 0.
Load balancing is performed between SwitchB and SwitchC. The traffic of SwitchA is sent
to SwitchD by SwitchB and SwitchC.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
4 OSPF Configuration
156