Hello,
The gateway is enabled on the core switch, and the core switch is divided into VLANs and configured with different network segments.
Then the interface connecting the core switch and the router is enabled for access.
It is equivalent to VLAN being terminated on the switch, and a layer 3 route is run between the switch and the router.
Thanks