A 4 byte ip address consists of __________
|A||Only network address|
|B||Only host address|
|C||Network address & host address|
|D||Network address & MAC address|
The correct answer is :C
- In the case of IPv4 (Internet Protocol version 4), the most commonly used IP version, an IP address is made up of 32 bits, which are divided into four 8-bit bytes. Each of the four bytes is separated by a dot, and represents a decimal value ranging from 0 to 255.
- The 32-bit IPv4 address is divided into two parts: the network portion and the host portion. The size of these two parts depends on the address class. In classful IP addressing, there are five classes of IP addresses: A, B, C, D, and E.
- The IP address consists of two distinct segments: the network portion and the host portion. The network portion serves to delineate the affiliated network that the device is linked to, whereas the host portion pinpoints the precise device within said network. The magnitude of the host and network addresses varies according to the classification of the address. To illustrate, in Class A addresses, the inaugural byte signifies the network portion, while in Class B addresses, the initial two bytes fulfill this role.