key point, L3.
Most router interfaces are configured with an IP address. (exceptions abound, such as sub interfaces etc)
In the case of an L3 capable switch, once could define a physical port with an IP address, then connect it to
the router.
Off you go.