How to configure PAT (Port Address Translation)?

author
,
System Administrator
  • Total 4 Answers
  • 20925
Can You answer this question?
author
,
CCNA Routing and Switching

PAT (Port Address Translation) : 

---PAT is used to convert Multiple source ip's into a [ single public ip / pool -multiple public ip's ] using Port Numbers.

In above example or practical we will do PAT on Router R1 which is END Router of LAN Having network of 10.0.0.0 255.0.0.0

R1(config)#int f0/0

R1(config-if)#ip nat inside ---- Inside Interface i.e Our LAN 
R1(config-if)#ex

R1(config)#int fa1/1

R1(config-if)#ip nat outside -- Outside Interface i.e WAN
R1(config-if)#ex

Now configure a access list to match the source traffic : 

R1(config)#access-list 1 permit 10.0.0.0 0.255.255.255    - Our LAN Network.

Now we have to do PAT : 

R1(config)#ip nat inside source list 1 interface f1/1 overload  -- all traffic from LAN get converted into a single ip of interface FA1/1.

To convert it into a pool of ip's we have to creata a pool : 

R1(config)#ip nat pool abc 12.0.0.3 12.0.0.5 netmask 255.0.0.0

R1(config)#ip nat inside source list 1 pool abc overload

TO VERIFY : 

show ip nat translation  --- Entry will be created when traffic will hit the R1 LAN Interface.

 

author
,
Principal Network Architect - Array Networks

 

Rajan has already explained you people really well.

Here's a video tutorial for Step by Step Configuration guide on How to Configure PAT (Port Address Translation) using Cisco devices:

 

 

author
,
A CCIE Student & Music Lover

Well describe Rajan

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 111: file_put_contents(/var/www/html/storage/framework/sessions/1qO1st7bi5whPexNB4tyCgKvIGaKo3zkRuhfVkLP): 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/1qO1st7bi5whPexNB4tyCgKvIGaKo3zkRuhfVkLP): 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/1qO1st7bi5whPexNB4tyCgKvIGaKo3zkRuhfVkLP', 'contents' => 'a:4:{s:6:"_token";s:40:"9PnLkDN6LvOElwzu92GNVtstVq6zWpI8HqK9GAk2";s:11:"viewed_urls";a:1:{i:0;s:47:"how-to-configure-pat-port-address-translation-1";}s:9:"_previous";a:1:{s:3:"url";s:75:"http://www.networkbulls.com/how-to-configure-pat-port-address-translation-1";}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/1qO1st7bi5whPexNB4tyCgKvIGaKo3zkRuhfVkLP', 'a:4:{s:6:"_token";s:40:"9PnLkDN6LvOElwzu92GNVtstVq6zWpI8HqK9GAk2";s:11:"viewed_urls";a:1:{i:0;s:47:"how-to-configure-pat-port-address-translation-1";}s:9:"_previous";a:1:{s:3:"url";s:75:"http://www.networkbulls.com/how-to-configure-pat-port-address-translation-1";}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/1qO1st7bi5whPexNB4tyCgKvIGaKo3zkRuhfVkLP', 'a:4:{s:6:"_token";s:40:"9PnLkDN6LvOElwzu92GNVtstVq6zWpI8HqK9GAk2";s:11:"viewed_urls";a:1:{i:0;s:47:"how-to-configure-pat-port-address-translation-1";}s:9:"_previous";a:1:{s:3:"url";s:75:"http://www.networkbulls.com/how-to-configure-pat-port-address-translation-1";}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('1qO1st7bi5whPexNB4tyCgKvIGaKo3zkRuhfVkLP', 'a:4:{s:6:"_token";s:40:"9PnLkDN6LvOElwzu92GNVtstVq6zWpI8HqK9GAk2";s:11:"viewed_urls";a:1:{i:0;s:47:"how-to-configure-pat-port-address-translation-1";}s:9:"_previous";a:1:{s:3:"url";s:75:"http://www.networkbulls.com/how-to-configure-pat-port-address-translation-1";}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