Nowadays many networks are running on both IPv4 and IPv6.Few networks are running over IPv4 while few are working on IPv6.Although IPv6 is the future of networking but still the process of shifting network from IPv4 to IPv6 is very much slow.So until or unless every network shifted to IPv6 we need different methods to make communication between these two form of Address IPv4 and IPv6. Here in this lab we will learn how to configure static nat using ipv6 so that IPv4 network machines can communicate through IPv6 network.
NAT FOR IPV6
STEP 1: configuration on GATEWAY-ROUTER
Assign ip version 4 and ip version 6 address on Gateway Router.
Router>enable Router#config t Router(config)#host Gateway_Router Gateway_Router(config)#int fa0/1 Gateway_Router(config-if)#ip add 1.0.0.1 255.0.0.0 Gateway_Router(config-if)#no shut Gateway_Router(config-if)#exit Gateway_Router(config)#ipv6 unicast-routing Gateway_Router(config)#int fa0/0 Gateway_Router(config-if)#ipv6 add 2000:ABCD::1/64 Gateway_Router(config-if)#no shut
STEP 2:IPv6 Address Configuration on Router R1
Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R1 R1(config)#ipv6 unicast-routing R1(config)#int fa0/0 R1(config-if)#ipv6 add 2000:ABCD::2/64 R1(config-if)#no shut
STEP 3:IPv6 address configuration on R2:
Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R2 R2(config)#ipv6 unicast-routing R2(config)#int fa0/0 R2(config-if)#ipv6 add 2000:ABCD::3/64 R2(config-if)#no shut
STEP 4: IPv4 configuration on Router R3
Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R3 R3(config)#int fa0/0 R3(config-if)#ip add 1.0.0.2 255.0.0.0 R3(config-if)#no shut
STEP 5: IPv4 configuration on Router R4
Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R4 R4(config)#int fa0/0 R4(config-if)#ip add 1.0.0.3 255.0.0.0 R4(config-if)#no shut
STEP 6: Now configure IPv4 Static Route on R3 and R4
R3(config)#ip route 2.0.0.0 255.0.0.0 1.0.0.1 R4(config)#ip route 2.0.0.0 255.0.0.0 1.0.0.1
STEP7: Then configure IPv6 Static Route on Router R1 and R2
R1(config)#ipv6 route 2001:12::/96 2000:ABCD::1 R2(config)#ipv6 route 2001:12::/96 2000:ABCD::1
STEP 8: Test Gateway IP communication using ping command:
Gateway_Router#ping 1.0.0.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 1.0.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/13/38 ms
Gateway_Router#ping 2000:ABCD::1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2000:ABCD::1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/18/38 ms
STEP 9: Configure STATIC NAT for IPv4 to IPv6 Transformation:
Gateway_Router(config)#ipv6 nat prefix 2001:12::/96 Gateway_Router(config)#ipv6 nat v4v6 source 1.0.0.2 2001:12::2 Gateway_Router(config)#ipv6 nat v4v6 source 1.0.0.3 2001:12::3
STEP 10: Configure STATIC NAT for IPv6 to IPv4 Transformation:
Gateway_Router(config)#ipv6 nat v6v4 source 2000:ABCD::2 2.0.0.2 Gateway_Router(config)#ipv6 nat v6v4 source 2000:ABCD::3 2.0.0.3
STEP 11: Now tell gateway router interfaces about the NAT configuration:
Gateway_Router(config)#int fa0/0 Gateway_Router(config-if)#ipv6 nat Gateway_Router(config-if)#exit Gateway_Router(config)#int fa0/1 Gateway_Router(config-if)#ipv6 nat
STEP 12: Now test the network communication.
Test communication from IPv4 network to IPv6 Network using ping command.
R3#ping 2.0.0.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2.0.0.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 0/2/12 ms