0% found this document useful (0 votes)
167 views

VLAN Provisioning Via DHCP

This document discusses configuring VLAN tags on phones via DHCP options. It provides examples of provisioning files, DHCP server configuration, and expected phone behavior depending on whether the "PersistentVLANfromDHCP" flag is set to 0 or 1. If set to 0, VLAN tags from DHCP will only apply until reboot, but if set to 1, they will persist even after reboot unless changed by a new DHCP response. The document outlines various test cases of normal vs tagged DHCP, APS, and SIP traffic scenarios.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
167 views

VLAN Provisioning Via DHCP

This document discusses configuring VLAN tags on phones via DHCP options. It provides examples of provisioning files, DHCP server configuration, and expected phone behavior depending on whether the "PersistentVLANfromDHCP" flag is set to 0 or 1. If set to 0, VLAN tags from DHCP will only apply until reboot, but if set to 1, they will persist even after reboot unless changed by a new DHCP response. The document outlines various test cases of normal vs tagged DHCP, APS, and SIP traffic scenarios.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

ST2030 SG (v1.

53) VLAN provisioning via DHCP

CONTENTS 1 2 3 4 5 Configuring VLAN Tags via DHCP options:..............................................................................2 An example of provisioning files:................................................................................................2 An example of DHCP Server configuration: ...............................................................................2 Convention ...................................................................................................................................4 Expected behavior:.......................................................................................................................4

1 Configuring VLAN Tags via DHCP options:


The objective of this feature is to dynamically provision the phone with its VLAN tags without the need for an APS or setting the phones one by one.

2 An example of provisioning files:


Configuration Parameter and Syntax 0:Off 1:Voice 2:Voice and Data 0: dynamic (DHCP provisioned VLAN values are only applicable until the next reboot. DHCP renewals will Enable VLAN tags to not yield changes to VLAN settings). 1: static (once the phone got its VLAN parameters be kept even after the reboot from the DHCP, it stores them in the flash memory and will use them after each restart even if the DHCP does not give those parameters again). Enable and disable VLAN function VLAN ID for voice VLAN ID for data VLAN priority for voiceband VLAN priority for signalling VLAN Priority for data 1 ~ 4094 1 ~ 4094 0 ~ 7 0 ~ 7 0 ~ 7

VLAN

PersistentVLANfromDHCP

VLANid1 VLANid2 VLANTag1 VLANTag2 VLANTagdata

New parameters in ST2030S_common_v1.53.txt or in your specific MAC file:

[net] VLAN=0 PersistentVLANfromDHCP=0 [qos] VLANid1=1 VLANid2=1 VLANTag1=6 VLANTag2=6 VLANTagdata=6

3 An example of DHCP Server configuration:


The parameters to provision are: VLAN enabling flag (1 byte) Voice VLAN ID (2 bytes) Data VLAN ID (2 bytes)

This parameter will be passed to the client in three different options. VLAN enabling flag (1 byte) in option 190 Voice VLAN ID (2 bytes) in option 191 Data VLAN ID (2 bytes) in option 192 A VLAN configuration via DHCP is said to be valid when all three parameters are provided and the three have a valid value. The Parameter Request List 55 must be filled properly, by adding the new options requested. For Linux (dhcpd.conf):

option option option option option

option-66 option-67 vlan-flag voice-vlan-id data-vlan-id

code code code code code

66 67 190 191 192

= = = = =

text; text; unsigned integer 8; unsigned integer 16; unsigned integer 16;

subnet 10.0.0.0 netmask 255.255.255.0 { host ST2030 { hardware ethernet 00:0E:50:4E:91:DF; option routers 10.0.0.1; option subnet-mask 255.255.255.0; option domain-name-servers 10.0.0.1 option ntp-servers 10.0.0.1; option option-66 "10.0.0.1"; option option-67 "st2030.inf"; fixed-address 10.0.0.45; option vlan-flag 1; option voice-vlan-id 133; option data-vlan-id 133; } }

For Windows: Hanewin DHCP Server 3.0.5

4 Convention
[Normal DHCP(no Tags)] means DHCP has been performed with untagged packets, and DHCP options contains no VLAN settings. [Normal DHCP(Tags1)] means DHCP has been performed with untagged packets, and DHCP options provided correct tag set Tags1. [Tags1 DHCP(Tags2)] means DHCP has been performed with tagged packets set to Tags1, and DHCP options provided correct tag set to Tags2. [Normal SIP] means SIP flow has been performed with untagged packets. [Tags1 SIP] means SIP flow has been performed with tagged packets set to Tags1. [Normal TFTP(-)] means TFTP has been performed with untagged packets, and APS files contain no VLAN settings. [Normal TFTP(Tags1)] means TFTP has been performed with untagged packets, and APS files contain VLAN settings set to Tags1. [Tags1 TFTP(Tags2)] means TFTP has been performed with tagged packets set to Tags1, and APS files contain VLAN settings set to Tags2.

5 Expected behavior:
Case a) Flag PersistentVLANfromDHCP set to 0

APS is through DHCP Config files not include VLAN Tags DHCP NOT include VLAN Tags If all 3 options are not present, phone does not apply VLAN Tags. So Normal APS takes place. DHCP includes VLAN Tags set to 0 If DHCP-tags are present and valid, they are applied in the first query after DHCP. If option 190 is set to 0, then phone should change to non-VLAN mode. DHCP includes GOOD VLAN Tags If DHCP-tags are present and valid, they are applied in the first query after DHCP (so APS takes place with these tags). If the phone reboots then original DHCPtags are removed and the phone should apply again the rules Init. [Normal DHCP(-)] + [Normal TFTP(-)] + (APS finish & Reboot) + [Normal DHCP(-)] + [Normal TFTP(-)] + [Normal SIP]

Init. [Normal DHCP(190 set 0)] + [Normal TFTP()] + (APS finish & Reboot) + [Normal DHCP(190 set 0)] + [Normal TFTP(-)] + [Normal SIP]

Init. [Normal DHCP(Tags1)] + [Tags1 TFTP(-)] + (APS finish & Reboot) + [Normal DHCP(Tags1)] + [Tags1 TFTP(-)] + [Tags1 SIP] + Also changes only in DHCP Tags + Reboot + [Normal DHCP(Tags2)] + [Tags2 TFTP()] + (APS finish & Reboot) + [Normal DHCP (Tags2)] + [Tags2 TFTP(-)] + [Tags2 SIP] +

Or .. + Reboot + [Normal DHCP(-)] + [Normal TFTP(-)] + (APS finish & Reboot) + [Normal DHCP(-)] + [Normal TFTP(-)] + [Normal SIP] + Or .. + Reboot + [Normal DHCP(190 set 0)] + [Normal TFTP(-)] + (APS finish & Reboot) + [Normal DHCP(190 set 0)] + [Normal TFTP(-)] + [Normal SIP] +

APS is through DHCP Config files include VLAN Tags DHCP NOT include VLAN Tags If 3 options are not present, phone does not have to apply DHCP-tags. So Normal APS takes place. But once APS finishes, all the queries must have APS-Tags (include DHCP, because as no DHCP-tags are present, the phone should apply the stored APS Tags). DHCP includes VLAN Tags set to 0 If DHCP-tags are present and valid, they are applied in the first query after DHCP. If option 190 is set to 0, then phone should change to non-VLAN mode. So Normal APS and Normal SIP take place. But if the phone reboots then original DHCP-tags are removed and the phone should apply again the Config files include VLAN Tags. DHCP includes GOOD VLAN Tags DHCP-tags have higher priority. If DHCP-tags are present and valid, they are applied in the first query after DHCP (so APS takes place with these loaded tags). If the phone reboots then original DHCP-tags are removed and the phone should apply the Config files VLAN Tags. Once APS is finished, Config files VLAN Tags are not applied if DHCP-tags are present and valid. Init. [Normal DHCP(-)] + [Normal TFTP(Tags1)] + (APS finish & Reboot) + [Tags1 DHCP(-)] + [Tags1 TFTP(Tags1)] + [Tags1 SIP] + ... + Reboot + [Tags1 DHCP(-)] + [Tags1 TFTP(Tags1)] + (APS finish & Reboot) + [Tags1 DHCP(-)] + [Tags1 TFTP(Tags1)] + [Tags1 SIP] +

Init. [Normal DHCP(190 set 0)] + [Normal TFTP(Tags1)] + (APS finish & Reboot) + [Tags1 DHCP(190 set 0)] + [Normal TFTP(Tags1)] + [Normal SIP] + + Reboot + [Tags1 DHCP(190 set 0)] + [Normal TFTP(Tags1)] + (APS finish & Reboot) + [Tags1 DHCP(190 set 0)] + [Normal TFTP(Tags1 )] + [Normal SIP] +

Init. [Normal DHCP(Tags2)] + [Tags2 TFTP(Tags1)] + (APS finish & Reboot) + [Tags1 DHCP(Tags2)] + [Tags2 TFTP(Tags1)] + [Tags2 SIP] + Also changes in DHCP Tags and TFTP-Tags + Reboot + [Tags1 DHCP(Tags3)] + [Tags3 TFTP(Tags4)] + (APS finish & Reboot) + [Tags4 DHCP(Tags3)] + [Tags3 TFTP(Tags4)] + [Tags3 SIP] +

DHCP changes VLAN Tags If DHCP-tags are present and valid, they are applied in the first query after DHCP (so APS takes place with these loaded tags). If the phone reboots then original DHCP-tags are removed and the phone should apply the Config files VLAN Tags. Once APS is finished, Config files VLAN Tags are not applied if DHCP-tags are present and valid.

Init. [Normal DHCP(Tags2)] + [Tags2 TFTP(Tags1)] + (APS finish & Reboot) + [Tags1 DHCP(Tags2)] + [Tags2 TFTP(Tags1)] + [Tags2 SIP] + Also changes only in DHCP Tags + Reboot + [Tags1 DHCP(-)] + [Tags1 TFTP(Tags1)] + (APS finish & Reboot) + [Tags1 DHCP(-)] + [Tags1 TFTP(Tags1)] + [Tags1 SIP] + Or + Reboot + [Tags1 DHCP(190 set 0)] + [Normal TFTP(Tags1)] + (APS finish & Reboot) + [Tags1 DHCP(190 set 0)] + [Normal TFTP(Tags1 )] + [Normal SIP] +

Init. [Normal DHCP(Tags2)] + [Tags2 TFTP(Tags1)] + (APS finish & Reboot) + [Tags1 DHCP(Tags2)] + [Tags2 TFTP(Tags1)] + [Tags2 SIP] + Also changes only in TFTP-Tags + Reboot + [Tags1 DHCP(Tags2)] + [Tags2 TFTP(-)] + (APS finish & Reboot) + [Normal DHCP(Tags2)] +[Tags2TFTP(-)] + [Tags2 SIP] + Or + Reboot + [Tags1 DHCP(Tags2)] + [Tags2 TFTP(VLAN=0)] + (APS finish & Reboot) + [Normal DHCP(Tags2)] + [Tags2 TFTP(VLAN=0)] + [Tags2 SIP] + Or + Reboot + [Tags1 DHCP(Tags2)] + [Tags2 TFTP(Tags4)] + (APS finish & Reboot) + [Tags4 DHCP(Tags2)] + [Tags2 TFTP(Tags4)] + [Tags2 SIP] + Or + Reboot + [Tags1 DHCP(Tags2)] + [Tags2 TFTP(PersistentVLANfromDHCP=1)] + (APS finish & Reboot) + [Tags2 DHCP(Tags2)] + [Tags2 TFTP(PersistentVLANfromDHCP=1)] + [Tags2 SIP] +

Config files changes VLAN Tags If DHCP-tags are present and valid, they are applied in the first query after DHCP (so APS takes place with these loaded tags). If the phone reboots then original DHCP-tags are removed and the phone should apply the new Config files VLAN Tags. Once APS is finished, Config files VLAN Tags are not applied if DHCP-tags are present and valid.

Case b) Flag PersistentVLANfromDHCP set to 1

APS is through DHCP Config files not include VLAN Tags DHCP NOT include VLAN Tags If all 3 options are not present, phone does not apply VLAN Tags. So Normal APS takes place. DHCP includes VLAN Tags set to 0 If DHCP-tags are present and valid, they are applied in the first query after DHCP. If option 190 is set to 0, then phone should change to non-VLAN mode until DHCP Tags change.

Init.[Normal DHCP(-)] + [Normal TFTP(-)] + (APS finish & Reboot) + [Normal DHCP(-)] + [Normal TFTP(-)] + [Normal SIP]

Init.[Normal DHCP(190 set 0)] + [Normal TFTP(-)] + (APS finish & Reboot) + [Normal DHCP(190 set 0)] + [Normal TFTP(-)] + [Normal SIP]

DHCP includes GOOD VLAN Tags If DHCP-tags are present and valid, they are applied in the first query after DHCP. If the phone reboots DHCP queries will use the latest DHCP-tags (if any). In case DHCP-tags are NOT provided, the phone will continue to use the same old DHCP-based VLAN tags.

Init. [Normal DHCP(Tags1)] + [Tags1 TFTP(-)] + (APS finish & Reboot) + [Tags1 DHCP(Tags1)] + [Tags1 TFTP(-)] + [Tags1 SIP] + Also changes only in DHCP Tags + Reboot + [Tags1 DHCP(Tags2)] + [Tags2 TFTP(-)] + (APS finish & Reboot) + [Tags2 DHCP(Tags2)] + [Tags2 TFTP(-)] + [Tags2 SIP] + Or + Reboot + [Tags1 DHCP(-)] + [Tags1 TFTP(-)] + (APS finish & Reboot) + [Tags1 DHCP(-)] + [Tags1 TFTP(-)] + [Tags1 SIP] +

In case DHCP-tags are provided, the phone Or will use the new DHCP-based VLAN ids. + Reboot + [Tags1 DHCP(190 set 0)] + [Normal TFTP(-)] + (APS finish & Reboot) + [Normal DHCP(190 set 0)] + [Normal TFTP(-)] + [Normal SIP] +

APS is through DHCP Config files include VLAN Tags Init. [Normal DHCP(-)] + [Normal TFTP(Tags1)] + (APS finish & Reboot) + [Tags1 DHCP(-)] + [Tags1 TFTP(Tags1)] + [Tags1 SIP] + ... + Reboot + [Tags1 DHCP(-)] + [Tags1 TFTP(Tags1)] + (APS finish & Reboot) + [Tags1 DHCP(-)] + [Tags1 TFTP(Tags1)] + [Tags1 SIP] + Or + Reboot + [Tags1 DHCP(-)] + [Tags1 TFTP(Tags2)] + (APS finish & Reboot) + [Tags2 DHCP(-)] + [Tags2 TFTP(Tags2)] + [Tags2SIP] + Init. [Normal DHCP(190 set 0)] + [Normal TFTP(Tags1)] + (APS finish & Reboot) + [Normal DHCP(190 set 0)] + [Normal TFTP(Tags1)] + [Normal SIP] + + Reboot + [Normal DHCP(190 set 0)] + [Normal TFTP(Tags1)] + (APS finish & Reboot) + [Normal DHCP(190 set 0)] + [Normal TFTP(Tags1 )] + [Normal SIP] +

DHCP NOT include VLAN Tags If 3 options are not present, phone does not have to apply DHCP-tags. So Normal APS takes place. But once APS finishes, all the queries must have APS-Tags (include DHCP, because as no DHCP-tags are present, the phone should apply the stored APS Tags).

DHCP includes VLAN Tags set to 0 If DHCP-tags are present and valid, they are applied in the first query after DHCP. If option 190 is set to 0, then phone should change to non-VLAN mode. So Normal APS and Normal SIP take place. If the phone reboots DHCP queries will use the latest DHCP-tags used , so phone should stay in non-VLAN mode until DHCP Tags change.

DHCP includes GOOD VLAN Tags DHCP-tags have higher priority. If DHCP-tags are present and valid, they are applied in the first query after DHCP Init. [Normal DHCP(Tags2)] + [Tags2 TFTP(Tags1)] (so APS takes place with these loaded + (APS finish & Reboot) + [Tags2 DHCP(Tags2)] + tags). Config files VLAN Tags are not [Tags2 TFTP(Tags1)] + [Tags2 SIP] + applied if DHCP-tags are present and valid. Also changes in DHCP-Tags and TFTP-Tags + Reboot + [Tags2 DHCP(Tags3)] + [Tags3 If the phone reboots DHCP queries will TFTP(Tags4)] + (APS finish & Reboot) + [Tags3 use the latest DHCP-tags used (if any). DHCP(Tags3)] + [Tags3 TFTP(Tags4)] + [Tags3 SIP] + In case DHCP-tags are NOT provided, the phone will continue to use the same old DHCP-based VLAN id. In case DHCP-tags are provided, the phone will use the new DHCP-based VLAN ids. Init. [Normal DHCP(Tags2)] + [Tags2 TFTP(Tags1)] + (APS finish & Reboot) + [Tags2 DHCP(Tags2)] + [Tags2 TFTP(Tags1)] + [Tags2 SIP] + DHCP changes VLAN Tags If the phone reboots DHCP queries will use the latest DHCP-tags used (if any). In case DHCP-tags are NOT provided, the phone will continue to use the same old DHCP-based VLAN id. Also changes only in DHCP-Tags + Reboot + [Tags2 DHCP(Tags3)] + [Tags3 TFTP(Tags1)] + (APS finish & Reboot) + [Tags3 DHCP(-)] + [Tags3 TFTP(Tags1)] + [Tags3 SIP] +

Or + Reboot + [Tags2 DHCP(-)] + [Tags2 TFTP(Tags1)] + (APS finish & Reboot) + [Tags2 DHCP(-)] + In case DHCP-tags are provided, the phone [Tags2 TFTP(Tags1)] + [Tags2 SIP] + will use the new DHCP-based VLAN ids. Or + Reboot + [Tags2 DHCP(190 set 0)] + [Normal TFTP(Tags1)] + (APS finish & Reboot) + [Normal DHCP(190 set 0)] + [Normal TFTP(Tags1)] + [Normal SIP] +

Init. [Normal DHCP(Tags2)] + [Tags2 TFTP(Tags1)] + (APS finish & Reboot) + [Tags2 DHCP(Tags2)] + [Tags2 TFTP(Tags1)] + [Tags2 SIP] + Also changes only in TFTP-Tags + Reboot + [Tags2 DHCP(Tags2)] + [Tags2 TFTP(-)] + (APS finish & Reboot) + [Tags2 DHCP(Tags2)] + [Tags2 TFTP(-)] + [Tags2 SIP] + Config files changes VLAN Tags If the phone reboots DHCP queries will use the latest DHCP-tags used (if any). Or + Reboot + [Tags2 DHCP(Tags2)] + [Tags2 TFTP(VLAN=0)] + (APS finish & Reboot) + [Tags2 DHCP(Tags2)] + [Tags2 TFTP(VLAN=0)] + [Tags2 SIP] +

In case DHCP-tags are NOT provided, the phone will continue to use the same old DHCP-based VLAN id. Or In case DHCP-tags are provided, the phone + Reboot + [Tags2 DHCP(Tags2)] + [Tags2 will use the new DHCP-based VLAN ids. TFTP(Tags4)] + (APS finish & Reboot) + [Tags2 DHCP(Tags2)] + [Tags2 TFTP(Tags4)] + [Tags2 SIP] + Or + Reboot + [Tags2 DHCP(Tags2)] + [Tags2 TFTP(PersistentVLANfromDHCP=0)] + (APS finish & Reboot) + [Tags1 DHCP(Tags2)] + [Tags2 TFTP(PersistentVLANfromDHCP=0)] + [Tags2 SIP] +

You might also like