Release and renew IP

Anthony M. Rasat anthony.rasat at gmail.com
Mon Oct 13 00:52:35 UTC 2008


On Mon, Oct 13, 2008 at 12:20:59AM +0000, Anthony M. Rasat wrote: 
>>>How do I release and/or renew >>>an IP address in a command >>>line? 
>>
>>May I assume that is a DHCP >>nterface of eth0? Here a >>"shorter" way:
>>
>> sudo dhclient eth0 
>>
>Ah, but should it be dhclient or >dhclient3? If you end up with two >DHCP clients on one interface, >they will interfere with each other >causing your connection to stop >working mysteriously every 5 >minutes or so.

File /sbin/dhclient is a symbolic link to /sbin/dhclient3.

>>And now the "proper" way >>which also require proper >>configuration:
>>
>>sudo /etc/init.d/network restart 
>Does that work when you use >Network Manager? 
>
>Marius Gedminas

If network manager has written to file /etc/network/interfaces every required parameter (eg. iface eth0 inet dhcp), then yes, it should work with network manager. Note that OP wanted to renew, not modify its configuration, of IP address.

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Barat 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com


More information about the ubuntu-users mailing list