What is the primary function of a switch in a wired network?
To assign IP addresses to devices on the network
To forward data frames based on MAC addresses to connect devices within a network
To connect multiple networks and direct traffic between them
To terminate DSL or cable lines for internet connectivity