D-Link DFL-1600 Benutzerhandbuch

Seite von 552
can be specified as this parameter. The option exists to also specify if
the identifier will be sent as an ASCII or Hexadecimal value.
Example 5.3. Static DHCP Host Assignment
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.
Command-Line Interface
1.
First, change the category to the DHCPServer1 context:
gw-world:/> cc DHCPServer DHCPServer1
2.
Add the static DHCP assignment:
gw-world:/> add DHCPServerPoolStaticHost Host=192.168.1.1
MACAddress=00-90-12-13-14-15
3.
All static assignments can then be listed and each is listed with an index number:
gw-world:/> show
#
Comments
-
-------
+
1
(none)
4.
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)
5.
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.2.2. Custom Options
Adding a Custom Option to the DHCP server definition allows the administrator to send specific
pieces of information to DHCP clients in the DHCP leases that are sent out.
An example of this is certain switches that require the IP address of a TFTP server from which they
can get certain extra information.
5.2.2. Custom Options
Chapter 5. DHCP Services
233