CCNP之BSCI实验5:配置EIGRP非等价负载均衡

本文涉及的产品
传统型负载均衡 CLB,每月750个小时 15LCU
应用型负载均衡 ALB,每月750个小时 15LCU
网络型负载均衡 NLB,每月750个小时 15LCU
简介:

CCNPBSCI实验5:配置EIGRP非等价负载均衡

 

 

实验目的:

1.       掌握EIGRP的非等价负载均衡的条件

2.       掌握EIGRPMETRIC值修改方法

3.       掌握EIGRPAD,FD,FC,SUCCESSOR,FS

实验拓扑:

实验步骤:

1.       按拓扑图配置IP,并用PING检验各个路由器的直连口的互通性

2.       配置EIGRP路由协议。

3.       观察R1到达R3192.168.1.0/24网络路由

4.       要实现非等价负载均衡的条件:FSFD<最优路由的FD*Varince

5.       要成为FS,需要满足可以条件:AD<FD

6.       查看R1的拓扑表

 

 

r1(config)#int s1/0

r1(config-if)#ip add 172.16.3.2 255.255.255.0

r1(config-if)#encapsulation frame-relay 帧中继封装

r1(config-if)#no sh

r1(config-if)#frame map ip 172.16.3.1 101 broadcast

r1(config-if)#do sh frame-relay map

Serial1/0 (up): ip 172.16.3.1 dlci 101(0x65,0x1850), static,

              broadcast,

              CISCO, status defined, active

r1(config-if)#

r1(config-if)#

r1(config-if)#exit

r1(config)#int f0/0

r1(config-if)#ip add 172.16.1.1 255.255.255.0

r1(config-if)#no sh

r1(config-if)#

*Mar  1 00:15:13.783: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up

*Mar  1 00:15:14.783: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

r1(config-if)#exit

r1(config)#router eigrp 1

r1(config-router)#no au

r1(config-router)#net 172.16.0.0

r1(config-router)#

*Mar  1 00:17:08.975: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.3.1 (Serial1/0) is up: new adjacency

r1(config-router)#

*Mar  1 00:18:40.103: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.2 (FastEthernet0/0) is up: new adjacency

r1(config-router)#do sh ip route

Codes: C - connected, S - static, 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

       i - IS-IS, su - IS-IS summary, 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

 

     172.16.0.0/24 is subnetted, 3 subnets

C       172.16.1.0 is directly connected, FastEthernet0/0

D       172.16.2.0 [90/2172416] via 172.16.1.2, 00:00:13, FastEthernet0/0

C       172.16.3.0 is directly connected, Serial1/0

D    192.168.1.0/24 [90/2297856] via 172.16.3.1, 00:00:13, Serial1/0

r1(config-router)#do sh ip eigrp to all-links 显示EIGRP拓扑表所有条目

IP-EIGRP Topology Table for AS(1)/ID(172.16.3.2)

 

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

       r - reply Status, s - sia Status

 

P 192.168.1.0/24, 1 successors, FD is 2297856, serno 4

        via 172.16.3.1 (2297856/128256), Serial1/0

        via 172.16.1.2 (2300416/2297856), FastEthernet0/0

P 172.16.1.0/24, 1 successors, FD is 28160, serno 1

        via Connected, FastEthernet0/0

P 172.16.2.0/24, 1 successors, FD is 2172416, serno 5

        via 172.16.1.2 (2172416/2169856), FastEthernet0/0

        via 172.16.3.1 (2681856/2169856), Serial1/0

P 172.16.3.0/24, 1 successors, FD is 2169856, serno 2

        via Connected, Serial1/0

 

r1(config-router)#do sh ip eigrp topology 查看拓扑表,可显示EIGRP的后继和可行后继

IP-EIGRP Topology Table for AS(1)/ID(172.16.3.2)

 

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

       r - reply Status, s - sia Status

 

P 192.168.1.0/24, 1 successors, FD is 2297856

        via 172.16.3.1 (2297856/128256), Serial1/0

P 172.16.1.0/24, 1 successors, FD is 28160

        via Connected, FastEthernet0/0

P 172.16.2.0/24, 1 successors, FD is 2172416

        via 172.16.1.2 (2172416/2169856), FastEthernet0/0

        via 172.16.3.1 (2681856/2169856), Serial1/0

P 172.16.3.0/24, 1 successors, FD is 2169856

        via Connected, Serial1/0

从上面可以看出:R1R3192.168.1.1,没有经过R2路由条目,

sh ip eigrp to all-linkssh ip eigrp topology显示比较,P 192.168.1.0/24, 1 successors, FD is 2297856, serno 4

        via 172.16.3.1 (2297856/128256), Serial1/0

        via 172.16.1.2 (2300416/2297856), FastEthernet0/0

要成为FS,需要满足可以条件:AD<FD,所以R1—R3没有可行后继。

 

r1(config-router)#do sh ip eigrp topology 在修竹R2S1/0的带宽后再查看拓扑表

IP-EIGRP Topology Table for AS(1)/ID(172.16.3.2)

 

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

       r - reply Status, s - sia Status

 

P 192.168.1.0/24, 1 successors, FD is 2294016

        via 172.16.1.2 (2294016/2291456), FastEthernet0/0

        via 172.16.3.1 (2297856/128256), Serial1/0

可以看出R1—R3的LOO1,R3成为可行后继。

P 172.16.1.0/24, 1 successors, FD is 28160

        via Connected, FastEthernet0/0

P 172.16.2.0/24, 1 successors, FD is 2166016

        via 172.16.1.2 (2166016/2163456), FastEthernet0/0

P 172.16.3.0/24, 1 successors, FD is 2169856

        via Connected, Serial1/0

r1(config-router)#variance 2 实现非等价负载均衡。

r1(config-router)#exit

r1(config)#do sh ip route

Codes: C - connected, S - static, 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

       i - IS-IS, su - IS-IS summary, 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

 

     172.16.0.0/24 is subnetted, 3 subnets

C       172.16.1.0 is directly connected, FastEthernet0/0

D       172.16.2.0 [90/2166016] via 172.16.1.2, 00:00:08, FastEthernet0/0

C       172.16.3.0 is directly connected, Serial1/0

D    192.168.1.0/24 [90/2297856] via 172.16.3.1, 00:00:08, Serial1/0

                    [90/2294016] via 172.16.1.2, 00:00:08, FastEthernet0/0

 

 

r2(config)#

r2(config)#int f0/0

r2(config-if)#ip add 172.16.1.2 255.255.255.0

r2(config-if)#no sh

r2(config-if)#exit

r2(config)#int s

*Mar  1 00:04:56.523: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up

*Mar  1 00:04:57.523: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

r2(config)#int s1/0

r2(config-if)#clo r 64000

r2(config-if)#ip add 172.16.2.2 255.255.255.0

r2(config-if)#no sh

r2(config-if)#exit

r2(config)#router eigrp 1

r2(config-router)#no au

r2(config-router)#net 172.16.0.0

*Mar  1 00:06:00.675: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.2.1 (Serial1/0) is up: new adjacency

*Mar  1 00:06:00.679: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.1 (FastEthernet0/0) is up: new adjacency

r2(config-router)#exit

r2(config)#int s1/0

r2(config-if)#bandwidth 1550

 

 

r3(config)#int loo 1

r3(config-if)#ip add

*Mar  1 00:02:44.487: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up

r3(config-if)#ip add 192.168.1.1 255.255.255.0

r3(config-if)#exit

r3(config)#int s0/1

r3(config-if)#ip add 172.16.2.1 255.255.255.0

r3(config-if)#no sh

r3(config-if)#exit

r3(config)#

*Mar  1 00:03:41.659: %LINK-3-UPDOWN: Interface Serial0/1, changed state to up

*Mar  1 00:03:42.659: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up

r3(config)#int s0/0

r3(config-if)#ip add 172.16.3.1 255.255.255.0

r3(config-if)#no sh

*Mar  1 00:04:08.675: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

*Mar  1 00:04:09.675: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r3(config-if)#encapsulation frame-relay

r3(config-if)#

*Mar  1 00:04:59.287: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down

r3(config-if)#frame map ip

*Mar  1 00:05:19.287: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r3(config-if)#frame map ip 172.16.3.1 202 broadcast

r3(config-if)#do sh frame-relay map

Serial0/0 (up): ip 172.16.3.1 dlci 202(0xCA,0x30A0), static,

              broadcast,

              CISCO, status defined, active

r3(config-if)#

r3(config-if)#no frame map ip 172.16.3.1 202 broadcast

r3(config-if)#frame map ip 172.16.3.2 202 broadcast  

r3(config-if)#

r3(config-if)#do sh frame map

Serial0/0 (up): ip 172.16.3.2 dlci 202(0xCA,0x30A0), static,

              broadcast,

              CISCO, status defined, active

r3(config-if)#exit

r3(config)#router eigrp 1

r3(config-router)#no au

r3(config-router)#net 172.16.0.0

r3(config-router)#net 192.168.1.0

r3(config-router)#

*Mar  1 00:17:08.147: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.3.2 (Serial0/0) is up: new adjacency

r3(config-router)#

*Mar  1 00:18:39.391: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.2.2 (Serial0/1) is up: new adjacency

r3(config-router)#do sh ip eigrp topology

IP-EIGRP Topology Table for AS(1)/ID(192.168.1.1)

 

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

       r - reply Status, s - sia Status

 

P 192.168.1.0/24, 1 successors, FD is 128256

        via Connected, Loopback1

P 172.16.1.0/24, 2 successors, FD is 2172416

        via 172.16.2.2 (2172416/28160), Serial0/1

        via 172.16.3.2 (2172416/28160), Serial0/0

P 172.16.2.0/24, 1 successors, FD is 2169856

        via Connected, Serial0/1

        via 172.16.3.2 (2684416/2166016), Serial0/0

P 172.16.3.0/24, 1 successors, FD is 2169856

        via Connected, Serial0/0

 


本文转自gauyanm 51CTO博客,原文链接:http://blog.51cto.com/gauyanm/287745,如需转载请自行联系原作者

相关实践学习
SLB负载均衡实践
本场景通过使用阿里云负载均衡 SLB 以及对负载均衡 SLB 后端服务器 ECS 的权重进行修改,快速解决服务器响应速度慢的问题
负载均衡入门与产品使用指南
负载均衡(Server Load Balancer)是对多台云服务器进行流量分发的负载均衡服务,可以通过流量分发扩展应用系统对外的服务能力,通过消除单点故障提升应用系统的可用性。 本课程主要介绍负载均衡的相关技术以及阿里云负载均衡产品的使用方法。
相关文章
|
27天前
|
弹性计算 负载均衡 网络协议
配置SLB监听器
配置SLB监听器
95 63
|
24天前
|
弹性计算 负载均衡 监控
slb配置健康检查
slb配置健康检查
29 5
|
27天前
|
监控 负载均衡 容灾
slb测试配置
slb测试配置
32 5
|
27天前
|
负载均衡 前端开发 应用服务中间件
负载均衡指南:Nginx与HAProxy的配置与优化
负载均衡指南:Nginx与HAProxy的配置与优化
51 3
|
1月前
|
域名解析 监控 安全
slb配置检查域名说明注意事项
slb配置检查域名说明注意事项
35 5
|
1月前
|
负载均衡 安全 网络安全
slb配置健康检查域名
slb配置健康检查域名
29 4
|
1月前
|
负载均衡 应用服务中间件
slb何时需要配置健康检查域名
slb何时需要配置健康检查域名
26 3
|
6月前
|
缓存 负载均衡 算法
解读 Nginx:构建高效反向代理和负载均衡的秘密
解读 Nginx:构建高效反向代理和负载均衡的秘密
134 2
|
5月前
|
负载均衡 算法 应用服务中间件
nginx自定义负载均衡及根据cpu运行自定义负载均衡
nginx自定义负载均衡及根据cpu运行自定义负载均衡
107 1
|
5月前
|
运维 负载均衡 算法
SLB与NGINX的异同是什么
SLB与NGINX的异同是什么
558 2