| |
利用show ip cache这一EXEC(可执行)命令,可以显示用来快速交换IP数据的路由表高速缓存。
show ip cache [prefix mask] [type number]
| 句法 |
描述 |
| prefix |
(可选项)只显示高速缓存中那些与前缀(prefix) 、屏蔽(mask)组合匹配的条目。 |
| mask |
(可选项)只显示高速缓存中那些与前缀(prefix) 、屏蔽(mask)组合匹配的条目。 |
| type |
(可选项)只显示高速缓存中那些与接口类型(type) 、接口号(number) 组合匹配的条目。 |
| number |
(可选项)只显示高速缓存中那些与接口类型(type) 、接口号(number) 组合匹配的条目。 |
命令模式
可执行模式
操作要点
该命令第一次出现时是在Cisco IOS 10.0版中。变量prefix,mask,type和number第一次出现时是在Cisco IOS 10.0版中。show ip cache命令显示的MAC头标信息最多可达92个字节。
屏幕显示示例
下面显示的内容是show ip cache命令的输出结果范例:
Router# show ip cache
IP routing cache version 4490, 141 entries, 20772 bytes, 0 hash overflows
Minimum invalidation interval 2 seconds, maximum interval 5 seconds,
quiet interval 3 seconds, threshold 0 requests
Invalidation rate 0 in last 7 seconds, 0 in last 3 seconds
Last full cache invalidation occurred 0:06:31 ago
表3-1描述了show ip cache命令显示范例中的几个重要字段。
表3-1 关于show ip cache命令中某些字段的说明
| 字段 |
描述 |
| IP routing cache version |
该表的版本号,每次表被刷新后,这个数都递增。 |
| entries |
有效条目的个数。 |
| bytes |
有效条目占用处理器内存的字节数。 |
| hash overflows |
自主交换高速缓存溢出的次数。 |
| minimum invalidationinterval |
高速缓存失效请求和实际失效之间最短的延迟时间。 |
| Maximum invalidationinterval |
高速缓存失效请求和实际失效之间最长的延迟时间。 |
| Quiet interval |
在高速缓存被刷新前,各高速缓存刷新请求之间的时间间隔。 |
| hreshold n requests |
当高速缓存被认为安静时,可发生请求的最大次数。 |
| nvalidation rate n in last m seconds |
在最后m秒中间,高速缓存失效的次数。 |
| 0 in last 3 seconds |
在最后的一个安静间隔内,高速缓存失效请求的次数。 |
last full cache invalidation
occurred hh:mm:ss ago |
最后一次完全的高速缓存失效被执行后,到现在为止所经历的时间。 |
| age |
高速缓存条目的寿命。 |
| interface |
输出接口的类型和编号。 |
| MAC Header |
针对高速缓存条目的“第2层的”(Layer2)封装信息。 |
下面显示的内容是带有一个指定的前缀和屏蔽的show ip cache命令的输出信息范例:
Router# Show ip cache 131.108.5.0 255.255.255.0
下面显示的内容是带有一个指定接口的show ip cache命令的输出信息范例:
例:
Router# show ip cache e0/2
|
|
| |
|
|