If its a closed setup , you can use the switch as a router, by setting up SVI's as explained above.
But if you need routing somewhere else, aka, for example "the internet", then you have a router/firewall, that most likely does NAT/PAT towards your ISP.
You have two options.
1: Create a layer 3 network between that router and your switch, and create static routes on your router that tells your router to route the packets for the newly created networks towards your switch (and a 0.0.0.0 route on your switch that points towards your router/firewall).
2: OR, you use your router for all layer 3, and only use layer 2 vlans on your switch (this is the "normal option" in smaller networks).
This will of course require you to create these networks (L3) on your router / firewall, and have a dot1q trunk (a port with more vlans) on the connection between your router/firewall and your switch.
Both ways gives your network segmentation. But usually having proper segments with an ACL between them is done on the firewall (the switch CAN do ACLs , but its not , ehhh, "as nice looking" as on the firewall).
Does this help ?