[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] RaQ2: Reading the routing table
- Subject: Re: [cobalt-users] RaQ2: Reading the routing table
- From: flash22@xxxxxxx
- Date: Tue Mar 20 20:00:30 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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