Solved

DHCP and default gateway

Posted on 1997-07-14
8
763 Views
Last Modified: 2013-12-23
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?
0
Comment
Question by:johnsm
  • 4
  • 3
8 Comments
 
LVL 1

Expert Comment

by:sniderd
ID: 1561979
Is your default gateway the same for all computers? If so, you can define it in DHCP.
0
 
LVL 1

Author Comment

by:johnsm
ID: 1561980
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
 
LVL 5

Accepted Solution

by:
cer earned 50 total points
ID: 1561981
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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
LVL 5

Expert Comment

by:cer
ID: 1561982
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
 
LVL 1

Author Comment

by:johnsm
ID: 1561983
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
 
LVL 5

Expert Comment

by:cer
ID: 1561984
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
 
LVL 1

Author Comment

by:johnsm
ID: 1561985
When this question moves to the 'previously answered questions' section, the comments will go away.
0
 
LVL 5

Expert Comment

by:cer
ID: 1561986
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

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Top cover replacement dell latitude d620 12 99
Cannot Change Local DNS 9 71
No internet connection message when there is - multiple software 4 89
Skype password reset 1 28
Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
This article is in response to a question (http://www.experts-exchange.com/Networking/Network_Management/Network_Analysis/Q_28230497.html) here at Experts Exchange. The Original Poster (OP) requires a utility that will accept a list of IP addresses …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question