URGENT: Can I assing 192.168.0.0 to my PC ?

Status
Not open for further replies.

Faun

Wahahaha~!
Staff member
Its a network address but can i use it as a host address, in other words can i assign 192.168.0.0 to my PC.


If yes then whats the advantage ?
 

suraj

Journeyman
T159 said:
Its a network address but can i use it as a host address, in other words can i assign 192.168.0.0 to my PC.


If yes then whats the advantage ?

Please give little bit extra explanation.
 

Zeeshan Quireshi

C# Be Sharp !
T159 said:
Its a network address but can i use it as a host address, in other words can i assign 192.168.0.0 to my PC.


If yes then whats the advantage ?
No, you can't in most cases, but there are some exceptions!

Also , there's no advantage in having this IP address , it's as normal as any IP address in a network .
 
OP
Faun

Faun

Wahahaha~!
Staff member
Zeeshan Quireshi said:
No, you can't in most cases, but there are some exceptions!

Also , there's no advantage in having this IP address , it's as normal as any IP address in a network .

Thanks

But to assign 192.168.0.0 , i had to change the default subnet mask (255.255.255.0) to 255.0.0.0

Now, whats the reason behind it ?
 
OP
Faun

Faun

Wahahaha~!
Staff member
mediator said:
Where did u read that?

I changed the ip address of my NIC to 192.168.0.0 myself.

But it wasnt accepting until i left the last three octets of the subnet mask as 0 and first octet as 255.

these values of subnet mask works perfectly:
255.0.0.0
253.0.0.0
252.0.0.0
 
S

SE><IE

Guest
Lets go to the basics. A 192.168.0.0 in binary is 11000000.10101000.00000000.00000000
Since last 20 bits are all 0 you must use a mask which covers 4 bits maximum of the second octet. i.e., you can use only 128, 192, 224 or 240 in the second octet.
Hope you got it :)

edit:
Oh! BTW, remmeber you can put the value of a bit in a subnet mask as 1 only if all bits on its left are also 1. So the valid values are 128, 192, 224,240, 248, 252, 254, 255
 
OP
Faun

Faun

Wahahaha~!
Staff member
SE><IE said:
Lets go to the basics. A 192.168.0.0 in binary is 11000000.10101000.00000000.00000000
Since last 20 bits are all 0 you must use a mask which covers 4 bits maximum of the second octet. i.e., you can use only 128, 192, 224 or 240 in the second octet.
Hope you got it :)

edit:
Oh! BTW, remmeber you can put the value of a bit in a subnet mask as 1 only if all bits on its left are also 1. So the valid values are 128, 192, 224,240, 248, 252, 254, 255

Thanx for reminding me basics :)

But 000.00000000.00000000 counts to 19 zeros and u said 20 zeroes.
So 255.248.0.0 should work as subnet mask but it didnt ?
 
S

SE><IE

Guest
ma bad, its 19 actually. Anyway, the point is that there must be atleast one bit in the IP that is not masked. If you use 248 then we get
11000000.10101000.00000000.00000000 << IP
11111111.11111000.00000000.00000000 << Mask

Clearly there's just no bit that stands apart hence you can use only 240 as max value for second octet.
Hope this makes it clear
 
OP
Faun

Faun

Wahahaha~!
Staff member
SE><IE said:
ma bad, its 19 actually. Anyway, the point is that there must be atleast one bit in the IP that is not masked. If you use 248 then we get
11000000.10101000.00000000.00000000 << IP
11111111.11111000.00000000.00000000 << Mask

Clearly there's just no bit that stands apart hence you can use only 240 as max value for second octet.
Hope this makes it clear

Thanx buddy

u hav explained well and cleared my doubts:)
 
Status
Not open for further replies.
Top Bottom