[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] RaQ2: Reading the routing table



On Mon, 19 Mar 2001, Diana Brake wrote:

> Can anyone tell me how to read the current routing table information. I 

just run route with no options and it will list all routes (interfaces +
dropped routes, the dropped ones have H! in them)

if you want the IP numbers instead of chopped off domain names, add -n

eg: /sbin/route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
202.104.20.187  -               255.255.255.255 !H    0      -       72 -

Note that flags tells you why it's there, 

H! - reject (host)
UH - Up, Host route (eg ethernet interface)
UG - Up, Gateway (eg ip -> to your router)

Dunno if anyone knows this but you can reject a net too ;)

gsh