-   Linux - Networking (
-   -   Network - dynamic ip (

Skaan 05-27-2005 06:40 AM

Network - dynamic ip
I have Debian woody with apache, mysql and php installed
now i want to get his ip adres from the network dynamicly
so i changed the eth0 (etc/network/interfaces) to dhcp (this works for a direct link to the internet!)
But i do not want him connected directly to the internet, he is just connected to a hub and should get his ip-adress automaticly just like any other computer here. To say it in short he does not play DHCP server!! He only plays a role as a webserver for a local intranet in php.
But he cant get a connection to the internet.

Any help?

auximini 05-27-2005 07:01 AM

So you want the webserver to get an IP address from the DHCP server but you don't want it to be allowed to access the Internet outside the network?

Is this your DHCP server serving requests? If it is, you could create a special entry for your webserver and not assign it a gateway. That should stop it from sending outside packets.

Skaan 05-27-2005 08:19 AM

I solved it another way. I gave him a static ip-adress, and i see the page in apache now. But thnx for the fast response anyway

All times are GMT -5. The time now is 11:24 PM.