Server(config)#ip dhcp pool vlan10
Server(dhcp-config)#network 192.168.10.0 /24 (网段,子网掩码,字长)
Server(dhcp-config)#default-router 192.168.10.254 (网关)
Server(config)#ip dhcp excluded-address 192.168.10.254 (剔除网关)
Server(config)#ip http server (开启HTTP服务)
sh ip dhcp pool (查看池)
sh ip dhcp binding (已分配地址)
PC(config-if)#no ip add
PC(config-if)# ip add dhcp (dhcp自动获取IP)
router (config)#int f0/0.10 (子接口—–vlan10)
router (config-subif)# ip helper-address 192.168.200.1 (形成单播包,并转发给Server)