Typing the command:
% route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 2 0 0 wlan0 link-local * 255.255.0.0 U 1000 0 0 wlan0 (... hang for a while ...) default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
Here, before the last line
default rule be printed, route just hang for while.
Isn't the route table cached somewhere?
I used to grep the result from
route to get the
default rule, to get the default gateway. Now,
route seems hang for a while in some machines.