A switch merely makes an ethernet connection between different devices.
A router connects 2 networks together (usually a cable/DSL line to an ethernet network) and many common ones these days offer DHCP services for sharing an internet connection.
A router connects 2 networks together (usually a cable/DSL line to an ethernet network) and many common ones these days offer DHCP services for sharing an internet connection.