Traditional NAT Static Configuration describes how to configure traditional NAT for a static configuration.
Step | Task | Command(s) |
---|---|---|
1 | Enable NAT, in interface configuration mode, on both the inside and outside interfaces. | ip | ipv6 nat {inside | outside} |
2 | Enable, in global configuration mode, any static NAT translations of IPv4 or IPv6 inside source addresses. Inside source static rules allow NAT translation of data ingressing a NAT outside interface destined to the static rule's global-ip address. | ip nat inside source static local-ip global-ip [inside-vrf vrf-name] [fullcone acl | restricted-cone acl | port-restricted-cone acl] ipv6 nat inside source static local-ipv6/prefix-length global-ipv6/prefix-length [inside-vrf vrf-name] [fullcone acl | restricted-cone acl | port-restricted-cone acl] |
3 | Enable, in global configuration mode, any static NAPT translations of IPv4 inside source addresses, specifying whether the L4 port is a TCP or UDP port. Inside source static rules allow NAT translation of data ingressing a NAT outside interface destined to the static rule's protocol, global-ip address and global-port. | ip nat inside source static {tcp | udp} local-ip local-port global-ip global-port |