Multiple VLANs on vSwitch with HP Procurve

In the past, I’ve had very little need to run multiple VLANs over the same network card because I’ve only had my servers on the same VLAN virtualized. However, we are in the plans of virtualizing our phone system, which runs on it’s own VLAN. We’ve also deployed our wireless a little differently, which requires a separate VLAN.

Networking

First, you need to configure a trunked port.

ProCurve(config)# trunk ethernet xx trk1

Following that, you need to add the specific VLANS to the trunk port. They all need to be “trunked.”

ProCurve(config)# interface vlan xx tagged ethernet trk1
ProCurve(config)# interface vlan xx tagged ethernet trk1
ProCurve(config)# show vlans ports ethernet trk1 detail

The last line will show the configuration, it should look similar to this.

1

** Update **

If you’re using multiple NICs on the vSwitch (which you should for redundancy) you have to configure them as separate trunks, if not, it won’t work properly. 

vSphere

Now you need to move over the vSphere, since I’m on 5.5 I’m going to be using the web client.

My initial configuration looked like the image below, I had VLAN ID because everything was running on the default VLAN.

2

 

First you need to “Add Networking” and select “Virtual Machine Port Group for a Standard Switch”

3

 

At this point, you can either select and existing standard switch, or create a new one. For this demo I’m going to create a new one.

On the next screen you will need to select the adapters that you’re using.

Once you select Next, you will see the “Connection settings” screen that will allow you to name the network and provide a VLAN ID. *If this is a new VLAN, it won’t show up in the drop down menu, you have to erase the default text and enter in your VLAN ID.

4

 

Select Next and review your settings. After you are comfortable with the settings, select Finish.

This will create your vSwitch and add the network with the specified VLAN.

5

 

You’ll notice that there is only one VLAN configured by default. Now you must add more networking to the vSwitch. Like above, you need to add new networking, but this time you need to select an existing standard switch. Make sure you select the vSwitch that you’re working with. This will take you to the same screen as before to add your Network Label and VLAN. Add those and select Next then Finish.

Once you have refreshed the web client, you will see that both VLANS have been added to the vSwitch.

7

 

Now you will be able to select Demo and Demo 2 from the network settings on each virtual machine.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s