华为交换机select interface DHCP 静态绑定IP+MAC
启动三层配置vlan接口
system-view
vlan 104
description fangke_wifi
quit
interface vlanif104
description fangke_wifi_vlan
ip address 192.168.199.1 255.255.255.0
undo icmp ttl-exceeded send
dhcp select interface
dhcp server static-bind ip-address 192.168.199.199 mac-address xxxx-xxxx-xxxx
dhcp server dns-list 223.5.5.5 172.16.8.250
接口dhcp 静态绑定IP+MAC配置完成。
完成此配置不报错的前提
查看interface ip pool 池地址分配情况 ]display ip pool interface vlanif104 all
conflict冲突报错,使用命令清除select interface 下DHCP conflict
命令:
reset ip pool interface Vlanif104 conflict
清除后在三层接口下配置:
dhcp server static-bind ip-address 192.168.199.199 mac-address xxxx-xxxx-xxxx
恢复IP地址为Idle状态命令:>reset ip pool interface vlanif104 192.168.199.224
Warning:Y
若在地址池中启用DHCP,则对应的命令是>reset ip pool name vlan104 192.168.199.224 Warning:Y
一下是以dhcp select global 配置为例:
display ip pool name vlan36 all 存在IP地址Conflict状态status
reset ip pool name vlan36 conflict 显示status为Idle
配置不了需要在接口下配置静态绑定。
版权归原作者 小憩亦佳007 所有, 如有侵权,请联系我们删除。