LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Network - dynamic ip (http://www.linuxquestions.org/questions/linux-networking-3/network-dynamic-ip-327627/)

Skaan 05-27-2005 07: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 08: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 09: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 01:54 PM.