Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring VLANs on UCS and VMware

 

 

Introduction

This document shows steps required to add VLANs to both UCS and VMware. In UCS each VLAN is identified by a unique ID. The VLAN ID is a number that represents that particular VLAN. The name that you assign to a VLAN ID adds a layer of abstraction that allows you to globally update all servers associated with service profiles that use the named VLAN. You can also create more than one named VLANs with the same VLAN ID. Note that the name of a VLAN is known only within the UCS environment, and outside of the UCS the VLAN is represented by the unique ID.

 

VLAN Configuration on UCS

Depending on how the UCS infrastructure is configured, VLAN availability for physical hosts may have to be configured on either a port group or individual host basis. The same applies in the VMWare environment.

 

Follow the steps to configure VLAN on UCS:

 

a) Open UCS manager. In the Navigation pane on the left of the application, select the LAN tab.

UVV01.png

 

b) Expand the navigation tree so that the VLANs branch is visible.  Right click on the VLANs branch and select Create VLAN(s).

UVV02.png

 

c) Provide a meaningful name for the VLAN, this name can not be changed once saved. For most situations the Common/Global radio button should be selected to ensure the same configuration is applied to both Fabrics.  Enter the VLAN ID(s), then press the Check Overlap button to ensure there is no conflict with existing configuration and if unique, press OK.

UVV03.png

 

d) Check that the newly created VLAN appears in the list of configured VLANs in the navigation pane.

UVV04.png

 

e) If the platform is using vNIC templates then the next step is to add the created VLAN to the required templates. Expand the vNIC Templates branch of the navigation pane (LAN -> Policies -> root -> vNIC Templates) and select the template which should have the VLAN available.

UVV05.png

 

f) On the General tab for each Template click Modify VLANs.

UVV06.png

 

g) In the window that opens add the new VLAN.

UVV07.png

Repeat this for each Template.

 

h) Switch to the servers tab in the Navigation Pane and expand the Service Profiles and the root node, the service profiles for each Chassis/Blade should be visible.

UVV08.png

 

i) Expand each service profile in turn so that the vNIC for the Chassis/Blade is visible.  If the vNIC is bound to one of the templates modified earlier then the VLAN will be listed under the vNIC.

UVV09.png

 

j) If the VLAN is not listed then select the vNIC and in the main panel click the Modify VLANs link.  For vNICs bound to templates, this link will be greyed out.

UVV10.png

 

k) In the window that opens select the new VLAN.

UVV11.png

Repeat this process for each vNIC that is not bound to a template.

 

Once all the vNICs have the VLAN available to them, exit UCS Manager.

 

UCS disjoint L2 Consideration

 

From UCS End Host Mode perspective, a disjoint L2 (layer 2) is a network design in which UCS connects to different upstream switches (via single port or port-channel) and these upstream switches carry different non-overlapping vlans. This can also be same physical upstream switch but different vlans allowed on different switch ports.

Disjoint L2 features::

  • Feature introduced in UCS version 2.x. By default, version 1.4 behavior is preserved (i.e all VLANs present in all uplinks)
  • Native support in End-Host mode allows simplification of configuration (i.e no need for Switch mode)
  • Overlapping VLANs are not supported
  • Per VLAN broadcast/multicast listener
  • Hardware independent feature (supported in 6100 and 6200 FI)

A more detailed description can be found in following whitepaper.

Deploy Layer 2 Disjoint Networks Upstream in End Host Mode

 

As per default behavior, UCS will allow all vlans on all uplink ports. In case of disjoint L2 setup, since upstream switches are not carrying all vlans, the default UCS behavior breaks connectivity for some hosts/VMs depending on pinning. This happens because either the VM is pinned to wrong uplink, which blackholes all the VM traffic; or the designated receiver for the vlan is chosen on wrong uplink, which presents issues with broadcast and multicast (eg ARP discovery).  

Note that if using pin groups, you are taking care only of the first situation and not the second one.

 

In Disjoint L2 setup it is important to tag correct vlans to correct uplink ports. Following link describes how to do this in UCSM.

Assigning Ports and Port Channels to VLANs

 

VLAN Configuration on VMware

 

Follow these steps to add VLAN on VMware:

 

a) Open vSphere Client and connect to the VCENTER server.  Navigate to the blade that the VLAN is required on (Home -> Inventory -> Hosts and Clusters).  Expand the Navigation tree, to locate the server name and then select the Configuration tab in the main window.  From within the Configuration window, select Networking.

UVV12.png

 

b) Click on the Properties link for the Virtual Switch, then in the opened window click on the Add button.

UVV13.png

 

c) In the next window select Virtual Machine in the Connection Types and click next.

UVV14.png

 

d) Under Port Group Properties enter a Network Label and the VLAN ID, then click Next.

UVV15.png

 

e) Now the new VLAN should show under Host networking vSwitch, click Finish.

UVV16.png

 

f) To add a virtual machine to the VLAN, edit the machine configuration, select the Network Adapter and from the Network Connection drop down list select the new VLAN.

UVV17.png

 

Related Information

Understanding and Deploying UCS B-Series LAN Networking

VMWare ESXi 4.0 Installation on UCS Blade Server with UCS Manager KVM

Comments
New Member

what if that FI (B) goes down, I hope it will affect affect ESXI level vm's (cust63). am i correct?

New Member

Great post!!

 

thanks man for sharing your knowledge!!!

New Member

Document needs to be updated for more recent versions of UCS Manager. In UCS 3.1 is does not seem to be possible to modify the VLANs on vNIC templates once they have been assigned to an interface, all the options are greyed out. I don't know if this is a bug or a feature.

42119
Views
20
Helpful
3
Comments