Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have built a very simple LAN in Packet Tracer: a PC, a dedicated DHCP server, a switch and a router. - here is this LAN

The router is meant to be a default gateway in the LAN, and all I want is that the DHCP server would always assign a default gateway address, that it sends to all devices in the LAN, to the router. Router FastEthernet port is configured to get an address from the DHCP server too, using:

Router(config-if)#ip address dhcp

Is it possible to do so, and if yes, how? If no, why? Thank you!

share|improve this question
up vote 3 down vote accepted

You don't say what DHCP server code you're running, but it's definitely something allowed for in the DHCP spec. In ISC's dhcpd, you'd use the routers option, perhaps as follows:

subnet netmask {
 range ;
 option routers ;

which will set the default route for all the clients to

Since your router also gets its address via DHCP, you'll need to set up a special lease for the router's MAC address, so that it always gets the address (to match that set in the routers option above), and so that it doesn't get fed its own address as a default route.

share|improve this answer
Thank you! I have just read Packet Tracer's help section on Servers, and there's not a word about how to configure DHCP leases in the DHCP subsection of that help page. It's probably not possible with dedicated DHCP in PT. – Tosh May 26 '12 at 16:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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