While configuring your routing (like同时,设定您的路由(如 load balancing with dual ADSL connections负载平衡具有双重国籍的ADSL连线 ) you would often need to view the current route cache and also to occasionally delete the current cache. )你会经常需要检视目前的路线,高速缓存和也偶尔会删除当前缓存。 Here is how you can do it.这里是如何,您可以这样做。


How to display the route cache如何展示路线缓存

ip route show cache IP路由显示缓存

A sample entry from the list is:样本入境从名单是:
217.212.227.18 from 172.16.0.69 via 192.168.0.1 dev eth2 src 172.16.0.50 217.212.227.18从172.16.0.69通过192.168.0.1开发eth2钢骨混凝土172.16.0.50
cache缓存 mtu 1500 advmss 1460 hoplimit 64 iif eth0 MTU的1500 advmss 1460 hoplimit 64国际投资论坛为eth0

This tells us that all requests from 172.16.0.69 (my machine’s IP) to 217.212.227.18 (Akamai machine) gets routed via eth2 interface using the gateway 192.168.0.1 (Tata Indicom Broadband).这就告诉我们,所有的要求,从172.16.0.69 (我的机器的IP ) 217.212.227.18 ( Akamai公司的机器)取得改行eth2接口使用网关192.168.0.1 ( Tata Indicom宽带) 。

How to delete the route cache如何删除干线高速缓存

ip route flush cache IP路由刷新缓存