Would you like to learn how to configure an HP Switch Voice Vlan using the command-line instead of using the web interface? In this tutorial, we are going to show you all the steps required to create a new Voice VLAN and connect a VoIP phone on HP Switch models like 1910, 1920 or 5500 using the command-line.

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

HP Switch Book

Despite having a good knowledge related to computer networks and even have some certifications on the subject, Luke, a 26-year-old IT analyst has just received a mission to deploy a new network using only HP switches.

HP Switch book

Follow Luke’s history and a step by step approach to a network project implementation created by a certified project management professional.

HP Switch Playlist:

On this page, we offer quick access to a list of videos related to HP Switch.

Don't forget to subscribe to our youtube channel named FKIT.

HP Switch Related Tutorial:

On this page, we offer quick access to a list of tutorials related to HP Switch.

Tutorial HP Switch - Trunk configuration

First, you need to access the console of your HP Switch.

In our example, we are going to use a Opensource software named Putty and a computer running Windows.

The Putty software is available on the putty.org website.

After finishing the download, run the software and wait for the following screen.

Putty windows

To access the console of an HP Switch model 1910 or 1920, you will need to select the Serial Connection category and use the following options:

• Connection type: Serial
• Serial line: COM1
• Speed: 38400

If COM1 does not work you will need to try to use COM2, COM3, COM4 or the next.

HP Switch 1910 console

On the prompt screen, enter the administrative login information.

Factory default access information:
• Username: admin
• Password: (No password)

After a successful login, the console command-line will be displayed.

HP Switch models like 1910 and 1920 usually hide the complete list of commands available.

Use the following command to enable the Secret access mode.

The secret mode offers access to all the commands available.

Copy to Clipboard

You will be asked for the Factory password to enable the secret command line access.

•  HP Switch 1910: 512900
•  HP Switch 1920: Jinhua1920unauthorized

Use the system-view command to enter the configuration mode.

Copy to Clipboard

Disable the Voice VLAN security mode using the following command.

Copy to Clipboard

Create a new vlan, select an identification number and add a brief description.

Copy to Clipboard

Access the interface configuration mode.

Set the Switch port as a trunk.

Add the list of authorized Vlans to use this trunk.

Copy to Clipboard

In our example, the Switch port 40 was configured as a trunk.

At the moment, only VLAN 1 is allowed to use this port as a trunk.

Vlan 1 is the default native VLAN of HP Switches.

Access the interface configuration mode.

Enable the voice VLAN feature.

Set the VLAN to be used for voice devices.

Copy to Clipboard

You have successfully configured the voice VLAN feature.

Now, only packets from VLAN 1 and VLAN 200 are authorized to use this trunk.

Data packets should use VLAN1.

Voice packets should use VLAN200.

You can now set you VoIP phone manually to use VLAN 200 to voice and VLAN 1 to data.

If you want your phone to perform the VLAN configuration automatically read the next section.

Tutorial - Automatic Voice VLAN Configuration

This will only work if your VoIP phone supports the LLDP or the CDP protocol.

First, you need to enable the LLDP or the CDP support on your VoIP phone.

Next, we need to enable the LLDP and CDP support on the HP Switch.

Use the following command to enable the LLDP and CDP support on the HP Switch.

Copy to Clipboard

Now, you need to find out the MAC address of your phone.

In our example, the Polycom VoIP phone has the following MAC address: 0004-f24e-21b9

Next, we need to configure the HP switch to automatically assign every Polycom phone to the Voice VLAN.

Copy to Clipboard

Every phone which the MAC address starts with 0004-f2 will automatically be assigned to the VoIP VLAN 100.

The data traffic will use the VLAN 1.

The voice traffic will use the VLAN 200.

Don't forget to save your configuration.

Copy to Clipboard

You have finished the configuration.