IPv6网络访问IPv4网络(nat64)


R1

#端口配置ipv6地址

interface GigabitEthernet0/0
port link-mode route
combo enable copper
ipv6 address 2013:0:FF0A:101:100::2/64

配置ipv6路由

ipv6 route-static :: 0 2013:0:FF0A:101:100::3

R2

#配置ipv6地址,启用AFT

interface GigabitEthernet0/0
port link-mode route
combo enable copper
aft enable
ipv6 address 2013:0:FF0A:101:100::3/64

#配置ipv4地址,启用AFT

interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 20.1.1.2 255.255.255.0
aft enable

#配置acl匹配ipv6转换ipv4的数据
acl ipv6 basic 2000
rule 0 permit

#配置ipv6转ipv4的地址组

aft address-group 0
address 30.1.1.1 30.1.1.2

#配置ipv6转ipv4 将acl2000匹配的地址转换为group 0的ipv4地址

aft v6tov4 source acl ipv6 number 2000 address-group 0

#配置nat64匹配ipv4转ipv6的前缀

aft prefix-nat64 2012:: 96

R3

#配置ipv4地址

interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 20.1.1.1 255.255.255.0

#测试


发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注