SRX Services Gateway
Highlighted
SRX Services Gateway

SRX DCHPd, Option 125 and Mitel Phones

‎11-25-2019 06:17 PM

This post isn't a question, more of an answer tying together a bunch of other posts and KB articles that I've been searching through.

 

Problem:

You have an older SRX series (running DHCPd - the set system services dhcp version) and you want to configure DHCP Option 125 (or 43) for handing out boot strings to a Mitel IP Phone.

 

You're tearing your hair out because you keep seeing error messages such as:

byte-stream can have only 254 8-bit unsigned values separated by space

Option 125 must be defined as byte type

 

Solution:

Take your Mitel boot string eg:

id:ipphone.mitel.com;sw_tftp=192.168.20.240;call_srv=192.168.5.10;

and convert it to decimal using one of the many online tools available eg: https://www.asciitohex.com 

Take the resulting decimal string and add it to your DHCP option 125 as a byte-stream eg:

set system services dhcp pool 192.168.150.0/24 option 125 byte-stream "105 100 58 105 112 112 104 111 110 101 46 109 105 116 101 108 46 99 111 109 59 115 119 95 116 102 116 112 61 49 57 50 46 49 54 56 46 50 48 46 50 52 48 59 99 97 108 108 95 115 114 118 61 49 57 50 46 49 54 56 46 53 46 49 48 59"

and commit.

 

Problem solved!

 

Ben Dale
JNCIP-ENT, JNCIP-SP, JNCIP-DC, JNCIE-SEC #63
Juniper Ambassador
Follow me @labelswitcher