Difference between revisions of "VLAN"

From IPitomy Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==== Setting up VLAN from the PBX ====
+
=== Setting up VLAN from the PBX ===
  
 
This guide requires a managed switch and knowledge of how to set up VLANs on it, which is outside of the scope of this guide. This is only to show how to set up VLAN on the pbx, and enable it for all phones. This requires your PBX to be on software version 5.1.5-5 or higher. All network switch ports that will have a phone on it should have its port tagged for the appropriate vlan.
 
This guide requires a managed switch and knowledge of how to set up VLANs on it, which is outside of the scope of this guide. This is only to show how to set up VLAN on the pbx, and enable it for all phones. This requires your PBX to be on software version 5.1.5-5 or higher. All network switch ports that will have a phone on it should have its port tagged for the appropriate vlan.
 +
 +
<span style="color:#ff0000;">'''WARNING: DO NOT SET VLAN IP ADDRESS ON THE SAME NETWORK AS STANDARD NETWORK INTERFACE! This will lock up the pbx and cause it to become PERMANENTLY inaccessible.'''</span> Example, if your standard network is 192.168.1.x, your vlan network CANNOT be the same.
  
 
[[File:Vlan config.JPG|File:Vlan config.JPG]]
 
[[File:Vlan config.JPG|File:Vlan config.JPG]]
Line 12: Line 14:
 
#Save
 
#Save
  
 +
NOTE: If your phones are on a vlan, autodiscovery will not find them with the default settings. To scan the vlan network instead of normal network, go to destinations->auto discovery like normal, choose scan or don't scan as desired, and go under View Settings -> Advanced Scan Settings, and change the Scan Network box to the network (CIDR notation) that you wish to scan for the phones.
  
 
+
<br/>[[File:Phone global vlan.JPG|File:Phone global vlan.JPG]]
[[File:Phone global vlan.JPG|File:Phone global vlan.JPG]]
 
  
 
#Navigate to PBX Setup=Phone Global
 
#Navigate to PBX Setup=Phone Global
Line 26: Line 28:
  
 
This process replaces the need to set vlan in the phone global template. &nbsp;Using the phone global template to assign vlan is no longer necessary as of 5.1.5-5
 
This process replaces the need to set vlan in the phone global template. &nbsp;Using the phone global template to assign vlan is no longer necessary as of 5.1.5-5
 +
 +
=== LLDP ===
 +
{{:LLDP}}

Latest revision as of 15:34, 12 November 2020

Setting up VLAN from the PBX

This guide requires a managed switch and knowledge of how to set up VLANs on it, which is outside of the scope of this guide. This is only to show how to set up VLAN on the pbx, and enable it for all phones. This requires your PBX to be on software version 5.1.5-5 or higher. All network switch ports that will have a phone on it should have its port tagged for the appropriate vlan.

WARNING: DO NOT SET VLAN IP ADDRESS ON THE SAME NETWORK AS STANDARD NETWORK INTERFACE! This will lock up the pbx and cause it to become PERMANENTLY inaccessible. Example, if your standard network is 192.168.1.x, your vlan network CANNOT be the same.

File:Vlan config.JPG

  1. Define the VLAN under System=>VLAN.  It must be enabled.
  2. Set VLAN IP Address to the IP address that you would like to give the PBX on that vlan, which will also hand out DHCP on the vlan to the phones (This MUST be a different IP address from the main IP address set under system=>networking)
  3. Set the VLAN Subnet mask to define the network just as you would on standard network settings.  255.255.255.0 is generally going to suffice.
  4. Set the VID to the actual VLAN ID tag.  This must match the VLAN in the switch that you are assigning the ports to.
  5. Set DHCP Start and End addresses as desired
  6. Save

NOTE: If your phones are on a vlan, autodiscovery will not find them with the default settings. To scan the vlan network instead of normal network, go to destinations->auto discovery like normal, choose scan or don't scan as desired, and go under View Settings -> Advanced Scan Settings, and change the Scan Network box to the network (CIDR notation) that you wish to scan for the phones.


File:Phone global vlan.JPG

  1. Navigate to PBX Setup=Phone Global
  2. Set Apply VLAN Config to Phones to Enabled
  3. Set Phone VLAN Enable to Enabled
  4. Set Phone VID to match VID from step 4 above
  5. If needed, set PC VLAN settings according to network.
  6. Save
  7. Apply changes
  8. Reboot phones.  They should pick up vlan config and be on the vlan network correctly.

This process replaces the need to set vlan in the phone global template.  Using the phone global template to assign vlan is no longer necessary as of 5.1.5-5

LLDP

Warning: Do not follow this guide unless you know for certain you need LLDP. Incorrectly implementing this protocol MAY lead to undesired network functionality.

This guide applies to Cisco switches, and the screenshots are specifically from a SG300 28 port switch. Some options may be named differently, or not exist at all on other brands of network equipment.


In the switch:

LLDP Status: Enabled

TLV Advertise Interval: 60

File:Lldp-properties.PNG



LLDP MED Network Policy

Create 2 policies as follows

Application Voice, VLAN ID 2, VLAN Tagged

Application Voice Signaling, VLAN ID 2, VLAN Tagged

File:Lldp-med-policies.PNG


 

LLDP MED Port Settings

Add Voice and Voice signaling applications to desired ports

File:Lldp-med-port-settings.PNG 


VLAN Management=>Voice VLAN=>Properties

Dynamic Voice VLAN: Disabled

File:Voice-vlan-properties.PNG

Create VLAN: VlanID 2, name Voice

File:Vlan-create.PNG

 

Port to VLAN

Set desired ports for voice traffic (any port that will have a phone plugged in, plus the port that will handle voice dhcp, if needed), to VLAN 2: Tagged

File:Vlan-port-to-vlan.PNG


In the PBX

Ensure all phones have LLDP enabled.  You can set this on each phone individually in the menu under Settings=>Advanced=>Network=>LLDP, but we would recommend following the instructions listed at http://wiki.ipitomy.com/wiki/HD_Phone_FAQ#How_do_I_Enabled_LLDP_Globally_for_the_Phones to set LLDP globally if you need it for all phones.


Helpful Links

Virtual Local Area Networks (VLANs)

http://www.practicalnetworking.net/stand-alone/vlans/

All Credit and Thanks go to networking guru Ed Harmoush at Practical Networking

Routing Between VLANs

http://www.practicalnetworking.net/stand-alone/routing-between-vlans/

All Credit and Thanks go to networking guru Ed Harmoush at Practical Networking