|
|
| Line 1: |
Line 1: |
| | | | |
| − |
| |
| − | In order to provide option 150 (or other custom options) two configuration entries are required, first, in the top level of the configuration file located at /etc/dhcp/dhcpd.conf you need to define your custom option:
| |
| − |
| |
| − | option voip-tftp-server code 150 = { ip-address };
| |
| − |
| |
| − | Then, in the subnet stanza for where you need to provide the information you'll configure the option with the appropriate value.
| |
| − |
| |
| − | subnet 192.168.0.0 netmask 255.255.255.0 {
| |
| − | [...]
| |
| − | option voip-tftp-server 10.101.0.10;
| |
| − | }
| |
| − |
| |
| − | If you place the option definition in the subnet stanza then dhcpd will not work.
| |
| − | shareimprove this answer
| |
| − |
| |
| − | edited Mar 14 '13 at 18:58
| |
| − |
| |
| − |
| |
| − | answered Mar 14 '13 at 17:09
| |
| − | johnf
| |
| − | 629410
| |
| − |
| |
| − | add a comment
| |
| − | up vote -1 down vote
| |
| − |
| |
| − |
| |
| − | It can be:
| |
| − |
| |
| − | option tftp-servers code 150 = array of ip-address;
| |
| − |
| |
| − | option tftp-servers 10.20.10.1, 10.20.11.1;
| |
| − | shareimprove this answer
| |
| − |
| |
| − |
| |
| − | http://www.redhat.com/archives/redhat-list/2004-December/msg00272.html
| |
| − |
| |
| − | Since I'm not able to reply to the archived posts from earlier this
| |
| − | year when people were asking how to do this, here is a quick config for
| |
| − | anyone doing a websearch now or in the future. This is an example of how
| |
| − | to use a linux dhcpd DHCP server to hand out ip address leases and
| |
| − | specify the TFTP option 150 for VoIP phones in the dhcpd.conf config
| |
| − | file.
| |
| − |
| |
| − | # /etc/dhcpd.conf
| |
| − |
| |
| − | ddns-update-style interim;
| |
| − | ignore client-updates;
| |
| − |
| |
| − | # Define Custom Options
| |
| − | option option-150 code 150 = ip-address;
| |
| − |
| |
| − | # Global Config
| |
| − |
| |
| − | option ip-forwarding off;
| |
| − | option nis-domain "domain.local";
| |
| − | option domain-name "domain.local";
| |
| − | default-lease-time 21600;
| |
| − | max-lease-time 43200;
| |
| − |
| |
| − | subnet 192.168.117.0 netmask 255.255.255.0 {
| |
| − |
| |
| − | option routers 192.168.0.1; #
| |
| − | Default Gateway
| |
| − | option subnet-mask 255.255.255.0;
| |
| − | option broadcast-address 192.168.0.255;
| |
| − | option domain-name-servers 192.168.0.10;
| |
| − | option nntp-server 192.168.0.10;
| |
| − | option time-offset -18000; #
| |
| − | Eastern Standard Time
| |
| − | option option-150 192.168.200.10;
| |
| − | # TFTP Custom Option
| |
| − | next-server 192.168.200.10;
| |
| − | # TFTP Boot
| |
| − |
| |
| − | range dynamic-bootp 192.168.0.200 192.168.0.249;
| |
| − |
| |
| − | }
| |