Wired Intelligent Edge

 View Only
last person joined: 2 days ago 

Bring performance and reliability to your network with the HPE Aruba Networking Core, Aggregation, and Access layer switches. Discuss the latest features and functionality of your switching devices, and find ways to improve security across your network to bring together a mobile-first solution
Expand all | Collapse all

How to assign a port to two different Vlans (voice and data)

This thread has been viewed 1 times
  • 1.  How to assign a port to two different Vlans (voice and data)

    Posted Jun 12, 2012 07:22 AM

    Guys i need your help regarding a small issue i am facing.

     

    i want to assign each single port on my edge switches to two different vlans, one for voice traffic and the other for data.

    each has it's own Vlan.

     

    The IP phone will be connected to the node in the wall and the PC will be connected to the other port of the IP phone.

     

    On Cisco switches, it can be implemented as the following :

     

    interface FastEthernet0/1-8

    description HQ-SW-2 ===> IP Phone and PC

    switchport access vlan 11

    switchport mode access

    switchport voice vlan 12

    spanning-tree portfast

     

    interface GigabitEthernet0/1

    switchport trunk encapsulation dot1q

    switchport trunk native vlan 10

    switchport trunk allowed vlan 10-12

    !

     

     

     

    interface Vlan10

    ip address 10.110.1.3 255.255.255.0

     

    the vlan 11 is for data and vlan 12 for IP phones.Vlan 10 will be connected to the gateway device which is the router or the firewall.

    please guide me if i can do the same on the interfaces  as Cisco can do on  their switches.

     

    for more details about this please check the following link on Cisco support forums:

     

    https://learningnetwork.cisco.com/thread/33173

     

    your feedbacks are higly appreciated .

     

    regards,

    M.Amarneh


    #VLAN


  • 2.  RE: How to assign a port to two different Vlans (voice and data)

    Posted Jun 12, 2012 07:42 AM

    Hi,

     

    I assume that you want to know how it's done with Procuve switches, so this is the way:

     

    Example for interface 1

     

    vlan 11

    vlan 12 voice

    vlan 11 untagged 1

    vlan 12 tagged 1

     

    Hope this helps.

     

    Regards,

    Michael

     

     

     



  • 3.  RE: How to assign a port to two different Vlans (voice and data)

    Posted Jun 12, 2012 10:11 AM

    hi Micheal,

     

    Thx for your reply but i am not sure if i get it correctly, so can you please show me the exact thing should be done on the interface so i can do it??

     

    regards



  • 4.  RE: How to assign a port to two different Vlans (voice and data)

    Posted Jun 12, 2012 10:31 AM

    HP doesn't work the same way as cisco.  These configs are not done at the interface level...more so it is done on the vlan level, where you assign interfaces.

    In the example from MichaelvLonden, you go into the vlan and designate one as voice:

    (vlan 12 voice)

    then tag interface 1

    vlan 12 tagged 1

     

    vlan 11 untagged 1 is used to assign  interface 1 to vlan 11 for all other traffic.

    The voice traffic will be tagged (cisco speak trunked) in vlan 12.


    vlan 11

    vlan 12 voice

    vlan 11 untagged 1

    vlan 12 tagged 1


     



  • 5.  RE: How to assign a port to two different Vlans (voice and data)

    Posted Jun 12, 2012 10:43 AM

    Hi Amarneh,

     

    First of all. For which model switch do you want to configure voice vlans?

    Cisco, HP,....?

     

    If it's HP ProCurve. the commands I posted earlies are you need to do the job.

    With Cisco you enter config mode conf-if and configure a voice vlan or access vlan.

    With Procurve  you enter vlan config mode and add a interface to the vlan.

     

    With Cisco you add a vlan to an interface and with Procurve you add an interface to a vlan.

     

    enter the following commands to enable data vlan 11 and voice vlan 12 on interface 1:

     

    conf

    vlan 11                                              (this creates vlan 11)

    vlan 12 voice                                    (this creates vlan 12 and labels it as voice vlan)

    vlan 11 untagged 1                         (interface 1 is added to the access vlan 11)

    vlan 12 tagged 1                            (interface 1 is added to the voice vlan 12)

    end

    wr m

     

    Regards,

    Michael

     

     



  • 6.  RE: How to assign a port to two different Vlans (voice and data)

    Posted Jun 12, 2012 10:56 AM

    If you are using older Cisco phones(7940,7960, etc..), you will also need to manually enter the voice VLAN to the Admin VLAN setting on the phones as well. The older phones only use Cisco Discover Protocol (CDP) to get the voice VLAN number. The newer phones will also use LLDP-MED to configure the voice VLAN. LLDP-MED is one of many open standards supported by HP.

     

    HTH

    Bob



  • 7.  RE: How to assign a port to two different Vlans (voice and data)

    Posted Jun 12, 2012 11:26 AM

    Bob has a good point.

    With our Avaya VoIP phones is mandatory that the voice vlan name contains the word VOICE in order to let LLDP-MED  work.

    I don't know if it is also mandatory for other vendors of VoIP phones.

     

    Regards,

    Michael



  • 8.  RE: How to assign a port to two different Vlans (voice and data)

    Posted Aug 15, 2013 08:45 AM

    Hello sir,

    please what is the difference between these two commands:

     

    vlan 12 tagged 1

     

    vlan 11 untagged 1

     

    I know as you explain, untagged 1 add port 1 to vlan 11 but I dont know of tagged 1. Does tagged 1 also add the port to vlan 12.

     

    Thanks



  • 9.  RE: How to assign a port to two different Vlans (voice and data)

    Posted Sep 15, 2016 07:21 AM

    Bobs point for editig the admin vlan setting on the phone was spot on.  Finding that little bit of info was like discovering the needle in the haystack.  Thanks!



  • 10.  RE: How to assign a port to two different Vlans (voice and data)

    Posted Nov 09, 2016 12:33 PM

    Hello everyone, 

    I'm trying to configure HP procurve 2530 and I have a lot of issues with tagging ports for vlans and spliting voice and data. 
    Here are some informations about the setup. 

    I have internet going into a switch. From that switch one cable is going to a Edge device (VOIP provider gave us this device and she is able to serve as DHCP) which has static ip configuration with .1 WAN IP. Another cable from that switch is going to Firewall which also has static ip configuration with .2 WAN IP. 
    Now, I have cables from Firewall and Edge device going to my HP Procurve 2530 switch. 
    There I have configured two VLANs and their configuration is bellow: 

    vlan 1
    name "data"
    tagged 21
    untagged 1-20,22-28
    ip address 192.168.0.5 255.255.255.0
    exit


    HP-2530-24G# sh run vlan 10

    Running configuration:

    vlan 10
    name "VOICE"
    tagged 1-28
    ip address dhcp-bootp
    qos dscp 101110
    voice
    exit

    I want to note that I have tried several different configurations of VLAN's but I was not able to make DHCP to assign different IP addresses to the phone and the computer.. 
    Also, phones are connected to a outlet and then from phone cable is going to PC. 
    Any ideas? What am I doing wrong here?
    I would appreciate any help or advice. 

    Thanks!




     



  • 11.  RE: How to assign a port to two different Vlans (voice and data)

    Posted Apr 21, 2017 11:44 AM

    Hello BGraham_1, 

    Can you elabrate on setting up the cisco 7940 phones to work with the HP switches? 

    I have been having a  hard time getting this to work. 

    I have a data vlan and a voice vlan. 

    I have tagged my ports I need. 

    But the part I am having a hard time with is getting the phone to configure it self. 

    Can you elabrate more on setting up the phone manually are you suggested? what does this entail? 

    Thanks for your help,