* DU and netmasks
@ 1999-07-26 4:00 Massimo Gais
1999-07-26 4:00 ` Adam Price
1999-07-27 4:00 ` Johan Danielsson
0 siblings, 2 replies; 5+ messages in thread
From: Massimo Gais @ 1999-07-26 4:00 UTC (permalink / raw)
Hello,
what is the first version of Digital Unix supporting "non common"
netmasks (like 255.255.254.0) ?
I think that only with DU 4.0d this is possible.
Do you know this is possible even with 4.0b or earlier ?
TIA,
--
Massimo Gais <mgais@na.astro.it>
----
"True programmers never die,
they just branch to an odd address..."
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: DU and netmasks
1999-07-26 4:00 DU and netmasks Massimo Gais
@ 1999-07-26 4:00 ` Adam Price
1999-07-27 4:00 ` Johan Danielsson
1 sibling, 0 replies; 5+ messages in thread
From: Adam Price @ 1999-07-26 4:00 UTC (permalink / raw)
Massimo Gais wrote in message <379C4C34.C7820B65@na.astro.it>...
>Hello,
>
>what is the first version of Digital Unix supporting "non common"
>netmasks (like 255.255.254.0) ?
>
>I think that only with DU 4.0d this is possible.
>Do you know this is possible even with 4.0b or earlier ?
>
Works fine on my 3.2c machines
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: DU and netmasks
1999-07-26 4:00 DU and netmasks Massimo Gais
1999-07-26 4:00 ` Adam Price
@ 1999-07-27 4:00 ` Johan Danielsson
1999-07-27 4:00 ` Massimo Gais
1 sibling, 1 reply; 5+ messages in thread
From: Johan Danielsson @ 1999-07-27 4:00 UTC (permalink / raw)
Massimo Gais <mgais@na.astro.it> writes:
> what is the first version of Digital Unix supporting "non common"
> netmasks (like 255.255.254.0) ?
You can subnet, but you can't supernet in releases prior to 4.0D.
/Johan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: DU and netmasks
1999-07-27 4:00 ` Johan Danielsson
@ 1999-07-27 4:00 ` Massimo Gais
1999-07-27 4:00 ` Johan Danielsson
0 siblings, 1 reply; 5+ messages in thread
From: Massimo Gais @ 1999-07-27 4:00 UTC (permalink / raw)
Johan Danielsson wrote:
>
> Massimo Gais <mgais@na.astro.it> writes:
>
> > what is the first version of Digital Unix supporting "non common"
> > netmasks (like 255.255.254.0) ?
>
> You can subnet, but you can't supernet in releases prior to 4.0D.
>
> /Johan
Ahaa!!! :-) That's the truth!
Now just a question about terms: why 255.255.254.0 is called
"supernet-ting"?
The "network base unit" is always the so-called class C?
Anyway thank you for the reply.
--
Massimo Gais <mgais@na.astro.it>
----
"True programmers never die,
they just branch to an odd address..."
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: DU and netmasks
1999-07-27 4:00 ` Massimo Gais
@ 1999-07-27 4:00 ` Johan Danielsson
0 siblings, 0 replies; 5+ messages in thread
From: Johan Danielsson @ 1999-07-27 4:00 UTC (permalink / raw)
Massimo Gais <mgais@na.astro.it> writes:
> Now just a question about terms: why 255.255.254.0 is called
> "supernet-ting"?
It depends on the network class you are using. 255.255.254.0 (/23) is
a supernet of a class C network, but a subnet of a class A or B
network.
If you want to do this with something < 4.0D, you can do as described
below.
/Johan
------------------------------------------------------------
From: joda@pdc.kth.se (Johan Danielsson)
Subject: Re: SUBNET MASK on FDDI Addendum
Date: 10 Nov 1997 01:16:17 +0100
The kernel won't allow you to make subnets larger than the former
classes. This is a brain-damage that should go away - there are no
classes!
First, why do you want all your machines on the same subnet? There are
really no advantages with this. If you have machines that doesn't know
anything about subnets and routes, you might consider using proxy-arp.
If you want to do this anyway, you can add net-routes for the
`subnets' that the 8200 isn't on.
For instance:
------------------------------------------------------------
# ifconfig fta0 192.168.1.1 netmask 0xffffff00
# route add 192.168.2.0 192.168.1.1 -interface
add net 192.168.2.0: gateway 192.168.1.1
# route add 192.168.3.0 192.168.1.1 -interface
add net 192.168.3.0: gateway 192.168.1.1
# netstat -rn
Routing tables
Destination Gateway Flags Refs Use Interface
Netmasks:
Inet 255.255.255.0
Inet 255.255.255.224
Route Tree for Protocol Family 2:
127.0.0.1 127.0.0.1 UH 1 0 lo0
192.168.1 192.168.1.1 U 1 0 fta0
192.168.2 192.168.1.1 U 0 0 fta0
192.168.3 192.168.1.1 U 0 0 fta0
------------------------------------------------------------
If you *really* want to use wide netmasks (which I'm not sure you do,
it gets hard to maintain), you could patch the kernel (don't do this
at home). The following might (*might* is the keyword, I have not
tried it) work, if you use 4.0B/C.
------------------------------------------------------------
# uname -a
OSF1 xxx.pdc.kth.se V4.0 564 alpha
# cp /vmunix /vmunix.save
# dbx /vmunix
dbx version 3.11.10
Type 'help' for help.
main: Source not available
warning: Files compiled -g3: parameter values probably wrong
(dbx) ((char*)in_ifinitia) + 464/1 i
[in_ifinitia:1277, 0xfffffc0000379640] bis r7, r6, r16
(dbx) patch *(unsigned*)0xfffffc0000379640 = 0x44e70410
[in_ifinitia:1277, 0xfffffc0000379640] bis r7, r7, r16
(dbx) quit
# reboot
------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-07-27 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-26 4:00 DU and netmasks Massimo Gais
1999-07-26 4:00 ` Adam Price
1999-07-27 4:00 ` Johan Danielsson
1999-07-27 4:00 ` Massimo Gais
1999-07-27 4:00 ` Johan Danielsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox