A switch is used to provide additional ports, expanding the capability of the router. A switch will not provide routing capability and should not be connected directly to the modem unless a DHCP Server is present elsewhere on the network. So the connection should be modem—router-switch.