I want to respond to clear up some confusion which seems come up often with using a layer3 switch. Most people seem to setup the layer 3 switch the same as a layer2 switch where the router is handling the VLANs. This is not the best way for a layer3 switch. Yes it will work but you are not using the layer 3 switch as a layer3 switch. You need to let the layer3 switch do the routing. It has the bigger backplane over the router and can free up the load on the router.
You do this by the...
Setting up a layer 3 switch to do IP VLAN Routing
You do this by the...
Setting up a layer 3 switch to do IP VLAN Routing