@alex switch moves stuff between mac addresses. Router moves stuff between ip addresses
@valleyforge Does a switch have its own IP address? Does it have a computer in it you can shell into and flash firmware like a router? Can it do DHCP? Can you connect it directly to a modem without needing a router at all? Does it enforce an IP range on the devices connected to it?
@alex Switches don't ususally have IPs unless they're a "layer 3 switch" which is just a switch router combo. DHCP is done by routers not switches because you don't need to give out mac addresses. As far as switches care IP addresses don't exist. Usually they have shells for configuring and stuff