Prerequisites
Install the Advanced License.
Enable IP routing globally on the switch.
Configure routing (RIP, OSPF, or static routes) on the switch.