TurnKey Linux Virtual Appliance Library

auto DHCP?

Hey! i'm running LAMP,is their anyway i can get eth0 to congf when i get a new ip?
So if i do get a new IP i don't have to go into the turnkey linux console.
Thanks

Liraz Siri's picture

Configure DHCP in the conf console?

You are being much too brief. I don't understand what you mean by "getting a new IP" or "auto dhcp" mode. Did you configure (in the confconsole) eth0 to use DHCP rather than a StaticIP configuration?

Yes eth0 is using DHCP but

Yes eth0 is using DHCP but when i get a new IP i have to go back into confconsole and click on DHCP to get my new IP or it will stay on my old IP. Thanks.
Liraz Siri's picture

Where are you getting a new IP from?

Can you explain a bit more about your setup? How are you getting a new IP (e.g., What are you using for a DHCP server and how do you ask it to reassign a client's IP)

Usually DHCP is used in a regular client-server model. The clients broadcasts a DHCP request packet and the server responds by checking it's records and then telling the client what IP it can reside in. In other words, the client asks and the server responds.

That's how it usually works. I think what you might be asking about is support for the DHCP reconfigure extension (RFC3203) where the server can dynamically ask the client to renew it's IP configuration. Is that correct? If so we've never tested if that works with the DHCP client we're using (udhcpc), but it would be interesting to learn more about this, with your help.

Note that behind the scenes the confconsole doesn't actually configure the network directly, it just edits the configuration files in /etc/network and then asks the system's network configuration scripts to reconfigure your interface like this:

ifdown eth0
ifup eth0
Try to remove udhcpc and install another dhcp client instead:
apt-get update
apt-get remove udhcpc
apt-get install dhcp3-client
If that doesn't work, you might also want to try dhcpcd.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)