Huawei S6700 Series Configuration Manual page 177

Ip routing
Hide thumbs Also See for S6700 Series:
Table of Contents

Advertisement

S6700 Series Ethernet Switches
Configuration Guide - IP Routing
Configuration Procedure
1.
2.
3.
4.
Issue 01 (2012-03-15)
– 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.
Create a VLAN to which each interface belongs.
The configuration details are not mentioned here.
Assign an IP address to each interface.
The configuration details are not mentioned here.
4.14.1 Example for Configuring Basic OSPF
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
Destination/Mask
10.1.1.0/24
10.1.1.1/32
InLoopBack0
10.1.1.2/32
10.1.2.0/24
10.1.2.1/32
InLoopBack0
10.1.2.2/32
127.0.0.0/8
InLoopBack0
127.0.0.1/32
InLoopBack0
172.16.1.0/24
172.16.1.1/32
InLoopBack0
172.17.1.0/24
192.168.0.0/24
192.168.1.0/24
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.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Functions.
Routes : 13
Proto
Pre
Cost
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
OSPF
10
3
OSPF
10
2
OSPF
10
2
4 OSPF Configuration
Flags
NextHop
D
10.1.1.1
D
127.0.0.1
D
10.1.1.2
D
10.1.2.1
D
127.0.0.1
D
10.1.2.2
D
127.0.0.1
D
127.0.0.1
D
172.16.1.1
D
127.0.0.1
D
10.1.1.2
D
10.1.1.2
D
10.1.2.2
Interface
Vlanif10
Vlanif10
Vlanif20
Vlanif20
Vlanif50
Vlanif10
Vlanif10
Vlanif20
158

Advertisement

Table of Contents
loading

Table of Contents