MAC Map
Notes from 2009–10

Creating a VoIP rollout: phones that configure themselves by MAC address

Desk IP phones find their settings by looking for a file named after their own MAC address. Get the address format right and a hundred phones set themselves up.

Published

The appeal of IP telephony in an office is that nobody has to visit each desk. Plug a phone in, and it fetches its own configuration. The key it uses to find that configuration is its MAC address.

How auto-provisioning works

  1. The phone boots and asks DHCP for an IP address.
  2. The DHCP reply includes a provisioning server, usually in option 66 (a TFTP server name) or a vendor-specific option.
  3. The phone requests a file named after its own MAC address from that server.
  4. If no such file exists, it falls back to a shared default file.

The file names

Each vendor has its own pattern, but the MAC address is always in it, usually as bare hex:

SEP00005E005340.cnf.xml     Cisco: "SEP" + MAC, upper case
00005e005340.cfg            many SIP phones: lower case, no separators

This is where address notation stops being cosmetic. A file saved as 00-00-5E-00-53-40.cfg or with the wrong case on a case-sensitive server will simply never be found, and the phone boots with defaults. Normalise every address before generating files; the checker shows the bare-hex form.

Getting the list

Phones ship with the address printed on a label on the base and on the box, often as a barcode. Scanning the boxes into a spreadsheet before they go out to desks is far easier than turning phones over afterwards. Alternatively, let the phones boot once and read the addresses from the DHCP server’s lease list.

The voice VLAN

On most switches the phone also learns, through CDP or LLDP-MED, which VLAN to use for voice. The PC plugged into the phone’s second port stays on the data VLAN, so one switch port carries two MAC addresses. If that port has port security enabled, allow at least two.

Check an address in the MAC Map checker