View Full Version : [ubuntu] How can i see dhcp details from console?
May 11th, 2009, 12:11 PM
can somebody tell me how to see details about my currently running dhcp-client?
i've tried ifconfig, but where can i see things like
DHCP lease obtained
DHCP lease expire
May 11th, 2009, 12:22 PM
To get your route tables do
May 11th, 2009, 12:59 PM
DHCP lease obtained -> take a look in /var/log/syslog
DHCP lease expire -> take a look in /var/log/syslog
Nameserver -> ?? they are supposed to be listed in /etc/resolv.conf
DHCP Server -> ??? I have no clue what you'd like to know here, sorry
May 11th, 2009, 01:44 PM
Check out the file : dhclient.leases
The Internet Systems Consortium DHCP client keeps a persistent database of leases that it has acquired that are still valid. The database is a free-form ASCII file containing one
valid declaration per lease. If more than one declaration appears for a given lease, the last one in the file is used. The file is written as a log, so this is not an unusual occurrance.
The format of the lease declarations is described in dhclient.conf(5).
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.