《EIGRP特性-Variance参数与不等价负载均衡配置实例参考模板.doc》由会员分享,可在线阅读,更多相关《EIGRP特性-Variance参数与不等价负载均衡配置实例参考模板.doc(5页珍藏版)》请在三一文库上搜索。
1、1 / 5配置过程如下:-PC1的配置-PC1(config)#no ip routingPC1(config)#ip default-gateway 10.1.1.1PC1(config)#interface e0/0PC1(config-if)#ip address 10.1.1.100 255.255.255.0PC1(config-if)#no shutdownPC1(config-if)#endPC1#-PC2的配置-PC2#configure terminalPC2(config)#no ip routingPC2(config)#ip default-gateway 192.16
2、8.1.2PC2(config)#interface e0/0PC2(config-if)#ip address 192.168.1.100 255.255.255.0PC2(config-if)#no shutdownPC2(config-if)#end-R1的配置-R1#configure terminalR1(config)#interface f0/0R1(config-if)#ip address 10.1.1.1 255.255.255.0R1(config-if)#no shutdown R1(config-if)#interface s1/0R1(config-if)#ip a
3、ddress 12.12.12.1 255.255.255.0R1(config-if)#no shutdown R1(config-if)#interface s1/1R1(config-if)#ip address 21.21.21.1 255.255.255.0R1(config-if)#no shutdown R1(config-if)#exitR1(config)#router eigrp 100R1(config-router)#network 10.1.1.0 0.0.0.255R1(config-router)#network 12.12.12.0 0.0.0.255R1(co
4、nfig-router)#network 21.21.21.0 0.0.0.255R1(config-router)#no auto-summaryR1(config-router)#endR1#-R2的配置-R2#configure terminalR2(config)#interface s1/0R2(config-if)#bandwidth 64R2(config-if)#ip address 12.12.12.2 255.255.255.0R2(config-if)#no shutdown R2(config-if)#interface s1/1R2(config-if)#bandwi
5、dth 128R2(config-if)#ip address 21.21.21.2 255.255.255.0R2(config-if)#no shutdown R2(config-if)#interface f0/0R2(config-if)#ip address 192.168.1.2 255.255.255.0R2(config-if)#no shutdown R2(config-if)#exitR2(config)#router eigrp 100R2(config-router)#network 192.168.1.0 0.0.0.255R2(config-router)#netw
6、ork 12.12.12.00.0.0.255R2(config-router)#network 21.21.21.00.0.0.255R2(config-router)#!variance 2R2(config-router)#no auto-summaryR2(config-router)#endR2#快捷配置方式,直接在SecurCRT标签中粘贴即可,SecurCRT的使用参考-PC1的配置-configure terminalno ip routingip default-gateway 10.1.1.1interface e0/0ip address 10.1.1.100 255.2
7、55.255.0no shutdownend-PC2的配置-configure terminalno ip routingip default-gateway 192.168.1.2interface e0/0ip address 192.168.1.100 255.255.255.0no shutdownend-R1的配置-configure terminalinterface f0/0ip address 10.1.1.1 255.255.255.0no shutdown interface s1/0ip address 12.12.12.1 255.255.255.0no shutdow
8、n interface s1/1ip address 21.21.21.1 255.255.255.0no shutdown exitrouter eigrp 100network 10.1.1.0 0.0.0.255network 12.12.12.0 0.0.0.255network 21.21.21.0 0.0.0.255no auto-summaryend-R2的配置-configure terminalinterface s1/0bandwidth 64ip address 12.12.12.2 255.255.255.0no shutdown interface s1/1bandw
9、idth 128ip address 21.21.21.2 255.255.255.0no shutdown interface f0/0ip address 192.168.1.2 255.255.255.0no shutdown exitrouter eigrp 100network 192.168.1.0 0.0.0.255network 12.12.12.00.0.0.255network 21.21.21.00.0.0.255no auto-summaryend验证:在没有修改variance的值之前,在R2上显示路由表R2#show ip route Gateway of last
10、 resort is not set 21.0.0.0/24 is subnetted, 1 subnetsC 21.21.21.0 is directly connected, Serial1/1 10.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 90/20514560 via 21.21.21.1, 00:04:53, Serial1/1 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0C 192.168.1.0/24 is direct
11、ly connected, FastEthernet0/0可以看到只有一条到达10.1.1.0 的路径。配置variance 2命令:R2#configure terminalR2(config)#router eigrp 100R2(config-router)#variance 2R2#endR2#show ip routeGateway of last resort is not set 21.0.0.0/24 is subnetted, 1 subnetsC 21.21.21.0 is directly connected, Serial1/1 10.0.0.0/24 is subne
12、tted, 1 subnetsD 10.1.1.0 90/20514560 via 21.21.21.1, 00:00:52, Serial1/1 90/40514560 via 12.12.12.1, 00:00:52, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0C 192.168.1.0/24 is directly connected, FastEthernet0/0现在可以看到,到达10.1.1.0 有两条路径。说明:variance 的值默认是1,代表等价链路的均衡负载,它的取值范围1128,这个乘数代表了可以接受的不等价链路的度量值的倍数,在这个范围内的链路都将被接受,并且被加入到路由表中。比如说有两条链路,一条度量值是20514560,另一条是40514560,如果没有设置过variance 的值,则会在路由表中出现度量值为20514560的路径,如果设置了variance 2,则两条路由都会出现在路由表中。注意:如果还没有出现两条路径,请执行下面命令清除已经存在的路由表。R2#clear ip route *R2#show ip route 配置过程拓扑net文件压缩包如下见附件EIGRP非等价负载