Networking Forums

Networking Forums > Network Hardware > Home Networking > Network Masks

Reply
Thread Tools Display Modes

Network Masks

 
 
Geoff Lane
Guest
Posts: n/a

 
      10-19-2005, 09:06 PM
Network masks are confusing me a wee bit.

I think I understand that 192.168.1.1/255.255.255.255 refers to the
specific address of 192.168.1.1

192.168.1.0/255.255.255.0 I think refers to the entire range from
192.168.1.0 to 192.168.1.255 so can the preceeding IP address actually
be anything in the 192.168.1 range?

Now with a filter of 255.255.255.252 I think this gives a range of 4
IP addresses, I'm thinking, if the address was given as
192.168.1.254/255.255.255.252 what addresses would be covered?

Geoff Lane

 
Reply With Quote
 
 
 
 
Martin Underwood
Guest
Posts: n/a

 
      10-19-2005, 09:17 PM
Geoff Lane wrote in message
(E-Mail Removed):

> Network masks are confusing me a wee bit.
>
> I think I understand that 192.168.1.1/255.255.255.255 refers to the
> specific address of 192.168.1.1
>
> 192.168.1.0/255.255.255.0 I think refers to the entire range from
> 192.168.1.0 to 192.168.1.255 so can the preceeding IP address actually
> be anything in the 192.168.1 range?


Yes, except 192.168.1.0 and 192.168.1.255 which are reserved for broadcast
and multicast addresses.


> Now with a filter of 255.255.255.252 I think this gives a range of 4
> IP addresses, I'm thinking, if the address was given as
> 192.168.1.254/255.255.255.252 what addresses would be covered?


I think it's convention to express a subnet by referring to the lowest value
in the range, rather than an arbitrary address within the range - so it
would normally be stated as 192.168.1.252/255.255.255.252 or
192.168.1.252/30 (30 = number of 1s in subnet mask), covering addresses 252,
253, 254 and 254. I think 252 and 255 would be reserved for broadcast,
leaving you with just two usable addresses.


 
Reply With Quote
 
Geoff Lane
Guest
Posts: n/a

 
      10-19-2005, 09:28 PM
On Wed, 19 Oct 2005 22:17:12 +0100, "Martin Underwood" <a@b> wrote:

>> Network masks are confusing me a wee bit.


>> Now with a filter of 255.255.255.252 I think this gives a range of 4
>> IP addresses, I'm thinking, if the address was given as
>> 192.168.1.254/255.255.255.252 what addresses would be covered?

>
>I think it's convention to express a subnet by referring to the lowest value
>in the range, rather than an arbitrary address within the range - so it
>would normally be stated as 192.168.1.252/255.255.255.252 or
>192.168.1.252/30 (30 = number of 1s in subnet mask), covering addresses 252,
>253, 254 and 254. I think 252 and 255 would be reserved for broadcast,
>leaving you with just two usable addresses.


Thanks for quick reply, I'm slowly getting there :-)))

I understand about the reserved addresses within ranges so your
explanation was helpful.

Geoff Lane



 
Reply With Quote
 
Adam Piggott
Guest
Posts: n/a

 
      10-19-2005, 09:36 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Geoff Lane wrote:
> Network masks are confusing me a wee bit.
>
> I think I understand that 192.168.1.1/255.255.255.255 refers to the
> specific address of 192.168.1.1
>
> 192.168.1.0/255.255.255.0 I think refers to the entire range from
> 192.168.1.0 to 192.168.1.255 so can the preceeding IP address actually
> be anything in the 192.168.1 range?
>
> Now with a filter of 255.255.255.252 I think this gives a range of 4
> IP addresses, I'm thinking, if the address was given as
> 192.168.1.254/255.255.255.252 what addresses would be covered?


I've found this site useful in the past (and present):

IP Address Subnetting Tutorial, Ralph Becker
http://www.ralphb.net/IPSubnet/index.html

HTH
- --
Adam Piggott, Proprietor, Proactive Services (Computing).
http://www.proactiveservices.co.uk/

Please replace dot invalid with dot uk to email me.
Apply personally for PGP public key.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)

iD8DBQFDVrxz7uRVdtPsXDkRAkoCAKCWrefL6JNDyCZfW42iWq TQKgKkvACeIEsW
l3tybAcFGPZy32o78iPYjAU=
=ORSX
-----END PGP SIGNATURE-----
 
Reply With Quote
 
Alex Fraser
Guest
Posts: n/a

 
      10-19-2005, 10:24 PM
"Martin Underwood" <a@b> wrote in message
news:4356b7db$0$6536$(E-Mail Removed)...
> Geoff Lane wrote in message
> (E-Mail Removed):

[snip]
> > 192.168.1.0/255.255.255.0 I think refers to the entire range from
> > 192.168.1.0 to 192.168.1.255 so can the preceeding IP address actually
> > be anything in the 192.168.1 range?

>
> Yes, except 192.168.1.0 and 192.168.1.255 which are reserved for
> broadcast and multicast addresses.


The lowest address in the range is called the network address. The highest
is the subnet broadcast address. As you wrote, both these addresses are
reserved (though I think the reasons are mostly/entirely historical in the
former case). Multicast is an entirely different kettle of fish; multicast
addresses are in 224.0.0.0/4.

Alex


 
Reply With Quote
 
Martin Underwood
Guest
Posts: n/a

 
      10-19-2005, 10:34 PM
Alex Fraser wrote in
(E-Mail Removed):

> "Martin Underwood" <a@b> wrote in message
> news:4356b7db$0$6536$(E-Mail Removed)...
>> Geoff Lane wrote in message
>> (E-Mail Removed):

> [snip]
>>> 192.168.1.0/255.255.255.0 I think refers to the entire range from
>>> 192.168.1.0 to 192.168.1.255 so can the preceeding IP address
>>> actually be anything in the 192.168.1 range?

>>
>> Yes, except 192.168.1.0 and 192.168.1.255 which are reserved for
>> broadcast and multicast addresses.

>
> The lowest address in the range is called the network address. The
> highest is the subnet broadcast address. As you wrote, both these
> addresses are reserved (though I think the reasons are
> mostly/entirely historical in the former case). Multicast is an
> entirely different kettle of fish; multicast addresses are in
> 224.0.0.0/4.


I was nearly right! I should have realised that broadcasting (to all
computers within the subnet) would use an address within the subnet but
multicasting (to all computers on the network segment, irrespective of
subnet) would use a special subnet.


 
Reply With Quote
 
Clint Sharp
Guest
Posts: n/a

 
      10-20-2005, 12:34 AM
In message <4356bc70$0$38044$(E-Mail Removed)>, Adam Piggott
<(E-Mail Removed)> writes
>Geoff Lane wrote:
>> Network masks are confusing me a wee bit.
>>
>> I think I understand that 192.168.1.1/255.255.255.255 refers to the
>> specific address of 192.168.1.1
>>
>> 192.168.1.0/255.255.255.0 I think refers to the entire range from
>> 192.168.1.0 to 192.168.1.255 so can the preceeding IP address actually
>> be anything in the 192.168.1 range?
>>
>> Now with a filter of 255.255.255.252 I think this gives a range of 4
>> IP addresses, I'm thinking, if the address was given as
>> 192.168.1.254/255.255.255.252 what addresses would be covered?

>
>I've found this site useful in the past (and present):
>
>IP Address Subnetting Tutorial, Ralph Becker
>http://www.ralphb.net/IPSubnet/index.html
>
>HTH

If you have broadband, you might like http://www.howtosubnet.com

I worked out subnet masks by imagining them as a ruler, you cover the
TCP/IP address with the ruler until you can't see any more of the bits
of the subnet mask and then any bits still showing of the IP address are
the network. I guess that works best if you realise the binary of the
address.
--
Clint Sharp
 
Reply With Quote
 
Clint Sharp
Guest
Posts: n/a

 
      10-20-2005, 10:35 PM
In message <ZrznBRBnYuVDFw+(E-Mail Removed)>, Clint Sharp
<(E-Mail Removed)> writes
>If you have broadband, you might like http://www.howtosubnet.com
>
>I worked out subnet masks by imagining them as a ruler, you cover the
>TCP/IP address with the ruler until you can't see any more of the bits
>of the subnet mask and then any bits still showing of the IP address
>are the network.

Bugger, posting at 25 to 1 in the morning is not generally conducive to
accuracy, I should have said;
and then any bits still showing of the IP address are the host range
minus the broadcast and network addresses.
>I guess that works best if you realise the binary of the address.


--
Clint Sharp
 
Reply With Quote
 
Alex Fraser
Guest
Posts: n/a

 
      10-20-2005, 11:22 PM
"Clint Sharp" <(E-Mail Removed)> wrote in message
news:ZrznBRBnYuVDFw+(E-Mail Removed)...
> I worked out subnet masks by imagining them as a ruler, you cover the
> TCP/IP address with the ruler until you can't see any more of the bits
> of the subnet mask and then any bits still showing of the IP address are
> the network. I guess that works best if you realise the binary of the
> address.


If you understand binary and boolean logic, then it is a small step to grasp
the idea of bitwise logical operations, and with that pretty much everything
related to subnet masks should be trivial.

Alex


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Masks Geoff Lane Home Networking 2 04-02-2005 11:02 AM
subnet masks bulk88@hotmail.com Linux Networking 1 03-08-2005 02:01 AM
Subnet masks Roshak Windows Networking 2 11-05-2004 06:55 PM
DIFFERENT SUBNET MASKS IN A SINGLE NETWORK SEGMENT Damiano Fasoli Linux Networking 1 06-08-2004 06:13 PM
samba network masks and vtun HelloMan Linux Networking 1 12-23-2003 11:58 AM



1 2 3 4 5 6 7 8 9 10 11