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?
On Tue, 2 Feb 1999, David Woodhouse wrote:
> 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

The justification is that you didn't put a netmask on there.

specify a netmask of 255.255.255.255 and the /16 route won't be added, the
/32 route will thus negating the need to remove the route and add a new one.

-d
--
Look, Windows 98 Buy, lemmings, buy! MCSE, Must Consult Someone Experienced
__ (c) 1998 David Ford. Redistribution via the Microsoft Network is prohibited
\/ for linux-kernel: please read linux/Documentation/* before posting problems


-
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:1.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site