dhcp enablevlan 10port Ethernet 0/1interface Vlan-interface 10ip address 10.1.1.1 255.255.255.0dhcp select global //选择全局地址池方式分配IP地址quitdhcp server ip-pool vlan10 //创建全局地址池,并命名为”vlan10”network 10.1.1.0 mask 255.255.255.0gateway-list 10.1.1.1dhcp server forbidden-ip 10.1.1.1 //禁止将PC机的网关地址分配给用户-------------------------------------------------