LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-16-2017, 12:22 PM   #1
npereira
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Rep: Reputation: 16
question related to DHCP option 66 and multiple class


Hi,

I have several different types of phone on my voice network but they all provision using option 66 with a tftp server address only (polycoms).

Im adding Yealink phones that need to be provisioned to a different server using a HTTP URL.

It doesnt look like they are picking up the tftp-server-name or that option does not allow for a URL based entry.

Here is what the dhcpd currently looks like: (the issue is with the yealink)

Code:
class "yealink" {
        match if substring (hardware, 1, 3) = 00:15:65;
        option tftp-server-name "http://10.10.10.10/provisioning/sdgdfg63oz/";
}


class "polycom" {
        match if substring (hardware, 1, 3) = 00:04:f2;#grabs all polyconm phones based on mac if its
                                                        #not polycom watch out
}

class "polycom-kirk" {
        match if substring (hardware, 1, 3) = 00:13:d1;
}

class "linksys" {
        match if substring (hardware, 1, 3) = 00:0e:08;
}

group phones {
        option routers 10.44.16.1; #router ip for server
        option ntp-servers 10.44.16.10; #same

        subnet 10.44.16.0 netmask 255.255.255.0 {
                option routers 10.44.16.1;
                option tftp-server-name "ftp://polycom:456@10.44.16.10";#asterisk server address
                range 10.44.16.50 10.44.16.254;#range for phone ips over dhcp
        }
}
can someone let me know what im doing wrong here? thanks
 
Old 11-17-2017, 09:44 AM   #2
npereira
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Original Poster
Rep: Reputation: 16
finally got it working like so:

Quote:
class "yealink" {
match if substring (hardware, 1, 3) = 00:15:65;
}
class "polycom" {
match if substring (hardware, 1, 3) = 00:04:f2;#grabs all polyconm phones based on mac if its
}
class "polycom-kirk" {
match if substring (hardware, 1, 3) = 00:13:d1;
}
class "linksys" {
match if substring (hardware, 1, 3) = 00:0e:08;
}
subnet 10.44.16.0 netmask 255.255.255.0 {
option routers 10.44.16.1;
option ntp-servers 10.44.16.10;
pool {
# Polycom
range 10.44.16.150 10.44.16.254;
option tftp-server-name "ftp://polycom:456@10.44.16.10";#asterisk server address
allow members of "polycom";
allow members of "polycom-kirk";
allow members of "linksys";
}
pool {
# Yealink
range 10.44.16.50 10.44.16.100;
option domain-name-servers 10.44.22.200, 10.44.22.201;
option tftp-server-name "http://voice.mydomain.com/provisioning/zkcvec63oz";
allow members of "yealink";
}
}
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Option user-class on DHCP client won't work Khanye Linux - Networking 3 08-25-2016 01:37 AM
How to make dhclient require some specific sub-option in vendor-class-identifier walkingman321 Linux - Networking 1 09-01-2015 10:13 AM
How can I use dhcp class to identify access point ? Joydeep Bakshi Linux - Networking 5 01-13-2012 06:51 PM
ISC DHCP Class match statement don_wombat_73 Linux - Server 3 02-15-2011 09:03 PM
Need help on: DHCP server, multiple LAN's, Cisco option 150; configuration jwsnl Linux - Server 1 06-18-2010 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration