Calculation of IPv4 addresses

Adresse IP

NetID

The netID is obtained by performing a binary AND between the IP address and the mask, which gives:

Le NetID de l'adresse / est

HostID

The host ID is obtained by performing a binary AND between the IP address and the inverted mask, ie by changing all the bits 0 to 1, and the bits 1 to 0 of the mask.

The HostID of the address / est

Broadcast

By definition, the broadcast address is obtained by passing all the bits of the hostId part of the IP address to 1. This is obtained by performing a binary OR between the IP address is the reverse mask.

The broadcast address of the address / East