Use this command to enable static NAT translation of inside source IPv6 addresses.
local-ip/prefix-length | Specifies the private (local) address to be associated with a public (global) address for this translation. The prefix-length can not be greater than 112. |
global-ip/prefix-length | Specifies the public (global) address to be associated with a private (local) address for this translation. The prefix-length can not be greater than 112. |
inside-vrf vrf-name | (Optional) Specifies the name of the VRF to which the local IP address belongs. |
fullcone acl | (Optional) Specifies an access list that identifies protocols and ports to process as fullcone NAT. |
restricted-cone acl | (Optional) Specifies an access list that identifies protocols and ports to process as restricted cone NAT. |
port-restricted-cone acl | (Optional) Specifies an access list that identifies protocols and ports to process as port restricted cone NAT. |
If inside-vrf vrf-name is not specified, an inside VRF is not associated with this translation.
If an access list for fullcone, restricted-cone, or port-restricted-cone NAT is not specified, or the packet does not match a cone access list entry, a cone NAT binding is not applied to the packet.
Configuration command, Global configuration.
If a full, restricted, or port restricted cone NAT access list is specified, and the IPv6 packet protocol and port matches an access list entry, a cone NAT binding for the cone type is applied to the packet. See Network Address Translation (NAT) Configuration in the S-, K-, and 7100 Series Configuration Guide for a detailed cone NAT feature discussion.
The “no” form of the command deletes the specified static NAT translation.
This example enables a static NAT translation of inside source addresses for private local addresses 2001:abcd:ef01::0/64 destined for and transmitting from unique public addresses 2001:fdea:4321::0/64:
System(rw-config)->ipv6 nat inside source static 2001:abcd:ef01::0/64 2001:fdea:4321::0/64
This example enables a static NAT translation, on VRF vrf2, of inside source addresses for private local address 2001:abcd:ef01::0/64 destined for and transmitting from unique public addresses 2001:fdea:4321::0/64, specifying that the local addresses belong to VRF vrf1:
System(rw-vrf2-config)->no ipv6 nat inside source static 2001:abcd:ef01::0/64 2001:fdea:4321::0/64 inside-vrf vrf1
This example applies a full cone NAT binding, mapping the IPv6 source IP addresses 2001:abcd:ef01::0/64 to the global IP address 2001:fdea:4321::0/64 for either:
System(rw-config)->ipv6 nat inside source static 2001:abcd:ef01::0/64 2001:fdea:4321::0/64 fullcone fc_acl1