Re: howto disable auto route setup?

storner@image.dk
31 Jan 1999 00:25:20 +0100


In <Pine.LNX.4.04.9901290104090.16389-100000@jakma.clubi.ie> Paul Jakma <paul@clubi.ie> writes:

>On 28 Jan 1999, Nick Holloway wrote:

>> paul@clubi.ie (Paul Jakma) writes:
>> > Does anyone know how to disable the new 2.1/2.2 /feature/ of
>> > automatically adding route for ifconfig up'd interfaces??
>>
>> I found that specifying a netmask of 255.255.255.255 helps alleviate
>> the problems caused by this (so you only get a host route).

>yeah, but i need setup scripts that work for both 2.0 and 2.2.

case "`uname -r`" in
2.0.*)
ifconfig bla bla bla
route add bla bla bla
;;

2.2.*)
ifconfig eth0 bla bla
;;
esac

>And it breaks things diald a bit, which exec ifconfig and
>then route.

Fixing that should be easy.

-- 
Henrik Storner     | "Software engineering is a race between engineers 
<storner@image.dk> |  who try to create foolproof software and the 
                   |  universe which is trying to create bigger fools.
                   |  So far, the universe is winning..."

- 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/