DHCP Overview ip dhcp server
20-6 DHCP Configuration
ip dhcp server
UsethiscommandtoenableDHCPserverfeaturesonaroutinginterface.
Syntax
ip dhcp server
no ip dhcp
Parameters
None.
Defaults
None.
Mode
Routercommand,Interfaceconfiguration:Matrix>Router(config‐if(Vlan1))#
Usage
The“no”formofthiscommanddisablesDHCPserverfeaturesononeorallroutinginterfaces.
Example
ThisexampleshowshowtoenableDHCPserveronVLAN1:
Matrix>Router(config)#interface vlan 1
Matrix>Router(config-if(Vlan 1))ip dhcp server
ip local pool
UsethiscommandtoconfigurealocaladdresspooltouseasaDHCPsubnet.Thisdefinesthe
rangeofIPaddressestobeusedbyDHCPserverandenablesIPlocalpoolconfigurationmode.
Syntax
ip local pool name subnet mask
no ip local pool name subnet mask
Parameters
clear ip dhcp binding 20-20
show ip dhcp server statistics 20-20
clear ip dhcp server statistics 20-22
For information about... Refer to page...
name Specifiesanameforthelocaladdresspool.
subnet SpecifiesanIPsubnetforthelocaladdresspool.
mask Specifiesasubnetmaskforthelocaladdresspool.Validentriesare:
x.x.x.xor/x.