Thanks!
Another question: it seems that the functionalities of 'route' are
contained in 'ip'. Is that true?
On Feb 23, 5:07*pm, Pascal Hambourg <boite-a-s...@plouf.fr.eu.org>
wrote:
> Hello,
>
> jprudent a crit :
>
>
>
> > $ route -n
> > Kernel IP routing table
> > Destination * * Gateway * * * * Genmask * * * * Flags Metric Ref
> > Use Iface
> > 192.168.1.0 * * 0.0.0.0 * * * * 255.255.255.0 * U * *303 * *0
> > 0 wlan0
> > 0.0.0.0 * * * * 192.168.1.1 * * 0.0.0.0 * * * * UG * *303 * *0
> > 0 wlan0
>
> > Why I don't have an entry for localhost? Like:
> > 127.0.0.0 * * 0.0.0.0 * * * * 255.0.0.0 * U * * 0 **0 * * * *0 *lo
>
> "route -n" shows only the "main" routing table, which contain only
> routes to external unicast destinations. Routes to local and broadcast
> destinations are in the "local" routing table which can be displayed
> with the following command (requires the iproute package to be installed):
>
> $ ip route show table local
>
> Note : The "local" routing table has precedence over all other routing
> tables, including "main". So local and broadcast routes cannot be
> overriden by adding routes in the "main" routing table.
|