dhcp enable \\ start dhcp service
ip pool pool1 \\ create an address pool named pool1
network 10.0.12.0 mask 24 \\ configure the network address and subnet mask
gateway-list 10.0.12.1 \\ specified address pool gateway
lease day 1 hour 12 \\ distribution of the duration for ip
interface GigabitEthernet 0/0/1
dhcp select global \\ open global configuration IP
ip address 10.0.12.1 \\ configure the gateway