Router – Linksys WRT160NL & ADSL modem/router – WAN port

adslbridgemodemrouterrouting

I have a router/modem at ip 192.168.1.254. I also have a linksys router connected to the modem through the LAN port.

So right now I have this:

192.168.1.254 <—-> 192.168.1.1 <—-> PCs (192.168.1.2,etc)

The problem is, I have to assign a fixed ip to my PCs (others work in dhcp, I dont know exactly how), and I also have to configure the gateway and dns server (the modem/router: 192.165.1.254) on each PC.

Can I set up my router to achieve the following:

  • Use only dhcp
  • No need to configure gateway on PCs
  • No need to configure dns server on PCs

?

Best Answer

In general: you should be able to configure your DHCP server to assign permanent leases based on MAC address to certain clients. I have DD-WRT set up on my WRT54G router to do just this - so certain machines on my network will always have the same IP. Hunt around for the options in your router's firmware, see if they're there :-)

DHCP will also handle DNS and gateway configuration - so you should just be able to enter these values on your DHCP server (you didn't specify which of your routers is handling it) and clients will pick it up automatically. Indeed, that's the primary function of DHCP!