首页/网络/网络设备配置速查/DHCP 静态绑定:按 MAC 固定分配 IP
本包目录(508 条)
设备开局与基础配置61 条接口与链路73 条VLAN 与二层交换60 条路由(静态 / OSPF)62 条ACL 与安全65 条NAT 与出口31 条
DHCP 与地址服务32 条
堆叠、高可用与备份升级52 条设备排障72 条

DHCP 静态绑定:按 MAC 固定分配 IP

打印机、AP、监控摄像头需要固定地址又不想手配:在地址池里做静态绑定,服务器按 MAC 每次都下发同一 IP。

网络设备配置速查网络更新于 2026-10-12
场景指定设备固定 IP
适用三厂 DHCP 服务器
命令族static-bind / host + hardware-address / static-bind

华为 VRP

华为 VRP
ip pool VLAN10
 static-bind ip-address 192.168.10.50 mac-address 0011-2233-4455
! MAC 写成本机格式 xxxx-xxxx-xxxx
display ip pool

思科 IOS

思科 IOS
ip dhcp pool PRINTER
 host 192.168.10.50 255.255.255.255
 hardware-address 0011.2233.4455
! 或 client-identifier 01.0011.2233.4455(01 前缀表示以太网)
show ip dhcp binding

H3C Comware

H3C Comware
dhcp server ip-pool VLAN10
 static-bind ip-address 192.168.10.50 mask 255.255.255.0 mac-address 0011-2233-4455
display dhcp server pool
差异:思科用 hardware-address 或 client-identifier(01 前缀最易漏);华为/H3C 都是 static-bind ip-address ... mac-address ...,注意 H3C 带 mask 参数。

易错点

  • 被绑定设备自己又手配了别的静态 IP 时,绑定“看似失效”,先用 ipconfig /all 核对客户端实际来源

数据来源与参考

  • 华为 VRP static-bind 命令
  • Cisco IOS 静态地址绑定
  • H3C Comware static-bind 命令

相关工具

​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌