English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

If there are 2 computers with their ip and mask, and it's known there are in a subnet, does that subnet has an ip and mask as well, or just 1 of the two?.

2007-03-03 08:24:04 · 4 answers · asked by livingthe30s 3 in Computers & Internet Computer Networking

4 answers

hi
if u have 2 ips 192.168.0.1 and 192.168.0.2, with the subnet mask 255.255.255.0 the subnet address would be the same as the network address 192.168.0.0.

2007-03-03 08:38:14 · answer #1 · answered by Dark Fenix 2 · 0 0

The subnet is the restriction on the range of IP address, not a separate address.

For example, a "Class C" IP address range has 256 addresses, minus overhead. The reason for this is, the first 3 octets of the IP address classify the class C address. As an example make up the address; 200.100.50.xxx (completely fictious)

That is the Class C address that you start with. With binary numbers, your network address range is 0 to 255, giving you 256 addresses. Automatically, .0 and .255 are used for Network and Broadcast addresses, which automatically take away 2, leaving 254 addresses. There are also loopback addresses, and static IP addresses assigned to routers, switches, and other devices that also might eat up addresses, leaving less.

Where the subnet mask comes into play is how you sub-divide the IP address range. If you have a class c address of 256 addresses, and you don't subdivide it, then the digits of your subnet mask remain the same, 255.255.255.0 This is a "inverse mask" of what to take away from your IP range. Since the first three digits don't change, they take nothing away. Since you are using all 256 addresses of the class C, it remains 0.

This becomes much more complicated if you wish to subdivide an address range, such as split a class C into a Class D or if you wish to subdivide a class B that then uses 255.255.x.x At this point, you are more or less looking at a "three dementional array instead of two" Example would be 255.255.252.0. I am taking 4 away from 256 in the 3rd octet giving me 4x256 or 1024 addresses in my network on a class B network address.

2007-03-03 16:42:59 · answer #2 · answered by JD_in_FL 6 · 0 0

A subnet has somethinke like an address with the "0", but you have to consider a few more parameters.

Example:

two computers 192.168.1.1 and 192.168.1.2 with the subnet mask 255.255.255.0 belong to the same subnet 192.168.1.0

It depends always on ip adress range and subnet.

A good article about it is here in wikipedia

http://en.wikipedia.org/wiki/Subnetwork


Have fun
M.

2007-03-03 16:40:15 · answer #3 · answered by Martin G. 4 · 0 0

A subnet does not have an IP address of its own. The subnet does have a network address that looks like an IP address (example 192.168.1.0) and this is how your computers and communicate with each other.

2007-03-03 16:38:47 · answer #4 · answered by Silvertrip 2 · 0 0

fedest.com, questions and answers