
UMN:CLI
User Manual
V5824G
276
The following is an example for specifying the range of IP addresses.
SWITCH(config)#
service dhcp
SWITCH(config)#
ip dhcp pool
sample
SWITCH(config-dhcp[sample])#
network
100.1.1.0/24
SWITCH(config-dhcp[sample])#
default-router
100.1.1.254
SWITCH(config-dhcp[sample])#
range
100.1.1.1 100.1.1.100
SWITCH(config-dhcp[sample])#
You can also specify several inconsecutive ranges of IP addresses in a single DHCP pool,
e.g. 100.1.1.1 to 100.1.1.62 and 100.1.1.129 to 100.1.1.190.
When specifying a range of IP address, the start IP address must be prior to the end IP
address.
8.5.1.4
Default Gateway
To specify a default gateway of the DHCP pool, use the following command.
Command
Mode
Description
default-router
A.B.C.D1
[
A.B.C.D2
]
…
[
A.B.C.D8
]
DHCP Pool
Specifies a default gateway of the DHCP pool.
A.B.C.D: default gateway IP address
no default-router
A.B.C.D1
[
A.B.C.D2
]
… [
A.B.C.D8
]
Deletes a specified default gateway.
no default-router all
Deletes all the specified default gateways.
The following is an example of specifying the default gateway 100.1.1.254.
SWITCH(config)#
service dhcp
SWITCH(config)#
ip dhcp pool
sample
SWITCH(config-dhcp[sample])#
network
100.1.1.0/24
SWITCH(config-dhcp[sample])#
default-router
100.1.1.254
SWITCH(config-dhcp[sample])#
8.5.1.5
IP Lease Time
Basically, the DHCP server leases an IP address in the DHCP pool to DHCP clients,
which will be automatically returned to the DHCP pool when it is no longer in use or
expired by IP lease time.
To specify IP lease time, use the following command.
Command
Mode
Description
lease-time default
<120-2147483637>
DHCP Pool
Sets default IP lease time in the unit of
second. (default: 3600)
lease-time max
<120-2147483637>
Sets maximum IP lease time in the unit
of second. (default: 3600)
no lease-time
{
default
|
max
}
Deletes specified IP lease time.
i
!