Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHCP issue?

Status
Not open for further replies.

dalec

Programmer
Jul 8, 2000
191
US
Brief background, I have a network, I have about 10 static IP's (not local IP's), I have used these since I first set this up about 2 years ago. What I want to do, instead of using my IP's for my workstations and servers, I want to use DHCP with local address'. I installed DHCP on on of the servers and gave it a local scope (192.168 etc) which doesnt seem to work for the workstations. If I change the scope to available IP's I'm not using but don't have much of, it will issue the IP's.

My router is an ISDN router and does not have DHCP capibilities. I'm not sure if I'm making sense correctly, but what I'd like to do, is have my webservers continue the way they are, but, also, have my local machines running local IP address given form the DHCP server (192.168 etc). I did try to put another network card in the server running DHCP and gave it a 192.168 address, but it didnt issue it to my workstation, if I manually entered a local IP in my workstation, it would see the DHCP server, but, could not see any of the other servers (nor the internet connection) that is on the other ip address (216.87 etc.).

Any help is greatly appreciated, I've tried different configurations and havent had any success.

thanks in advance.
Dale.
 
Sound slike you have a lot going on. On your workstations, did you configure them for DHCP? What about DNS? Did you set up DNS on your local server and configure DHCP to provide that information to clients? Your servers DNS should list your ISP DNS as a forwarder. You can keep the server with 1 NIC, just make sure that the ISDN Router is configured to have the same IP Subnet as the 192.168.x.x subnet you are using.

As a test, set up the scope of 192.168.x.x and be sure to ENABLE the scope in DHCP Manager. On the workstation, configure it to obtain an IP automatically and also to get DNS info automatically. At the workstation, open a command prompt and type the following:

IPCONFIG /RELEASE <enter>
IPCONFIG /FLUSHDNS <enter>
IPCONFIG /RENEW <enter>
IPCONFIG /REGISTERDNS <enter>
IPCONFIG /ALL <enter>

See if that has gotten you a DHCP address.

 
I removed the DHCP scope I had and created a new one, made sure that the scope was on the subnet (255.255.255.240) as everything else and the ISDN router, set the dns with the two nameservers of my ISP and one of my own. The workstation is configured to obtain an IP address and DNS information automatically.

Followed your instrucations, and the workstation still ends up with the Automatic private address (the 169.254.242.161) address.

I know it's something I'm missing, it seems to be technically correct.

thanks for you help.
 
Im not sure what your doing wrong but I will write up quickly a setup for DHCP and you can work out if it is different to yours

First thing's first.. are you wanting this DHCP server to also be your gateway for these PC's to get to the outside world?

If so...

SERVER

Install 2 nic cards (if you connect to your modem via network card) One set with an external IP, one set with an internal IP (usually 192.168.1.1)

Setup you scope etc 192.168.1.10-192.168.1.250 for example (you would usually leave 1-9 for servers etc)

Make sure that in your External Connection is able to SHARE THIS CONNECTION (set within the properties)

CLIENTS

Within Network Connections go to Local Area Connection (or similar) Properties and select TCP/IP and make sure that it is set to Automatically Obtain IP Address.

You should also have a DNS Server to allocate local dns names etc and get to the outside world. can be done on the same box if you want.

You ALSO need to get a firewall for each external connection. Their is no REAL reason these days to have 10 public IP's unless you are hosting a lot of services. even still most can be done through port forwarding and a DMZ. You should look into this if you dont have already.

hope this helps I havent used win2k for this for a long time... ive turned to Linux for DHCP/Gateway etc over the last years.

Thanks
Chris
 
When I added the internet connection sharing to the server machine (the one running DHCP) it change the 2nd network card from 192.168.100.1 to 192.168.0.1, that's OK with me but I thought that was a little wierd. It did give the workstation a IP address, I'm a little confused why it took this to do that?? Anyways, the workstations still don't get internet access, I'm wondering about the proxy settings on the workstations, does that need to be set??

Thank you for all your help, I'm almost there.
 
Yes if you are running a proxy server you will need to either set the proxy info in IE or install the proxy client.
 
Ok I set things up as described, change the proxy setting in internet explorer, now I just get &quot;Under construction&quot; for each site I try to bring up. Should my gateway on the DHCP server be the shared internet connection or the address of my router, and what should the IP be for the proxy server for the lan connection, I assumed it was the server that is sharing the address?
 
hmmm my diagram for something like what you want i think
ext PC`s have your Static IPs and int PCs work from the ICS you set up. notice ext1 and int1 are the same pc/server
each nic has seperate ips ext1 will be your static ip and int1 will be 192.168.0.1 (the ICS set ip)

internet
|
router
|
____________hub________________________________
| | | |
<-... ext4 ext3 ext2 ext1/int1(2 x NIC)
|
_______________HUB_
| | | |
<.... int5 int4 int3 int2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top