Community discussions

MikroTik App
 
mtr
just joined
Topic Author
Posts: 12
Joined: Fri Oct 30, 2020 4:50 am

DHCP option 66 for provision server not working

Mon Aug 02, 2021 3:39 pm

Good morning

i set up a option under DHCP for option code 66 and for the server i did 'http://xx.xxxxx.com/provision' i assigned this option to my pool , under DHCP>networks, none of my phones get the provision URL we have a mix of yealink and polycom phones

what am i missing

any guideness and how to trouble shoot this ?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 3:52 pm

/ip dhcp-server export
 
mtr
just joined
Topic Author
Posts: 12
Joined: Fri Oct 30, 2020 4:50 am

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 4:11 pm

# jan/08/1970 16:23:21 by RouterOS 6.47.1
# software id = SGQT-PP3L
#
# model = RB2011UiAS
# serial number = D51E0CA1CC67
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=bridge name=dhcp1
/ip dhcp-server option
add code=160 name=option66 value="'http://fsxx.xxhone.cloud/app/provision/'"
/ip dhcp-server option sets
add name=set1 options=option66
/ip dhcp-server lease
add address=192.168.5.223 always-broadcast=yes client-id=1:80:5e:c0:db:7:53 mac-address=80:5E:C0:DB:07:53 server=dhcp1
/ip dhcp-server network
add address=192.168.5.0/24 dhcp-option=option66 dns-server=8.8.8.8 gateway=192.168.5.1


 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 4:14 pm

option 66 has code 160 or.. 66???
code=160
 
mtr
just joined
Topic Author
Posts: 12
Joined: Fri Oct 30, 2020 4:50 am

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 4:22 pm

I changed it to 160 because that's what I saw something on Google to try 160 if 66 doesn't work
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 5:12 pm

The TFTP server work and the url is "provision/" or "provisioning/" ?
 
mtr
just joined
Topic Author
Posts: 12
Joined: Fri Oct 30, 2020 4:50 am

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 5:21 pm

The TFTP server work and the url is "provision/" or "provisioning/" ?
its an HTTP server not a tftp and the URL is provision
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 5:22 pm

ok, if is not httpS, but http:// etc. open on web browser the link works?
 
mtr
just joined
Topic Author
Posts: 12
Joined: Fri Oct 30, 2020 4:50 am

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 5:29 pm

ok, if is not httpS, but http:// etc. open on web browser the link works?
Yes the web browser works

the problem is that i dont see the URL under the provision server field on the phone
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 5:54 pm

Have you enabled DHCP provisioning in the phone features? Or have you factory reset the phones to test?

(Yealink will only accept DHCP provisioning when enabled or after factory reset)
 
mtr
just joined
Topic Author
Posts: 12
Joined: Fri Oct 30, 2020 4:50 am

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 5:57 pm

They are new phones but I will do a fscotory reset now
 
mtr
just joined
Topic Author
Posts: 12
Joined: Fri Oct 30, 2020 4:50 am

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 6:50 pm

They are new phones but I will do a fscotory reset now
factory reset didnt help
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 7:52 pm

Then try enabling DHCP Provisioning: Settings > Auto Provision > DHCP Active > On
Then reset (reboot) phone.

Is your endpoint password protected? From a working setup:
/ip dhcp-server option
add code=66 name=yealink value="'https://user:password@host.domain.tld:443/dms/yealink/'"
/ip dhcp-server network
add address=192.168.21.0/24 dhcp-option=yealink gateway=192.168.21.254 netmask=24

Also, note that your static binding overrides the network setting, apparently. You may want to add the option here too:
/ip dhcp-server lease
add address=192.168.5.223 mac-address=80:5E:C0:DB:07:53 server=dhcp1 << add dhcp-option=option66
 
mtr
just joined
Topic Author
Posts: 12
Joined: Fri Oct 30, 2020 4:50 am

Re: DHCP option 66 for provision server not working

Mon Aug 02, 2021 8:52 pm

Dhcp option is on . On the phone

Iam going to try and do a packet capture

Who is online

Users browsing this forum: BinaryTB, raphaps, rplant and 83 guests