Hi,
Id like to implement to send the Voice-VLAN via DHCP to the Unify phones (OpenStage 40).
This is described here: https://wiki.unify.com/images/e/e1/Administration_Manual_OpenStage_Asterisk.pdf
Page page 26 to 28.
Example dhcpd.conf
# General configuration for all clients in the subnet
subnet 192.168.2.0 netmask 255.255.255.0 {
option domain-name-servers 192.168.2.2;
option broadcast-address 192.168.2.255;
option routers 192.168.2.251;
option subnet-mask 255.255.255.0;
option domain-name "phones.intranet";
option ntp-servers 192.43.244.18;
option time-offset 3600;
default-lease-time 864000;
max-lease-time 8640000;
}
# Set up an option space to contain the vendor-encapsulated options
option space OpenStage;
option OpenStage.vendor code 1 = string;
option OpenStage.vlanid code 2 = unsigned integer 32;
option OpenStage.dls code 3 = string;
# Each vendor-class-identifier will constitute a class
class "vendor-classes" {
match option vendor-class-identifier;
}
# Specifications for OpenStage phones
subclass "vendor-classes" "OptiIpPhone" {
vendor-option-space OpenStage;
option OpenStage.vendor "Siemens";
option OpenStage.vlanid 4;
option OpenStage.dls "sdlp://192.168.2.103:18443";
option sip-server 192.168.2.117;
}
I did now create a “Generic Matcher” as told here: https://help.mikrotik.com/docs/display/ROS/DHCP#DHCP-Genericmatcher

This references to an “Option Set”:

This references to the real “Option”:

I calculated the Value of 0x0201’8’ as told here:
http://forum.mikrotik.com/t/dhcp-option-help/65722/1
and here: https://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Server#Properties_3
0x = hex
02 = code 2
01 = VID = single digit → “8” in my case
‘8’ = decimal number
option OpenStage.vlanid code 2 = unsigned integer 32;
option OpenStage.vlanid 4;
The phoine itself asks for the Option 60:

Does it work? OF COURSE NOT:

MT does not give out the Option 60?
I cant figure out why? Its so overly complicated with MT always…