IP-ADDRESS and Subnet mask

edited September 2007 in Science & Tech
Hi all.
In a LAN if i configure one PC with
1st PC
IP=192.168.0.2
Subnet Mask=255.255.0.0
and another PC with
2nd PC
IP=192.168.0.4
SubnetMask=255.255.255.0
and from 1st PC if i ping 192.168.0.4 then will the reply come ?
I thought that since the subnet mask are different i.e. 1st PC is on Class B network and 2nd PC on Class C network. There must be no communication.
but to my surprise i got the ping reply. :~
can anybody please make me clear about this matter.
Thank you very much

Comments

  • TexTex Dallas/Ft. Worth
    edited September 2007
    omiz wrote:
    Hi all.
    In a LAN if i configure one PC with

    and another PC with

    and from 1st PC if i ping 192.168.0.4 then will the reply come ?
    I thought that since the subnet mask are different i.e. 1st PC is on Class B network and 2nd PC on Class C network. There must be no communication.
    but to my surprise i got the ping reply. :~
    can anybody please make me clear about this matter.
    Thank you very much


    You can ping it.....

    Cowboy
  • edited September 2007
    Hi Tex
    Yes I can ping.
    does any body body knows why i can ping ; (from) Class A network to Class B network.
    thanks
    btw as far as i know the subnetmask determines the class of IP.
    Am i wrong ??
    Thanks
  • primesuspectprimesuspect Beepin n' Boopin Detroit, MI Icrontian
    edited September 2007
    Because your subnet on PC A (255.255.0.0) makes it sit on a class B network - your 192.168 class B INCLUDES 192.168.0

    The Class B would be:

    192.168.0
    192.168.1
    192.168.2
    etc...

    So since PC B sits on 192.168.0 which is on your class B defined by 255.255.0.0, you can see it.
  • TexTex Dallas/Ft. Worth
    edited September 2007
    Because your subnet on PC A (255.255.0.0) makes it sit on a class B network - your 192.168 class B INCLUDES 192.168.0

    The Class B would be:

    192.168.0
    192.168.1
    192.168.2
    etc...

    So since PC B sits on 192.168.0 which is on your class B defined by 255.255.0.0, you can see it.

    You are SOOOOO much better at networking then me prime... (grin)

    Cowboy
  • edited September 2007
    Thanks Primesuspect.
    It's as clear as sunny bright day :D
    Thanks once again icon14.gif
Sign In or Register to comment.