lkml.org 
[lkml]   [1999]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: howto disable auto route setup?
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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.059 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site