Would you like to learn how to configure an HP Switch hybrid port configuration 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 VLAN and configure a hybrid Switch port on HP Switch models like 1910, 1920 or 5500 using the command-line.
A switch port in hybrid mode combines the characteristics from the access mode and the trunk mode to allow traffic of multiple vlans, which might be tagged or not.
The following section presents the list of equipment used to create this HP Switch tutorial.
Every piece of hardware listed above can be found at Amazon website.
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.
Follow Luke’s history and a step by step approach to a network project implementation created by a certified project management professional.
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.
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.
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.
# _cmdline-mode on
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.
Create a new vlan, select an identification number and add a brief description.
# vlan 100
# description Data Network
# vlan 200
# description Voice Network
# vlan 300
# description Server Network
# vlan 400
# description Desktop Network
Access the interface configuration mode.
Set the Switch port as a hybrid.
Add the list of authorized tagged Vlans to use this switch port.
Add the list of authorized untagged Vlans to use this switch port
# interface GigabitEthernet 1/0/40
# port link-type hybrid
# port hybrid vlan 100 200 tagged
# port hybrid vlan 300 400 untagged
In our example, the Switch port 40 was configured as hybrid.
The following tagged Vlans were allowed to use this port: 100 and 200
The following untagged Vlans were allowed to use this port: 300 and 400
Don't forget to save your configuration.
You have successfully created a new VLAN.
You have successfully configured an HP Switch hybrid port.