Link to home
Start Free TrialLog in
Avatar of johnsm
johnsm

asked on

DHCP and default gateway

I am marking this question as easy because I suspect that this must happen to almost everyone who has ever tried to set up DHCP on an NT network. I installed DHCP server on my NT 4.0 (SP 1) Server and my workstations can get an IP address just fine. However, they lose their default gateway setting! So with DHCP, I can't get off of the segment I'm on until I remove DHCP and set the ip address manually. Then the default gateway setting comes back and I am fine.

How do I get to keep a default gateway with DHCP?
Avatar of sniderd
sniderd

Is your default gateway the same for all computers? If so, you can define it in DHCP.
Avatar of johnsm

ASKER

Well, I will be using DHCP for multiple subnets across routers eventually. But right now I'm just trying to get it working on
then one subnet I am on now.

How do I define it in DHCP?
ASKER CERTIFIED SOLUTION
Avatar of cer
cer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Maybe I am wrong and you must/can configure the gateway in the DHCP manager by setting the "Options". Option #3 is IP-adress of the router. In the manager you can define groups of computer belonging to one subnet and give every group different options.
Avatar of johnsm

ASKER

cer, thanks for the try.

You are not exactly right on a couple of points so I am going to clarify that here so that others who see this question (and answer) in the future will not be confused. However, you did cause me to look in the right direction so I am giving you the points anyway.

You said 'the default gateway settings you set in the TCPIP options of the DHCP server are used.' This is not true. This setting is not passed to the client.

You said 'i believe the relay agent supplies the default gateway' for WANS. This is not true either. Usually routers are used as relay agents and none that I know of can handle this assignment.

You said 'you can not have more than one gateway'. This is not true either. You can have many gateways.

The comment you added to the end, however, is correct. Unfortunatly the comment will not be included with this answer when it gets posted, so I will state it again here.

In the DHCP manager there is a menu choice called options. Once you have set up a scope, you can highlight the scope, go into options, chose scope, and select the options you want to set for that particular scope. Option #003 is router. This is what gets passed as the default gateway to the client on that particular scope. It can be different for each scope, allowing you to have multiple gateways for multiple scopes.

Thanks.
Yes you are right. I gave the wrong answer at first, then (after looking in the server resourcekit) I corrected it with the following comment. However I forget to correct the statement about the number of gateways possible.
Out of my answere, my comment and your comment we could form a new answere. But this is not possible and not necessary since other people can read the answer and ALL comments.

Avatar of johnsm

ASKER

When this question moves to the 'previously answered questions' section, the comments will go away.
No, it's already there. The very first line of this page reads:

Here's the Previously Asked Question you requested...

I have all comments. If you don't see all comments, try reloading . If this not help write to support@experts-exchange.com to tell them about a bug.