80-OSPF Load Balancing
80-OSPF Load Balancing
o Its name implies, is the balancing of a traffic load across redundant links of equal cost.
o ECMP is strategy used in routing to forward traffic to a destination over multiple best paths.
o These best paths have calculated the same metric according to the routing protocol in use.
o The Load balancing occurs when the router receives a multiple paths with the same AD.
o Load balancing occurs when router receives multiple paths with same cost to destination.
o Equal-cost multi-path allows router to insert more than one path to destination in routing.
o OSPF protocol load balances across equal cost paths to the same destination by default.
o By default, OSPF supports of four paths to install to single network with identical metric.
o The maximum-paths command & specify how many equal-cost paths router should use.
o In Open Shortest Path First protocol however can be changed to a maximum of 32 path.
R2 IP Address Configuration
R2(config)#interface e0/0
R2(config-if)#no shutdown
R2(config-if)#interface e0/0.1
R2(config-subif)#encapsulation dot1Q 1
R2(config-subif)#ip add 192.168.1.2 255.255.255.0
R2(config)#interface e0/0.2
R2(config-subif)#encapsulation dot1Q 2
R2(config-subif)#ip add 192.168.2.2 255.255.255.0
R2(config)#interface e0/0.3
R2(config-subif)#encapsulation dot1Q 3
R2(config-subif)#ip add 192.168.3.2 255.255.255.0
R2(config)#interface e0/0.4
R2(config-subif)#encapsulation dot1Q 4
R2(config-subif)#ip add 192.168.4.2 255.255.255.0
R2(config)#interface e0/0.5
R2(config-subif)#encapsulation dot1Q 5
R2(config-subif)#ip add 192.168.5.2 255.255.255.0
R2(config)#interface loopback 2
R2(config-if)#ip address 2.2.2.2 255.255.255.255
R2 OSPF Configuration
R2(config)#router ospf 1
R2(config-router)#network 0.0.0.0 0.0.0.0 area 0