*BSD News Article 75006


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.bekkers.com.au!usenet
From: Jan Hurst <jhurst@bekkers.com.au>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Subnet - help please!
Date: Tue, 30 Jul 1996 16:10:32 +0800
Organization: Bekkers Communications Australia
Lines: 46
Message-ID: <31FDC378.3BE@bekkers.com.au>
References: <31FBF6A4.337D@albury.net.au>
Reply-To: jhurst@elmer.bekkers.com.au
NNTP-Posting-Host: jan.bekkers.com.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b5 (Win95; I)
To: Ross Wheeler <rossw@albury.net.au>

Hi,

Just my 2c worth,


> Situation: I have a second class c address that I want to bust up.
> 
> aaa.bbb.ccc.0 is my first block, and everything works fine.
> aaa.ddd.eee.0 is the second block - and i want to subnet it.
> 
> If I use netmask of 255.255.255.240 (16 addresses (14 hosts) per subnet), that should give me the first
> subnet as aaa.ddd.eee.1 to aaa.ddd.eee.14 (exclude .0 and .15, right?)
> 

Using netmasks loses certain IP ranges, I don't think you can use 1-15
with that netmask.  You can start from 16 onwards ending in 240 from
memory (?).

> That network is available out a port on the terminal server, (which I have in the DNS), so I can say:
>     route add aaa.ddd.eee.1 remotehost.albury.net.au -netmask 255.255.255.240
> 

route add -network aaa.ddd.eee.16 remotehost.albury.net.au -netmask
255.255.255.240

or something similar (i forget exactly off the top of my head)

> When I do a netstat -r | grep aaa.ddd.eee I get
>   aaa.ddd.eee/28   remotehost.albury.net.au  UGS   xxxxx xxx xxx
> 
> Since the other hosts on that net (aaa.ddd.eee.16 to aaa.ddd.eee.254) are on the local ethernet, I should
> be able to specify them as being on ef0, right?

I was under the impression that to get to a subnet you must go accross a
router somewhere.  ie ef0 could have aa.ddd.eee.16/28 ef1
aaa.dd.ee.32/28 and so on.

>     route add aaa.ddd.eee.17 ef0 -netmask 255.255.255.240
> (ditto for the remaining subnets)
> 

On a similar line, if you did have a subnet attached to the same network
segment could you use an ifconfig alias to use the same card in a
machine for more than on subnet? Anyone?

Jan