MSFN Forum: Help with ip addressing - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help with ip addressing Rate Topic: -----

#1 User is offline   rv31 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 03-February 09

Posted 10 February 2009 - 12:07 PM

If you have a LAN with more than 255 PCs with the first PC having an IP of 10.0.0.2 and the routers ip is 10.0.0.1, after you reach the ip 10.0.0.254 what would be the next ip on the LAN, "10.0.1.0" ??

How come (in packet tracer simulation package) i can have 2 pc connected to a switch with ips PC1 = 10.0.0.1 and PC2 = 10.0.2.2 for example and the PCs they can ping each other whereas if i use the ips PC1 = 192.168.1.1 and PC2 = 192.168.2.1 then they can't ping each other...?

This post has been edited by rv31: 10 February 2009 - 01:01 PM



#2 User is offline   iamtheky 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 833
  • Joined: 11-November 08

Posted 10 February 2009 - 12:23 PM

welcome to subnetting 101.


10.x.x.x. default subnet
255.0.0.0

192.168.x.x default subnet
255.255.255.0

short but sweet, everything above the 255s has to be the same. So in your 192 scenario whatever you place in third octet has to be the same on all boxes in your network. or drop to a class b subnet (255.255.0.0) on your boxes and use 192.168.xxx.xxx

This post has been edited by iamtheky: 10 February 2009 - 12:24 PM


#3 User is offline   rv31 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 03-February 09

Posted 10 February 2009 - 01:06 PM

View Postiamtheky, on Feb 10 2009, 01:23 PM, said:

welcome to subnetting 101.


10.x.x.x. default subnet
255.0.0.0

192.168.x.x default subnet
255.255.255.0

short but sweet, everything above the 255s has to be the same. So in your 192 scenario whatever you place in third octet has to be the same on all boxes in your network. or drop to a class b subnet (255.255.0.0) on your boxes and use 192.168.xxx.xxx



Well explained, got it. Ok so you can choose your own subnet to suit your LAN ips needs. What i need to really understand then is how subnetting works, for examaple i think i have seen subnets like 255.255.214.0 so what is the deal there....

#4 User is offline   iamtheky 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 833
  • Joined: 11-November 08

Posted 10 February 2009 - 01:58 PM

think of 255.255.255.0 = 11111111.11111111.11111111.00000000

all the bits that are 'on' have to be identical - (which is why in the 255 examples the numbers must be exactly the same as all bits are on)

Think of it like so:

My home network has a subnet of 255.255.255.248 to allow for only 5 network devices (not counting the router at .1)

11111000=248

so regardless of what my IP is everything above the 1s must be the same, so lets take your example 192.168.2.1

192.168.2 must all be the same because 255 is all 1s. so we will isolate the subnet .248

1=00000001
248=11111000

so the first 5 bits are locked in just like the 192.168.2 was. Leaving us the last 3 to play with.

00000000=all 0s network address - unusable
00000001=router
00000010=2
00000011=3
00000100=4
00000101=5
00000110=6
00000111=broadcast address - unusable

same subnet of .248 with a more complex final IP octet like .166 and determining the available IPs in the network

10100000=network address
10100001=161
10100010=162
10100011=163
10100100=164
10100101=165
10100110=166
10100111=167=broadcast

This post has been edited by iamtheky: 10 February 2009 - 02:06 PM


#5 User is offline   Noise 

  • Windows Guru
  • PipPipPip
  • Group: Members
  • Posts: 425
  • Joined: 27-February 04

Posted 10 February 2009 - 04:06 PM

View Postrv31, on Feb 10 2009, 10:07 AM, said:

If you have a LAN with more than 255 PCs with the first PC having an IP of 10.0.0.2 and the routers ip is 10.0.0.1, after you reach the ip 10.0.0.254 what would be the next ip on the LAN, "10.0.1.0" ??

How come (in packet tracer simulation package) i can have 2 pc connected to a switch with ips PC1 = 10.0.0.1 and PC2 = 10.0.2.2 for example and the PCs they can ping each other whereas if i use the ips PC1 = 192.168.1.1 and PC2 = 192.168.2.1 then they can't ping each other...?


You probably have a subnet mask of 255.255.252.0. To answer your question your next IP Address would be 10.0.0.255.

#6 User is offline   FAT64 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 658
  • Joined: 09-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 11 February 2009 - 10:30 AM

Quote

To answer your question your next IP Address would be 10.0.0.255


10.0.0.255 is a broadcast address B)

#7 User is offline   rv31 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 03-February 09

Posted 11 February 2009 - 10:45 AM

View PostFAT64, on Feb 11 2009, 11:30 AM, said:

Quote

To answer your question your next IP Address would be 10.0.0.255


10.0.0.255 is a broadcast address B)


that's wqhat i was meaning. So the ip could be say 10.0.1.0 if the subnet allowed for it, the key thing i have got is that it depends on what the subnet is. I am ok with it if it is a default subnet like 255.255.255.0 or 255.255.0.0 but haven't quite clicked onto what ip range you can have how you have a subnet like 255.255.214.0 yet. (VLSM)

#8 User is offline   iamtheky 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 833
  • Joined: 11-November 08

Posted 11 February 2009 - 11:24 AM

You get to play with the bits that are 'off', regardless of configuration. So in 255.255.214.0 (11010110=214)

pick any IP - we will go with 192.168.134.240 - I want to know what other IPs I could talk to

Knowns:

255=must have 192 in the 1st octet
255=must have 168 in the 2nd octet
214=????
0=can have any number 1-254 (0 if its not the network) in the 4th octet.


3rd octet of IPAddress= 134 = 10000110
3rd octet of subnet = 214 = 11010110

everything above a one is locked (bits 2,3 and 8 are locked in the on, bits 5 and 7 in the off) so modifying the remaining bits you get the following options for the third octet

134=10000110
135=10000111
142=10001110
143=10001111
166=10100110
167=10100111
174=10101110
175=10101111


so [192].[168].[any from the list].[1-254] would work for the subnet 255.255.214.0

imho :)

#9 User is offline   rv31 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 03-February 09

Posted 11 February 2009 - 07:04 PM

View Postiamtheky, on Feb 11 2009, 12:24 PM, said:

You get to play with the bits that are 'off', regardless of configuration. So in 255.255.214.0 (11010110=214)

pick any IP - we will go with 192.168.134.240 - I want to know what other IPs I could talk to

Knowns:

255=must have 192 in the 1st octet
255=must have 168 in the 2nd octet
214=????
0=can have any number 1-254 (0 if its not the network) in the 4th octet.


3rd octet of IPAddress= 134 = 10000110
3rd octet of subnet = 214 = 11010110

everything above a one is locked (bits 2,3 and 8 are locked in the on, bits 5 and 7 in the off) so modifying the remaining bits you get the following options for the third octet

134=10000110
135=10000111
142=10001110
143=10001111
166=10100110
167=10100111
174=10101110
175=10101111


so [192].[168].[any from the list].[1-254] would work for the subnet 255.255.214.0

imho :)



OK i think i've got it, thanks. My next question will tell if i have maybe.

So why do we need 3 private address ranges, 10.x.x.x, 172.16.x.x -172.31.x.x and 192.168.x.x – 192.168.x.x etc...

And from what i've read you shouldn't really have more than 500 hosts on any network and all of these private address ranges can host huge amounts of hosts according to how you tweak the subnet.

And then if you needed more than 500 hosts all you need to do is add another router and tweak the subnet for the 10.x.x.x so that the second network is on another subnet etc....

#10 User is offline   iamtheky 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 833
  • Joined: 11-November 08

Posted 11 February 2009 - 08:00 PM

class a, b, and c. if you need over 254 objects you would use a class b private range, if you needed more than a million you would use a class a?

http://tools.ietf.org/html/rfc1918

Quote

And from what i've read you shouldn't really have more than 500 hosts on any network


I would think that you read more than 500 objects on a segment if you are talking dividing with a router, and i wouldnt go over 50 without dropping at least a switch. I have never seen a recommendation for another 'network', or am even sure i completely understand what you mean by that.

#11 User is offline   GeneralMandible 

  • Major
  • PipPip
  • Group: Members
  • Posts: 223
  • Joined: 08-July 04

Posted 13 February 2009 - 06:21 PM

Here is a great whitepaper on IP addressing.
http://www.3com.com/other/pdfs/infra/corpi...n_US/501302.pdf

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy