可见从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 update from 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可以查看到相关接口的可靠性参数,如下所示。
R3#show interface s 1
Serial1 is up, line protocol is up
Hardware is HD64570
Internet address is 20.20.20.2/24
MTU 1500 bytes, BW 64000 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input 00:00:00, output 00:00:04, output hang never
Last clearing of "show interface" counters never
Input queue: 1/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/1/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 48000 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
4161 packets input, 269672 bytes, 0 no buffer
Received 1447 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
4164 packets output, 270104 bytes, 0 underruns
0 output errors, 0 collisions, 4 interface resets
0 output buffer failures, 0 output buffers swapped out
1 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
R3#