Networking Forums

Networking Forums > Computer Networking > Windows Networking > Subnetmask Issues

Reply
Thread Tools Display Modes

Subnetmask Issues

 
 
Poppen
Guest
Posts: n/a

 
      09-03-2005, 08:32 PM
HI
I have an academic question related to subnet masking. I understand
that the individual subnets are diffrentiated with the aid of subnet masks.
So when you do a subnetting of 171.107.1.0 /24 . The networks are 171.107.1.0
, 171.107.1.1 till 171.107.1.255 . The sunet mask for these n/w will be
255.255.255.0 .
I want to configure 2 subnets , lets say 171.107.1.1 and 171.107.1.2
.. I am not sure how will I give the subnetmasks at the router for these
networks.
--
make the change
 
Reply With Quote
 
 
 
 
Bill Grant
Guest
Posts: n/a

 
      09-03-2005, 11:33 PM
Getting close, but not quite right yet. The subnet mask defines how much
of the address defines the network. So with a 24-bit subnet mask, the first
24 bits are network definition and the remaning 8 define the host. So all
addresses beginning with 171.107.1 are in the same subnet, and you can have
254 of them from 1 to 254 . Zero and 255 are reserved. Zero is used to
define the subnet itself and 255 is a broadcast address.

To have two subnets of 254 hosts starting with 171.107, the third octet
would need to be different. For example you could use 1 and 2. Subnet one
would be the subnet 171.107.1 0/24 containing the host addresses
171.107.1.1 through 171.107.1.254 . The second subnet would be
171.107.2.0/24, containing 171.107.2.1 to 171.107.2.254 .

Poppen wrote:
> HI
> I have an academic question related to subnet masking. I
> understand that the individual subnets are diffrentiated with the aid
> of subnet masks. So when you do a subnetting of 171.107.1.0 /24 . The
> networks are 171.107.1.0 , 171.107.1.1 till 171.107.1.255 . The sunet
> mask for these n/w will be 255.255.255.0 .
> I want to configure 2 subnets , lets say 171.107.1.1 and
> 171.107.1.2 . I am not sure how will I give the subnetmasks at the
> router for these networks.



 
Reply With Quote
 
Poppen
Guest
Posts: n/a

 
      09-04-2005, 09:44 PM
Hi
Thank you for the information. I learn that for two networks all i need
to do is configure the two networks as 171.107.1.0 /24 and 171.107.2.0 /24
at the two network interfaces. I do not have to worry about the subnetmasks.
The router would by default select the subnetmask, which will be the same for
both the networks of /24 subnets.
That being the case (router would by default select the subnetmask ) .
How would the router identify the specific network in which the client
resides.
For example, i send a packet to 171.107.1.1 client . How would a router
interpret this packet. Will it take all the three octets 171,107,1 and
route the packet or is there anything to do with subnet mask here.

--
make the change


"Bill Grant" wrote:

> Getting close, but not quite right yet. The subnet mask defines how much
> of the address defines the network. So with a 24-bit subnet mask, the first
> 24 bits are network definition and the remaning 8 define the host. So all
> addresses beginning with 171.107.1 are in the same subnet, and you can have
> 254 of them from 1 to 254 . Zero and 255 are reserved. Zero is used to
> define the subnet itself and 255 is a broadcast address.
>
> To have two subnets of 254 hosts starting with 171.107, the third octet
> would need to be different. For example you could use 1 and 2. Subnet one
> would be the subnet 171.107.1 0/24 containing the host addresses
> 171.107.1.1 through 171.107.1.254 . The second subnet would be
> 171.107.2.0/24, containing 171.107.2.1 to 171.107.2.254 .
>
> Poppen wrote:
> > HI
> > I have an academic question related to subnet masking. I
> > understand that the individual subnets are diffrentiated with the aid
> > of subnet masks. So when you do a subnetting of 171.107.1.0 /24 . The
> > networks are 171.107.1.0 , 171.107.1.1 till 171.107.1.255 . The sunet
> > mask for these n/w will be 255.255.255.0 .
> > I want to configure 2 subnets , lets say 171.107.1.1 and
> > 171.107.1.2 . I am not sure how will I give the subnetmasks at the
> > router for these networks.

>
>
>

 
Reply With Quote
 
Bill Grant
Guest
Posts: n/a

 
      09-05-2005, 12:26 AM
It depends on where the machines are. If a client sends a packet to a
another machine which is in the same IP subnet, the router is not involved
at all. The packet is delivered directly (ie "on the wire" using the
machine's hardware or MAC address). It the target machine is not in the
same IP subnet as the sender, the packet will be sent to the router which
can deliver the packet directly (because the router has an interface in the
"other" subnet).

Poppen wrote:
> Hi
> Thank you for the information. I learn that for two networks all i
> need to do is configure the two networks as 171.107.1.0 /24 and
> 171.107.2.0 /24 at the two network interfaces. I do not have to worry
> about the subnetmasks. The router would by default select the
> subnetmask, which will be the same for both the networks of /24
> subnets. That being the case (router would by default select the
> subnetmask ) .
> How would the router identify the specific network in which the client
> resides.
> For example, i send a packet to 171.107.1.1 client . How would a
> router interpret this packet. Will it take all the three octets
> 171,107,1 and route the packet or is there anything to do with
> subnet mask here.
>
>
>> Getting close, but not quite right yet. The subnet mask defines
>> how much of the address defines the network. So with a 24-bit subnet
>> mask, the first 24 bits are network definition and the remaning 8
>> define the host. So all addresses beginning with 171.107.1 are in
>> the same subnet, and you can have 254 of them from 1 to 254 . Zero
>> and 255 are reserved. Zero is used to define the subnet itself and
>> 255 is a broadcast address.
>>
>> To have two subnets of 254 hosts starting with 171.107, the
>> third octet would need to be different. For example you could use 1
>> and 2. Subnet one would be the subnet 171.107.1 0/24 containing the
>> host addresses 171.107.1.1 through 171.107.1.254 . The second subnet
>> would be 171.107.2.0/24, containing 171.107.2.1 to 171.107.2.254 .
>>
>> Poppen wrote:
>>> HI
>>> I have an academic question related to subnet masking. I
>>> understand that the individual subnets are diffrentiated with the
>>> aid of subnet masks. So when you do a subnetting of 171.107.1.0 /24
>>> . The networks are 171.107.1.0 , 171.107.1.1 till 171.107.1.255 .
>>> The sunet mask for these n/w will be 255.255.255.0 .
>>> I want to configure 2 subnets , lets say 171.107.1.1 and
>>> 171.107.1.2 . I am not sure how will I give the subnetmasks at the
>>> router for these networks.



 
Reply With Quote
 
Poppen
Guest
Posts: n/a

 
      09-06-2005, 04:27 PM
Thank you Bill
This has helped me to clear a lot of grey areas releted to
subnetting and routing of packets


--
make the change


"Bill Grant" wrote:

> It depends on where the machines are. If a client sends a packet to a
> another machine which is in the same IP subnet, the router is not involved
> at all. The packet is delivered directly (ie "on the wire" using the
> machine's hardware or MAC address). It the target machine is not in the
> same IP subnet as the sender, the packet will be sent to the router which
> can deliver the packet directly (because the router has an interface in the
> "other" subnet).
>
> Poppen wrote:
> > Hi
> > Thank you for the information. I learn that for two networks all i
> > need to do is configure the two networks as 171.107.1.0 /24 and
> > 171.107.2.0 /24 at the two network interfaces. I do not have to worry
> > about the subnetmasks. The router would by default select the
> > subnetmask, which will be the same for both the networks of /24
> > subnets. That being the case (router would by default select the
> > subnetmask ) .
> > How would the router identify the specific network in which the client
> > resides.
> > For example, i send a packet to 171.107.1.1 client . How would a
> > router interpret this packet. Will it take all the three octets
> > 171,107,1 and route the packet or is there anything to do with
> > subnet mask here.
> >
> >
> >> Getting close, but not quite right yet. The subnet mask defines
> >> how much of the address defines the network. So with a 24-bit subnet
> >> mask, the first 24 bits are network definition and the remaning 8
> >> define the host. So all addresses beginning with 171.107.1 are in
> >> the same subnet, and you can have 254 of them from 1 to 254 . Zero
> >> and 255 are reserved. Zero is used to define the subnet itself and
> >> 255 is a broadcast address.
> >>
> >> To have two subnets of 254 hosts starting with 171.107, the
> >> third octet would need to be different. For example you could use 1
> >> and 2. Subnet one would be the subnet 171.107.1 0/24 containing the
> >> host addresses 171.107.1.1 through 171.107.1.254 . The second subnet
> >> would be 171.107.2.0/24, containing 171.107.2.1 to 171.107.2.254 .
> >>
> >> Poppen wrote:
> >>> HI
> >>> I have an academic question related to subnet masking. I
> >>> understand that the individual subnets are diffrentiated with the
> >>> aid of subnet masks. So when you do a subnetting of 171.107.1.0 /24
> >>> . The networks are 171.107.1.0 , 171.107.1.1 till 171.107.1.255 .
> >>> The sunet mask for these n/w will be 255.255.255.0 .
> >>> I want to configure 2 subnets , lets say 171.107.1.1 and
> >>> 171.107.1.2 . I am not sure how will I give the subnetmasks at the
> >>> router for these networks.

>
>
>

 
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
subnetmask and IP address prasi Linux Networking 4 10-24-2005 07:05 PM
win98se gets wrong subnetmask pi511 Windows Networking 2 06-03-2005 07:21 AM
how to programmatically get subnetmask Vinod Kumar P Windows Networking 1 11-01-2003 08:57 PM
how to programmatically get subnetmask Vinod Kumar P Linux Networking 1 11-01-2003 03:06 PM
Working out subnetmask HonkyDog Broadband 0 07-08-2003 09:37 AM



1 2 3 4 5 6 7 8 9 10 11