Friday, July 2, 2010

Basic HP ProCurve Command Reference - Part 1

HP ProCurve commands are similar to the commands for Cisco switches except more straight forward.

Here is a list of the basic tasks and the commands to complete those tasks.  Pay close attention to the context, certain commands can be executed in any context and others must be in a specific context.  I'm assuming the you have already logged into the switch.

Display a list of the current VLANs
switch_name#show vlans

Enter the configure context
switch_name#configure

 Add a new VLAN 100 with the name 'Example'
switch_name(config)#vlan 100 name Example

Add a block on contiguous ports (1-16) to a VLAN.  It is important to note that the following command is a combination of two separate commands. 

Method #1
switch_name(config)#vlan 100 untagged 1-16


Method#2
switch_name(config)#vlan 100
switch_name(vlan-100)#untagged 1-16

The same commands can be used but with non contiguous ports i.e. 1,3,5,7,9
switch_name(vlan-100)#untagged 1,3,5,7,9

In order to configure a VLAN that supports jumbo frames add the following commands:

switch_name(config)#vlan 100
switch_name(vlan-100)#name iSCSI
switch_name(vlan-100)#untagged 1-16
switch_name(vlan-100)#jumbo

Yes it is that easy!!!

Another important concept to get your head wrapped around is the difference between tagged and untagged ports.  The most simple explanation I can provide is that untagged ports connect workstations, printers, and laptops to the network.  A tagged port connects switches that support multiple VLANs together.

More specifically an untagged port can only be a member of one VLAN at a time.  All ports are members of VLAN 1 by default which is why when you connect multiple switches together that systems connected to both switches can still communicate with each other.  However if you have more that one VLAN configured on the switches then you need to tag ports on both switches for those VLANs.


2 comments:

Anonymous said...

VLAN 10 Servers can communicate with other VLAN 10 Servers.

VLAN 20 Workstations can communicate with other VLAN 20 Workstations.

How do they talk to each other.

Addie F said...

Goodd job