Specifications
set dhcp pool network
13-14 Configuring DHCP Server
set dhcp pool network
UsethiscommandtoconfigurethesubnetnumberandmaskforanautomaticDHCPaddress
pool.
Syntax
set dhcp pool poolname network number {mask | prefix-length}
Parameters
Defaults
None.
Mode
Switchcommand,read‐write.
Usage
UsethiscommandtoconfigureasetofIPaddressestobeassignedbytheDHCPserverusingthe
specifiedaddresspool.Inordertolimitthescopeoftheaddressesconfiguredwiththiscommand,
usethesetdhcpexcludecommanddescribedonpage13‐6.
Examples
ThisexampleconfigurestheIPsubnet172.20.2 8.0withaprefixlengthof24for theautomatic
DHCPpoolnamed“auto1.”Alternatively,themaskcouldhavebeenspecifiedas255.255.255.0.
C3(rw)set dhcp pool auto1 network 172.20.28.0 24
Thisexamplelimitsthescope of255addressescreatedfortheClassCnetwork172,20.28.0bythe
previousexample,byexcludingaddresses172.20.28.80–100.
C3(rw)set dhcp exclude 172.20.28.80 172.20.28.100
clear dhcp pool network
UsethiscommandtoremovethenetworknumberandmaskofaDHCPserverpoolofaddresses.
Syntax
clear dhcp pool poolname network
Parameters
poolname Specifiesthenameoftheaddresspool.Poolnamesmaybeupto31
charactersinlength.
number SpecifiesanIPsubnetfortheaddresspool.
mask Specifiesthesubnetmaskindottedquadnotation.
prefix‐length Specifiesthesubnetmaskasaninteger.
poolname Specifiesthenameoftheaddresspool.Poolnamesmaybeupto31
charactersinlength.