It's rather important to understand where that number /24 comes from.
You should see an IP address as a string of bits.
And IP address is a string of 32 bits.
The first bits are the "network address". They determine to which network a packet needs to be sent.
The last bits are the "host address". They determine to which machine on a network the packet needs to be send.
How many bits are "the first part" and how many bits are "the second part" ?
You get to determine that yourself.
You do this with the "prefix-length". Aka a /24 means that 24 bits are reserved for the first part (the network address) and the remaining bits are for the second part (the host part). A /24 means 24 bits network address, and 8 bits (32-24=8) for the host address.
With 8 bits for the host part, you can have maximum 2^8=256 hosts on a network. (In practice, 254 to be precise).
The /24 notation is "relatively" new. It was introduced somewhere in the mid-nineties.

Unfortunately lots of people, and lots of user-interfaces still use the old concept. That was called a "subnet-mask". it's the same thing, just a different notation.
Basically you take a 32-bit long bitstring. You set all the bits for the network part to 1. And all the bits for the host part to 0. You then convert the bitstring to the notation of a regular IP address. 255 means 8 bits in a row (2^7-1). 255.255.0.0 means 16 bits in a row.
So if you want to say that the network part of your addresses are 8 bits long, you can say either: "we are using a /8". Or you say "my subnet mask is 255.0.0.0". So a /16 is also called 255.255.255.0. You yourself are using a subnetmask of 255.255.255.0, which can also be called /24. A /23 means your network-part is 1 bit shorter, and your host-part is 1 bit longer. Written as a subnet-mask, a /23 becomes 255.255.254.0.
Others above said the same thing. But when you don't realize that the 24 in /24 means "my network part of the address is 24 bits long", you'll never understand what it all means.
If I were you, to make things easier, I'd go from a /24 to a /16. That's going from a mask of 255.255.255.0 to 255.255.0.0. You then have 16 bits for the host part. And thus you can then have 2^16-2= 65000 hosts on your ethernet. Much simpler.