-----------------------------------------------------------------------------------------------------------------------------
IPV6 NAT inside router
-----------------------------------------------------------------------------------------------------------------------------
ALG_2811_3#show ipv6 inter br
FastEthernet0/0 [up/up]
FastEthernet0/1 [up/up]
FE80::A60C:C3FF:FE89:3111
2001::3
ALG_2811_3#sh run inter fa 0/1
Building configuration...
Current configuration : 130 bytes
!
interface FastEthernet0/1
ip address 5.1.0.5 255.255.255.0
duplex auto
speed auto
ipv6 address 2001::3/64
ipv6 enable
end
ALG_2811_3#show ipv6 route
IPv6 Routing Table - 4 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route, M - MIPv6
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
D - EIGRP, EX - EIGRP external
C 2001::/64 [0/0]
via ::, FastEthernet0/1
L 2001::3/128 [0/0]
via ::, FastEthernet0/1
S 2002::/96 [1/0]
via 2001::1
L FF00::/8 [0/0]
via ::, Null0
ALG_2811_3#
-----------------------------------------------------------------------------------------------------------------------------
IPV6 NAT router configuration
-----------------------------------------------------------------------------------------------------------------------------
ALG_2811_2#show ip inter br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.74.30.182 YES NVRAM up up
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/1.701 5.1.0.1 YES manual up up
FastEthernet0/1.702 unassigned YES unset up up
NVI0 unassigned NO unset up up
ALG_2811_2#show ipv6 inter br
FastEthernet0/0 [up/up]
FastEthernet0/1 [up/up]
unassigned
FastEthernet0/1.701 [up/up]
FE80::221:55FF:FE89:5B69
FastEthernet0/1.702 [up/up]
FE80::221:55FF:FE89:5B69
2001::1
NVI0 [up/up]
FE80::221:55FF:FE89:5B68
ALG_2811_2#show run inter FastEthernet0/1.701
Building configuration...
Current configuration : 106 bytes
!
interface FastEthernet0/1.701
encapsulation dot1Q 701
ip address 5.1.0.1 255.255.255.0
ipv6 nat
end
ALG_2811_2#show run inter FastEthernet0/1.702
Building configuration...
Current configuration : 110 bytes
!
interface FastEthernet0/1.702
encapsulation dot1Q 702
ipv6 address 2001::1/64
ipv6 enable
ipv6 nat
end
ALG_2811_2#show run | in ipv6 nat
ipv6 nat
ipv6 nat
ipv6 nat v4v6 source 5.1.0.5 2002::10
ipv6 nat v6v4 source 2001::3 5.1.0.2
ipv6 nat prefix 2002::/96
ALG_2811_2#
-----------------------------------------------------------------------------------------------------------------------------
IPV6 NAT inside router(IPV4 domain)
-----------------------------------------------------------------------------------------------------------------------------
ALG_2811_1#show ip inter brInterface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.74.30.181 YES NVRAM up up
FastEthernet0/1 5.1.0.5 YES manual up up
ALG_2811_1#show run inter fa 0/1
Building configuration...
Current configuration : 110 bytes
!
interface FastEthernet0/1
ip address 5.1.0.5 255.255.255.0
load-interval 30
duplex auto
speed auto
end
==========================================================================
NAT translation before traffic
==========================================================================
ALG_2811_2#show ipv6 nat translations
Prot IPv4 source IPv6 source
IPv4 destination IPv6 destination
--- --- ---
5.1.0.5 2002::10
--- 5.1.0.2 2001::3
--- ---
ALG_2811_2#
==========================================================================
NAT translation after traffic
==========================================================================
ALG_2811_2#show ipv6 nat translationsProt IPv4 source IPv6 source
IPv4 destination IPv6 destination
--- --- ---
5.1.0.5 2002::10
--- 5.1.0.2 2001::3
5.1.0.5 2002::10
--- 5.1.0.2 2001::3
--- ---
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
结论:
1. IPV6 NAT和纯的IPV4或者IPV6NAT有点不一样
2. ipv6 nat prefix 是关键