[plug] k 2.2.3 a question.

Matt Kemner zombie at networx.net.au
Fri Mar 19 10:22:35 WST 1999


On Fri, 19 Mar 1999, Anthony J. Breeds-Taurima wrote:

> I have just upgraded my 2.2.0pre6 machine to 2.2.3 :) ... I noticed that
> during the init of the network card the kernel? adds a route to the
> appropriate network.  Then my network config scripts come along and do the
> same thing.

Now this is why it's recommended you read Documentation/Changes when you
upgrade the kernel. :)
 
> a) what is doing this (and why ??)

The Networking gurus decided that it's pointless to bring a network
interface up if you're not going to route through it, so it uses the
netmask you specified on the ifconfig line, to work out what route to add.

> b) is there anyway to change it ???

Not in the kernel, so the best thing to do is to put in your
/etc/init.d/network (or equivalent) lines such as:
(this is from mine)

ifconfig eth0 203.30.239.12 netmask 255.255.255.0
ifconfig eth1 203.56.13.148 netmask 255.255.255.248

if `cat /proc/version|grep -q "version 2.0"`
then
  route add -net 127.0.0.0 netmask 255.255.255.0 dev lo
  route add -net 203.30.239.0 netmask 255.255.255.0 dev eth0
  route add -net 203.56.13.144 netmask 255.255.255.248 dev eth1
fi

That way the routes will only be added if you change back to a 2.0 kernel

 - Matt




More information about the plug mailing list