首页/网络/网络设备配置速查/PXE/零配置开局:next-server 与 bootfile
DHCP 与地址服务32 条

PXE/零配置开局:next-server 与 bootfile

批量装系统或交换机零配置时,DHCP 既要发地址也要告诉设备去哪台服务器取引导文件:三厂都有 next-server + bootfile 等价组合。

网络设备配置速查网络更新于 2026-10-12
场景PXE 装机 / 设备自动升级
适用三厂 DHCP 服务器
要点引导服务器与文件名建议用 IP+相对路径,避免 DNS 依赖

华为 VRP

华为 VRP
ip pool PXE
 network 192.168.30.0 mask 255.255.255.0
 gateway-list 192.168.30.1
 next-server ip-address 192.168.30.10
 bootfile pxelinux.0
display ip pool

思科 IOS

思科 IOS
ip dhcp pool PXE
 network 192.168.30.0 255.255.255.0
 default-router 192.168.30.1
 next-server 192.168.30.10
 bootfile pxelinux.0
show ip dhcp pool

H3C Comware

H3C Comware
dhcp server ip-pool PXE
 network 192.168.30.0 mask 255.255.255.0
 gateway-list 192.168.30.1
 next-server 192.168.30.10
 bootfile-name pxelinux.0
display dhcp server pool
差异:华为写 next-server ip-address,思科 next-server 直接跟 IP,H3C 是 next-server + bootfile-name。PXE 还依赖 TFTP 服务可用与防火墙放行 69/UDP。

易错点

  • bootfile 路径大小写与 TFTP 服务器上文件名不一致时,客户端会卡在“找不到引导文件”不报 DHCP 错

数据来源与参考

  • Cisco IOS next-server/bootfile 配置
  • 华为 VRP 地址池引导配置
  • H3C Comware 地址池 next-server

相关工具

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