Just connect them all via Ethernet cables to a 24 port switch that connects to a router that will assign IP addresses, unless you need to segregate them into subgroups. If you want to use wireless it is a little more tricky because that many clients will overload a consumer quality wireless radio.
What kind of connections can you make, wired, wireless, or both?