Difference between revisions of "Cisco NAT for IPv4"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
= References = | = References = | ||
* more in [[Cisco_weird_interfaces#NVI_-_NAT_Virtual_Interface]] | * more in [[Cisco_weird_interfaces#NVI_-_NAT_Virtual_Interface]] | ||
* [http://computernetworkingnotes.com/wan-protocols-hdlc-ppp-frame-really-nat-pat/configuration-of-nat.html Static NAT] Packet Tracer example |
Revision as of 14:24, 15 February 2015
Port Forwarding
Port forwarding is a static NAT translation with a specified TCP or UDP port number.
ip nat inside source {static {tcp | udp} local-ip local-port global-ip global-port} [extendable] interface s0/0/0 ip nat outside interface fa0/0 ip nat inside
- extendable - option applied automatically, allows the user to configure several ambiguous static translations, where ambiguous translations are translations with the same local or global address. It allows the router to extend the translations to more than one port if necessary
NAT overload
A PAT-enabled router maintains a table that consists of a mapping of inside local IP addresses and TCP/UDP port numbers to outside local addresses and TCP/UDP port numbers. When traffic returns to the router from the public network, the router would compare the destination port to the PAT mapping table to determine to which inside host the traffic should be sent.
References
- more in Cisco_weird_interfaces#NVI_-_NAT_Virtual_Interface
- Static NAT Packet Tracer example