Friday, March 18, 2011

[Level 2] How to reserve ip (query only) from dchp server by dhclient in Ubuntu.

If you want to reserve ip (query only) from dhcp server by dhclient in Ubuntu,
you can use the following command to do so.
# dhclient -q -sf /dev/null -lf /tmp/ -pf /tmp/
Then you can see the lease file (/tmp/ to get more information.

PS. In my test, dhclient 3.1 ( in Ubuntu 10.04 ) will have an error with no permission.
Therefore, I download the latest version of dhclient (4.1) from isc.
you can get more information from here.

Wish this helps.
Stanley Huang