接口模式
int g0/0/3
ip add 10.1.12.2 24
dhcp select interface
dhcp server dns-list 10.1.12.2
# 排除地址
dhcp server excluded-ip-address 10.1.12.10 10.1.12.20
# 地址租期
dhcp server lease unlimited
# 静态绑定
dhcp server static-bind ip-address 10.1.12.21 mac-address 00ef-fc6f-6d1f
全局模式
int g0/0/4ip add 10.1.23.2 24
dhcp select global
ip pool test
network 10.1.23.0 mask 24
gateway-list 10.1.23.2
dns-list 10.1.23.2
# 排除地址
excluded-ip-address 10.1.23.10 10.1.23.20
# 地址租期
lease day 2 hour 2
# 静态绑定
static-bing ip-add 10.1.23.3 mac-address 00ef-fc6f-6d1f# 查看配置的地址池及其分配情况
dis ip pool
dis ip pool name test
