Page 481 / 998 Scroll up to view Page 476 - 480
DHCP Server command reference
Dynamic Host Configuration Protocol
5-21
iMG/RG Software Reference Manual (System Administration)
Example
The example below creates a fixed host mapping:
--> dhcpserver add fixedhost myhost 192.168.219.1 00:20:2b:01:02:03
The example below creates a suitable subnet for the above fixed host mapping. Note that
the IP address used above is not present in the following IP range:
--> dhcpserver add subnet mysubnet 192.168.219.0 255.255.255.0 192.168.219.10
192.168.219.20
See also
DHCPSERVER DELETE FIXEDHOST
DHCPSERVER LIST FIXEDHOSTS
5.1.5.1.22 DHCPSERVER CLEAR FIXEDHOSTS
Syntax
DHCPSERVER CLEAR FIXEDHOSTS
Description
This command deletes all DHCP server fixedhosts that were created using the
DHCPS-
ERVER ADD FIXEDHOST
command.
Example
--> dhcpserver clear fixedhosts
5.1.5.1.23 DHCPSERVER DELETE FIXEDHOST
Syntax
DHCPSERVER DELETE FIXEDHOST <name>
Description
This command deletes a single fixed host mapping in the DHCP server that was created
using the
DHCPSERVER ADD FIXEDHOST
command.
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
An arbitrary name that identifies the fixed host map-
ping. It can be made up of one or more letters or a
combination of letters and digits, but it cannot start
with a digit.
N/A
IPaddress
The IP address that is assigned to a DHCP client
based on the client’s MAC address, in the format:
192.168.102.3
N/A
macaddress
A MAC address in the format: ##:##:##:##:##:##
N/A
Page 482 / 998
Dynamic Host Configuration Protocol
DHCP Server command reference
iMG/RG Software Reference Manual (System Administration)
5-22
Example
--> dhcpserver delete fixedhost myhost
See also
DHCPSERVER ADD FIXEDHOST
DHCPSERVER CLEAR FIXEDHOSTS
DHCPSERVER LIST FIXEDHOST
5.1.5.1.24 DHCPSERVER LIST FIXEDHOSTS
Syntax
DHCPSERVER LIST FIXEDHOSTS
Description
This command lists the following information about existing DHCP fixed host mappings:
Fixed host ID number
Fixed host name
IP address
MAC address
Max lease time
Example
--> dhcpserver list fixedhosts
DHCP server fixed host mappings:
ID
|
Name |
IP address
|
MAC address
| Max Lease Time
-----|-------|-----------------|--------------------|---------------
1 | myhost| 192.168.219.0
| 00:20:2b:01:02:03
| 86400
--------------------------------------------------------------------
See also
DHCPSERVER ADD FIXEDHOST
DHCPSERVER SET FIXEDHOST IPADDRESS
DHCPSERVER SET FIXEDHOST MACADDRESS
DHCPSERVER SET FIXEDHOST MAXLEASETIME
5.1.5.1.25 DHCPSERVER SET FIXEDHOST IPADDRESS
Syntax
DHCPSERVER SET FIXEDHOST <host name> IPADDRESS <ipaddress>
Description
This command sets the IP address that will be allocated to a DHCP client by the fixed
host mapping.
Option
Description
Default Value
name
An existing fixed host. To display fixed host
names, use the
DHCPSERVER LIST
FIXEDHOSTS
command.
N/A
Page 483 / 998
DHCP Server command reference
Dynamic Host Configuration Protocol
5-23
iMG/RG Software Reference Manual (System Administration)
Note:
You are not allowed to create a fixed host mapping with an IP address that is already present inside a
configured, dynamic IP range on a subnet. The reverse is also forbidden; you cannot add addresses into
a dynamic IP range that are already configured as fixed host addresses. The CLI will display a warning if
you attempt to do this.
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 set fixedhost myhost ipaddress 192.168.219.2
See also
DHCPSERVER LIST FIXEDHOSTS
DHCPSERVER SET FIXEDHOST MACADDRESS
5.1.5.1.26 DHCPSERVER SET FIXEDHOST DEFAULTLEASETIME
Syntax
DHCPSERVER SET FIXEDHOST <host name> DEFAULTLEASETIME
<defaultleasetime>
Description
This command sets the default leas time that will be allocated to a DHCP client by the
fixed host mapping.
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 set fixedhost myhost defaultleasetime 3600
Option
Description
Default Value
host name
An existing fixedhost. To display fixedhost names, use
the
DHCPSERVER LIST FIXEDHOSTS
com-
mand.
N/A
ip address
The IP address assigned to a DHCP client based on the
client’s MAC address, in the format: 192.168.102.3
N/A
Option
Description
Default Value
host name
An existing fixedhost. To display fixedhost names, use
the
DHCPSERVER LIST FIXEDHOSTS
com-
mand.
N/A
defaultleasetime
The default time for the lease of a specific fixed host
N/A
Page 484 / 998
Dynamic Host Configuration Protocol
DHCP Server command reference
iMG/RG Software Reference Manual (System Administration)
5-24
See also
DHCPSERVER LIST FIXEDHOSTS
DHCPSERVER SET FIXEDHOST MACADDRESS
5.1.5.1.27 DHCPSERVER SET FIXEDHOST MACADDRESS
Syntax
DHCPSERVER SET FIXEDHOST <host name> MACADDRESS <macaddress>
Description
This command sets the MAC address for an existing fixed host mapping.
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 set fixedhost myhost macaddress 00:20:2b:01:02:03
See also
DHCPSERVER LIST FIXEDHOSTS
DHCPSERVER SET FIXEDHOST IPADDRESS
5.1.5.1.28 DHCPSERVER SET FIXEDHOST MAXLEASETIME
Syntax
DHCPSERVER SET FIXEDHOST <host name> MAXLEASETIME <maxlease-
time>
Description
This command sets the maximum lease time for an existing fixed host mapping.
Options
The following table gives the range of values for each option than can be specified with
this command and a default value (if applicable).
Example
--> dhcpserver set fixedhost myhost maxleasetime 90000
See also
DHCPSERVER LIST FIXEDHOSTS
Option
Description
Default Value
host name
An existing fixedhost. To display fixedhost names, use the
DHCPSERVER LIST FIXEDHOSTS
command.
N/A
macaddress
A MAC address in the format: ##:##:##:##:##:##
N/A
Option
Description
Default Value
maxleasetime
The maximum time (in seconds) for a lease when the cli-
ent requesting the lease does not ask for a specific expiry
time.
86400
Page 485 / 998
DHCP Server command reference
Dynamic Host Configuration Protocol
5-25
iMG/RG Software Reference Manual (System Administration)
5.1.5.1.29 DHCPSERVER ADD SHAREDNETWORK
Syntax
DHCPSERVER ADD SHAREDNETWORK <name>
Description
This command creates a shared network. All the subnets part of the same physical net-
work should be included in a shared network.
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
The example below creates a fixed host mapping:
--> dhcpserver add sharednetwork myshare
5.1.5.1.30 DHCPSERVER CLEAR SHAREDNETWORKS
Syntax
DHCPSERVER CLEAR SHAREDNETWORKS
Description
This command deletes all DHCP server share networks
Example
--> dhcpserver clear sharednetworks
5.1.5.1.31 DHCPSERVER DELETE SHAREDNETWORK
Syntax
DHCPSERVER DELETE SHAREDNETWORK <name>
Description
This command deletes a single shard network.
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 sharednetwork myshared
5.1.5.1.32 DHCPSERVER LIST SHAREDNETWORKS
Syntax
DHCPSERVER LIST SHAREDNETWORKS
Option
Description
Default Value
Name
An arbitrary name that identifies the shared network
N/A
Option
Description
Default Value
name
The name of the shared network.
N/A

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