分享
 
 
 

IGRP协议的高级配置

王朝other·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

本节讲解IGRP协议中的Debug、Maxmum-paths、Variance和Traffic-share等高级配置。

1.实验目的

通过本实验,读者可以把握以下技能

使用有关IGRP的Debug命令;

配置最大路径数。

配置不等度量值的负载均衡;

配置负载均衡方式,

监测IGRP相关信息。

2.设备需求和拓扑结构

本实验是在实验3的基础上进行的,其设备需求和网络拓扑结构与实验3完全相同。网络拓扑结构如图5-5所示。

3. 实验配置及监测结果

在实验3配置成功的基础上开始本实验的操作,监测清单5-3记录了EGRP协议高级配置项目及监测信息。

监测清单5-3 IGRP协议的高级配置

第1段:监测IGRP路由更新

R3#conft

Enter configuration commands, one per line. End with CNTL/Z.

R3(config)#logg con

R3(config)#^Z

R3#

00:56:43: %SYS-5-CONFIG_1: Configured from console by console

R3#debug ip igrp ?

eventsIGRP PRotocol events

transactions IGRP protocol transactions

R3#debug ip igrp events

IGRP event debugging is on

R3#

00:57:01: IGRP: received update from 172.16.23.2 on Serial1

00:57:01: IGRP: Update contains 5 interior,0 system, and 0 exterior routes.

00:57:01: IGRP: Total routes in. update:5

R3#

00:57:28: IGRP: received update from 172.16.13.1 on SerialO

00:57:28: IGRP: Update contains 3 interior, 0 system, and 0 exterior routes.

00:57:28: IGRP: Total routes in update: 3

R3#

00:58:01: IORP: sending update to 255.255.255.255 via Ethernet0(172.16.3.3)

00:58:01: IGRP: Update contains 5 interior,0 system,and 0 exterior routes.

00:58:01: IGRP: Total routes inupdate:5

00:58:01: IGRP: sending update to 255.255.255.255 via Serial0 (172.16.13.3)

00:58:02: IGRP: Update contains 2 interior, 0 system, and 0 exterior routes.

00:58:02: IGRP: Total routes in update: 2

00:58:02: IGRP: sending update to 255.255.255.255 via Seriall (172.16.23.3)

00:58:02: IGRP: Update contains 5 interior, 0 system, and 0 exterior routes.

00:58:02: IGRP: Total routes in update: 5

R3#undebug all

All possible debugging has been turned off

R3#debug ip lgrp transactions

IGRP protocol debugging is on

00:58:44: IGRP: received update from 172.16,13.1 on

00:58:44:subnet 172.16.12.0,24000 (neighbor 22000)

00:58:44:subnet 172.16.1.0, metric 22100 (neighbor 1100)

00:58:44:subnet 172,16.2.0. metric 24100 (neighbor 22100)

R3#

00:59:31: IGRP: sending update to 255.255.255.255 viaBTliemetO(172.16.3.3)

00:59:31:subnet 172.16,23.0, metric=158250

00:59:31:subnet 172.16.12.0, metric=24000

00:59:31:subnet 172.16.13.0 metric=22000

00:59:31:subnet 172.16.1A metric=22100

00:59:31:subnet 172.16.2.0, metric=24100

00:59:32: IGRP: sending update to 255.255.255.255 via(172.16.13.3)

00:59:32:subnet 172.16.23.0, metric==158250

00:59:32:subnet 172.16.3.0, metrical 100

00:59:32: IGRP: sending update to 255.255.255.255 via Serial1 (172,16.23.3)

00:59:32:subnet 172.16.12.0. metric=24000

00:59:32:subnet 172.16.13.0,

R3#

00:59:32:subnet 172.16.1.0, metric=22100

00:59:32:subnet 172.16.2.0, metric=24100

00:59:32:subnet 172.16.3.0, metric=1100

R3#

00:59:34: IGRP: received update from 172.16.23.2 on Serial1

00:59:34:subnet 172.16.12.0, metric 160250 (neighbor 22000)

00:59:34:subnet 172.16.13.0, metric 162250 (neighbor 24000)

00:59:34:subnet 172,16.1.0, metric 160350 (neighbor 22100)

00:59:34:subnet 172.16.2.0, metric 158350 (neighbor 1100)

00:59:34:subnet 172.16.3.0, metric 162350 (neighbor 24100)

R3#undebug all

All possible debugging has been turned off

R3#

第2段:设置最大路径数

R1#sh ip route igrp

172.16.0.0/24 is subnetted, 6 subnets

I172.16.23.0 [100/160250] via S72.16.12.2, 00:00:05, Serial0

[100/160250] via 172.16.13.3,00:00:04,

I172.16.2.0 [100/22100] via 172.16.12.2, 00:00:05, Serial0

I172.16.3.0 [100/22100] via 172.16.13.3, 00:00:04, Serial1

R1#conft

Enter configuration commands, one per line. End with CNTL/Z.

R1(config)#router igrp 100

R1(config-router)#maximum-paths 1

R1(config-router)#^Z

R1#sh ip route igrp

172.16.0.0/24 is subnetted, 6 subnets

I172.16.23.0 [100/160250] via 172.16.12.2, 00:00:06, Serial0

I172.16.2.0 [100/22100] via 172.16.12.2, 00:00:06, Serial0

I172.16.3.0 [100/22100] via 172.16.13.3, 00:00:05, Serial1

第3段:设置非等值Metric负载均衡

Term_Server2

[Resuming connection 2 to R2 ... ]

R2#conft

Enter configuration commands, one per line. End with CNTL/Z.

R2(config)#router igrp 100

R2(config-router)#variance 128

R2(config-router)#^Z

R2#de ip route *

R2#sh ip route igrp

I172.16.13.0[100/24000]via 172.16.12.1,00:00:02,Serial0

[100/160250] via 172,16.23.3. 00:00:01, Serial1

I172.16.1.0 [100/22100] via 172.16.12.1, 00:00:02, Serial0

I172.16.3.0 [100/24100] via 172.16.12.1, 00:00:02, Serial0

[100/158350] via 172.16.23.3, 00:00:01, Serial1

R2#

R2#tracel72.16.3.3

Type escape sequence to abort.

Tracing the route 10172.16.3.3

1 172.16.12.1 4 4 msec 8 msec

2 172.16.13,3 16 msec 8 msec *

R2#conft

Enter configuration commands, one per line. End with CNTL/Z.

R2(config)#router igrp 100

R2(config-router)#traffic-share ?

balanced Share inversely proportioBal to metric

min All traffic shared among min metric paths

(1)在第1段中,首先使用1ogging console命令使监测信息输出到超级终端上。

(2)debug ip igrp命令下有2个子命令,即events和transactions。

(3)使用debug ip igrp events命令的Debug结果显示了当前路由器发送和接收IGRP更新包的情况。可以看到IGRP发送路由信息时使用的是广播包;同时可以看到每一个路由更新何中所包含的路由项数目和类型。

(4)使用debug ip igrp transactions监测到更为全面的信息,显示出具体网段和相应度量值的信息。

(5)在第2段中,演示了如何设置最大路径数。所谓最大路径数,是指当通向同一目标网段有不止一条具有等值Metric值的路径时,可以有几条进入路由表,最终被路由器实际使用。

缺省情况下,IGRP协议的maxmum-paths值为4。

如实验所示,show ip route igrp命令所列出的路由表项中,172.16.23.0网段所对应的加个等Metric值的路由,其Metric值均为160250,分别以172.16.12.2和172.16.13.3为网关。

进入router igrp 100,发出maxmum-paths 1命令把最大路径数设为1后,再查看路由列表,表明对于172.16.23.0网段而言,只有1条路由项进入路由表。

(6)在第3段中,通过对IGRP协议设置变量值(variance),可以使对同一目标网段的多个具有不等Metric值的路径同时进入路由表,而实现不等Metric值的负载均衡。

使用variance 128命令,可以便Metric值相差128倍的不同路径进入路由表。当然,128是可以设置的最大值,从1到128之间的值都可以设置,缺省值为1,即只有具有相等Mctric值的路径才能同时进入路由表。

在加入此命令之前,对于172.16.13.0网段来说,只有1条路径,即Metric值为24000的路径;加入此命令后,show ip route命令显示,1条新的Metric值为160250的路径加入了此网段的路由表项内。后者的Metric值是前者的6.67倍,在128倍的范围内。

(7)trace命令显示了变量值设为128后,对于网段172.16.13.0,确实存在2条可用的路径,它们分别是172.16.12.1和172.16.13.3。

(8)负载均衡有两种方式,即traffic-share?命令所显示的两个选项。

所谓"balanced"是根据Metric值来实现负载均衡,即Metric值越大,从对应路径上通过的数据包越少;反之,Metric值越小,从对应路径上通过的数据包越多。

所谓"min",指所有负载使用最小Metric值的路径,只有当这些具有最小Metric值的路径满负载或不可用时才从其他具有较大Metric值的路径上传送数据包。

IGRP不支持VLSM和不连续的子网,所以就不能进行相关的实验了,在后续章节中读者可以看到EIGRP协议很好地解决了这两个问题.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有