Em cấu hình router NAT- Pt như sau
NAT-PT
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ipv6 unicast-routing
Router(config)#interface f0/0
Router(config-if)#ipv6 add 2001:A:B:C::4/64
Router(config-if)#ipv6 nat
Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface f0/1
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#ipv6 nat
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#ipv6 access-list to_v4
Router(config-ipv6-acl)#permit ipv6 2001:A:B:C::/64 any
Router(config-ipv6-acl)#exit
Router(config)#ipv6 nat v6v4 pool ipv4 192.168.1.1 192.168.1.3 prefix-length 24
Router(config)#ipv6 nat v6v4 source list to_v4 pool ipv4
Router(config)#ipv6 nat v4v6 source 192.168.1.10 2001::C0A8:10A
Router(config)#ipv6 nat prefix 2001::/86
% Invalid prefix length
Router(config)#ipv6 nat prefix 2001::/96
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Cấu hình Router IPv4 như sau:
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname V4
V4(config)#interface f0/0
V4(config-if)#ip add 192.168.1.10 255.255.255.0
V4(config-if)#no shut
V4(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
V4(config-if)#exit
V4(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1
V4(config)#interface f0/1
V4(config-if)#ip add 192.168.2.1 255.255.255.0
V4(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
V4(config-if)#exit
V4(config)#exit
V4#
%SYS-5-CONFIG_I: Configured from console by console
CẤU HÌNH V6 NHƯ SAU:
Router(config)#
Router(config)#hostname V6
V6(config)#ipv6 unicast-routing
V6(config)#interface f0/0
V6(config-if)#ipv6 add 2001:A:B:C::3/64
V6(config-if)#no shut
V6(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
V6(config-if)#exit
V6(config)#ipv6 route ::/0 2001:A:B:C::4
V6(config)#ipv6 unicast-routing
V6(config)#int f0/1
V6(config-if)#ipv6 add 2001:A:B:B::2/64
V6(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
V6(config)#exit
V6#
%SYS-5-CONFIG_I: Configured from console by console
Anh chị cho em hỏi là tại sao con PC1_V6 không ping được qua PC2_V4 ạ,
Trong khi router V6 ping được cho router V4
Em chân thành cảm ơn ạ!!!!