Page 476 / 998 Scroll up to view Page 471 - 475
Dynamic Host Configuration Protocol
DHCP Server command reference
iMG/RG Software Reference Manual (System Administration)
5-16
Example
--> dhcpserver class myclass add option subnet-mask 255.255.255.0
5.1.5.1.10 DHCPSERVER CLASS CLEAR OPTION
Syntax
DHCPSERVER CLASS <NAME> CLEAR OPTIONS
Description
This command deletes all DHCP server class options.
Example
--> dhcpserver class myclass clear options
5.1.5.1.11 DHCPSERVER CLASS DELETE OPTION
Syntax
DHCPSERVER CLASS <name> DELETE OPTION <id>
Description
This command deletes a single DHCP server class option.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> dhcpserver class myclass delete option 1
5.1.5.1.12 DHCPSERVER CLASS LIST OPTION
Syntax
DHCPSERVER CLASS <NAME> LIST OPTIONS
Description
This command lists the existing DHCP server classes
It displays the following informa-
tion:
Option
Description
Default Value
name
The name of the class
N/A
identifier
The identifier of the option available from com-
mand dhcpserver list options
N/A
value
The value of the option
N/A
Option
Description
Default Value
name
The existing class that DHCP server is set to
operate on..
N/A
id
The id of the option as reported from the com-
mand dhcpserver class list options
N/A
Page 477 / 998
DHCP Server command reference
Dynamic Host Configuration Protocol
5-17
iMG/RG Software Reference Manual (System Administration)
DHCP server interface ID number
Option identifier
Option value
Example
--> dhcpserver class myclass list options
DHCP Server Classes:
ID
|
Identifier
|
Value
|
----|------------------|----------------------|
1 | subnet-mask
| 255.255.2555.0
|
----------------------------------------------
5.1.5.1.13
DHCPSERVER ADD EXCLUDE
Syntax
DHCPSERVER ADD <name> EXLUDE IPADDRESS <ipaddress>
Description
This command sets DHCP server to exclude a specific IP address from the lease.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> dhcpserver add exclude onepc ipaddress 10.10.10.4
5.1.5.1.14 DHCPSERVER CLEAR EXCLUDES
Syntax
DHCPSERVER CLEAR EXLUDES
Description
This command deletes all DHCP server excluded IP address.
Example
--> dhcpserver clear excludes
5.1.5.1.15 DHCPSERVER DELETE EXCLUDE
Syntax
DHCPSERVER DELETE EXCLUDE <name>
Description
This command deletes a single DHCP server excluded address.
Option
Description
Default Value
name
The name of the excluded address
N/A
ipaddress
The IP address that need to be excluded
N/A
Page 478 / 998
Dynamic Host Configuration Protocol
DHCP Server command reference
iMG/RG Software Reference Manual (System Administration)
5-18
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> dhcpserver delete exclude onepc
5.1.5.1.16 DHCPSERVER LIST EXCLUDES
Syntax
DHCPSERVER LISTEXCLUDES
Description
This command lists the existing DHCP server excluded IP address.
It displays the follow-
ing information:
DHCP server interface ID number
Excluded name
Excluded IP address
Example
--> dhcpserver lise excluded
DHCP server Excluded IP Addresses:
ID
|
Name
|
IP address
-----|------------|------------------
1 | onepc
| 10.10.10.4
-------------------------------------
5.1.5.1.17 DHCPSERVER ADD INTERFACE
Syntax
DHCPSERVER ADD INTERFACE <ipinterface>
Description
This command sets DHCP server to operate on a specific IP interface. The IP interface is
defined as a DHCP server IP interface. By setting DHCP relay to operate on other inter-
faces, you can simultaneously use DHCP server and relay in your configuration.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Option
Description
Default Value
name
The existing name of excluded IP address
obtained from the command
dhcpserver list
excluded
N/A
Page 479 / 998
DHCP Server command reference
Dynamic Host Configuration Protocol
5-19
iMG/RG Software Reference Manual (System Administration)
Example
--> dhcpserver add interface lan
See also
DHCPRELAY ADD INTERFACE
IP LIST INTERFACES
5.1.5.1.18 DHCPSERVER CLEAR INTERFACES
Syntax
DHCPSERVER CLEAR INTERFACES
Description
This command deletes all DHCP server IP interfaces previously defined using the
DHCPSERVER ADD INTERFACE
command.
Note:
This command does not delete the IP interfaces from the router. See
IP CLEAR INTERFACES
Example
--> dhcpserver clear interfaces
See also
DHCPSERVER ADD INTERFACE
IP LIST INTERFACES
5.1.5.1.19 DHCPSERVER DELETE INTERFACE
Syntax
DHCPSERVER DELETE INTERFACE <ipinterface>
Description
This command deletes a single DHCP server IP interface previously defined using the
dhcpserver add interface command.
Note:
This command does not delete the IP interfaces from the router. See
IP CLEAR INTERFACES
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Option
Description
Default Value
ipinterface
The name of the existing interface that you want
DHCP server to operate on. To display interface
names, use the
IP LIST INTERFACES
command.
N/A
Option
Description
Default Value
ipinterface
The existing IP interface that DHCP server is set
to operate on. To display interface names, use
the
DHCPSERVER LIST INTERFACES
command.
N/A
Page 480 / 998
Dynamic Host Configuration Protocol
DHCP Server command reference
iMG/RG Software Reference Manual (System Administration)
5-20
Example
--> dhcpserver delete interface lan
See also
DHCPSERVER ADD INTERFACE
DHCPSERVER LIST INTERFACES
5.1.5.1.20 DHCPSERVER LIST INTERFACES
Syntax
DHCPSERVER LIST INTERFACES
Description
This command lists the existing DHCP server IP interfaces previously defined using the
dhcpserver add interface command. It displays the following information:
DHCP server interface ID number
IP interface name
Example
--> dhcpserver list interfaces
DHCP Server Interfaces:
ID
|
Name
----|----------
1
|
lan
----|----------
2
|
wan
---------------
See also
DHCPSERVER ADD INTERFACE
5.1.5.1.21 DHCPSERVER ADD FIXEDHOST
Syntax
DHCPSERVER ADD FIXEDHOST <name> <ipaddress> <macaddress>
Description
This command creates a new fixed host mapping in the DHCP server. This allows you to
configure the DHCP server to assign a specific IP address to a specific DHCP client
based on the client’s MAC address. If a DHCPDISCOVER or DHCPREQUEST is
received from a DHCP client with a matching MAC address, it will have the specified
fixed IP address assigned to it. You must also create a suitable DHCP subnet definition in
order for fixed host mapping to work.
Note:
If you create a fixed host mapping with an IP address that is already present inside a configured,
dynamic IP range, the fixed host IP address will override the address in the dynamic range.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).

Rate

4 / 5 based on 3 votes.

Popular Allied-Telesis Models

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top