Skip to content

Latest commit

 

History

History
93 lines (52 loc) · 3.71 KB

NAT_Dynamic_Part2.md

File metadata and controls

93 lines (52 loc) · 3.71 KB

45. NAT (DYNAMIC): PART 2

MORE ABOUT STATIC NAT

  • STATIC NAT involves statically configuring one-to-one mappings of PRIVATE IP ADDRESSES to PUBLIC IP ADDRESSES
  • When traffic from the INTERNAL HOST is sent to the OUTSIDE NETWORK, the ROUTER will translate the SOURCE ADDRESS

image

  • HOWEVER, this one-to-one mapping also allows EXTERNAL HOSTS to access the INTERNAL HOST via INSIDE GLOBAL ADDRESS

image


DYNAMIC NAT

  • In DYNAMIC NAT, the ROUTER dynamically maps INSIDE LOCAL ADDRESSES to INSIDE GLOBAL ADDRESSES, as needed

  • An ACL is used to identify WHICH traffic should be translated

    • If the SOURCE IP is PERMITTED; the SOURCE IP will be translated

    • If the SOURCE IP is DENIED; the SOURCE IP will NOT be translated

      💡 However, Packet Traffic will NOT be dropped
  • A NAT POOL is used to define the available INSIDE GLOBAL ADDRESS

image

  • Although they are dynamically assigned, the mappings are still one-to-one (one INSIDE LOCAL IP ADDRESS per INSIDE GLOBAL IP ADDRESS)
  • If there are NOT enough INSIDE GLOBAL IP ADDRESSES available (=ALL are being used), it is called ‘NAT POOL EXHAUSTION’
    • If a PACKET from another INSIDE HOST arrives and needs NAT but there are no AVAILABLE ADDRESSES, the ROUTER will drop the PACKET
    • The HOST will be unable to access OUTSIDE NETWORKS until one of the INSIDE GLOBAL IP ADDRESSES becomes available
    • DYNAMIC NAT entries will time out automatically if not used, or you can clear them manually

NAT POOL EXHAUSTION

image

192.168.0.167 TIMES OUT and 192.168.0.98 is assigned it’s TRANSLATED SOURCE IP

image

DYNAMIC NAT CONFIGURATION

image

show ip nat translations

image

image

image


DYNAMIC PAT (NAT OVERLOAD)

  • PAT (NAT OVERLOAD) translates BOTH the IP ADDRESS and the PORT NUMBER (if necessary)
  • By using a unique PORT NUMBER for each communication flow, a single PUBLIC IP ADDRESS can be used by many different INTERNAL HOSTS
    • PORT NUMBERS are 16 bits = over 65,000 available port numbers
  • The ROUTER will keep track of which INSIDE LOCAL ADDRESS is using which INSIDE GLOBAL ADDRESS and PORT

image

PAT CONFIGURATION (POOL)

image

show ip nat translations

image

PAT CONFIGURATION (INTERFACE)

image

image

show ip nat translations

image


COMMAND REVIEW

image