route in busybox

Rob Landley rob at landley.net
Wed Dec 7 00:51:44 UTC 2005


On Tuesday 06 December 2005 16:40, Chien-Yu Chen wrote:
> hi!
>
>   I was wondering if there is a way to do route, where the destination
> is not resolved, while leaving others as IP
>
> because I have a need to get IP for the default route...
>
> if I just do "route" to search for default, I'll get a name for gateway,
> not IP
>
> if I do "route -n", then I get 0.0.0.0 for default...
> thanks for all the comment

The busybox and non-busybox route commands are giving me the same result:

landley at driftwood:~/busybox/busybox$ ./busybox route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.0.0     U     0      0        0 eth1
0.0.0.0         10.0.0.1        0.0.0.0         UG    0      0        0 eth1
landley at driftwood:~/busybox/busybox$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.0.0     U     0      0        0 eth1
0.0.0.0         10.0.0.1        0.0.0.0         UG    0      0        0 eth1

What exactly are you trying to do again?  (And what version of busybox are you 
using?)

Rob
-- 
Steve Ballmer: Innovation!  Inigo Montoya: You keep using that word.
I do not think it means what you think it means.



More information about the busybox mailing list