[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6606
  • Last Modified:

ifconfig eth0 --renew?

First of all, my eth0 is a 3com905b connected to a cable modem provided by time warner who is leasing ip addresses from winnt sms site for one hour per host...
How do you renew eth0's ip address?

#ifconfig eth0 down(release?)
#ifconfig eth0 up(renew?)this not seem to affect eth0 interface at all.

I'm just looking for the equivalent to winnt command: ipconfig/renew, which usually accomplishes this task.

Is there a simple way of renewing eth0's ip add?

If not can that device be reinitialized while the system
is on?

Any info on this is greatly appreciated...
1 Solution
leases are renegotiated automatically, which distribution are you running? on RH you could do

"ifdown eth0 ; ifup eth0"

Yes, that will bring eth0 down, and then right back up, but no connected applications will have time to notice.

If you run another distro, you will have to tell which one you are running, and which dhcp-client you are running.

ifconfig has no concept of dynamic IP's

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now