Router providing DHCP through a switch?

Joined
Dec 5, 2008
Messages
21
I am wondering if I can get my router to work if it is connected to a switch with other computers and the cable modem all plugged into this switch. That is, I have a cable modem; then I plug it into the switch; I plug the router into the switch, as well as other computers. Can the router still work to share the one internet connection? The cable only provides one external IP address. Or is it mandatory that the switch has to go through the router in order for it to do DHCP?
 
it should go internet -> cable modem -> router -> switch... the router is the device associated with the public address, it is the device that does the network address translation, and it is the device that will hand out private addresses to your client machines.
 
it should go internet -> cable modem -> router -> switch... the router is the device associated with the public address, it is the device that does the network address translation, and it is the device that will hand out private addresses to your client machines.
This. More specifically to be clearer to the OP, the cable modem should be plugged into the WAN port of your router (WAN as in Wide-Area-Network vs. LAN Local-Area-Network...) The switch and other computers will be on the LAN side ports.
 
it should go internet -> cable modem -> router -> switch... the router is the device associated with the public address, it is the device that does the network address translation, and it is the device that will hand out private addresses to your client machines.

I am aware of that, but I am wondering if there is any way for it to work the way I suggested. :cool:
 
This. More specifically to be clearer to the OP, the cable modem should be plugged into the WAN port of your router (WAN as in Wide-Area-Network vs. LAN Local-Area-Network...) The switch and other computers will be on the LAN side ports.

That is why I am pretty sure it will not work, but wanted to ask to see if there is something I was unaware of. So, there is no way to get it to work the way I suggested?
 
It could work, but it's a horrible design. You have everything on the same broadcast domain. All your broadcasts will hit every device (DHCP, ARP, etc.), which could eff things up. If you connected the modem and something else (PC1, for instance) to the switch before the router, the device (PC1) will likely pull your only usable IP address from your ISP.

If the switch supports VLANs you'd just configure two VLANs, plug things into the proper VLAN amd everything should work fine.
 
You could create a seperate VLAN on the switch for the router/modem to share. That way, you'd plug the WAN port into this VLAN, and the LAN port into the other VLAN. Basically, you could have everything plugged into that switch. The question is, why would you ever do such a thing?

A router provides DHCP through its LAN ports. If you connect one router LAN port to your switch, which is in the same VLAN as your hosts, DHCP works fine. I'm really not understanding your reasoning here.
 
I'm really not understanding your reasoning here.

Maybe he wants to use the wireless portion of it and needs the router closer to where he is.
that is the only reason I can think of.

My setup is like this, Cable Modem>Router>GigE Switch>Computer, Server, & Printer>GigE Switch>Main Rig, HTPC & 360>GigE Switch> 2 other PC's.
 
Back
Top