Setting up a Cisco router for auto-provisioning of Cisco handsets

Here is a sample config to setup auto-provisioning for Cisco handsets. This only covers the part of distributing the config files to the handsets and not the config file creation part.

This assumes that VLAN100 is the VOICE VLAN and PCs are connecting via the PC port at the back of the phones.

ip dhcp pool VOICE
option 66 ascii "http://auto.provisioning.url/"
lease infinite
interface Vlan100
description VoiceVLAN
ip address
ip nat inside
ip virtual-reassembly in
interface FastEthernet3
description ToVoiceSwitch
switchport mode trunk
switchport voice vlan 100