The IP address bits that have corresponding mask bits as 1 represents the network ID and the address bits that have corresponding mask bits as set to 0 represent the host ID.ġ0.20.15.1 = 00001010.00010100.00001111.00000001īy comparing corresponding bits of address bits and mask bits we get, The default subnet mask for Class A IP address is 255.0.0.0. The first bit of the first octet is always set to 0. The IP address belonging to Class A uses only the first octet to identify the network and the last three octets are used to identify the host. Host ID in which are the bits are set to 1 is reserved for Direct Broadcast Address(for sending the data from one network to all the other hosts in another network ).Host ID in which all the bits are set to 0 is not assigned because this represents the network ID.Here, 2 IP addresses are subtracted because The number of hosts in any class is given by the formula: Number of Hosts= 2^hostBits-2. Host ID: It identifies your machine on the network. The number of networks in any class is given by the formula: Network ID: It identifies which network you are on. The IP address can be further be divided into two parts: Some bits of the IP address represents the network and the remaining bits represent the host. The order of the bits in the first octet of the IP address decides the class of the IP address.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |