EIGRP高档装备之负载均衡具体装备51CTO博客 - AG环亚娱乐

EIGRP高档装备之负载均衡具体装备51CTO博客

2019年02月22日08时12分10秒 | 作者: 从寒 | 标签: 装备,路由,运用 | 浏览: 506

EIGRP的负载平衡装备  我所运用路由器是Router 3640   试验拓扑:     衔接方法  :           Router1 S0/0 <> Router2 S0/0
          Router1 S0/1 <> Router2 S0/1
          Router2 S0/2 <> Router3 S0/2   留意:在R1和R2是有两条途径的,上图只显现一条罢了。
ip地址表 :    R1   S0/0  192.168.1.1/24    S0/1 192.168.2.1    R2   S0/0  192.168.1.2/24     S0/1 192.168.2.2   S0/2 192.168.3.2/24    R3   S0/0   192.168.3.1/24   在R1,R2,R3发动EIGRP协议,没有完成负载均衡的状况如下:     R1路由 具体装备 router>en
router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
router(config)#hostname R1
R1(config)#int s0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int s0/1
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#bandwidth 2000  //在这里我把带宽设置为2000kbit,默许是2048kbit
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#router eigrp 10 //发动路由EIGRP进程,进程号为10
R1(config-router)#network 192.168.1.0  //宣告直连网络
R1(config-router)#network 192.168.2.0
R1(config-router)#exit
R1(config)#exit
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route Gateway of last resort is not set C    192.168.1.0/24 is directly connected, Serial0/0
C    192.168.2.0/24 is directly connected, Serial0/1
D    192.168.3.0/24 [90/2273792] via 192.168.1.2, 00:06:05, Serial0/0   留意:路由表里只包含到方针地址的最低衡量值的路由。     R2路由(请参照R1的装备) R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route Gateway of last resort is not set C    192.168.1.0/24 is directly connected, Serial0/0
C    192.168.2.0/24 is directly connected, Serial0/1
C    192.168.3.0/24 is directly connected, Serial0/2
留意:要在接口上发动 clock rate  指令,给R1,R3供给时钟。     R3路由
R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route Gateway of last resort is not set D    192.168.1.0/24 [90/2273792] via 192.168.3.2, 00:00:43, Serial0/2
D    192.168.2.0/24 [90/2304000] via 192.168.3.2, 00:00:43, Serial0/2
C    192.168.3.0/24 is directly connected, Serial0/2   留意:从上面能够看出R1两条线路到R3各自的衡量值。     下面咱们来完成负载均衡在R1R3之间。负载均衡是什么?
 
   负载均衡是指路由器在其离方针地址的间隔相同的一切网络端口之间分配数据流的才能。     留意:负载均衡只针对经过路由器的数据流,而不针对当时路由器生成的数据流。     完成负载均衡的条件是什么?   1.当时FD有必要大于从下一跳路由器得悉的AD。
2.当时FD和multiplier的乘积大于下一跳路由的衡量值。
  下面我将在R1上经过variance 来设置,别的因为R1-R3最低衡量 为 2273792 ,所以经过 variance 2 就能够完成非等本钱负载均衡。即 2273792*2 > 2340000     R1路由
R1#en
R1#config t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#router eigrp 10
R1(config-router)#var
R1(config-router)#variance 2
R1(config-router)#exit
R1(config)#exit
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route Gateway of last resort is not set C    192.168.1.0/24 is directly connected, Serial0/0
C    192.168.2.0/24 is directly connected, Serial0/1
D    192.168.3.0/24 [90/2304000] via 192.168.2.2, 00:00:52, Serial0/1
                                [90/2273792] via 192.168.1.2, 00:00:52, Serial0/0
  留意:这个时分呈现了两条通向方针地址(192.168.3.0)的途径。在没有装备负载均衡时分,路由表只呈现一条最佳路由。     现在再来ping 192.168.3.1 是否连通。 R1#ping 192.168.3.1 Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:
..!!!
Success rate is 60 percent (3/5), round-trip min/avg/max = 576/793/1228 ms   状况标明现已连通。            现在在R1上运转指令show ip route 192.168.3.1 显现抵达192.168.3.1的途径。留意这两条途径上正在负载均衡,途径周围有个星号“*”号, 表明要运用这条途径来抵达方针地址。   R1路由 R1#show ip route 192.168.3.1
Routing entry for 192.168.3.0/24
  Known via "eigrp 10", distance 90, metric 2273792, type internal
  Redistributing via eigrp 10
  Last update from 192.168.1.2 on Serial0/0, 00:02:25 ago
  Routing Descriptor Blocks:
    * 192.168.2.2, from 192.168.2.2, 00:02:25 ago, via Serial0/1
      Route metric is 2304000, traffic share count is 1
      Total delay is 40000 microseconds, minimum bandwidth is 2000 Kbit
      Reliability 255/255, minimum MTU 1500 bytes
      Loading 1/255, Hops 1
      192.168.1.2, from 192.168.1.2, 00:02:29 ago, via Serial0/0
      Route metric is 2273792, traffic share count is 1
      Total delay is 40000 microseconds, minimum bandwidth is 2048 Kbit
      Reliability 255/255, minimum MTU 1500 bytes
      Loading 1/255, Hops 1   运用192.168.2.2抵达192.168.3.1   R1#show ip route 192.168.3.1
Routing entry for 192.168.3.0/24
  Known via "eigrp 10", distance 90, metric 2273792, type internal
  Redistributing via eigrp 10
  Last update from 192.168.2.2 on Serial0/1, 00:00:11 ago
  Routing Descriptor Blocks:
  * 192.168.1.2, from 192.168.1.2, 00:00:11 ago, via Serial0/0
      Route metric is 2273792, traffic share count is 1
      Total delay is 40000 microseconds, minimum bandwidth is 2048 Kbit
      Reliability 255/255, minimum MTU 1500 bytes
      Loading 1/255, Hops 1
    192.168.2.2, from 192.168.2.2, 00:00:13 ago, via Serial0/1
      Route metric is 2304000, traffic share count is 1
      Total delay is 40000 microseconds, minimum bandwidth is 2000 Kbit
      Reliability 255/255, minimum MTU 1500 bytes
      Loading 1/255, Hops 1   运用192.168.1.2抵达192.168.3.1     在R1运用no variance上撤销负载均衡   R1#config t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#router eigrp 10
R1(config-router)#no variance R1(config-router)#exit
R1(config)#exit
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route Gateway of last resort is not set C    192.168.1.0/24 is directly connected, Serial0/0
C    192.168.2.0/24 is directly connected, Serial0/1
D    192.168.3.0/24 [90/2304000] via 192.168.2.2, 00:00:00, Serial0/1     现在运用show ip route 192.168.3.1 看一下状况。留意只运用了一条途径,没有运转负载均衡。     R1#show ip route 192.168.3.1
Routing entry for 192.168.3.0/24
  Known via "eigrp 10", distance 90, metric 2273792, type internal
  Redistributing via eigrp 10
  Last update from 192.168.1.2 on Serial0/0, 00:00:24 ago
  Routing Descriptor Blocks:
  * 192.168.1.2, from 192.168.1.2, 00:00:24 ago, via Serial0/0
      Route metric is 2273792, traffic share count is 1
      Total delay is 40000 microseconds, minimum bandwidth is 2048 Kbit
      Reliability 255/255, minimum MTU 1500 bytes
      Loading 1/255, Hops 1       期望这个对我们有点用,今后多多沟通。
版权声明
本文来源于网络,版权归原作者所有,其内容与观点不代表AG环亚娱乐立场。转载文章仅为传播更有价值的信息,如采编人员采编有误或者版权原因,请与我们联系,我们核实后立即修改或删除。

猜您喜欢的文章