<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tom&#039;s Notes &#187; nat</title>
	<atom:link href="http://wp.greenwood.net.nz/tag/nat/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.greenwood.net.nz</link>
	<description>CCNA4 Notes - Term 2, 2009</description>
	<lastBuildDate>Thu, 02 Jul 2009 21:43:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Module 1 &#8211; Scaling IP Addresses</title>
		<link>http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/</link>
		<comments>http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/#comments</comments>
		<pubDate>Tue, 26 May 2009 21:00:34 +0000</pubDate>
		<dc:creator>Tom GT</dc:creator>
				<category><![CDATA[Cisco CCNA4]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[pat]]></category>
		<category><![CDATA[private ip]]></category>
		<category><![CDATA[public ip]]></category>

		<guid isPermaLink="false">http://wp.greenwood.net.nz/?p=53</guid>
		<description><![CDATA[Index

NAT

NAT Concepts
Configuring NAT
Debugging NAT


PAT

PAT Concepts
Configuring PAT


DHCP

DHCP Concepts
Configuring DHCP




NAT
NAT Concepts
Network Address Translation (NAT) is used to allocate public IP addresses to hosts, regardless of the logical topology (hosts in different subnets can be allocated public addresses in the same subnet). As the topology of the network is hidden,  it is more secure than using public IP [...]]]></description>
			<content:encoded><![CDATA[<h3>Index</h3>
<ul>
<li><a href="http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/#NAT">NAT</a>
<ul>
<li><a href="http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/#NAT_Concepts">NAT Concepts</a></li>
<li><a href="http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/#NAT_Config">Configuring NAT</a></li>
<li><a href="http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/#NAT_Debug">Debugging NAT</a></li>
</ul>
</li>
<li><a href="http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/#PAT">PAT</a>
<ul>
<li><a href="http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/#PAT_Concepts">PAT Concepts</a></li>
<li><a href="http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/#PAT_Config">Configuring PAT</a></li>
</ul>
</li>
<li><a href="http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/#DHCP">DHCP</a>
<ul>
<li><a href="http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/#DHCP_Concepts">DHCP Concepts</a></li>
<li><a href="http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/#DHCP_Config">Configuring DHCP</a></li>
</ul>
</li>
</ul>
<h3><span id="more-53"></span></h3>
<h3><a style="text-decoration: none; color: #555555;" name="NAT">NAT</a></h3>
<p><span style="text-decoration: underline;"><strong><a style="text-decoration: none; color: #555555;" name="NAT_Concepts">NAT Concepts</a></strong></span></p>
<p><span>Network Address Translation (NAT) is used to allocate public IP addresses to hosts, regardless of the logical topology (hosts in different <span>subnets</span> can be allocated public addresses in the same <span>subnet</span>). As the topology of the network is hidden,  it is more secure than using public IP addresses for internal addressing.</span></p>
<p><span>The addresses can be assigned manually for each host, which is necessary </span>for servers that offer external services, as domain names are set to go to a fixed IP. Hosts that do not need to always be assigned the same external IP address can have the addresses assigned dynamically as they are required.</p>
<p><span style="text-decoration: underline;"><strong><a style="text-decoration: none; color: #555555;" name="NAT_Config">Configuring NAT</a><a></a></strong></span></p>
<p><span style="text-decoration: underline;">Set IP address pool</span></p>
<p><em>Router(config)# <strong>ip nat pool [name] [start address] [end address] netmask [subnet mask]</strong></em></p>
<p><span style="text-decoration: underline;">Set the ACL for allowed internal hosts</span></p>
<p><em>Router(config)# <strong>access-list [no.] permit [network address] [wildcard mask]</strong></em></p>
<p><span style="text-decoration: underline;">Enable NAT and assign ACL</span></p>
<p><em>Router(config)# <strong>ip nat inside source list [no.] pool [name]</strong></em></p>
<p><span style="text-decoration: underline;">Set interfaces as inside or outside</span></p>
<p><em>Router(config-if)# <strong>ip nat [inside | outside]</strong></em></p>
<p><span style="text-decoration: underline;">Set a static NAT assignment</span></p>
<p><em>Router(config)# <strong>ip nat inside source static [inside address] [outside address]</strong></em></p>
<p><span style="text-decoration: underline;"><strong><a style="text-decoration: none; color: #555555;" name="NAT_Debug">Debugging NAT</a></strong></span></p>
<p><em>Router# <strong>debug ip nat</strong></em></p>
<h3><a style="text-decoration: none; color: #555555;" name="PAT">PAT</a></h3>
<p><span style="text-decoration: underline;"><strong><a style="text-decoration: none; color: #555555;" name="PAT_Concepts">PAT Concepts</a></strong></span></p>
<p>Port Address Translation (PAT) is used when there are more hosts that need external addresses than external addresses available. When the there are no longer enough addresses to go around, the router will assign individual ports to hosts, as they are required. The port number is the same as the external destination port, provided it is available. If the destination port is in use, the router will assign the next available port (eg, if 7777 was the destination and was already assigned to another host, 7778 would be used, provided it is free).</p>
<p>PAT can allow for a significant reduction in the number of public IP addresses needed, reducing cost and extending the life of IPv4, which is running out of free addresses.</p>
<p><span style="text-decoration: underline;"><strong><a style="text-decoration: none; color: #555555;" name="PAT_Config">Configuring PAT</a></strong></span></p>
<p><span style="text-decoration: underline;">Set the ACL for allowed internal hosts</span></p>
<p><em>Router(config)# <strong>access-list [no.] permit [network address] [wildcard mask]</strong></em></p>
<p><span style="text-decoration: underline;">Enable PAT and assign ACL</span></p>
<p><em>Router(config)# <strong>ip nat inside source list [no.] interface [interface] overload</strong></em></p>
<p><span style="text-decoration: underline;">Set interfaces as inside or outside</span></p>
<p><em>Router(config-if)# <strong>ip nat [inside | outside]</strong></em></p>
<h3><a style="text-decoration: none; color: #555555;" name="DHCP">DHCP</a></h3>
<p><span style="text-decoration: underline;"><strong><a style="text-decoration: none; color: #555555;" name="DHCP_Concepts">DHCP Concepts</a></strong></span></p>
<p>Dynamic Host Configuration Protocol (DHCP) allows for host settings such as IP address, subnet mask, default gateway, and DNS server address, to be set remotely.</p>
<p>DHCP is based on BOOTP, which required that all hosts were allocated their IP addresses manually on the BOOTP server. DHCP doesn&#8217;t have this limitation.</p>
<p>DHCP requests are sent using UDP with port 68. DHCP reponses are sent back with UDP on port 67.</p>
<p><span style="text-decoration: underline;"><strong><a style="text-decoration: none; color: #555555;" name="DHCP_Config">Configuring DHCP</a></strong></span></p>
<p><span style="text-decoration: underline;">Basic DHCP config with IP address and default gateway<br />
</span></p>
<p><em>Router(config)# <strong>ip dhcp pool [pool-name]</strong></em></p>
<p><em>Router(dhcp-config)# <strong>network [network address] [subnet mask | CIDR]</strong></em></p>
<p><em>Router(</em><em>dhcp-config</em><em>)# <strong>default-router [router address]</strong></em></p>
<p><span style="text-decoration: underline;">Other attributes</span></p>
<p><em>Router(</em><em>dhcp-config</em><em>)# <strong>dns-server [server address]</strong></em></p>
<p><em>Router(</em><em>dhcp-config</em><em>)# <strong>domain-name [domain]</strong></em></p>
<p><em>Router(</em><em>dhcp-config</em><em>)# <strong>netbios-name-server [server address]</strong></em></p>
<p><span style="text-decoration: underline;">Forward packets to DHCP server</span></p>
<p>On LAN interface: <em>Router(config-if)#<strong> ip helper-address [DHCP server address]</strong></em></p>
<p><span style="text-decoration: underline;">Exclude IP addresses from DHCP pool</span></p>
<p><em>Router(config)# <strong>ip dhcp excluded-address [start address] [end address (optional)]<br />
</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://wp.greenwood.net.nz/module-1-scaling-ip-addresses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

