On Thu, Oct 14, 1999 at 12:57:44PM +0300, d e a t h wrote:
> On Thu, Oct 14, 1999 at 02:24:37AM -0500, The Doctor What wrote:
> > Even more interesting, the route is actually added! So I don't know why
> > it dies with an error.
> >
> > Ciao!
>
> If you have compiled your ifconfig to automatically add a default route for
> the last interface brought up, then it's *that* route that you're seeing, and
> not the one that `route' tried to add.
>
> How to try this? Well, bring all ifaces down (this should also clean the
> routing table of all relevant entries), and then do:
>
> # ifconfig lo 127.0.0.0 up
>
> then see if the routing table is empty:
>
> # route -n
>
> If it isn't empty, then ifconfig automatically added what you will see there,
> so you should probably remove this route each time you wish to `add' it, or
> recompile ifconfig not to add automagically things to your routing table.
Actually, I'm not using ifconfig anywhere. This is something that brings
the network up from scratch. It *does* add the network route: 192.168.123.0
I need to add the gateway/default route, but I get an error (a value less
than 0) from the ioctl, and err returns 17 (EEXIST).
This makes no sense to me, as I thought that I could add duplicate routes,
and the route couldn't exist before hand!
Plus the man page's list of return values does *not* include EEXIST.
Thanks for the help, though.
Ciao!
--
"Harp not on that string."
-- William Shakespeare (Henry VI)
The Doctor What: Second Baseman http://docwhat.gerf.org/
[EMAIL PROTECTED] (finger [EMAIL PROTECTED] for PGP key)
KF6VNC
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]