pike
(Michael Kicks)
January 20, 2023, 2:46pm
#1
NethServer Version: 7.9
Module: DHCP Server
So.
NethServer Version: 7.6
**Module:**DHCP server
Hello
I need both options 66 and 150 for Asterisk an Cisco IP phones (with Cisco protocoll sccp)
please no discussions abaut sip on cisco phones i spend a lot of tme by my phones restarts in cylces of 3 minits. so i will try sccp
I am understanding that the configuration of DNS DHCP and TFTP ist in
/etc/e-smith/templates/etc/dnsmasq.conf/
Looks like 2 edit 30dhcp
my $tftp_server = $_->prop('DhcpTFTP') || '';
if ($tftp_server ne '') …
Currently the DHCP interface do not comply to add custom options for the service. Automagically informations are withdraw from the PBX, the network interfaces, and so on.
Ok… But i’d love to create custom options, and i know the way (custom template) but not how to make it, at least in the correct way for DHCP .
NethServer Version: 7.6
**Module:**DHCP server
Hello
I need both options 66 and 150 for Asterisk an Cisco IP phones (with Cisco protocoll sccp)
please no discussions abaut sip on cisco phones i spend a lot of tme by my phones restarts in cylces of 3 minits. so i will try sccp
I am understanding that the configuration of DNS DHCP and TFTP ist in
/etc/e-smith/templates/etc/dnsmasq.conf/
Looks like 2 edit 30dhcp
my $tftp_server = $_->prop('DhcpTFTP') || '';
if ($tftp_server ne '') …
Startin from option 66.
I’d love to have any experience and I’m available to sort of “wiki/howto” for implementing “the right way” for other users…
mrmarkuz
(Markus Neuberger)
January 20, 2023, 9:50pm
#2
I think it’s simpler to follow these instructions to create a custom template fragment that adds options at the end of /etc/dnsmasq.conf
:
Hi and welcome to NethServer Community,
NethServer uses templates to write config files. You could create a custom template fragment to add the line to dnsmasq.conf:
Create custom template dir:
mkdir -p /etc/e-smith/templates-custom/etc/dnsmasq.conf
Create fragment:
echo "conf-dir=/etc/dnsmasq.d" > /etc/e-smith/templates-custom/etc/dnsmasq.conf/91dnsmasqd
Apply config:
signal-event nethserver-dnsmasq-update
Just add your options In /etc/e-smith/templates-custom/etc/dnsmasq.conf/91options
like
dhcp-option=tag:br0,66,1.2.3.4
dhcp-option=tag:br0,150,1.2.3.4
br0 is the internal interface and options 66 and 150 are set to 1.2.3.4 in this example.
3 Likes