Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is it a valid ip 1

Status
Not open for further replies.

jono261970

Programmer
Jun 28, 2002
182
GB
Hello,

I have a wireless access point connected to an ISDN router. 7 wireless laptops(mixture of win98/XP/2000). I am having a lot of problems with users losing there connection and being kicked out of shares..etc (usually after a couple of hours.

A friend of friend came round to look at it and told me that my Ip set-up was all screwed up and this is why my network is failing. I have the following structure which was given to my by Netgear when they helped me to set-up the router.

192.168.0.1/8 :255.0.0.0

Can somebody tell me if this private range is wrong and why it would cause problems. I was led to believe that it didn't matter what class an IP was if it were private. I could see an issue if it were a public address.

cheers,

jono

 
some private IPs
192.168.0.0 through 192.168.255.255

from you settings:
192.168.0.1/8 :255.0.0.0
means 192.0.0.0 through 192.255.255.255
which means not all IPs are private.
so, you have to use maximum:
192.168.0.0/16 (255.255.0.0)

usually all the people do:
192.168.0.0/24 (255.255.255.0)
if you have no mor than 254 computers in your local net


__
___
 
Your network should be setup with:

192.168.x.y
255.255.0.0

Assuming you have less than 250 computers, use any value for X that is between 0 and 255. Assign each computer an address value (y) between 1 and 254.
 
I agree with the other post however, since you only have seven wireless laptops I would use 192.168.1.x 255.255.255.0
this would break down the range to 192.168.1.1 thru 192.168.1.254.

192.168.1.0 network, 192.168.1.255 broadcast
Make sure your gateway on the wireless pc's point to the private ethernet port of the isdn router. Make the router 192.168.1.1 and this laptops 192.168.1.2 thru 192.168.1.8
subnet 255.255.255.0. “Reserve your right to think, for even to think wrongly is better than not to think at all”

Fisher CCNA, Network+
[americanflag]
 
Ok, thanks guys

I will use 192.168.1.x/8 and use 192.168.1.1 for gateway.

cheers,

jono
A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
 



Gosh, this is confusing. I meant 192.168.1.1 through 192.168.1.8

So that is why i called it 192.168.1.x/8

Does 192.168.1.x/24 mean 1-24 hosts?

Jono
A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
 
The /# tells the computer how many bits in the IP address represent the NETWORK portion of the IP address and how many represent the HOST portion of the IP address .

If you say 192.168.1.20/24, that means that the NETWORK address is 192.168.1 (or the first 24 bits - (as each number in the IP address actually represents a combination of 8 bits when converted to binary)), and the HOST address is 20, as the leftover bits represent the HOSTS portion of the IP Address.

So, if you say 192.168.1.20/8, that means that the NETWORK address is 192. (or the first 8 bits), and the HOST address can be any combination of the last 3 octects (24 bits). This makes for fewer NETWORK addresses but on the other hand increases the amount of HOSTS you can put on each NETWORK.

So as you can see, the /# is significant in being able to determine which portion of the IP address represents the NETWORK and which portion of the IP address represents the HOSTS.

Hope I haven't confused you!

As per Accessdabbler's suggestion, try out this site...
Patty [ponytails2]
 
hi Patty,

Thanks for the explanations. I guess subnetting shouldn't be taken lightly. I have gone to the suggested URL and found it rather interesting.

I did get confused because I learned about IP classes and that if the first Octet was 110 (bin) or 192(dec)it would be a class c address which would mean that the first 3 octets (24 bits)would be network and the last octet (8 bits) would be for hosts.

So when I read the following paragraph it contradicted what I learned:-

"So, if you say 192.168.1.20/8, that means that the NETWORK address is 192. (or the first 8 bits), and the HOST address can be any combination of the last 3 octects (24 bits)."

I though a class A network used the last 3 octets for hosts?However I have only read the basic intro as the mrs called me away to go shopping....mannnnnn - I hate that!

Again thanks for taking the time to explains things.

jono
A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
 
Yes, the first octect of a 'standard' class C address falls within the range of 192 - 223,

I was refering to your previous post where you said,

"Ok, thanks guys

I will use 192.168.1.x/8 and use 192.168.1.1 for gateway".


The way you had written the notation there indicated that you planned to use only the first octect of your IP address for your NETWORK ID and would therfore have the range of the last three ocetcts left to assign to HOSTS.

That said, let's talk about CIDR...(in the interest of time, I pulled these quotes straight from the Internet ...)

What Is CIDR?

"CIDR is a new addressing scheme for the Internet which allows for more efficient allocation of IP addresses than the old Class A, B, and C address scheme".


Running Out of IP Addresses...

"There is a maximum number of networks and hosts that can be assigned unique addresses using the Internet's 32-bit long addresses.
Traditionally, the Internet assigned "classes" of addresses: Class A, Class B and Class C were the most common. Each address had two parts: one part to identify a unique network and the second part to identify a unique host in that network.
Another way the old Class A, B, and C addresses were identified was by looking at the first 8 bits of the address and converting it to its decimal equivalent".


Class A 8 bits 24 bits 1-126
Class B 16 bits 16 bits 128-191
Class C 24 bits 8 bits 192-223

Using the old Class A, B, and C addressing scheme the Internet could support the following:


126 Class A networks that could include up to 16,777,214 hosts each
Plus 65,000 Class B networks that could include up to 65,534 hosts each
Plus over 2 million Class C networks that could include up to 254 hosts each.



Restructuring IP Address Assignments

"Classless Inter-Domain Routing (CIDR) is a replacement for the old process of assigning Class A, B and C addresses with a generalized network "prefix".
Instead of being limited to network identifiers (or "prefixes") of 8, 16 or 24 bits, CIDR currently uses prefixes anywhere from 13 to 27 bits. Thus, blocks of addresses can be assigned to networks as small as 32 hosts or to those with over 500,000 hosts.
This allows for address assignments that much more closely fit an organization's specific needs".

"A CIDR address includes the standard 32-bit IP address and also information on how many bits are used for the network prefix. For example, in the CIDR address 206.13.01.48/25, the "/25" indicates the first 25 bits are used to identify the unique network leaving the remaining bits to identify the specific host".

I hope this helps!

Patty [ponytails2]



 
thanks :O)

jono
A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top