set dhcp pool network
D-Series CLI Reference 14-13
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,
usethesetdhcpexcludecommandonpage14‐6.
Examples
ThisexampleconfigurestheIPsubnet172.20.28.0withaprefixlengthof24fortheautomatic
DHCPpoolnamed“auto1.”Alternatively,themaskcouldhavebeenspecifiedas255.255.255.0.
D2(rw)->set dhcp pool auto1 network 172.20.28.0 24
Thisexamplelimitsthescopeof255addressescreatedfortheClassCnetwork172,20.28.0bythe
previousexample,byexcludingaddresses172.20.28.80–100.
D2(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 Specifies thesubnetmaskindottedquadnotation.
prefix‐length Specifiesthesubnetmaskasaninteger.
poolname Specifiesthenameoftheaddresspool.Poolnamesmaybeupto31
charactersinlength.