Page 491 / 998 Scroll up to view Page 486 - 490
DHCP Server command reference
Dynamic Host Configuration Protocol
5-31
iMG/RG Software Reference Manual (System Administration)
5.1.5.1.43 DHCPSERVER SET SUBNET DEFAULTLEASETIME
Syntax
DHCPSERVER SET SUBNET {<name>|<number>} DEFAULTLEASETIME
<defaultleasetime>
Description
This command sets the default lease time for an existing subnet. This command setting
overrides the global default lease time setting for this particular subnet.
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 subnet sub1 defaultleasetime 30000
See also
DHCPSERVER SHOW SUBNET
5.1.5.1.44 DHCPSERVER SET SUBNET HOSTISDEFAULTGATEWAY
Syntax
DHCPSERVER SET SUBNET <{<name>|<number>} HOSTISDEFAULTGATE-
WAY {ENABLED | DISABLED}
Description
This command tells the DHCP server to give out its own host IP address as the default
gateway address. This is useful when combined with DNS Relay.
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 existing subnet. To display subnet names, use the
DHCPSERVER LIST SUBNETS
command.
N/A
number
An existing subnet. To display subnet numbers, use
the
DHCPSERVER LIST SUBNETS
command.
N/A
defaultleasetime
The default time (in seconds) a subnet assigns to a
lease if the client requesting the lease does not ask
for a specific expiry time.
43200
Page 492 / 998
Dynamic Host Configuration Protocol
DHCP Server command reference
iMG/RG Software Reference Manual (System Administration)
5-32
Example
--> dhcpserver set subnet sub1 hostisdefaultgateway enabled
See also
DHCPSERVER SET SUBNET HOSTISDNSSERVER
5.1.5.1.45 DHCPSERVER SET SUBNET HOSTISDNSSERVER
Syntax
DHCPSERVER SET SUBNET {<name>|<number>} HOSTISDNSSERVER
{ENABLED | DISABLED}
Description
This command tells the DHCP server to give out its own host IP address as the DNS
server address. This is useful when combined with DNS Relay.
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 existing subnet. To display subnet names, use the
DHCPSERVER LIST SUBNETS
command.
N/A
number
An existing subnet. To display subnet numbers, use
the
DHCPSERVER LIST SUBNETS
command.
N/A
enabled
Allows DHCP server to give out its own host IP
address as the default gateway address.
disabled
disabled
Disallows DHCP server from giving out its own host
IP address as the default gateway address.
Option
Description
Default Value
name
An existing subnet. To display subnet names, use
the
DHCPSERVER LIST SUBNETS
com-
mand.
N/A
number
An existing subnet. To display subnet numbers, use
the
DHCPSERVER LIST SUBNETS
com-
mand.
N/A
enabled
Allows DHCP server to give out its own host IP
address as the DNS server address.
disabled
disabled
Disallows DHCP server from giving out its own
host IP address as the DNS server address.
Page 493 / 998
DHCP Server command reference
Dynamic Host Configuration Protocol
5-33
iMG/RG Software Reference Manual (System Administration)
Example
--> dhcpserver set subnet sub1 hostisdnsserver enabled
See also
DHCPSERVER LIST SUBNETS
5.1.5.1.46 DHCPSERVER SET SUBNET MAXLEASETIME
Syntax
DHCPSERVER SET SUBNET {<name>|<number>} MAXLEASETIME <max-
leasetime>
Description
This command sets the maximum lease time for an existing subnet. This command setting
overrides the global maximum lease time setting for this particular subnet.
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 subnet sub1 maxleasetime 70000
See also
DHCPSERVER SHOW SUBNET
5.1.5.1.47 DHCPSERVER SET SUBNET SUBNET
Syntax
DHCPSERVER SET SUBNET {<name>|<number>} SUBNET <ip address>
<netmask>
Description
This command allows you to change the IP address and netmask used by an existing
DHCP server subnet.
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 existing subnet. To display subnet names, use the
DHCPSERVER LIST SUBNETS
command.
N/A
number
An existing subnet. To display subnet numbers, use
the
DHCPSERVER LIST SUBNETS
command.
N/A
maxleasetime
The maximum time (in seconds) that a subnet
assigns to a lease if the client requesting the lease
does not ask for a specific expiry time.
86400
Page 494 / 998
Dynamic Host Configuration Protocol
DHCP Server command reference
iMG/RG Software Reference Manual (System Administration)
5-34
Example
--> dhcpserver set subnet sub1 subnet 239.252.197.0 255.255.255.0
See also
DHCPSERVER LIST SUBNETS
5.1.5.1.48 DHCPSERVER SUBNET ADD IPRANGE
Syntax
DHCPSERVER SUBNET {<name>|<number>} ADD IPRANGE <startaddr>
<endaddr>
Description
This command adds a pool of IP addresses to an existing subnet. DHCP server can allo-
cate IP addresses from this pool to clients on request.
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 existing subnet. To display subnet names, use the
DHCPSERVER LIST SUBNETS
command.
N/A
number
An existing subnet. To display subnet numbers, use
the
DHCPSERVER LIST SUBNETS
command.
N/A
ip address
The new IP address for the subnet (format:
192.168.102.3)
N/A
netmask
The new netmask address for the subnet, for exam-
ple: 255.255.255.0
N/A
Option
Description
Default Value
name
An existing subnet. To display subnet names, use the
DHCPSERVER LIST SUBNETS
command.
N/A
number
An existing subnet. To display subnet numbers, use the
DHCPSERVER LIST SUBNETS
command.
N/A
startaddr
The first IP address in the pool of addresses. The IP
address is displayed in the following format:
192.168.102.3
N/A
endaddr
The last IP address in the pool of addresses. The IP
address is displayed in the following format:
192.168.102.3
N/A
Page 495 / 998
DHCP Server command reference
Dynamic Host Configuration Protocol
5-35
iMG/RG Software Reference Manual (System Administration)
Example
--> dhcpserver subnet sub1 add iprange 239.252.197.0 239.252.197.107
See also
DHCPSERVER ADD SUBNET
DHCPSERVER LIST SUBNETS
DHCPSERVER SUBNET LIST IPRANGES
5.1.5.1.49 DHCPSERVER SUBNET ADD OPTION
Syntax
DHCPSERVER SUBNET {<name>|<number>} ADD OPTION <identifier>
<value>
Description
This command allows you to configure the DHCP server using the options detailed in
RFC2132. To display a list of available options, use the command
DHCPSERVER LIST
OPTIONS
.
The heading of each option in the list contains the option identifier and the required value
(in italics) for that specific option. The following is an extract from the option list:
option auto-configure flag;
This option, based on RFC2563, controls whether clients on this subnet are allowed to
perform the IP address auto configuration.
It only applies in cases where the DHCP server is unwilling or unable to supply an IP
address lease. In this case, if this option is set to 1, then the DHCP server will not inter-
vene to prevent clients from using auto-configuration to determine an IP address. If this
option is set to 0, the DHCP server will explicitly forbid the use of IP address auto-con-
figuration on the network.
If this option is not explicitly configured, then it will be assumed that auto-configuration is
allowed on the 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).
Option
Description
Default Value
name
An existing subnet. To display subnet names, use the
DHCPSERVER LIST SUBNETS
command.
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