配置DHCP地址池
[H3C]dhcp enable //开启dhcp服务[H3C]dhcp server ip-pool 8 //创建名称为8的地址池[H3C-dhcp-pool-8]network 192.168.8.0 mask 255.255.255.0 //配置地址池的网段[H3C-dhcp-pool-8]gateway-list 192.168.8.1 //配置客户机获取的网关[H3C-dhcp-pool-8]dns-list 223.5.5.5 223.6.6.6 //配置dns[H3C-dhcp-pool-8]quit //退出地址池配置[H3C]dhcp server forbidden-ip 192.168.8.1 //系统视图下dhcp排除地址
相关命令
[H3C]display dhcp server pool 8 //查看名称为8的地址池信息Pool name: 8 Network: 192.168.8.0 mask 255.255.255.0 dns-list 223.5.5.5 223.6.6.6 expired day 1 hour 0 minute 0 second 0 reserve expired-ip enable reserve expired-ip mode client-id time 4294967295 limit 256000 gateway-list 192.168.8.1