[Enterprise switch] How to Set Up Voice VLAN in Different Scenarios and Using Different Methods. Follow
How to setup voice vlan in different scenario and different method :
A voice VLAN is a VLAN ( virtual local area network) that is specifically allocated for user's voice data streams. It ensures the quality of voice traffic by improving the transmission priority of it when transmitted with other traffic. That is to say, when other services (data, video, etc.) are transmitted simultaneously, voice service will be prioritized and transmitted with a higher forwarding priority
VoIP traffic can be detected on switch ports by using the source MAC address (OUI) of packets, or by using LLDP (IEEE 802.1AB) to discover connected VoIP devices.
Support models
ECS4620 series, ECS4510 series, ECS4120 series, ECS4100 series, ECS5520 series, ECS4530 series, ECS2100 series, ECS2110 series, ECS3510 series
Application
You could connect the computer and IP phone using two different cables:
Case1 :
This will work but it has some disadvantages:
- You need to install a new cable from the switchport to the IP phone.
- You will lose a switchport for the IP phone.
We assume PC run VLAN 100 , IP phone run VLAN 101
Configurations and knowhow of case1 :
Method 1 ( LLDP : if IP phone support LLDP) :
- Add vlan 100 , 101 in data base :
Console(config)#vlan database
Console(config-vlan)#vlan 100
Console(config-vlan)#vlan 101
- Enable voice vlan 101 :
Console(config)#voice vlan 101
- Setup ip phone port :
Console(config)#interface ethernet 1/1
Console(config-if)#switchport voice vlan auto
Console(config-if)#switchport voice vlan rule lldp
- Setup pc port :
Console(config)#interface ethernet 1/2
Console(config-if)#switchport allowed vlan add 100 untagged
Console(config-if)#switchport native vlan 100
Method 2 ( OUI , if IP phone no support LLDP ) :
- Add vlan 100 , 101 in data base :
Console(config)#vlan database
Console(config-vlan)#vlan 100
Console(config-vlan)#vlan 101
- Enable voice vlan 101 :
Console(config)#voice vlan 101
- Setup ip phone port (auto mode default run OUI):
Console(config)#interface ethernet 1/1
Console(config-if)#switchport voice vlan auto
- Add the MAC-address (OUI) to Voice VLAN :
example : this ip phone from cisco , and MAC is 00-03-6B-01-02-03
Console(config)#voice vlan mac-address 00-03-6B-01-02-03 mask FF-FF-FF-00-00-00
- Setup pc port :
Console(config)#interface ethernet 1/2
Console(config-if)#switchport allowed vlan add 100 untagged
Console(config-if)#switchport native vlan 100
Method 3 ( manual , if LLDP & OUI not work ) :
- Add vlan 100 , 101 in data base :
Console(config)#vlan database
Console(config-vlan)#vlan 100
Console(config-vlan)#vlan 101
- Enable voice vlan 101 :
Console(config)#voice vlan 101
- Setup ip phone port :
Console(config)#interface ethernet 1/1
Console(config-if)#switchport voice vlan manual
Console(config-if)#switchport allowed vlan add 101 tagged
- Setup pc port :
Console(config)#interface ethernet 1/2
Console(config-if)#switchport allowed vlan add 100 untagged
Console(config-if)#switchport native vlan 100
To solve case1 disadvantages, most IP phones (including Cisco) have a three port switch inside of the IP phone:
One port connects to the switch.
One port connects to the computer.
One (internal) port connects to the phone.
This allows us to connect the IP phone and computer like this:
Case 2 :
You probably want to separate the data from the computer and IP phone. This is something we can do with voice VLANs.
Method 1 ( LLDP ) :
- Add vlan 100 , 101 in data base :
Console(config)#vlan database
Console(config-vlan)#vlan 100
Console(config-vlan)#vlan 101
- Enable voice vlan 101 :
Console(config)#voice vlan 101
- Setup the port which connected IP phone & pc :
Console(config)#interface ethernet 1/1
Console(config-if)#switchport voice vlan auto
Console(config-if)#switchport voice vlan rule lldp
Console(config-if)#switchport allowed vlan add 100 untagged
Console(config-if)#switchport native vlan 100
Method 2 ( OUI , if IP phone no support LLDP ) :
- Add vlan 100 , 101 in data base :
Console(config)#vlan database
Console(config-vlan)#vlan 100
Console(config-vlan)#vlan 101
- Enable voice vlan 101 :
Console(config)#voice vlan 101
- Setup the port which connected IP phone & pc :
Console(config)#interface ethernet 1/1
Console(config-if)#switchport voice vlan auto
Console(config-if)#switchport allowed vlan add 100 untagged
Console(config-if)#switchport native vlan 100
- Add the MAC-address (OUI) to Voice VLAN :
example : this ip phone from cisco , and MAC is 00-03-6B-01-02-03
Console(config)#voice vlan mac-address 00-03-6B-01-02-03 mask FF-FF-FF-00-00-00
Method 3 ( manual , if LLDP & OUI not work ) :
- Add vlan 100 , 101 in data base :
Console(config)#vlan database
Console(config-vlan)#vlan 100
Console(config-vlan)#vlan 101
- Enable voice vlan 101 :
Console(config)#voice vlan 101
- Setup the port which connected IP phone & pc :
Console(config)#interface ethernet 1/1
Console(config-if)#switchport voice vlan manual
Console(config-if)#switchport allowed vlan add 101 tagged
Console(config-if)#switchport allowed vlan add 100 untagged
Console(config-if)#switchport native vlan 100
Comments
0 comments
Please sign in to leave a comment.