Static dhcp assignment, Setting up static dhcp – D-Link DFL-2500 User Manual
Page 130
5.3. Static DHCP Assignment
Where the administrator requires a fixed relationship between a client and the assigned IP address,
NetDefendOS allows the assignment of a given IP to a specific MAC address.
Example 5.3. Setting up Static DHCP
This example shows how to assign the IP address 192.168.1.1 to the MAC address 00-90-12-13-14-15. The
examples assumes that the DHCP server DHCPServer1 has already been defined.
CLI
First change to the DHCPServer1 context:
gw-world:/> cc DHCPServer DHCPServer1
Now add the static DHCP assignment:
gw-world:/> add DHCPServerPoolStaticHost Host=192.168.1.1
MACAddress=00-90-12-13-14-15
All static assignments can be listed and each is listed with an index number:
gw-world:/> show
#
Comments
-
-------
+
1
(none)
An individual static assignment can be shown using its index number:
gw-world:/> show DHCPServerPoolStaticHost 1
Property
Value
-----------
-----------------
Index:
1
Host:
192.168.1.1
MACAddress:
00-90-12-13-14-15
Comments:
(none)
The assignment could be changed later to IP address 192.168.1.12 with the following command:
gw-world:/> set DHCPServerPoolStaticHost 1 Host=192.168.1.12
MACAddress=00-90-12-13-14-15
Web Interface
1.
Go to System > DHCP > DHCP Servers > DHCPServer1 > Static Hosts > Add > Static Host Entry
2.
Now enter:
•
Host: 19.168.1.1
•
MAC: 00-90-12-13-14-15
3.
Click OK
5.3. Static DHCP Assignment
Chapter 5. DHCP Services
130