LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   configure server use a static IP address (https://www.linuxquestions.org/questions/linux-server-73/configure-server-use-a-static-ip-address-681764/)

limit_me 11-07-2008 07:38 AM

configure server use a static IP address
 
Hi,
I have a static IP address. when i try to connect to the static IP address , my router responds.

I want to setup the static IP address for my new pc that uses ubuntu 8.10 Desktop edition. So whenever I request for HTML Pages from the outside world, My Linux Desktop should answer the request.
I have already setup my apache HTTP Server (MySQL, PHP all are set): I can get the HTML Pages locally.

I don't know what packages are used for the above configuration.

I am relatively new to linux, I know basic shell scripting.
Please help me.

Thanks for the help.

klearview 11-08-2008 12:43 AM

You don't need any extra packages for the above configuration - all you need is to set up your network correctly:

1) set up your desktop with static ip address - since you're using Ubuntu NetworkManager is in charge of your networking. Either disable it and configure /etc/network/interfaces and /etc/resolv.conf OR go to Networks in System Administration, choose your interface and specify static ip address there.

Alternative way to the above is to continue using DHCP on your desktop but to set up your router to reserve a permanent ip address for the desktop based on the MAC address of the interface you're using.

2) Set up your router to route all the incoming traffic from outside world to port 80 to the ip address of your desktop. (Add other ports your Apache is using as appropriate)

3) If you have a firewall on your desktop (iptables or something else), ensure it's letting through traffic to port 80.

Done

AuroraCA 11-08-2008 12:52 AM

See:

https://help.ubuntu.com/8.04/serverg...b-servers.html

limit_me 11-08-2008 11:42 PM

thank you,
I have configured as you said. When i pinged then I get the result , but when i try to connect through the browser , i get no responses.
Now i am trying the second method: configuring the router to forward incoming traffic to my server.

Prabin.


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