Router>en
Router#ip dhcp ?
% Unrecognized command
Router#conf
Router#configure ter
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip
Router(config)#ip dhcp ?
excluded-address Prevent DHCP from assigning certain addresses
pool Configure DHCP address pools
Router(config)#ip dhcp poo
Router(config)#ip dhcp pool globe #定义一个名称为globe的地址池
Router(dhcp-config)#netwo
Router(dhcp-config)#network 192.168.1.0 255.255.255.0 #定义地址网段
Router(dhcp-config)#defa
Router(dhcp-config)#default-router 192.168.1.254 #网关地址
Router(dhcp-config)#dns
Router(dhcp-config)#dns-server 8.8.8.8 #DNS地址
Router(dhcp-config)#ip dhcp excl
Router(dhcp-config)#ip dhcp exclud
Router(dhcp-config)#ip dhcp excluded-address 192.168.1.200 192.168.1.254 #不开放地址范围
Router(config)#sho
Router(config)#show
Router(config)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#
Router#sho
Router#show ru
Router#
扩展:
子地址池:在当前地址池基础上重新创建
Router(dhcp-config)#domain-name test.com #定义域后缀(可选)
Router(dhcp-config)#netbios-name-server 192.168.1.254 #定义wins服务器
Router(dhcp-config)#lease 30 #定义地租租约