An alternative to legacy inter-VLAN routing is to use VLAN trunking and subinterfaces.
VLAN trunking allows a single physical router interface to route traffic for multiple VLANs.
The physical interface of the router must be connected to a trunk link on the adjacent switch.
On the router, subinterfaces are created for each unique VLAN.
Each subinterface is assigned an IP address specific to its subnet
or VLAN and is also configured to tag frames for that VLAN.