Verifying DHCP Server Operation
Purpose
Verify that the DHCP server is operating as configured.
Action
Take the following actions:
- Use the ping command to verify that a client responds to ping packets containing the destination IP address assigned by the device.
- Display the IP configuration on the client. For example, on a PC running Microsoft Windows, enter ipconfig /all at the command prompt to display the PC's IP configuration.
Sample Output
user@host> ping 192.168.2.2PING 192.168.2.2 (192.168.2.2): 56 data bytes 64 bytes from 192.168.2.2: icmp_seq=0 ttl=255 time=8.856 ms 64 bytes from 192.168.2.2: icmp_seq=1 ttl=255 time=11.543 ms 64 bytes from 192.168.2.2: icmp_seq=2 ttl=255 time=10.315 ms ...
C:\Documents and Settings\user> ipconfig /allWindows 2000 IP Configuration Host Name . . . . . . . . . . . . : my-pc Primary DNS Suffix . . . . . . . : mycompany.net Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : mycompany.net mylab.net Ethernet adapter Local Area Connection 2: Connection-specific DNS Suffix . : mycompany.net mylab.net Description . . . . . . . . . . . : 10/100 LAN Fast Ethernet Card Physical Address. . . . . . . . . : 02-04-06-08-0A-0C DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes IP Address. . . . . . . . . . . . : 192.168.2.2 Subnet Mask . . . . . . . . . . . : 255.255.254.0 Default Gateway . . . . . . . . . : 192.168.10.3 DHCP Server . . . . . . . . . . . : 192.168.2.1 DNS Servers . . . . . . . . . . . : 192.168.10.2 Primary WINS Server . . . . . . . : 192.168.10.4 Secondary WINS Server . . . . . . : 192.168.10.5 Lease Obtained. . . . . . . . . . : Monday, January 24, 2005 8:48:59 AM Lease Expires . . . . . . . . . . : Monday, February 7, 2005 8:48:59 AM
Meaning
Verify the following:
- The client returns a ping response.
- The client IP configuration displayed contains the configured
values. For example, for the DHCP configuration in Configuring the Device as a DHCP Server, you can verify the
following settings:
- DNS Suffix Search List is correct.
- IP address is within the IP address pool you configured.
- DHCP Server is the primary IP address of the device interface on which the DHCP message exchange occurs. If you include the server-identifier statement in your configuration, the DHCP server IP address specified in this statement is displayed.
- Lease Obtained and Lease Expires times are correct.
The ipconfig command also displays other DHCP client settings that can be configured on the device, including the client's hostname, default gateways, and WINS servers.
Related Topics
For complete descriptions of the ping command and output, see the Junos System Basics and Services Command Reference.
Hide Navigation Pane
Show Navigation Pane
Download
SHA1