Results 1 to 3 of 3

Thread: Change IP from Static to DHCP using ifconfig

  1. #1
    Join Date
    Jun 2010
    Beans
    3

    Change IP from Static to DHCP using ifconfig

    Hi

    I used the command "sudo ifconfig eth0 x.x.x.x netmask x.x.x.x" to change my dhcp ip address temporarily.
    I was wondering if there was a command to change this back to DHCP without having to reboot my pc?

    Thanking you in advance
    Last edited by Zeke501; January 10th, 2011 at 12:41 PM.

  2. #2
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    8,006

    Re: Change IP from Static to DHCP using ifconfig

    Howdy,

    It is not an ifconfig function.

    To refresh your DHCP address you have to run a DHCP client:
    $ sudo dhclient eth0

  3. #3
    Join Date
    Jun 2010
    Beans
    3

    Re: Change IP from Static to DHCP using ifconfig

    Hi Herman

    Thank you so much for the quick response, that works perfectly

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •