User Manual
UMN:CLI
V8102
397
The following is an example of specifying the subnet as 100.1.1.0/24.
SWITCH(config)#
service dhcp
SWITCH(config)#
ip dhcp pool
sample
SWITCH(config-dhcp[sample])#
network
100.1.1.0/24
SWITCH(config-dhcp[sample])#
You can also specify several subnets in a single DHCP pool.
9.6.1.3
Range of IP Address
To specify a range of IP addresses that will be assigned to DHCP clients, use the follow-
ing command.
Command
Mode
Description
range
A.B.C.D A.B.C.D
DHCP Pool
Specifies a range of IP addresses.
A.B.C.D: start/end IP address
no range
A.B.C.D A.B.C.D
Deletes a specified range of IP addresses.
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.
9.6.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
i
i
!