In Cisco document Programmability Configuration Guide, Cisco IOS XE Everest 16.6.x, it stated the following:
Any reason why DHCP server must be in the same network? Can't we use DHCP relay or IP helper if we only maintain a centralised DHCP server, instead of having additional DHCP server in each and every network segment that we need to run ZTP?
Solved! Go to Solution.
Either you'll need to have the DHCP server on the network where the devices will be ZTP, or use an appropriate DHCP forwarding service (e.g. ip helper-address on an SVI) in order to forward the BOOTP traffic to a DHCP server on a different network. Basically, it's the same requirement as for any other host receiving DHCP on a network.
yoongseong,
According to this document https://www.cisco.com/c/en/us/td/docs/routers/asr920/configuration/guide/chassis/b_Chassis_Guide_xe-16-5-asr920/using-ztp.pdf
there is no requirement to have a local DHCP server in every network for which ZTP is required.
Hi Sergey, in Cisco IOS-XE Programmability Guide, it did state that "a DHCP server must be running on the same network as the new device that is being provisioned."
Either you'll need to have the DHCP server on the network where the devices will be ZTP, or use an appropriate DHCP forwarding service (e.g. ip helper-address on an SVI) in order to forward the BOOTP traffic to a DHCP server on a different network. Basically, it's the same requirement as for any other host receiving DHCP on a network.