display dhcp client
Syntax
display dhcp client [ verbose ] [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
verbose: Specifies verbose DHCP client information to be displayed.
interface interface-type interface-number: Specifies an interface for which to display DHCP client information.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display dhcp client to display DHCP client information. If no interface interface-type interface-number is specified, this command displays DHCP client information about all interfaces.
Examples
# Display DHCP client information about all interfaces.
<Sysname> display dhcp client Vlan-interface1 DHCP client information: Current machine state: BOUND Allocated IP: 40.1.1.20 255.255.255.0 Allocated lease: 259200 seconds, T1: 129600 seconds, T2: 226800 seconds DHCP server: 40.1.1.2
# Display verbose DHCP client information.
<Sysname> display dhcp client verbose Vlan-interface1 DHCP client information: Current machine state: BOUND Allocated IP: 40.1.1.20 255.255.255.0 Allocated lease: 259200 seconds, T1: 129600 seconds, T2: 226800 seconds Lease from 2005.08.13 15:37:59 to 2005.08.16 15:37:59 DHCP server: 40.1.1.2 Transaction ID: 0x1c09322d Default router: 40.1.1.2 Classless static route: Destination: 1.1.0.1, Mask: 255.0.0.0, NextHop: 192.168.40.16 Destination: 10.198.122.63, Mask: 255.255.255.255, NextHop: 192.168.40.16 DNS server: 44.1.1.11 DNS server: 44.1.1.12 Domain name: ddd.com Boot server: 200.200.200.200 1.1.1.1 Client ID: 3030-3066-2e65-3234- 392e-3830-3438-2d56- 6c61-6e2d-696e-7465- 7266-6163-6531 T1 will timeout in 1 day 11 hours 58 minutes 52 seconds.
Table 15: Command output
Field | Description |
---|---|
Vlan-interface1 DHCP client information | Information about the interface acting as the DHCP client. |
Current machine state | Current state of the DHCP client:
|
Allocated IP | The IP address allocated by the DHCP server. |
Allocated lease | The allocated lease time. |
T1 | The 1/2 lease time (in seconds) of the DHCP client IP address. |
T2 | The 7/8 lease time (in seconds) of the DHCP client IP address. |
Lease from….to…. | The start and end time of the lease. |
DHCP server | DHCP server IP address that assigned the IP address. |
Transaction ID | Transaction ID, a random number chosen by the client to identify an IP address allocation. |
Default router | The gateway address assigned to the client. |
Classless static route | Classless static routes assigned to the client. |
Static route | Classful static routes assigned to the client. |
DNS server | The DNS server address assigned to the client. |
Domain name | The domain name suffix assigned to the client. |
Boot server | PXE server addresses (up to 16 addresses) specified for the DHCP client, which are obtained through Option 43. |
Client ID | Client ID. |
T1 will timeout in 1 day 11 hours 58 minutes 52 seconds. | How long until the T1 (1/2 lease time) timer times out. |