If use HUB, connect one PC to your Modem. Then share the internet service of this PC. Config other PCs to connect to the first PC thru HUB.
In this config, the first PC must be up and running all the time as a gateway/server, otherwise other PC can not access internet.
If use Router, no need to config anything on PC besides IPs, gateways, ...