Re: howto disable auto route setup?

Martin Mares (mj@atrey.karlin.mff.cuni.cz)
Tue, 2 Feb 1999 20:16:03 +0100


Hello,

> By flagging an interface as 'pointopoint $otherhost', you tell the kernel
> to add an outgoing route to $otherhost. Attaching a network route to a
> fictitious class [ABC] network, and a corresponding broadcast route, is
> semantical insanity.
>
> Yet this is what the kernel does. What possible justification can there be for
> the automatic creation of the route which I delete in the second line of this
> script? ...
>
> /sbin/ifconfig ippp0 158.152.16.50 pointopoint 158.152.1.222 -arp -broadcast up
> /sbin/route del -net 158.152.0.0 netmask 255.255.0.0 dev ippp0
> /sbin/route add 158.152.1.222 ippp0
> /sbin/route add default gw 158.152.1.222

ifconfig should definitely use netmask 255.255.255.255 as default when setting
up pointopoint interfaces. This avoids the problem.

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"For every complex problem, there's a solution that is simple, neat and wrong."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/