Skip to main content

Difference between hostid and netid in IP address


In classful addressing, an IP address of class A,B and C is divided into
two parts : netid and hostid.

The netid and hostid are of varying lengths, depending on the class of the address.

Netid: The part of an IP address that identifies the network.
Hostid: The part of an IP address that identifies a host in a network.

Class A: One byte netid three bytes host id
Class B: Two bytes netid Two bytes host id
Class C: Three bytes netid One byte host id

Example:
1.      IP address: 84.42.58.11
Binary Notation: 01010100 00101010 00111010 00001011
It is a class A IP address.
The network address /netid is 84.0.0.0
The host addresses /hostid is 0.42.58.11
2.     IP address: 144.62.12.9
It is a class B IP address.
The network address /netid is 144.62.0.0
The host addresses /hostid is 0.0.12.9



Comments

  1. its really very helpful for us.

    ReplyDelete
  2. Cool, but you didn't mention the Class C IP in the example. :|

    ReplyDelete
  3. fantastic job done .........so understoodable
    i think there is something which is called common sense "Anonymous"

    ReplyDelete
  4. example of class c is required

    ReplyDelete
  5. you can write like this: why not?
    netid:84.42.0.0
    hostid:0.0.58.11

    ReplyDelete
    Replies
    1. We can write if its a class B ip. For class C it would've been netid : 84.42.58.0 and hostid : 0.0.0.11

      Delete
  6. Thank You! It's realy helpful! :)

    ReplyDelete
  7. thanks a lot.
    Very clear and in understadable manner. :)

    ReplyDelete
  8. FOR CLASS C:-
    ip address : 210.50.23.1
    Binary Notation : 11010010 00110010 00010111 00000001
    (210 is between 192-223, so its class C. ok)
    Netid : 210.50.23.0
    Hostid : 0.0.0.1

    ReplyDelete
  9. FOR CLASS C:-
    ip address : 210.50.23.1
    Binary Notation : 11010010 00110010 00010111 00000001
    (210 is between 192-223, so its class C. ok)
    Netid : 210.50.23.0
    Hostid : 0.0.0.1

    ReplyDelete
  10. Netid 172.16
    Hostid 2.11
    Ip address 172.16.2.11
    Network address 172.16.0.0
    Host address 0.0.2.11

    I remumber that , i am not sure

    ReplyDelete
  11. thanks......its very easy to understand

    ReplyDelete
  12. Class A: 0.0.0.0 -> 127.255.255.255
    Class B: 128.0.0.0 -> 191.255.255.255
    Class C: 192.0.0.0 -> 223.255.255.255

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. good bro i rep http://9jawibe.xtgem.com

    ReplyDelete
  15. Thanks so much really helpful.

    ReplyDelete
  16. Need more lessons concerning networking and IP address

    ReplyDelete
  17. Really easy to understand brother

    ReplyDelete
  18. This comment has been removed by a blog administrator.

    ReplyDelete
  19. Teton Flask Recipes - Titanium Flask Recipes
    Teton Flask Recipes - Teton Flask Recipes I used the teton Flask recipe microtouch trimmer from titanium chords www.tfrecipes.com. It's really simple titanium rings for women for you to titanium exhaust wrap cook all your favorite titanium quartz

    ReplyDelete

Post a Comment