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?
LVL 1
johnsmAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sniderdCommented:
Is your default gateway the same for all computers? If so, you can define it in DHCP.
0
johnsmAuthor Commented:
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?
0
cerCommented:
IP adress, subnet mask and gateway are submitted by the dhcp server. The default-gateway you enter in the TCP/IP options of the dhcp server is used. The DHCP server must have fixed entrys. Therefore the default gateway computer must have a fixed or reserved IP-adress.
This works if client and server reside in one subnet. If client is in another subnet it can not reach the dhcp server. In every subnet without a dhcp server you need a dhcp or bootp relay agent (this is a service which has to be installed). This is a server or workstation computer which passes the data on to the dhcp server. normaly you would install it on the router or gateway. This is not necessary if your router is RFC1542 compatible.
I belive the relay agent supplies the default gateway.
You can not have more than one gateway, so WS1 in Subnet1 goes to gate1 and WS2 in Subnet1 goes to gate2 is not possible if they both use the same dhcp server.


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

cerCommented:
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.
0
johnsmAuthor Commented:
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.
0
cerCommented:
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.

0
johnsmAuthor Commented:
When this question moves to the 'previously answered questions' section, the comments will go away.
0
cerCommented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.