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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHCP and multiple IP addresses on one card

Status
Not open for further replies.

mrscary

Programmer
Mar 7, 2003
151
GB
On my domain I have at my disposal 8 public static IP addresses as well as the domain range that I use.

Let's say, for example, that my server is at 192.168.0.1 and that is running DHCP. All seems well on the network.

I now connect my network to the internet via a router - the router is at 192.168.0.2 (for example) - and I change the DHCP scope options to give all PCs that gateway. All is well - and now everyone can connect to the internet.

On my server, I assign it another IP address (on the same NIC) - lets say 1.2.3.4 and this is the public IP address that I have. I have also assigned 1.2.3.5 as the public IP address to the router. So now my server has 1.2.3.4 with gateway 1.2.3.5 was well as 192.168.0.1 etc - and all is well - I can now host websites and collect SMTP directly on my server.

However when I access the net - the the IP header that my server gives out is that of the router - (as it is using that as the gateway and the 192.168.0.1 is the main IP address of the server) - and this is correct. However, I want internet sites to recognise the IP address of my server when it makes web access - so I change the order of the IP addresses (and gateways) round on the server - such that 1.2.3.4 is now the primary address.

All seems to be well - however now the DHCP server stops serving. PCs booting up do not get given an IP address from the DHCP server - indeed they seem not to see it at all. It seems that the server is now trying to bind to 1.2.3.4 - but I want it to bind to 192.168.0.1

Any suggestions folks?

Hollingside Technologies, Making Technology work for you.
 
Put in a second NIC to handle your public IP needs.

I'm Certifiable, not certified.
It just means my answers are from experience, not a book.
 
Hmm...that doesn't seem to be a very good way perhaps of solving the issue - if for no other reason than my router/switch that the server is connected to is full. :(
So I would need to buy another NIC (£10) and another switch (> £10!)

Is that the only way around the issue?
BTW - thanks for the reply - just cos I am not happy with the answer - doesn't mean that I am not happy that you posted it - if you see what I mean.

Tsk..Microsoft and their non-configurable DHCP servers...



Hollingside Technologies, Making Technology work for you.
 
Lander215 has the correct solution. But, maybe I'm missing something, what is wrong with leaving the public IP (1.2.3.4) with the router. Have the router assign a dedicated IP (NAT if you will)with the proper port assignments to the file server for the purposes of web access. It can be 192.168.0.1 All outside web services requests to the public IP will be redirected to 192.168.0.1, therefore you shouldn't have an internal DHCP problem.

The known is finite, the unknown infinite; intellectually we stand on an islet in the midst of a limitless ocean beyond comprehension. Our business in every generation is to reclaim a little more land
 
The **main** reason for wanting the public address visible when the server used it - is because an internet radio station that I listen to, only allows 2 requests per hour per IP address....



Hollingside Technologies, Making Technology work for you.
 
Got around it by having the router act as the DHCP server...and not use the windows 2000 server one.

Hollingside Technologies, Making Technology work for you.
 
Well, such a serious problem solved. Kind of like putting out a trash can on fire with a tanker plane.

I'm Certifiable, not certified.
It just means my answers are from experience, not a book.
 
Never said it was a "serious problem" :D

But once it became a problem - it was a technical challenge - and you never know, for someone out there, it may be a serious problem and now they can find some clues about it in this thread.

Thanks for everyone's help and input here.

M.

Hollingside Technologies, Making Technology work for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top