lkml.org 
[lkml]   [1996]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: 2.1.15 vs. "route"
Date

In linux.dev.kernel, article <Pine.LNX.3.95.961215181031.2131B-100000@random.sp.org>,
The Deviant <deviant@pooh-corner.com> writes:
>
> If you specify
>
> random:~# route add default gw 152.52.28.23 ppp0
>
> it become 0.0.0.0, as it should, but if you do
>
> random:~# route add 0.0.0.0 gw 152.52.28.23 netmask 0.0.0.0 ppp0
>
> it adds it as 255.255.255.255 (which isn't correct).
>
What if you say

> random:~# route add -net 0.0.0.0 gw 152.52.28.23 netmask 0.0.0.0 ppp0

/sbin/route should add the -net flag automagically, IMHO, if a netmask !=
255.255.255.255 is specified.

--
UFO'S are REAL. The Air Force doesn't exist.
--
Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg
Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de
90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing
PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE
Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.043 / U:2.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site