DHCP Overview host
20-16 DHCP Configuration
Usage
The“no”formofthiscommandresetstheleasedurationtothedefaultvalueof1day(24hours).
Example
Thisexampleshowshowtosetaone‐hourleasetothe“localpool”addresspool:
Matrix>Router(config)#ip dhcp pool localpool
Matrix>Router(config-dhcp-pool)#lease 0 1
host
UsethiscommandtospecifyanIPaddressandnetworkmaskformanualDHCPbinding.
Syntax
host address [mask | prefix-length]
no host
Parameters
Defaults
Ifnotspecified,DHCPserverwillexamineitsdefinedIPaddresspoolsforamaskorprefix‐length.
IfnomaskisfoundintheIPaddresspooldatabase,theClassA,B,orCnaturalmaskwillbeused.
Mode
Routercommand,DHCPPoolConfigurationmode:Matrix>Router(config‐dhcp‐pool)#
Usage
The“no”formofthiscommandremovestheclientIPaddress.
Example
Thisexampleshowshowtoset15.12.1.99255.255.248.0astheIPaddressandsubnetmaskofa
clientinthe“localpool”addresspool:
Matrix>Router(config)#ip dhcp pool localpool
Matrix>Router(config-dhcp-pool)#hardware-address 0001.f401.2710
Matrix>Router(config-dhcp-host)#host 15.12.1.99 255.255.248.0
client-class
UsethiscommandtoidentifyanDHCPclientclass.
Syntax
client-class name
no client-class name
address SpecifiestheIPaddressoftheDHCPclient.
mask|prefix‐length (Optional)SpecifiesanetworkmaskorprefixfortheIPaddress.