static IP to dhcp :o

Discussion in 'Installation/Configuration' started by toyito, Oct 25, 2005.

  1. toyito

    toyito New Member

    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.


  2. falko

    falko Super Moderator Howtoforge Staff

    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
  3. toyito

    toyito New Member


    Thank you ill tryit


Share This Page