Verifying the DHCP Client
Purpose
Verify that the DHCP client information reflects your DHCP client configuration
Action
From operational mode in the CLI, to display DHCP client information, enter the show system services dhcp client command. To display more information about a specified interface, enter the show system services dhcp client interface-name command. Finally, enter the show system services dhcp client statistics command.
The DHCP client configuration resulting from the CLI configuration is displayed in the following sample output.
Sample Output
user@host> show system services dhcp
clientLogical Interface Name ge-0/0/1.0 Hardware address 00:0a:12:00:12:12 Client Status bound Vendor Identifier ether Server Address 10.1.1.1 Address obtained 10.1.1.89 update server enables Lease Obtained at 2006-08-24 18:13:04 PST Lease Expires at 2006-08-25 18:13:04 PST DHCP Options: Name: name-server, Value: [ 10.209.194.131, 2.2.2.2, 3.3.3.3 ] Name: server-identifier, Value: 10.1.1.1 Name: router, Value: [ 10.1.1.80 ] Name: domain-name, Value: netscreen-50
user@host> show system services dhcp
client ge-0/0/1.0Logical Interface Name ge-0/0/1.0 Hardware address 00:12:1e:a9:7b:81 Client Status bound Address obtained 30.1.1.20 update server enables Lease Obtained at 2007-05-10 18:16:04 PST Lease Expires at 2007-05-11 18:16:04 PST DHCP Options: Name: name-server, Value: [ 30.1.1.2 ] Code: 1, Type: ip-address, Value: 255.255.255.0 Name: name-server, Value: [ 77.77.77.77, 55.55.55.55 ] Name: domain-name, Value: englab.juniper.net
user@host> show system services dhcp client
statisticsPackets dropped:
Total 0
Messages Received:
DHCPOFFER 0
DHCPACK 8
DHCPNAK 0
Messages Sent:
DHCPDECLINE 0
DHCPDISCOVER 0
DHCPREQUEST 1
DHCPINFORM 0
DHCPRELEASE 0
DHCPRENEW 7
DHCPREBIND 0
Meaning
Verify whether the DHCP client information reflects your DHCP client configuration.
Related Topics
For complete descriptions of the show system services dhcp client command and output, see the Junos OS CLI Reference.
Hide Navigation Pane
Show Navigation Pane
Download
SHA1