Chapter 5
45
5.4.2.3
status
Syntax:
dhcpclient status [all]
Description:
Provides DHCP status information for the active bound lease
associated with each valid interface, including IP address, time
until lease renewal, subnet mask and DHCP server address.
Including the all flag shows, for each valid interface, the active
lease, leases which are being, or have been offered to the
interface, and any leases which are still being held by the client
which are not currently active (since a single interface can only
have one active lease at a time).
Example:
adsl> dhcpclient status
DHCP Client Lease Status (active lease only)
Interface 'ethernet'
5.4.2.4
IP Commands
Syntax:
ip device add <i/f> <type> <file> [mtu <size>] [<IP address>|dhcp] ip
device
Description: Adds an interface to the configuration of the IP stack. The last
parameter of the command would normally be the IP address of
the interface; use of the string dhcp causes the IP address to be
discovered by the DHCP client software. Using the flag dhcp on
an interface precludes running a DHCP server on that interface.
The ip device command lists the current configuration of any
devices attached to the IP stack. A device configured to use
DHCP will show dhcp in the IP address column, followed by
the actual IP address discovered and bound by DHCP, if any.
For interfaces configured to use DHCP, saving configuration
only marks the interface as using DHCP; it does not save the
actual IP address discovered by DHCP, which must be renewed.
Status
Server ID
IP address
Subnet mask
Renewal
*ACTIVE*
192.168.219.151
192.168.219.1
255.255.255.255.0
31 secs