Default Gateway absent in IPCONFIG, no internet access

peacock_81

Distinguished
Feb 10, 2012
36
0
18,540
Hello,

Initially, I had a broadband router giving out IP addresses by DHCP.

I then installed a Windows 2003 server
I enabled DHCP server and DNS server
i disabled DHCP on the router

from a client PC
i released the DHCP IP address
i renewed the IP address

The IP address was given within 5 seconds, but...

The default gateway (only) is missing, so no internet access.

In the DHCP console, on the server, the lease is not registering

I think the problem is a DNS issue, but i do not know how to fix it.

I do not want to use the Router for DHCP.

thank-you for your help
 
Solution
Not sure what you did wrong but it is pretty simple to get a DHCP server configured on windows. It is not a DNS issue because DHCP is a broadcast protocol that assume no knowledge of anything. The server sees this and responds. The server must have given the pc a IP address, you should see the IP of the DHCP server in the IPCONFIG /all. The server must be configured to give the DHCP clients the IP of the router for the gateway to the internet.

I would start with having the server also give out a public DNS server like 8.8.8.8 in the DHCP settings just to get things working. Setting up a DNS server correctly can be quite a challenge at times. You really should not need a DNS server unless you actually have a domain.
Not sure what you did wrong but it is pretty simple to get a DHCP server configured on windows. It is not a DNS issue because DHCP is a broadcast protocol that assume no knowledge of anything. The server sees this and responds. The server must have given the pc a IP address, you should see the IP of the DHCP server in the IPCONFIG /all. The server must be configured to give the DHCP clients the IP of the router for the gateway to the internet.

I would start with having the server also give out a public DNS server like 8.8.8.8 in the DHCP settings just to get things working. Setting up a DNS server correctly can be quite a challenge at times. You really should not need a DNS server unless you actually have a domain.
 
Solution
I do have a domain. I am trying to do the microsoft exams, so none of this is for business.

I think you could be right about the DNS server order list
The DNS server order list on local area connection on the server was set to

1. local server ip
2. default gateway
3. public dns 1 (supplied by ISP)
4. public dns 2 (supplied by ISP)

So i will change it to
1. public dns 1 (supplied by ISP)
2. public dns 2 (supplied by ISP)
3. default gateway

but i do want to use this server as a DNS server
so on the client, i will list the server as the only NS server

I will post back after checking it out (it may not be tonight)
 
didn't work
The DHCP lease does come into the dhcp server console, after a 2 minute delay, although the IP address has already been given, but, the default gateway is missing
so no internet.
 
I am not sure....

In the scope options, there is a tick box, called DNS Servers
There was just one entry....the server ip
I added the other 2 public ips and demoted the server ip to last position.
I am not sure this is a good idea
i never remembere doing anything like this before with DHCP. i can't test anymore tonight or i will get in trouble with the missus. I will chck tomorrow.

I am still convinced its a DNS issue and nothing to do with DHCP.

Many thanks for your help.....i am gratful for the time you are giving to try and help.
 
In the scope, there should be also "Router" entry, besides DNS.
If you have properly set-up the IP parameters, your network will still work without DNS server (e.g. you should be able to "ping 8.8.8.8"). DNS comes only after that, to resolve "google.com" to whatever IP address(es) it is these days.
Since you are keeping both DHCP and DNS on the same server, it is good idea to set DHCP to register client' name with DNS