//This command is used to globally enable the DHCP server.
switch(config)# ip dhcpd enable
4.7.2
dhcp pool
Command Description
dhcp pool <word>:
// This command is used to add a DHCP address pool.
No dhcp pool <word>:
// This command is used to delete a DHCP address pool with the specified name.
Parameter
Parameter
NAME
Default
None
Command Mode
Global configuration mode
Example
//This command is to create a named dizhichi address pool.
switch(config)#dhcp pool dizhichi
4.7.3
network
Command Description
network A.B.C.D/M vlanif-id
//This command is used to add an IP address segment to the address pool.
Parameter
Parameter
A.B.C.D/M
vlanif-id
Default
None
Command Mode
Address pool configuration mode
Example
Parameters of the command mode
Pool name ,Example:dizhichi
Parameters of the command mode
Address
pool,Example:192.168.1.0/24
Interface Vlan id