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?
Layer 2 switch
Bridge
Router
Hub
Layer 3 switch