Translating Between IPv6 and IPv4
Problem
You want to configure a router to act as a gateway between IPv4 and IPv6 networks.
Solution
Cisco includes a protocol translation feature that allows you to interconnect IPv6 and IPv4 networks:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ipv6 access-listRouter1(config-ipv6-acl)#ALLOWED-NAT-DEVSpermit ipv6 any anyRouter1(config-ipv6-acl)#exitRouter1(config)#ipv6 nat prefix::FFFF:0.0.0.0/96v4-mappedRouter1(config)#ALLOWED-NAT-DEVSipv6 nat v6v4 sourceRouter1(config)#AAAA:5::AA9 192.168.56.100interfaceRouter1(config-if)#FastEthernet0/0no ip addressRouter1(config-if)#ipv6 addressRouter1(config-if)#AAAA:5::2012/64ipv6 natRouter1(config-if)#exitRouter1(config)#interfaceRouter1(config-if)#Serial0/0ip addressRouter1(config-if)#192.168.55.12 255.255.255.0ipv6 natRouter1(config-if)#exitRouter1(config)#endRouter1#
Discussion
Starting in IOS Version 12.2(13)T, Cisco introduced the ability to use a router as a protocol gateway, translating between IPv6 and IPv4 worlds by means of Network Address Translation with Protocol Translation (NAT-PT). For more information on NAT in general, please refer to Chapter 21.
RFCs 4038 and 4291 include discussions of how to address IPv4 packets that originate in an IPv6 network. The current standard method is called the “IPv4-Mapped IPv6 Address,” which works very simply. If an IPv6 device wants to send a packet to an IPv4 device whose address ...