Layer 2 switching provides the following:
To be able to route packets , a router must know, at a minimum , the following:
Neighbor routers from which it can learn about remote networks
Possible routes to all remote networks
The best route to each remote network
How to maitain and verify routing information.