Subject: Re: netmask/broadcast questions
To: Robert Nestor <rnestor@metronet.com>
From: SamMaEl <rimsky@teleport.com>
List: port-mac68k
Date: 12/30/1997 17:19:35
On Tue, 30 Dec 1997, Robert Nestor wrote:

> SamMaEl <rimsky@teleport.com> wrote:
> 
> >	In my struggle to get ipnat working CORRECTLY on my subnet, I
> >changed my local IP setup from: 
> >
> >IPs 10.0.0.*                  # with 1-4 being used
> >netmask 255.255.255.0         # which Bob Nestor pointed out as wrong
> >broadcast 255.255.255.10      # also wrong?
> >
> I think what I wrote was that it didn't look correct to me.  I could be 
> wrong, in fact I'm usually wrong more than I'm right.
> 
> >	My new setup is:
> >
> >IPs 192.168.1.*               # with 1-4 being used
> >netmask 255.255.255.0         # which for a class C subnet SHOULD be right?
> >broadcast 255.255.255.192     # ?? no clue on this one...
> 
> This still doesn't look correct to me.  I think the Broadcast address 
> should be 192.168.1.255 for this setup, at least that's what it is on my 
> system using the same setup as you're now running.  My understanding is 
> that the Broadcast address is basically (in C code):
> 
>     Broadcast_address = (IP_address & netmask) | ~netmask;
> 

	Well, I will try that next time I reboot my machine... until then
I will just leave things as they are, since it actually WORKS! ;-) I'm now
telnetted to my teleport shell account from my Q630 running MacOS, through
my IIci ;-) So I'm satisfied enough for now, until I actually NEED to
change it.

	Ryan

-----
HELO... my name is rewt... you have SIGKILLed my father... prepare to vi!