首页 电脑 电脑学堂 查看内容

EIGRP负载均衡

2011-4-21 11:19 742 0

摘要:   分别在R1、R2、R3、R4上开启EIGRP进程,在这一R2为例  R2(config)#router eigrp 1  R2(config-router)#no auto-summary  ...
关键词: nbsp 192.168 路由 路由器 FastEthernet via 等价 20642560 Serial successors

  分别在R1、R2、R3、R4上开启EIGRP进程,在这一R2为例  R2(config)#router eigrp 1  R2(config-router)#no auto-summary  R2(config-router)#network 192.168.12.0  R2(config-router)#network 192.168.23.0  R2(config-router)#network 2.2.2.0 255.255.255.0  R4#show ip eigrp topology  IP-EIGRP Topology Table for AS 1  Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,  r - Reply status  P 4.4.4.0/24, 1 successors, FD is 128256  via Connected, Loopback0  P 192.168.14.0/24, 1 successors, FD is 28160  via Connected, FastEthernet0/0  P 192.168.12.0/24, 1 successors, FD is 20514560  via 192.168.14.1 (20514560/20512000), FastEthernet0/0  P 2.2.2.0/24, 1 successors, FD is 20642560  via 192.168.14.1 (20642560/20640000), FastEthernet0/0  via 192.168.34.1 (21152000/20640000), Serial0/3/0  P 192.168.23.0/24, 1 successors, FD is 21024000  via 192.168.34.1 (21024000/20512000), Serial0/3/0  P 192.168.34.0/24, 1 successors, FD is 20512000  via Connected, Serial0/3/0  知识点:  FD(可行距离):到达一个目的网络的最小度量值  RD(通告距离):邻居路由器所通告的它自己到达目的网络的最小度量值  FC(可行性条件):是EIGRP路由器更新路由表和拓扑表的依据,可行性条件  可以有效地阻止路由环路,实现路由的快速收敛  可行性条件的公式为:RD<FD;  后继路由器:是一个直接连接的邻居路由器,通过它到达目的网络的路由最佳  可行后继路由器:是一个邻居路由器,但是通过它到达目的地的度量值比其他  路由器高,但它的通告距离小于通过后继路由器到达目的网络的可行距离,因而  被保存在拓扑表中,用做备份路由。  结果分析:  P 2.2.2.0/24, 1 successors, FD is 20642560  via 192.168.14.1 (20642560/20640000), FastEthernet0/0  via 192.168.34.1 (21152000/20640000), Serial0/3/0  //(FD/RD)  这条记录中最优路由是第一条,但是第二条路由作为了备份路由因为  20640000<20642560即RD<FD,所以可行性条件满足  所以对于R4来说R1是后继路由器,R3是可行后继路由器。  EIGRP支持等价均衡负载  首先得将两条路的COST值改成一样的,根据计算公式可以看出来,和两条路唯一不同的是  R4上F0/0的delay值,将之通过R4(config-if)#delay 2000  改成20000usec 这样就跟右边这条  链路的delay一模一样了。  下面是没改之前的结果  R4# show ip route  ..............  D       2.2.2.0 [90/20642560] via 192.168.14.1, 00:04:06, FastEthernet0/0  ..............  这个是改之后的结果  。。。。。。。。  D       2.2.2.0 [90/21152000] via 192.168.34.1, 00:09:19, Serial0/3/0  [90/21152000] via 192.168.14.1, 00:00:03, FastEthernet0/0  。。。。。。。。  可见这个时候,到2.2.2.0/24这个网段的路径有两条,而且是等价的  然后将R4的f0/0的delay改回去,再接着进行下列的实验  EIGRP支持非等价负载均衡  首先得进行一下的配置  E4(config)#router eigrp 1  R4(config)#variance 2   //variance的默认值是1(即代表等价路径的负载均衡),variance  值的范围是1-128,这个参数代表了可疑接受的不等价路径的度量值的倍数,在这个范围内的  链路都将被接受,并且放入路由表中。  改完以后,再查看  R4#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  2.0.0.0/24 is subnetted, 1 subnets  D       2.2.2.0 [90/20642560] via 192.168.14.1, 00:03:34, FastEthernet0/0  [90/21152000] via 192.168.34.1, 00:03:34, Serial0/3/0  4.0.0.0/24 is subnetted, 1 subnets  C       4.4.4.0 is directly connected, Loopback0  D    192.168.12.0/24 [90/20514560] via 192.168.14.1, 00:03:34, FastEthernet0/0  C    192.168.14.0/24 is directly connected, FastEthernet0/0  D    192.168.23.0/24 [90/21024000] via 192.168.34.1, 00:03:34, Serial0/3/0  C    192.168.34.0/24 is directly connected, Serial0/3/0  仔细观察这条路由:D       2.2.2.0 [90/20642560] via 192.168.14.1, 00:03:34, FastEthernet0/0  [90/21152000] via 192.168.34.1, 00:03:34, Serial0/3/0  可疑看得到,到达网络2.2.2.0/24有两条非等价的路由,从而实现了非等价负载均衡,将PT软件切换到  模拟模式,从R4pingR2默认发四个包,可以看到,有两个包走了第一条路由,有两个包走了第二条路由
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部