全局开启DHCPdhcp enableSVI配置interface vlanif10ip address 192.168.2.254 255.255.255.0---接口IPdhcp select interface---VLANIF10接口下的客户端从接口地址池中获取IP地址dhcp server excluded-ip-address X.X.X.X X.X.X.X---地址池dhcp server forbidden-ip X.X.X.X X.X.X.X---排除IPdhcp server dns-list X.X.X.X---DNSdhcp server lease day 30 hour 0 minute 0---地址租用期限接口下port hybrid pvid vlan 10port hybrid untagged vlan 10