How network 6 computers with a switch

if you're using more than one IP subnet for those 6 devices then you'll also need a layer 3 routing device (i.e., a router) to enable communication between subnets.

good luck! 😉