% pump -s Device eth0 IP: 192.168.2.12 Netmask: 255.255.255.0 Broadcast: 192.168.2.255 Network: 192.168.2.0 Boot server 192.168.2.1 Next server 0.0.0.0 Gateway: 192.168.2.1 Gateways: 192.168.2.1 Hostname: cxmr.dyndns.org Domain: no-domain-set.bellcanada Nameservers: 192.168.2.1 192.168.2.1 Renewal time: Tue Oct 31 22:44:11 2006 Expiration time: Wed Nov 1 00:14:11 2006
% pump -i eth0 --status Device eth0 IP: 192.168.2.12 Netmask: 255.255.255.0 Broadcast: 192.168.2.255 Network: 192.168.2.0 Boot server 192.168.2.1 Next server 0.0.0.0 Gateway: 192.168.2.1 Gateways: 192.168.2.1 Hostname: cxmr.dyndns.org Domain: no-domain-set.bellcanada Nameservers: 192.168.2.1 192.168.2.1 Renewal time: Tue Oct 31 22:44:11 2006 Expiration time: Wed Nov 1 00:14:11 2006
$ pump pump: must be run as root
NAME pump - configure network interface via BOOTP or DHCP protocol
DESCRIPTION pump is a daemon that manages network interfaces that are controlled by either the DHCP or BOOTP protocol.
Once pump is managing an interface, you can run pump to query the status of that interface. For example, /sbin/pump -i eth0 --status will print the current status of device eth0.
COMMAND-LINE OPTIONS switch long option description -h --hostname=hostname Hostname to request -i --interface=iface Interface to configure (normally eth0) -k --kill Kill daemon (and disable all interfaces) -r --release Release interface -R --renew Force immediate lease renewal -s --status Display interface status -? --help Show this help message --usage Display brief usage message
LOGGING Pump logs a good deal of information to syslog, much of it at the DEBUG level. If you're having trouble, it's a good idea to turn up syslog's logging level.
killall dhclient # -- otherwise there would be multi-instances of dhclient which will cause trouble. (two lease in /var/state/dhcp/dhclient.leases)
ifconfig eth0 down
dhclient
or,
dhclient eth0
ifconfig
$ cat /var/lib/dhcp/dhclient.leases lease { interface "eth0"; fixed-address 192.168.0.255; option subnet-mask 255.255.255.0; option time-offset -18000; option routers 192.168.0.1; option dhcp-lease-time 21600; option dhcp-message-type 5; option domain-name-servers 192.168.0.1; option dhcp-server-identifier 192.168.0.100; option nis-domain "domain.org"; option domain-name "domain.org"; renew 5 2002/12/13 06:44:25; rebind 5 2002/12/13 09:07:10; expire 5 2002/12/13 09:52:10; }