General Networking Doubt regarding IP address

I had a general query about adding an IP address to a host in Linux.
In one of the lectures, I saw the IP address is added as follows :
sudo ip addr add 172.16.239.16/24 dev eth0

This will assign 172.16.239.16 IP to the host system…right?
Doesn’t the “/24” define a range of IP address for a subnet? shouldn’t that be “/32” which is a single IP address?

And I also saw that we were adding multiple IP addr with different network address for a jump_host on the same ethernet adapter (eth0). Shouldn’t an adapter be associated with single IP?

Can someone please clear this concept for me?

Hi anish9461,

The concept of creating or configuring multiple IP addresses on a single network interface is called IP aliasing. IP aliasing is very useful for setting up multiple virtual sites on Apache using one single network interface with different IP addresses on a single subnet network.

The main advantage of using this IP aliasing is, you don’t need to have a physical adapter attached to each IP, but instead, you can create multiple or many virtual interfaces ( aliases ) to a single physical card.

Referred to :
https://www.tecmint.com/create-multiple-ip-addresses-to-one-single-network-interface/