#1  
Old 25th October 2005, 15:20
toyito toyito is offline
Senior Member
 
Join Date: Oct 2005
Posts: 106
Thanks: 1
Thanked 1 Time in 1 Post
Default 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 192.168.0.100 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.

Thanks

Hector
Reply With Quote
Sponsored Links
  #2  
Old 25th October 2005, 18:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

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

Code:
# 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:
Code:
/etc/init.d/networking restart
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 25th October 2005, 22:02
toyito toyito is offline
Senior Member
 
Join Date: Oct 2005
Posts: 106
Thanks: 1
Thanked 1 Time in 1 Post
 
Default Thanks

Thank you ill tryit

Hector
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:46.


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