You are configuring a device that needs to handle both switching within the same subnet and routing across different subnets in a mid-sized office network. Which of the following devices is BEST suited for this requirement?
Router
Bridge
Layer 2 switch
Hub
Layer 3 switch