Hi,
Im running ubuntu server 10.10 on my wirtual mashine at home.
For now i have few service installed and configured:apache with phpand mysql support,ftp,phpmyadmin..
My ip address is not static, i tryed to configure by following some guide but without success.
First i edit this in /etc/network/interfaces (changing dhcp to static
Code:
# The primary network interface
auto eth0
iface eth0 inet static
address (adding some random ip address - lets say the address which is granted from previous dhcp configuration)
netmask 255.255.255.0
broadcast -.-.-.255
network -.-.-.0
gateway my.gateway.address.
Then i edit /etc/resolv.conf
Code:
nameserver (changing to my.gateway.address.10)
domain localdomain #
search localdomain # those 2 not changing
then in some guide it says to remove dhcpclient if it's installed.. so i enter this:
Code:
sudo apt-get remove dhcp-client
then reboot network adapter with ( ~networking restart) or just reboot server.
So the address and configuration is stored, but i cant for example ping www.google.com
...dont have internet conection and i cant connect with browser to test my ftp or apache(...dont recognize address)
I think im something doing wrong with nameserver,domain and search (/etc/resolv.conf - in global)
This all is a bit confusing for me...
Can someone explain me where is my mistake and help me configure static ip for my server
Bookmarks