From: joda@pdc.kth.se (Johan Danielsson)
Subject: Re: DU and netmasks
Date: 1999/07/27 [thread overview]
Message-ID: <xofso6akx2m.fsf@hella.pdc.kth.se> (raw)
In-Reply-To: 379D8088.891E7136@na.astro.it
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
------------------------------------------------------------
prev parent reply other threads:[~1999-07-27 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox