From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,899703b458c31aa9 X-Google-Attributes: gidfee84,public From: joda@pdc.kth.se (Johan Danielsson) Subject: Re: DU and netmasks Date: 1999/07/27 Message-ID: #1/1 X-Deja-AN: 505789126 Sender: joda@hella.pdc.kth.se References: <379C4C34.C7820B65@na.astro.it> <379D8088.891E7136@na.astro.it> Content-Type: text/plain; charset=us-ascii User-Agent: Gnus/5.070083 (Pterodactyl Gnus v0.83) Emacs/20.3 Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Massimo Gais 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 ------------------------------------------------------------