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 following:
Setup the router off an access port on a VLAN. Run DHCP from the switch or a separate sever using DHCP RElAY. Add routing statements for the other VLANs to the router pointing to the switch. Run the router without VLANs defined and no DHCP, set the router IP address to fit the access port network on the switch. The switch is the default gateway for the clients and the router is the default route for the switch.
This is the way I run my setup. The switch is faster at routing VLAN traffic than the router.
PS
If the DHCP server in consumer routers was more sophisticated you could use DHCP RELAY with a router instead of a PC based DHCP server so the router could perform DHCP but I have not seen it in the routers I own. The routers are just too low tech when it comes to DHCP.
You do this by the following:
Setup the router off an access port on a VLAN. Run DHCP from the switch or a separate sever using DHCP RElAY. Add routing statements for the other VLANs to the router pointing to the switch. Run the router without VLANs defined and no DHCP, set the router IP address to fit the access port network on the switch. The switch is the default gateway for the clients and the router is the default route for the switch.
This is the way I run my setup. The switch is faster at routing VLAN traffic than the router.
PS
If the DHCP server in consumer routers was more sophisticated you could use DHCP RELAY with a router instead of a PC based DHCP server so the router could perform DHCP but I have not seen it in the routers I own. The routers are just too low tech when it comes to DHCP.
Last edited: