<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.d3xt3r01.tk//index.php?action=history&amp;feed=atom&amp;title=Cisco_Simple_NAT</id>
	<title>Cisco Simple NAT - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.d3xt3r01.tk//index.php?action=history&amp;feed=atom&amp;title=Cisco_Simple_NAT"/>
	<link rel="alternate" type="text/html" href="https://wiki.d3xt3r01.tk//index.php?title=Cisco_Simple_NAT&amp;action=history"/>
	<updated>2026-05-05T17:27:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.d3xt3r01.tk//index.php?title=Cisco_Simple_NAT&amp;diff=14&amp;oldid=prev</id>
		<title>Admin: New page: ==WHAT==  The simplest way to learn some cisco is trying to do a simple NAT in your home router so you can share your internet connection multiple computers. This is probably the most aske...</title>
		<link rel="alternate" type="text/html" href="https://wiki.d3xt3r01.tk//index.php?title=Cisco_Simple_NAT&amp;diff=14&amp;oldid=prev"/>
		<updated>2009-06-25T19:32:47Z</updated>

		<summary type="html">&lt;p&gt;New page: ==WHAT==  The simplest way to learn some cisco is trying to do a simple NAT in your home router so you can share your internet connection multiple computers. This is probably the most aske...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==WHAT==&lt;br /&gt;
&lt;br /&gt;
The simplest way to learn some cisco is trying to do a simple NAT in your home router so you can share your internet connection multiple computers. This is probably the most asked question by beginners.&lt;br /&gt;
&lt;br /&gt;
==STEP 1 - Gateway==&lt;br /&gt;
&lt;br /&gt;
Get into configuration mode&lt;br /&gt;
  Router&amp;gt;enable&lt;br /&gt;
  Router#configure terminal&lt;br /&gt;
  Enter configuration commands, one per line.  End with CNTL/Z.&lt;br /&gt;
Set the hostname so we don&amp;#039;t get confused&lt;br /&gt;
  Router(config)#hostname gateway&lt;br /&gt;
And configure the fa0/0 interface as the inside nat network&lt;br /&gt;
  gateway(config)#interface FastEthernet 0/0&lt;br /&gt;
  gateway(config-if)#ip nat inside&lt;br /&gt;
  gateway(config-if)#ip address 192.168.0.1 255.255.255.0&lt;br /&gt;
  gateway(config-if)#no shutdown&lt;br /&gt;
  *Mar  1 00:18:38.071: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up&lt;br /&gt;
  *Mar  1 00:18:39.071: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up&lt;br /&gt;
  gateway(config-if)#exit&lt;br /&gt;
Same thing for 1/0, outside nat ( our Inet connection )&lt;br /&gt;
  gateway(config)#interface FastEthernet 1/0&lt;br /&gt;
  gateway(config-if)#ip nat outside&lt;br /&gt;
  gateway(config-if)#ip address 10.0.0.3 255.255.255.0&lt;br /&gt;
  gateway(config-if)#no shutdown&lt;br /&gt;
  *Mar  1 00:18:40.011: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up&lt;br /&gt;
  *Mar  1 00:18:40.013: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up&lt;br /&gt;
  gateway(config-if)#exit&lt;br /&gt;
Now set up a standard accesslist with the name &amp;#039;inside_nat_addresses&amp;#039; ( feel free to change it ) in which we tell that 192.168.*.* will match this ACL&lt;br /&gt;
  gateway(config-if)#ip access-list standard inside_nat_addresses&lt;br /&gt;
  gateway(config-std-nacl)#permit 192.168.0.0 0.0.0.255&lt;br /&gt;
  gateway(config-std-nacl)#exit&lt;br /&gt;
NOW, GOD says to do NAT ! This is read &amp;quot;I want to nat from _inside out_ all the hosts in &amp;#039;inside_nat_addresses&amp;#039; to fa1/0 with port forwarding &lt;br /&gt;
  gateway(config)#ip nat inside source list inside_nat_addresses interface FastEthernet 1/0 overload&lt;br /&gt;
  gateway(config)#exit&lt;br /&gt;
  *Mar  1 00:18:56.083: %SYS-5-CONFIG_I: Configured from console by console&lt;br /&gt;
SAVE it and pray it works ! ( WORKED FOR ME !&lt;br /&gt;
  gateway#write mem&lt;br /&gt;
  Building configuration...&lt;br /&gt;
  [OK]&lt;br /&gt;
==STEP 2 - Client==&lt;br /&gt;
&lt;br /&gt;
Now 1 of the clients .. I&amp;#039;ll be using another router as a client ( cisco again )&lt;br /&gt;
  Router&amp;gt;enable&lt;br /&gt;
  Router#configure terminal&lt;br /&gt;
  Enter configuration commands, one per line.  End with CNTL/Z.&lt;br /&gt;
Set the hostname so we don&amp;#039;t get confused&lt;br /&gt;
  Router(config)#hostname test&lt;br /&gt;
And configure the fa0/0 interface as one ip in our NAT network&lt;br /&gt;
  test(config)#interface FastEthernet 0/0&lt;br /&gt;
  test(config-if)#ip address 192.168.0.5 255.255.255.0&lt;br /&gt;
  test(config-if)#no shutdown&lt;br /&gt;
  *Mar  1 00:20:11.051: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up&lt;br /&gt;
  *Mar  1 00:20:12.061: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up&lt;br /&gt;
  test(config-if)#exit&lt;br /&gt;
Now add the default gateway&lt;br /&gt;
  test(config)#ip route 0.0.0.0 0.0.0.0 192.168.0.1&lt;br /&gt;
  test(config)#exit&lt;br /&gt;
Et voila !&lt;br /&gt;
  test#write mem&lt;br /&gt;
  Building configuration...&lt;br /&gt;
  [OK]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DEBUGGING==&lt;br /&gt;
&lt;br /&gt;
Now you should be able to NAT all your 192.168.*.* to your fa1/0&lt;br /&gt;
&lt;br /&gt;
Check the current settings using&lt;br /&gt;
  show ip interface brief &lt;br /&gt;
and the nat connections&lt;br /&gt;
  show ip nat translations&lt;br /&gt;
&lt;br /&gt;
Some debugging &lt;br /&gt;
  debug ip packet detail&lt;br /&gt;
and&lt;br /&gt;
  debug ip nat detail&lt;br /&gt;
Be careful with the debug levels, &amp;#039;detail&amp;#039; is only recommended in lab situations !&lt;br /&gt;
&lt;br /&gt;
When trying to use pings, to stop them use ctrl+shift+6&lt;br /&gt;
&lt;br /&gt;
[[Category: Cisco]]&lt;br /&gt;
[[Category: NAT]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>