扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
R3#show ip route 10.10.10.0
Routing entry for 10.0.0.0/8
Known via "eigrp 1", distance 90, metric 41024000, type internal
Redistributing via eigrp 1
Last updatefrom 20.20.20.1 on Serial1, 00:34:49 ago
Routing Descriptor Blocks:
* 20.20.20.1, from 20.20.20.1, 00:34:49 ago, via Serial1
Route metric is 41024000, traffic share count is 1
Total delay is 40000 microseconds, minimum bandwidth is 64 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1
R3#
从以上命令查看的内容可以得知Metric的值发生了改变,并且运算的最小带宽为64Kbit,我们再回到R1来查看到达20.20.20.0(R2-R3)的链路Metric值。
R1#show ip route 20.20.20.0
Routing entry for 20.0.0.0/8
Known via "eigrp 1", distance 90, metric 2681856, type internal
Redistributing via eigrp 1
Last update from 10.10.10.2 on Serial1, 00:39:52 ago
Routing Descriptor Blocks:
* 10.10.10.2, from 10.10.10.2, 00:39:52 ago, via Serial1
Route metric is 2681856, traffic share count is 1
Total delay is 40000 microseconds, minimum bandwidth is 1544 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1
R1#
可见从R1到达R3的Metric和从R3回到R1的Metric并不相同。
我们除了可以通过修改带宽来更改Metric的运算以外还可以通过修改延迟来影响Metric的运算,由于OSPF也通过带宽来计算Metric,当一个网络总同时运行OSPF和EIGRP时,为了不影响OSPF的选路,我们可以通过修改delay来影响IGRP和EIGRP的度量值(Metric)。
首先我们先看一下如何修改延迟值(delay).
R2(config)#int s 1
R2(config-if)#delay 100(注意单位)
R2(config-if)#exi
R2(config)#
下面我们来看一下通过修改delay来计算Metric是否与带宽的规律相同。
按照图上的表识来修改各接口的delay(延迟)并回到R1,由R1得知到达20.20.20.0(R2-R3)的开销发生了改变,并且delay(延迟)为
R1#show ip route 20.20.20.0
Routing entry for 20.0.0.0/8
Known via "eigrp 1", distance 90, metric 2221056, type internal
Redistributing via eigrp 1
Last updatefrom 10.10.10.2 on Serial1, 00:00:17 ago
Routing Descriptor Blocks:
* 10.10.10.2, from 10.10.10.2, 00:00:17 ago, via Serial1
Route metric is 2221056, traffic share count is 1
Total delay is 22000 microseconds, minimum bandwidth is 1544 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1
R1 R3#show ip route 10.10.10.0
Routing entry for 10.0.0.0/8
Known via "eigrp 1", distance 90, metric 40537600, type internal
Redistributing via eigrp 1
Last update from 20.20.20.1 on Serial1, 00:01:02 ago
Routing Descriptor Blocks:
* 20.20.20.1, from 20.20.20.1, 00:01:02 ago, via Serial1
Route metric is 40537600, traffic share count is 1
Total delay is 21000 microseconds, minimum bandwidth is 64 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1
R3#
从R1和R3的输出可以得知,延迟和带宽的规律相同都是计算路由器到达目的地的逃出接口的相关参数。
以上两个度量(带宽、延迟)属于静态度量,而可靠性和负载属于动态度量参数。
对于可靠性参数255代表最高可靠性为100%,而1表示最低可靠性,用show interface可以查看到相关接口的可靠性参数,如下所示。
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者