How to configure Static NAT? Please give Step by Step commands guide and practical.?

author
,
System Administrator
  • Total 1 Answer
  • 1897
Can You answer this question?
author
,
CCNA Routing and Switching

               Static Nat ( Network Address Translation ) : 

 

 

Static Nat : It is used to convert private ip into public ip manually . 

- Static Nat is bidrectional means using static entry traffic can go from inside to outside as well as outside generated traffic can also come inside.

- In static nat we do one to one translation .

   ex. we can map an ip 10.1 to 12.1 using static nat in NAT TABLE at R1.

==> But we need one default route in order to reach ISP and command is : 

R1(config)#ip route 0.0.0.0 0.0.0.0 12.0.0.2

Before Translation we have to configure inside and outside interfaces as in our case inside interface is fa0/0 which is used as source mean when traffic will hit inside interface source ip will be transalated and outside interface will be fa1/1.

R1(config)#int fa0/0     
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#int fa1/1
R1(config-if)#ip nat outside
R1(config-if)#exit

 

To configure static nat command : 

R1(config)#ip nat inside source static 10.0.0.1 12.0.0.1 

 

Now to see NAT Table :

R1#show ip nat translations 
Pro Inside global      Inside local       Outside local      Outside global
--- 12.0.0.1           10.0.0.1           ---                ---

 

 

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 111: file_put_contents(/var/www/html/storage/framework/sessions/YPK8JmAgMA4mK8n0egJxWwca1jLf1pIbGiBdYiSG): failed to open stream: No space left on device

  1. in Filesystem.php line 111
  2. at HandleExceptions->handleError(2, 'file_put_contents(/var/www/html/storage/framework/sessions/YPK8JmAgMA4mK8n0egJxWwca1jLf1pIbGiBdYiSG): failed to open stream: No space left on device', '/var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', 111, array('path' => '/var/www/html/storage/framework/sessions/YPK8JmAgMA4mK8n0egJxWwca1jLf1pIbGiBdYiSG', 'contents' => 'a:4:{s:6:"_token";s:40:"FY63eIWtwFXUk5gDjosxr9YmQ9GZ5gXCQLdmGH0E";s:11:"viewed_urls";a:1:{i:0;s:81:"how-to-configure-static-nat-please-give-step-by-step-commands-guide-and-practical";}s:9:"_previous";a:1:{s:3:"url";s:109:"http://www.networkbulls.com/how-to-configure-static-nat-please-give-step-by-step-commands-guide-and-practical";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 'lock' => true))
  3. at file_put_contents('/var/www/html/storage/framework/sessions/YPK8JmAgMA4mK8n0egJxWwca1jLf1pIbGiBdYiSG', 'a:4:{s:6:"_token";s:40:"FY63eIWtwFXUk5gDjosxr9YmQ9GZ5gXCQLdmGH0E";s:11:"viewed_urls";a:1:{i:0;s:81:"how-to-configure-static-nat-please-give-step-by-step-commands-guide-and-practical";}s:9:"_previous";a:1:{s:3:"url";s:109:"http://www.networkbulls.com/how-to-configure-static-nat-please-give-step-by-step-commands-guide-and-practical";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 2) in Filesystem.php line 111
  4. at Filesystem->put('/var/www/html/storage/framework/sessions/YPK8JmAgMA4mK8n0egJxWwca1jLf1pIbGiBdYiSG', 'a:4:{s:6:"_token";s:40:"FY63eIWtwFXUk5gDjosxr9YmQ9GZ5gXCQLdmGH0E";s:11:"viewed_urls";a:1:{i:0;s:81:"how-to-configure-static-nat-please-give-step-by-step-commands-guide-and-practical";}s:9:"_previous";a:1:{s:3:"url";s:109:"http://www.networkbulls.com/how-to-configure-static-nat-please-give-step-by-step-commands-guide-and-practical";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', true) in FileSessionHandler.php line 83
  5. at FileSessionHandler->write('YPK8JmAgMA4mK8n0egJxWwca1jLf1pIbGiBdYiSG', 'a:4:{s:6:"_token";s:40:"FY63eIWtwFXUk5gDjosxr9YmQ9GZ5gXCQLdmGH0E";s:11:"viewed_urls";a:1:{i:0;s:81:"how-to-configure-static-nat-please-give-step-by-step-commands-guide-and-practical";}s:9:"_previous";a:1:{s:3:"url";s:109:"http://www.networkbulls.com/how-to-configure-static-nat-please-give-step-by-step-commands-guide-and-practical";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}') in Store.php line 128
  6. at Store->save() in StartSession.php line 88
  7. at StartSession->terminate(object(Request), object(Response)) in Kernel.php line 216
  8. at Kernel->terminateMiddleware(object(Request), object(Response)) in Kernel.php line 187
  9. at Kernel->terminate(object(Request), object(Response)) in index.php line 58
  10. at require_once('/var/www/html/public/index.php') in index.php line 20