Using 802.1q VLAN’s with Sangoma IP phones
Ethernet 802.1q VLAN’s have many useful functions and are especially valuable in managing networks with VoIP traffic.
To start let’s define some terms:
- Network – A collection of hosts with a single network ID and broadcast address
- Bridge – A device with 2 or more physical interfaces that repeats the information received on each port on all other ports
- Switch – An active device that keeps a table of physical (MAC) addresses and port numbers and forwards only traffic destined for each MAC address to the appropriate port
- MAC – Media Access Control address. The Ethernet address. From an OSI construct this is called the layer 2 address. IP is on Layer 3. Ethernet is a layer 2 protocol
- VLAN – An individual network, segregated from other networks on the same physical interface by a VLAN ID
- Tagging – The process of adding a VLAN ID to an Ethernet frame
- Native VLAN – One VLAN is designated the native VLAN, the native VLAN is not tagged and any device without trunking configured will be connected to the native VLAN
- Trunking – A VLAN trunk consists of multiple tagged VLAN’s on a single interface
Many VLAN’s can exist on a single media (such as a Twisted Pair Category X cable or a fiber optic interface.
VLAN is available on Sangoma IP Phones. We support three ways to get VLAN ID for Internet (WAN) port, but the VLAN used is chosen by priority of each method. The priority is: LLDP>Manual>DHCP VLAN. The phones only support Manual method to get VLAN ID for PC port.
Sangoma IP telephones contain two interfaces labeled LAN and PC. Essentially they contain a three port switch. Port 1 is connected to the LAN, Port 2 to the phone internally and Port 3 to the PC. With the flexible interface each port can be configured on a separate VLAN.
The most common configuration is noted above, the DATA VLAN is configured as native so any computer being plugged into the network will be on that VLAN. Voice is on VLAN 2. In this configuration both the LAN port is tagged and the PC port is untagged. The voice VLAN is 2