DHCP Commands
15-96 Configuring DHCP
ip local pool
Thiscommand,whenissuedmultiply,configuresalocalpoolofIPaddressestobeusedfora
DHCPServerpoolrange.Useitinconjunctionwiththenoformoftocreateoneormorelocal
addresspoolsfromwhichIPaddressesareassignedwhenaremotepeerconnects.
ThecommandacquiresIPLocalPoolmodeandmakesavailablethefollowingsubcommands:
exclude‐BarsarangeofIPaddressesfromthelocalpool.Refertopage1597forthesub
commanddefinition.
exit‐QuitsIPLocalPoolconfigurationmode.Refertopage1597forthesubcommand
definition.
Syntax
ip local pool pool-name subnet-address subnet-mask
Syntax of the “no” Form
UsethenoformofthiscommandtodeleteanIPaddressfromthepool:
no ip local pool pool-name
Default
Noaddresspoolsareconfigured
Mode
Globalconfiguration:XSR(config)#
Next Mode
IPLocalPoolconfiguration:XSR(ip-local-pool)#
Examples
ThefollowingexamplecreatesalocalIPaddresspoolnamedmarketing,whichcontainsallIP
addressesintherange203.57.99.0to203.57.99.255:
XSR(config)#ip local pool marketing 203.57.99.0 255.255.255.0
Note: For clients that use a statically defined IP address (do not use DHCP to obtain an IP address),
you must exclude that address from the local pool.
pool-name Name of a particular local address pool.
subnet-address Base address of an IP subnet used to allocate IP addresses.
subnet-mask Subnet mask of that IP subnet. All subnet address bits matching zero bits in the
mask must also be zero; that is, subnet and mask must be zero.