Re: Pre-release 2.0.5 breaks network config scripts

Drew Sullivan (drew@eros.ss.org)
Mon, 20 May 1996 08:56:12 -0400


-- Drew Sullivan, <drew@ss.org> -- Toronto, Canada, +1-416-225-1592
"Intel Inside" isn't advertising. It's a warning!

> On Sat, 18 May 1996, JF Martinez wrote:
> > The following worked in 1.3.98 and no longuer in 1.99.5:
> > ifconfig lo 127.0.0.1
> > route add -net 127.0.0.1
> No, it should be
> route add -net 127.0.0.0
> We got rid of the old compatibility code that was written for the 1.0
> release.. The current kernel is a lot stricter about these things.
> Linus

Can we at least put a patch into route to strip the host portion. This is
the way I use route. I want say: route the net for which this host
address is valid. In this way, a simple shell scripts can say:

echo -n "Enter IP"
read ip
ifconfig eth0 $ip
route add -net $ip

This is used on a single floppy linux router. It doesn't have awk, perl
or anything else that I could use to change the ip address.