H3C router (vswitch) DHCP configuration uses the H3C switch or vro to act as the classic configuration of the DHCP server (excluding Relay) [H3C] dhcp enable // enable dhcp www.2cto.com [H3C] dhcp server ip-pool 88 // create a dhcp address pool, address pool name: 88 [H3C-dhcp-pool-88] network 172.25.88.0 24 // ip address segment allocated by dhcp,
The following number 24 indicates that the mask is 255.255.255.0 [H3C-dhcp-pool-88] dns-list 172.25.87.1 8.8.8.8 // configure the DNS list,
I have configured an internal DNS and an external DNS here; [H3C-dhcp-pool-88] domain-name ***. com // configure domain name [H3C-dhcp-pool-88] expired day 2 // configure lease for 2 days [H3C-dhcp-pool-88] quit // exit address pool configuration mode www.2cto.com [H3C] dhcp server forbidden-ip 172.25.88.235 172.25.88.255 // exclude IP addresses that cannot be allocated [H3C] save // save the configuration to flash