IP address can be assigned in 2 ways



1.  Dynamic IP: - Dynamic IP is the changeable IP address which is automatically accepted by the hosts in two cases:
     a.  In case of configuring the DHCP server when we use the client server network.
     b.  In case of if we do not define the manual IP. If the NIC and its driver are installed and proper configuration is done then in the properties of TCP / IP, the radio button “Obtain an IP address automatically” is selected.
2.  Static IP: - This is the constant IP address. This IP address is defined manually by the user from the properties of TCP / IP.
Note: Whether we define the Static IP or Dynamic IP, both are classified as the ‘Private’ and ‘Public’ IP.
Private IP: - This IP can be used free of cost by a normal user. The range of private IP in class ‘A’, ‘B’, and ‘C’ are:
Class ‘A’    :         10.0.0.1                to      10.255.255.254
Class ‘B’    :         172.16.0.1  to      172.16.255.254
Class ‘C’    :         192.168.0.1          to      192.168.255.254
Note: The range of class ‘B’ 169.254.0.1 to 169.254.255.255 is reserved for MRIP (Microsoft Reserved Internet Protocol) / APIPA (Automatically Provided Internet Protocol Address).
Public IP: -This IP can be used only after paying the cost. This type of IP is used by the ISP (Internet Service Provider