7.18 Virtual LAN (VLAN)
The built in Ethernet switch can handle virtual LAN identities and priorities for the LAN port, for the telephone port and for the PC port.
The following possibilities to assign VLAN identities exist:
From DHCP in option 43 (only the phone port, but not the PC port). A list of maximum three VLAN identities can be handled, see Figure 7-38 .
From the configuration file (both the LAN- and the PC port).
From a menu where it can be manually set (both the LAN- and the PC port).
It is possible to change the different VLAN options from the menu in the boot sequence. The following menu is shown:
Enter the administrator mode, go down in the Network list until the line VLAN for Phone occurs. Change the value to one of the options below :
No VLAN . VLAN shall not be used, but if a VLAN identity is read from the configuration file, VLAN will be used.
Auto. This is the default value when the telephone is delivered from the factory. If the telephone receives a VLAN identity list from DHCP (in option 43) or if there is a VLAN identity defined in the configuration file it will be used. The VLAN identity received from DHCP has priority over the configuration file. For more information, see 7.18.1 Automatic VLAN detection with DHCP and see 7.18.2 Assigning the VLAN identity via the configuration file .
Manually . The manually entered VLAN identity will be used, see 7.18.3 Manual setting of the VLAN identity .If the manually entered VLAN identity shall be used, the [L2QOS] header in the configuration file has to be omitted.
Even when VLAN is not used this parameter can have the default value Auto .
Concerning the priority of the frames: For outgoing frames the following priorities will be set at level 2 for each frame by default, when VLAN is used:
For frames originating in the telephone the default value will be 6, meaning voice traffic with less than 10 ms latency.
For frames originating in the PC the default value is 0, meaning best effort.
The priorities can be changed via the configuration file, see description for CONFIGURATION FILE FOR DBC 42X .
7.18.1 Automatic VLAN detection with DHCP
Prerequisites on the LAN
When the telephone is connected to a layer 2 switch, the switch will add the IEEE 802.1Q header, to untagged frames with the default VLAN identity and forward the frames. The first layer 3 switch must be initiated for DHCP relay and having an ingress port with an IP address on each of the offered VLANs. The address to the DHCP server must be set in the layer 3 switch.
When the layer 3 switch has received a DHCP discover message, it will forward this packet to the DHCP server adding the IP address of its ingress port corresponding to the VLAN. It is this address information that informs the DHCP server to which IP subnet that this telephone will be assigned to.
Description of when a VLAN identity list is received from the native LAN
At installation (and hardware reboot) the telephone asks for a temporary IP address from DHCP by initiating the DHCP negotiation with untagged messages (native LAN). The relay agent adds the address of its ingress port corresponding to the native LAN. DHCP provides the temporary IP address together with the VLAN identity list. The telephone releases the temporary IP address.
Then the telephone uses the first VLAN identity in the list and sends a new tagged request to the DHCP server. The relay agent adds the address of the ingress port corresponding to the selected VLAN. If there is any available IP address, the DHCP server provides this address to the telephone. If there is no available IP address for this VLAN, the telephone takes the next VLAN id in the list and asks for an IP address.
If there is no IP address available in any VLAN in the list, the telephone will ask for an IP address in the native LAN.
Reboot
At warm reboot (the power is not disconnected), the telephone will continue to use the previously used VLAN identity.
At cold reboot (disconnect / connect the power), the complete automatic VLAN discovery procedure will start from the beginning. For DBC 42x 01 telephones (ARM platform), the power must be disconnected for at least one minute to get this cold reboot.
7.18.2 Assigning the VLAN identity via the configuration file
The description of how to set the parameters, see description for CONFIGURATION FILE FOR DBC 42X .
The configuration file is read from the native LAN
At installation (and hardware reboot) the telephone asks for an IP address from DHCP by initiating the DHCP negotiation with untagged messages (native LAN). DHCP provides the IP address but no VLAN identity list. The telephone reads the configuration file, but in this case when no VLAN identity list is received from DHCP, a software reboot is done automatically in the telephone to get the IP address valid for the tagged VLAN defined in the configuration file.
The configuration file is read from the VLAN
At installation (and hardware reboot) and the configuration file is available in the VLAN but not in the native LAN, the VLAN identity must be set manually in the boot menu.
7.18.3 Manual setting of the VLAN identity
Set the VLAN identity from the menu in the boot sequence. To use the manual entered VLAN identity all the time, disable the VLAN settings in the configuration file.