<?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>15.21. Static NAT</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="networks.html" title="Chapter 15. Managing Networks and Traffic" /><link rel="prev" href="release-ip-address.html" title="15.20. Releasing an IP Address" /><link rel="next" href="ip-forwarding-firewalling.html" title="15.22. IP Forwarding and Firewalling" /></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="release-ip-address.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="ip-forwarding-firewalling.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" id="static-nat" lang="en-US"><div class="titlepage"><div><div><h2 class="title">15.21. Static NAT</h2></div></div></div><div class="para">
		A static NAT rule maps a public IP address to the private IP address of a VM in order to allow Internet traffic into the VM. The public IP address always remains the same, which is why it is called “static” NAT. This section tells how to enable or disable static NAT for a particular IP address.
	</div><div xml:lang="en-US" class="section" id="enable-disable-static-nat" lang="en-US"><div class="titlepage"><div><div><h3 class="title">15.21.1. Enabling or Disabling Static NAT</h3></div></div></div><div class="para">
		If port forwarding rules are already in effect for an IP address, you cannot enable static NAT to that IP.
	</div><div class="para">
		If a guest VM is part of more than one network, static NAT rules will function only if they are defined on the default network.
	</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">
				In the left navigation, choose Network.
			</div></li><li class="listitem"><div class="para">
				Click the name of the network where you want to work with.
			</div></li><li class="listitem"><div class="para">
				Click View IP Addresses.
			</div></li><li class="listitem"><div class="para">
				Click the IP address you want to work with.
			</div></li><li class="listitem"><div class="para">
				Click the Static NAT 
				<span class="inlinemediaobject"><img src="./images/enable-disable.png" alt="ReleaseIPButton.png: button to release an IP" /></span>
				button.
			</div><div class="para">
				The button toggles between Enable and Disable, depending on whether static NAT is currently enabled for the IP address.
			</div></li><li class="listitem"><div class="para">
				If you are enabling static NAT, a dialog appears where you can choose the destination VM and click Apply.
			</div></li></ol></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="release-ip-address.html"><strong>Prev</strong>15.20. Releasing an IP Address</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="ip-forwarding-firewalling.html"><strong>Next</strong>15.22. IP Forwarding and Firewalling</a></li></ul></body></html>
