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

So right now I have this: <----> <----> PCs (,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: 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



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!

|improve this answer|||||
  • "also have to configure the gateway and dns server (the modem/router: on each PC.". The router/modem is being used as gateway and dns server. – Miguel Ping Oct 27 '09 at 12:22
  • Besides, I don't need to have a permanent dhcp lease. I just don't want to configure gateway/dns for each pc. – Miguel Ping Oct 27 '09 at 12:23
  • You also said you needed some of your machines to have a fixed IP address. You have two choices: manually configure those machines (IP address, DNS, gateway), which you've said you don't want to do; or set up the DHCP server to always give those machines the same IP address (eg a permanent lease) plus DNS and gateway. – James Muscat Oct 28 '09 at 10:36
  • Solved. My router's dhcp was conflicting with my modem/router's dhcp. I disabled one of them. – Miguel Ping Nov 3 '09 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.