HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   static IP to dhcp :o (

toyito 25th October 2005 15:20

static IP to dhcp :o
Hi all, just a small question...can you tell me how can i change the original IP settings from the static address to a DHCP generated IP ( is a public address however is dhcp generated from my ISP, is the same IP ever.)
I have a fresh Ubuntu 5.10 installation working very fine whit the static IP.
I need to put this server online as possible and i need to know if theres a way to do that.



falko 25th October 2005 18:59

Edit /etc/network/interfaces and put the following into it (I assume your network interface is eth0):


# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

Then restart the network:

/etc/init.d/networking restart

toyito 25th October 2005 22:02

Thank you ill tryit


All times are GMT +2. The time now is 22:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.