Author Topic: configuring ebox dhcp for shoretel voip  (Read 3316 times)

coax31

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
configuring ebox dhcp for shoretel voip
« on: May 06, 2008, 11:19:33 pm »
I want to use ebox as replacement for some Windows DCs at my company, our netowrk uses a Shoretel voip phone system and we configuered Windows dhcp to hand out a special scope option 156 which hands out a  ftp address ( ftp=10.1.1.245 )to the phones so they can load their configuration. Is there anyway to do this with ebox dhcp?

jcanfield

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +2/-0
    • View Profile
Re: configuring ebox dhcp for shoretel voip
« Reply #1 on: May 07, 2008, 02:58:37 am »
You will want to edit he dhcp.conf.mas file and add the ftp option.  Be warned this will be overwritten when you update ebox so back it up.

Personally, i would run a separate dhcp server on my viop server and vlan the phones.

   
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius...and a lot of courage - to move in the opposite direction."  --  Albert Einstein

coax31

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: configuring ebox dhcp for shoretel voip
« Reply #2 on: May 07, 2008, 04:45:51 am »
This is a Ubuntu 8.04 server does it have a dhcp.conf.mas file?

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: configuring ebox dhcp for shoretel voip
« Reply #3 on: May 07, 2008, 11:56:02 am »
The stubs (file configuration templates) for DHCP module are in /usr/share/ebox/stubs/dhcp/. I think subnet.mas file is the one you want to modify.

Hope this helps.
My secret is my silence...

coax31

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: configuring ebox dhcp for shoretel voip
« Reply #4 on: May 07, 2008, 04:50:23 pm »
sorry to be such a pain, but how and where would I add the ftp option to this file below:


root@ubuntuDTC:/usr/share/ebox/stubs/dhcp# vi dhcpd.conf.mas
Parameters:

    ifaces - Hash
    real_ifaces - Hash
    thinClientOption - Boolean indicating whether the thin client
    options have been used or not
    dnsone - String the default primary DNS server
    dnstwo - String the default secondary DNS server
</%doc>
<%args>
        %ifaces
        %real_ifaces
        $thinClientOption => 0
        $dnsone => ""
        $dnstwo => ""
</%args>

# extra options
# RFC3442 routes
option rfc3442-classless-static-routes code 121 = array of integer 8;
                                                              3,0-1         Top
option domain-name-servers <% $dnsone %>\
%               if(length($dnstwo) != 0) {
, <% $dnstwo %>;
%               }else{
;
%               }
%       }

% if($thinClientOption) {
allow booting;
allow bootp;
% }

default-lease-time 1800;
max-lease-time 7200;




%       foreach my $iface (keys(%real_ifaces)) {
<& dhcp/shared-network.mas, iface => $iface, ifaces => \%ifaces, vifaces => $real_ifaces{$iface} &>

« Last Edit: May 07, 2008, 04:55:23 pm by coax31 »

jcanfield

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +2/-0
    • View Profile
Re: configuring ebox dhcp for shoretel voip
« Reply #5 on: May 08, 2008, 01:20:48 am »
sorry to be such a pain, but how and where would I add the ftp option to this file below:



Javi is right, it's the subnet.mas file that needs to be edited.

Add this line to your subnet.

Code: [Select]
option shoretel-server code 156 = string;
option shoretel-server "ftpserver=10.1.1.245";


Be careful where you add the option line:

Code: [Select]
                range <% $range->{'from'} %> <% $range->{'to'} %>;
%       }
<----ADD LINES HERE---->
        }

I grabbed this from a quick google [1] of shoretel dhcp config...I can't verify the accuracy.

[1] http://www.shoretelforums.com/forums/administrators/1266-how-configure-option-156-linux-dhcpd.html


« Last Edit: May 08, 2008, 01:56:50 am by jcanfield »
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius...and a lot of courage - to move in the opposite direction."  --  Albert Einstein

coax31

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: configuring ebox dhcp for shoretel voip
« Reply #6 on: May 09, 2008, 06:35:36 am »
Well I added the lines and the phone doesn't get the ftp IP assigned,what else can i try?

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: configuring ebox dhcp for shoretel voip
« Reply #7 on: May 11, 2008, 05:05:23 pm »
From your DHCP clients, is the FTP server reachable?

Try it using a FTP client from a DHCP client which is a computer:
Code: [Select]
$ ftp <ftpServer>
My secret is my silence...