<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>11.9. VLAN Provisioning</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-Admin_Guide-4.2.0-en-US-1-" /><script type="text/javascript" src="../../../../../toc.js"></script><script type="text/javascript">
              addID('Apache_CloudStack');
              
	      addID('Apache_CloudStack.4.2.0');
              
              addID('Apache_CloudStack.4.2.0.books');
	      addID('Apache_CloudStack.4.2.0.Admin_Guide');
              </script><link rel="home" href="index.html" title="CloudStack Administrator's Guide" /><link rel="up" href="working-with-hosts.html" title="Chapter 11. Working With Hosts" /><link rel="prev" href="over-provisioning-service-offering-limits.html" title="11.8. Over-Provisioning and Service Offering Limits" /><link rel="next" href="working-with-templates.html" title="Chapter 12. Working with Templates" /></head><body class="toc_embeded "><div id="tocdiv" class="toc"><iframe id="tocframe" class="toc" src="../../../../toc.html">This is an iframe, to view it upgrade your browser or enable iframe display.</iframe></div><p id="title"><a class="left" href="http://cloudstack.apache.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://cloudstack.apache.org/docs"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="over-provisioning-service-offering-limits.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="working-with-templates.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" id="vlan-provisioning" lang="en-US"><div class="titlepage"><div><div><h2 class="title">11.9. VLAN Provisioning</h2></div></div></div><div class="para">
		CloudStack automatically creates and destroys interfaces bridged to VLANs on the hosts. In general the administrator does not need to manage this process.
	</div><div class="para">
		CloudStack manages VLANs differently based on hypervisor type. For XenServer or KVM, the VLANs are created on only the hosts where they will be used and then they are destroyed when all guests that require them have been terminated or moved to another host.
	</div><div class="para">
		For vSphere the VLANs are provisioned on all hosts in the cluster even if there is no guest running on a particular Host that requires the VLAN. This allows the administrator to perform live migration and other functions in vCenter without having to create the VLAN on the destination Host. Additionally, the VLANs are not removed from the Hosts when they are no longer needed.
	</div><div class="para">
		You can use the same VLANs on different physical networks provided that each physical network has its own underlying layer-2 infrastructure, such as switches. For example, you can specify VLAN range 500 to 1000 while deploying physical networks A and B in an Advanced zone setup. This capability allows you to set up an additional layer-2 physical infrastructure on a different physical NIC and use the same set of VLANs if you run out of VLANs. Another advantage is that you can use the same set of IPs for different customers, each one with their own routers and the guest networks on different physical NICs.
	</div><div xml:lang="en-US" class="section" id="vlan-allocation-eg" lang="en-US"><div class="titlepage"><div><div><h3 class="title">11.9.1. VLAN Allocation Example</h3></div></div></div><div class="para">
		VLANs are required for public and guest traffic. The following is an example of a VLAN allocation scheme:
	</div><div class="informaltable"><table border="1"><colgroup><col width="33%" /><col width="33%" /><col width="33%" /></colgroup><thead><tr><th class="" align="left">
						<div class="para">
							VLAN IDs
						</div>
					</th><th class="" align="left">
						<div class="para">
							Traffic type
						</div>
					</th><th class="" align="left">
						<div class="para">
							Scope
						</div>
					</th></tr></thead><tbody><tr><td class="" align="left">
						<div class="para">
							less than 500
						</div>
					</td><td class="" align="left">
						<div class="para">
							Management traffic. Reserved for administrative purposes.
						</div>
					</td><td class="" align="left">
						<div class="para">
							CloudStack software can access this, hypervisors, system VMs.
						</div>
					</td></tr><tr><td class="" align="left">
						<div class="para">
							500-599
						</div>
					</td><td class="" align="left">
						<div class="para">
							VLAN carrying public traffic.
						</div>
					</td><td class="" align="left">
						<div class="para">
							CloudStack accounts.
						</div>
					</td></tr><tr><td class="" align="left">
						<div class="para">
							600-799
						</div>
					</td><td class="" align="left">
						<div class="para">
							VLANs carrying guest traffic.
						</div>
					</td><td class="" align="left">
						<div class="para">
							CloudStack accounts. Account-specific VLAN is chosen from this pool.
						</div>
					</td></tr><tr><td class="" align="left">
						<div class="para">
							800-899
						</div>
					</td><td class="" align="left">
						<div class="para">
							VLANs carrying guest traffic.
						</div>
					</td><td class="" align="left">
						<div class="para">
							CloudStack accounts. Account-specific VLAN chosen by CloudStack admin to assign to that account.
						</div>
					</td></tr><tr><td class="" align="left">
						<div class="para">
							900-999
						</div>
					</td><td class="" align="left">
						<div class="para">
							VLAN carrying guest traffic
						</div>
					</td><td class="" align="left">
						<div class="para">
							CloudStack accounts. Can be scoped by project, domain, or all accounts.
						</div>
					</td></tr><tr><td class="" align="left">
						<div class="para">
							greater than 1000
						</div>
					</td><td class="" align="left">
						<div class="para">
							Reserved for future use
						</div>
					</td><td class="" align="left">
					</td></tr></tbody></table></div></div><div xml:lang="en-US" class="section" id="non-contiguous-vlan" lang="en-US"><div class="titlepage"><div><div><h3 class="title">11.9.2. Adding Non Contiguous VLAN Ranges</h3></div></div></div><div class="para">
		CloudStack provides you with the flexibility to add non contiguous VLAN ranges to your network. The administrator can either update an existing VLAN range or add multiple non contiguous VLAN ranges while creating a zone. You can also use the UpdatephysicalNetwork API to extend the VLAN range.
	</div><div class="orderedlist"><ol><li class="listitem"><div class="para">
				Log in to the CloudStack UI as an administrator or end user.
			</div></li><li class="listitem"><div class="para">
				Ensure that the VLAN range does not already exist.
			</div></li><li class="listitem"><div class="para">
				In the left navigation, choose Infrastructure.
			</div></li><li class="listitem"><div class="para">
				On Zones, click View More, then click the zone to which you want to work with.
			</div></li><li class="listitem"><div class="para">
				Click Physical Network.
			</div></li><li class="listitem"><div class="para">
				In the Guest node of the diagram, click Configure.
			</div></li><li class="listitem"><div class="para">
				Click Edit 
				<span class="inlinemediaobject"><img src="./images/edit-icon.png" alt="edit-icon.png: button to edit the VLAN range." /></span>
			</div><div class="para">
				The VLAN Ranges field now is editable.
			</div></li><li class="listitem"><div class="para">
				Specify the start and end of the VLAN range in comma-separated list.
			</div><div class="para">
				Specify all the VLANs you want to use, VLANs not specified will be removed if you are adding new ranges to the existing list.
			</div></li><li class="listitem"><div class="para">
				Click Apply.
			</div></li></ol></div></div><div xml:lang="en-US" class="section" id="vlan-assign-isolated-nw" lang="en-US"><div class="titlepage"><div><div><h3 class="title">11.9.3. Assigning VLANs to Isolated Networks</h3></div></div></div><div class="para">
		CloudStack provides you the ability to control VLAN assignment to Isolated networks. As a Root admin, you can assign a VLAN ID when a network is created, just the way it's done for Shared networks.
	</div><div class="para">
		The former behaviour also is supported — VLAN is randomly allocated to a network from the VNET range of the physical network when the network turns to Implemented state. The VLAN is released back to the VNET pool when the network shuts down as a part of the Network Garbage Collection. The VLAN can be re-used either by the same network when it is implemented again, or by any other network. On each subsequent implementation of a network, a new VLAN can be assigned.
	</div><div class="para">
		Only the Root admin can assign VLANs because the regular users or domain admin are not aware of the physical network topology. They cannot even view what VLAN is assigned to a network.
	</div><div class="para">
		To enable you to assign VLANs to Isolated networks,
	</div><div class="orderedlist"><ol><li class="listitem"><div class="para">
				Create a network offering by specifying the following:
			</div><div class="itemizedlist"><ul><li class="listitem"><div class="para">
						<span class="bold bold"><strong>Guest Type</strong></span>: Select Isolated.
					</div></li><li class="listitem"><div class="para">
						<span class="bold bold"><strong>Specify VLAN</strong></span>: Select the option.
					</div></li></ul></div><div class="para">
				For more information, see the CloudStack Installation Guide.
			</div></li><li class="listitem"><div class="para">
				Using this network offering, create a network.
			</div><div class="para">
				You can create a VPC tier or an Isolated network.
			</div></li><li class="listitem"><div class="para">
				Specify the VLAN when you create the network.
			</div><div class="para">
				When VLAN is specified, a CIDR and gateway are assigned to this network and the state is changed to Setup. In this state, the network will not be garbage collected.
			</div></li></ol></div><div class="note"><div class="admonition_header"><h2>Note</h2></div><div class="admonition"><div class="para">
			You cannot change a VLAN once it's assigned to the network. The VLAN remains with the network for its entire life cycle.
		</div></div></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="over-provisioning-service-offering-limits.html"><strong>Prev</strong>11.8. Over-Provisioning and Service Offering Limi...</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="working-with-templates.html"><strong>Next</strong>Chapter 12. Working with Templates</a></li></ul></body></html>
