< Home

display dhcp client

Function

The display dhcp client command displays DHCP/BOOTP client lease information.

Format

display dhcp client [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays DHCP/BOOTP client lease information on a specified interface:
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When a device functions as the DHCP/BOOTP client, this command displays DHCP/BOOTP client lease information.

Example

# Display DHCP client lease information.

<sysname> display dhcp client
DHCP client lease information on interface GigabitEthernet0/0/1:
 Current machine state         : Bound                                           
 Internet address assigned via : DHCP                                            
 Physical address              : 00e0-fccd-a896                                  
 IP address                    : 192.168.1.254                                   
 Subnet mask                   : 255.255.255.0                                   
 Gateway ip address            : 192.168.1.2                                     
 DHCP server                   : 192.168.1.2                                     
 Lease obtained at             : 2013-06-26 07:40:22                             
 Lease expires at              : 2013-06-27 07:40:22                             
 Lease renews at               : 2013-06-26 19:40:22                             
 Lease rebinds at              : 2013-06-27 04:40:22                             
 Domain name                   : huawei.com                                       
 DNS                           : 192.168.1.100                                    
                                 192.168.1.101                                    
 NBNS                          : 192.168.1.100                                    
                                 192.168.1.101                                    
 Static route                  : 192.168.20.0/24 via 192.168.1.2                  
 SIP                           : 192.168.1.101                                    
 Host name                     : client   Request option list           : 1 3 6 15 28 33 44 121 184       
 Class identifier              : huawei  
 Client identifier             : 000e-fccd-a896  
Table 1 Description of the display dhcp client command output

Item

Description

Current machine state

Current device status of the DHCP client, including:
  1. Halt: indicates the status of stopping applying for IP addresses.
  2. Init: indicates the initialization status.
  3. Waiting offer: indicates the status of waiting for OFFER.
  4. Selecting: indicates the state that the state machine enters after DHCP-DISCOVER packets are sent to search for DHCP servers. In this state, the device is waiting for the response packets from DHCP servers.
  5. Requesting: indicates the state that the state machine enters after DHCP-REQUEST packets are sent to request IP addresses. In this state, the device is waiting for the response packets from DHCP servers.
  6. Bound: indicates the state that the state machine enters after successfully obtaining IP addresses by receiving DHCP-ACK packets from DHCP servers.
  7. Renewing: indicates the state that the state machine enters after T1 timer times out.
  8. Rebind: indicates the state that the state machine enters after T2 timer times out to display the status of the current device.

Internet address assigned via

IP address obtained using DHCP or BOOTP.

Physical address

Device MAC address.

IP address

Device IP address.

Subnet mask

Mask of the device IP address.

Gateway ip address

Gateway address of the DHCP or BOOTP server.

DHCP server

DHCP server address (no value for a BOOTP client).

Lease obtained at

Time the lease is obtained.

Lease expires at

Time the lease expires (no value for a BOOTP client).

Lease renews at

Time the lease needs to be renewed (no value for a BOOTP client). The lease of an IP address needs to be renewed when half of the lease expires.

Lease rebinds at

Time the lease is renewed (no value for a BOOTP client). The lease of an IP address is renewed when 87.5% of the lease expires.

Domain name

Default domain name.

DNS

IP address of the DNS server.

NBNS

IP address of the WINS server.

Static route

Static route, which is the route information delivered by Option 33.

SIP

IP address of the SIP server.

Host name

Information about Option 12, which is the host name of the client.

Request option list

Information about Option 55, which is the request option list of the client.

Class identifier

Information about Option 60, which is the vendor type identifier.

Client identifier

Information about Option 61, which is the client identifier.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >