While configuring your routing (like Durante la configurazione di routing il tuo (come load balancing with dual ADSL connections il bilanciamento del carico con doppia connessioni ADSL ) you would often need to view the current route cache and also to occasionally delete the current cache. ), Si dovrebbe spesso necessità di visualizzare il percorso attuale della cache e occasionalmente anche a cancellare la cache corrente. Here is how you can do it. Ecco come è possibile farlo.


How to display the route cache Come visualizzare il percorso della cache

ip route show cache ip route cache show

A sample entry from the list is: Un esempio di voce dalla lista è:
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 da 172.16.0.69 via 192.168.0.1 dev eth2 src 172.16.0.50
cache mtu 1500 advmss 1460 hoplimit 64 iif eth0 mtu 1500 advmss 1460 hoplimit 64 IIF 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). Questo ci dice che tutte le richieste da 172.16.0.69 (la mia macchina IP) per 217.212.227.18 (Akamai macchina) viene instradato attraverso l'interfaccia eth2 utilizzando il gateway 192.168.0.1 (Tata Indicom a banda larga).

How to delete the route cache Come eliminare il percorso di cache

ip route flush cache ip route flush cache