Please help with DHCP Server Options for Mitel IP Phones

Good day,
I’m having some difficulties programming the DHCP server options on a Routerboard RB751G (version v6.0rc14). I want to use these routerboards to hand out DHCP settings to Mitel IP handsets for hosted PBX installations where there is no Mitel controller / IP PBX (usually used to handle DHCP) on site.

In the Mitel Controller one would normally have to specify the following DHCP options to get everything to work as it should:


Option ID = 3
Name = Router
Value = 172.72.72.254
Format = IP Address
Scope = Global
Vendor ID =

Option ID = 125
Name = Mitel
Value = id:ipphone.mitel.com;sw_tftp=10.0.1.240;call_srv=10.0.1.240;vlan=300;l2p=6v6;dscp=46v46s26
Format = ASCII String
Scope = Global
Vendor ID = 1027

Option ID = 128
Name = TFTP Server
Value = 10.0.1.240
Format = IP Address
Scope = Global
Vendor ID =

Option ID = 129
Name = Call Server
Value = 10.0.1.240
Format = IP Address
Scope = Global
Vendor ID =

Option ID = 130
Name = IP Phone Identifier
Value = MITEL IP PHONE
Format = ASCII String
Scope = Global
Vendor ID =

Option ID = 134
Name = DSCP
Value = 46
Format = Numeric
Scope = Global
Vendor ID =


I have tried various setting to get this to work without any success. Here is an example from my current config:

[admin@test] /ip dhcp-server option> print

NAME CODE VALUE RAW-VALUE

0 TFTP Server 128 ‘10.0.1.240’ 0a0001f0
1 Call Server 129 ‘10.0.1.240’ 0a0001f0
2 IP Phone Identifier 130 ‘MITEL IP PHONE’ 4d4954454c2049502050484…
3 DSCP 134 ‘46’ 3436
4 Router 3 ‘192.168.55.253’ 3139322e3136382e35352e3…
5 Mitel 125 'id:ipphone.mitel.c… 69643a697070686f6e652e6…
[admin@RWS-HOME] /ip dhcp-server option>

I have also linked all these options under ‘Networks’ and can see the values being passed to the IP phone on startup in the routerboard log. It seems like the format or RAW-VALUE is incorrect as the phone does not receive ‘10.0.1.240’ as the TFTP server.

Your help would be greatly appreciated!
Thanks in advance!

Please I really need some assistance. Can anyone please assist?

Maybe you also need to add next server as your tftp.. like this thread.

http://forum.mikrotik.com/t/dhcp-options-option-60-66-not-working/65046/1

With command.

ip dhcp-server network set next-server=

Or the format of the ip address in 128 and 129 is incorrect.

Maybe it should be in converted to ascii-string with command.

add name="TFTP Server" code=128 value="'10.0.1.240'"

So the print line like this.

0 TFTP Server 128 '10.0.1.240' 31302e302e312e323430

Not as yours, there the ip address is in hex code only.

0 TFTP Server 128 '10.0.1.240' 0a0001f0

Do you see the differences, as the printed raw-values ??
I think you have upgraded your router.. and the dhcp options lines is not correct treated.

Add detail to your print command, you will see the commands better.

[admin@MikroTik] /ip dhcp-server option> print detail                                            
0 name="TFTP Server" code=128 value="'10.0.1.240'" raw-value="31302e302e312e323430"

Thanks so much for your reply! I have removed all options and added them again as per your instructions. Here is my setup:


[admin@testsite] > /ip dhcp-server option print detail
0 name=“IP Phone Identifier” code=130 value=“‘MITEL IP PHONE’”
raw-value=“4d4954454c2049502050484f4e45”

1 name=“TFTP Server” code=128 value=“‘10.0.1.240’”
raw-value=“31302e302e312e323430”

2 name=“Call Server” code=129 value=“‘10.0.1.240’”
raw-value=“31302e302e312e323430”

3 name=“Router” code=3 value=“‘192.168.20.254’”
raw-value=“3139322e3136382e32302e323534”

4 name=“DSCP” code=134 value=“‘46’” raw-value=“3436”

5 name=“Mitel” code=125 value=“‘id:ipphone.mitel.com; sw_tftp=10.0.1.240;
call_srv=10.0.1.240; vlan=0; l2p=6v6; dscp=46v46s26’”
raw-value=“69643a697070686f6e652e6d6974656c2e636f6d3b2073775f746674703d31302
e302e312e3234303b2063616c6c5f7372763d31302e302e312e3234303b20766c616e
3d303b206c32703d3676363b20647363703d3436763436733236”
[admin@testsite] >

Still it seems like the phone is not receiving the correct options as it now sits at “DHCP: Discovery” and then just times out. Please advise.

Thanks in advance for your assistance!

And my first “tftp next server” then ??

And the “DSCP” i think it should be 46 Decimal = 2E Hex = 0x2E

  • “Format = Numeric”

Like:

ip dhcp-server option add name=DSCP code=134 value=0x2E

And do you have correct vlan ??

Once again thanks for your reply and assistance!

I have added the next server and have changed the DSCP option 134 as per you previous posting but unfortunately still no luck :frowning:

When I do a DHCP trace after the phone has boot up it shows the following (which is obviously wrong):

TFTP Server: 52.46.57.52 (This should be 10.0.1.240)
ICP Server 1: 49.48.46.48 (This should be 10.0.1.240)
ICP Server 2: 46.49.46.50 (Think this should be empty!)
Mitel ID: MITEL IP PHONE (This is correct)
DSCP 1: 0
DSCP 2: 46 (Correct)
DSCP 3: 24 (Think it is correct)
DSCP 4: -1 (Not sure what this should be)
VENDOR SPEC1: id:ipphone.mitel.com (This is correct)

Also see Wireshark photo attached.

Thanks in advance for your assistance!
Screen Shot 2013-05-16 at 1.01.33 PM.png

Hihihihih greate…thanks for the wirechark dump.
What i can see… is the ip adress is in wrong format … lol :slight_smile:
If you convert the hex to dec… you will se that you need to take back the old format of the ip adress.

so

add name="TFTP Server" code=128 value=0x0a0001f0

Sorry for my laght… but then i saw the hex ip adress converted to decimal ip string like the info on the phone…i cant hold my self.
TFTP Server: 52.46.57.52 (This should be 10.0.1.240)

Best luck… and wirechark are greate… to analyse.. whats wrong..

Thanks so much for your help. I have made the change as requested and now the DHCP trace reflects as follow:

TFTP Server: 48.46.48.49 - this was 52.46.57.52 before the change to 0x0a0001f0 (This should be 10.0.1.240)
ICP Server 1: 49.48.46.48 (This should be 10.0.1.240)
ICP Server 2: 46.49.46.50 (Think this should be empty!)
Mitel ID: MITEL IP PHONE (This is correct)
DSCP 1: 0
DSCP 2: 46 (Correct)
DSCP 3: 24 (Think it is correct)
DSCP 4: -1 (Not sure what this should be)
VENDOR SPEC1: id:ipphone.mitel.com (This is correct)

The value has changed, but the format has to be still wrong - any advice?

Thanks in advance for your assistance

Strange!!!

Have you read the mitel site ??
http://edocs.mitel.com/UG/draft/3300ICP/Release_MCD_6.0/sysadmin/forms/dhcp_options.html

And the note !! (not by the rfc)
Options 128-223

Formerly user-defined or site-specific options declared public and tentatively unavailable by RFC protocol. Mitel-specific parameters assigned to options in this range have been reassigned in 3300 ICP, Release 7.0 to Options 43 and 125.
Note: Legacy options will remain in the list following an upgrade to Release 7.0 to provide backward compatibility with IP sets that have yet to be upgraded with firmware that supports the new options 60/43 and 124/125. No support will be provided for multiple l2p and dscp values.


And for the last line…

Have you tried to remove the spacees in the 125 string.

“id:ipphone.mitel.com;sw_tftp=10.0.1.240;call_srv=10.0.1.240;vlan=0;l2p=6;dscp=46;ipa_srv=10.0.1.240”


And one support tip… just add one dhcp option at the time…and see if it’s get correct.
Take small steps…

Here is a working configuration from a linux server with the Internet System Consortium’s (ISC) open-source DHCP Server. Maybe this will give you a hint of how to configure RouterOS DHCP Server.

option IP-phone-TFTP-Server-IP-Address code 128 = ip-address;
option IP-phone-TFTP-Server-IP-Address 192.168.1.10;

option RTC-IP-Address code 129 = ip-address;

option RTC-IP-Address 192.168.1.10;

option IP-phone-DHCP-Server code 130 = string;
option IP-phone-DHCP-Server “MITEL IP PHONE”;

option Phone-Analyser code 131 = ip-address;
option Phone-Analyser 192.168.2.10;

option mitel-option code 43 = string;
option mitel-option = “id:ipphone.mitel.com;sw_tftp=192.168.1.10;call_srv=192.168.1.10;vlan=100;l2p=6;dscp=46;ipa_srv=192.168.2.10”;

Big thanks to everyone for the assistance. As per the previous post Mitel now uses option 125 mainly and for the IP consoles and some DECT and outdated firmware phones it still requires options 128 and 129. Unfortunately I could not get option 125 to work using the above described methods, but if any else is having the same issue, here is what I had to do to get it to work:

1.) Option 128 and 129 has to be in HEX as follow (This is for 10.0.1.240)
ip dhcp-server option add name=“TFTP Server” code=128 value=0x0a0001f0
ip dhcp-server option add name=“Call Server” code=129 value=0x0a0001f0

2.) Option 134 has to be in HEX as follow
ip dhcp-server option add name=“DSCP” code=134 value=0x2E

3.) Option 125 has to be in HEX as follow
ip dhcp-server option add name= “Mitel” code=125 value=0x000004033C69643A697070686F6E652E6D6974656C2E636F6D3B73775F746674703D31302E302E312E3234303B63616C6C5F7372763D31302E302E312E3234303B

Mitel has a tool called “DHCP option 125 config helper for windows” that I had to use in order to get the HEX correctly. You simply put in all the mitel server detail and copy the HEX converted format to clipboard (remember to prefix this string with “0x” to indicate to routerOS that it is a HEX string.

Once again thanks for everyone’s assistance and I hope this thread can be of some help to others :slight_smile:

Great that you solved it.

It’s not easy with dhcp options, i have learned a lot of this on my routers.
On the internet, iptv and voip solution at home.
Like with sub options on the 43.