[5342] in RedHat Linux List
Re: netmask doesn't match route address
daemon@ATHENA.MIT.EDU (Daniel Senie)
Wed Nov 20 19:36:38 1996
Date: Wed, 20 Nov 1996 19:34:28 -0500 (EST)
From: Daniel Senie <dts@senie.com>
To: RedHat List <redhat-list@redhat.com>
In-Reply-To: <Pine.GSO.3.93.961120172344.7939A-100000@butthead>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Wed, 20 Nov 1996, Dave Wreski wrote:
>
> Hi all. I just set up redhat 4.0 i386, and am having routing problems.
> I am simply trying to add a route to the loopback device, and not even
> that will work now.
>
> # ifconfig lo 127.0.0.0.1
> # ifconfig
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
> UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0
> TX packets:0 errors:0 dropped:0 overruns:0
>
> # route add -net 127.0.0.0 netmask 255.255.255.0
What are you doing!!! Don't mess with 127 net or you'll find a lot of
things broken.
> route: netmask doesn't match route address
> Usage: route [-nNvee] [-FC] [Address_families] List kernel routing tables
> route {-V|--version} Display command version and exit.
> . . .
>
> This doesn't make sense to me, and I don't know what to do next. If I
> type:
>
> # route add 127.0.0.1
>
> Then I get:
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> localhost * 255.255.255.255 UH 0 0 0 lo
>
> But that is not done correctly. And adding an eth0 never worked... My
> 3c509 module is installed, and this is basically otherwise a stock 4.0
> i386 install using 2.0.18.
DO NOT use 127.0.0.0 as a net for ANYTHING other than it's assigned use,
which is loopback.
>
> I have gone thru the netcfg and just can't figure this out.
> Can anyone shed some light on what might be going on here?
If you'd like to add a test network, try using 10.0.0.0 instead. Assign
your Ethernet 10.1.1.1 with a mask of 255.0.0.0 (or you can chop up 10 net
into pieces and use a mask like 255.255.255.0 if you like).
Dan
---------------------------------------------------------------
Daniel Senie Internet: dan@senie.com,
Daniel Senie Consulting n1jeb@senie.com
http://www.senie.com Packet Radio: N1JEB@KA1SRD.MA
If we suffer tamely a lawless attack upon our liberty, we encourage it,
and involve others in our doom. -- Samuel Adams
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null