Ubuntu LAMP Server Installation With Screenshots -- Debian Admin:
"Configuring Static ip address in Ubuntu server
Ubuntu installer has configured our system to get its network settings via DHCP, Now we will change that to a static IP address for this you need to edit Edit /etc/network/interfaces and enter your ip address details (in this example setup I will use the IP address 172.19.0.10):
#vi /etc/network/interfaces
and enter the following save the file and exit
# The primary network interface
auto eth0
iface eth0 inet static
address 172.19.0.10
netmask 255.255.255.0
network 172.19.0.0
broadcast 172.19.0.255
gateway 172.19.0.1
Now you need to restart your network services using the following command
#/etc/init.d/networking restart
You need to setup manually DNS servers in resolv.conf file when you are not using DHCP.
#vi /etc/resolv.conf
You need to add look something like this
search domain.com
nameserver xxx.xxx.xxx.xxx
This is really simple and easy server installation for new users and who wants a quick server."
My server will not get an IP from a DHCP server... I'm guessing it is because I installed it as a DNS server as well, but not positive. Anyway, I previously set the IP with some ifconfig commands, but upon reboot that info disappeared. So I found this as a more permanent fix. ;-)
Tuesday, March 11, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment