A Juniper Networks NetScreen firewall/router can be configured to function as a DHCP server; for the method to do so from a command line interface (CLI), which you can obtain by a Secure Shell (SSH) connection to the device, see Using a Juniper Networks NetScreen Firewall as a DHCP Server. The system can assign addresses dynamically from a pool of addresses you select or you can have it assign a reserved, i.e., fixed, address based on the media access control (MAC) address of the system requesting a DHCP-assigned IP address.
You can determine what addresses have already been assigned to systems
via DHCP using a command in the form get interface <interface>
dhcp server ip allocate
where interface is a particular interface,
e.g., trust, untrust, etc.
ns5xp-> get interface trust dhcp server ip allocate IP State MAC Lease Time 192.168.0.34 COMMIT *000d560e185e 3236 minutes 192.168.0.35 COMMIT *4c72b99cb82a 3925 minutes ns5xp->
If I wished to assign the IP address 192.168.0.7 to the system above with MAC address 4c72b99cb82a, I could use the command below:
set interface trust dhcp server ip 192.168.0.7 mac 4c72b99cb82a
[ More Info ]