IPv6访问IPv4公网,使用aft prefix-nat64 ,在出入口开启aft,三个出接口位置nat outband只针对IPv4网络,不转化IPv6转换后的IP地址。通过dis aft session ipv6 ver和dis aft session ipv4 ver命令可以查看到相关表项,但是下方接口统计包数量为0。
问题2:在所有外网接口都开启aft后,网络可以通,但是丢包率90%。
组网结构:终端-/-(IPv6)网关(IPv4)-运营商公网。
结构说明:MSR3640-X下接IPv4网络和IPv6网络,上行通过一个拨号接口、两个专线链路访问外网,上行使用静态缺省路由,共三条;下行针对IPv4做了策略路由。
(0)
最佳答案
配置没有问题,现场是否有配置下面的终端ipv6网段到NAT64前缀2012::/96的路由?
根据现象看,可能是路由选路有问题,使能本地策略路由ip local policy-based-route xxx试试。
(0)
提供更为详细配置和表项信息看一下
(0)
version 7.1.064, Release 6728P1301 # object-group ipv6 address ipv6 0 network subnet 1::/64 # dhcp server ip-pool ipsub-60 gateway-list 192.168.60.254 network 192.168.60.0 mask 255.255.255.0 dns-list 114.114.114.114 # dhcp server ip-pool ipsub-62 gateway-list 192.168.62.254 network 192.168.62.0 mask 255.255.254.0 dns-list 114.114.114.114 # ipv6 dhcp pool ipv6 network 2013::/96 dns-server 2012::7272:7272 gateway-list 2013::1 # policy-based-route 1 permit node 10 if-match acl 3000 apply default-output-interface Dialer0 # policy-based-route 2 permit node 10 if-match acl 3001 apply default-next-hop 183.234.221.25 # interface Dialer0 ppp chap password cipher $c$3$aR2MMKUJkob8wLH2r18lRpblii0KdYnXBaky ppp chap user 07691206318114@163.gd ppp ipcp dns admit-any ppp ipcp dns request ppp pap local-user 07691206318114@163.gd password cipher $c$3$J7gU2I2Dg1hn2SqmizmixhT5D380QN4Gu248 dialer bundle enable dialer-group 1 dialer timer idle 0 dialer timer autodial 5 ip address ppp-negotiate tcp mss 1440 ip mtu 1492 nat outbound # interface GigabitEthernet0/1 port link-mode route pppoe-client dial-bundle-number 0 # interface GigabitEthernet0/2 port link-mode route ip address 183.234.221.27 255.255.255.248 nat outbound 3002 aft enable # interface GigabitEthernet0/5 port link-mode route aft enable dhcp server apply ip-pool ipv6 ipv6 dhcp select server ipv6 dhcp server allow-hint preference 255 rapid-commit ipv6 policy-based-route ipv6 ipv6 address 2013::1/96 ipv6 nd autoconfig managed-address-flag ipv6 nd autoconfig other-flag undo ipv6 nd ra halt # interface GigabitEthernet0/6 port link-mode route ip address 192.168.60.254 255.255.255.0 dhcp server apply ip-pool ipsub-60 ip policy-based-route 1 # interface GigabitEthernet0/7 port link-mode route ip address 192.168.62.254 255.255.254.0 dhcp server apply ip-pool ipsub-62 ip policy-based-route 2 # ip route-static 0.0.0.0 0 Dialer0 ip route-static 0.0.0.0 0 183.234.221.25 # acl advanced 3000 rule 0 permit ip source 192.168.60.0 0.0.0.255 # acl advanced 3001 rule 0 permit ip source 192.168.62.0 0.0.1.255 # acl advanced 3002 rule 0 permit ip source 192.168.60.0 0.0.0.255 rule 5 permit ip source 192.168.62.0 0.0.0.255 # acl ipv6 advanced 3000 rule 5 permit ipv6 source 2013::/96 # aft address-group 0 address 183.234.221.27 183.234.221.27 # aft prefix-nat64 2012:: 96 aft v6tov4 source acl ipv6 number 3000 address-group 0 #
version 7.1.064, Release 6728P1301 # object-group ipv6 address ipv6 0 network subnet 1::/64 # dhcp server ip-pool ipsub-60 gateway-list 192.168.60.254 network 192.168.60.0 mask 255.255.255.0 dns-list 114.114.114.114 # dhcp server ip-pool ipsub-62 gateway-list 192.168.62.254 network 192.168.62.0 mask 255.255.254.0 dns-list 114.114.114.114 # ipv6 dhcp pool ipv6 network 2013::/96 dns-server 2012::7272:7272 gateway-list 2013::1 # policy-based-route 1 permit node 10 if-match acl 3000 apply default-output-interface Dialer0 # policy-based-route 2 permit node 10 if-match acl 3001 apply default-next-hop 183.234.221.25 # interface Dialer0 ppp chap password cipher $c$3$aR2MMKUJkob8wLH2r18lRpblii0KdYnXBaky ppp chap user 07691206318114@163.gd ppp ipcp dns admit-any ppp ipcp dns request ppp pap local-user 07691206318114@163.gd password cipher $c$3$J7gU2I2Dg1hn2SqmizmixhT5D380QN4Gu248 dialer bundle enable dialer-group 1 dialer timer idle 0 dialer timer autodial 5 ip address ppp-negotiate tcp mss 1440 ip mtu 1492 nat outbound # interface GigabitEthernet0/1 port link-mode route pppoe-client dial-bundle-number 0 # interface GigabitEthernet0/2 port link-mode route ip address 183.234.221.27 255.255.255.248 nat outbound 3002 aft enable # interface GigabitEthernet0/5 port link-mode route aft enable dhcp server apply ip-pool ipv6 ipv6 dhcp select server ipv6 dhcp server allow-hint preference 255 rapid-commit ipv6 policy-based-route ipv6 ipv6 address 2013::1/96 ipv6 nd autoconfig managed-address-flag ipv6 nd autoconfig other-flag undo ipv6 nd ra halt # interface GigabitEthernet0/6 port link-mode route ip address 192.168.60.254 255.255.255.0 dhcp server apply ip-pool ipsub-60 ip policy-based-route 1 # interface GigabitEthernet0/7 port link-mode route ip address 192.168.62.254 255.255.254.0 dhcp server apply ip-pool ipsub-62 ip policy-based-route 2 # ip route-static 0.0.0.0 0 Dialer0 ip route-static 0.0.0.0 0 183.234.221.25 # acl advanced 3000 rule 0 permit ip source 192.168.60.0 0.0.0.255 # acl advanced 3001 rule 0 permit ip source 192.168.62.0 0.0.1.255 # acl advanced 3002 rule 0 permit ip source 192.168.60.0 0.0.0.255 rule 5 permit ip source 192.168.62.0 0.0.0.255 # acl ipv6 advanced 3000 rule 5 permit ipv6 source 2013::/96 # aft address-group 0 address 183.234.221.27 183.234.221.27 # aft prefix-nat64 2012:: 96 aft v6tov4 source acl ipv6 number 3000 address-group 0 #
version 7.1.064, Release 6728P1301
#
object-group ipv6 address ipv6
0 network subnet 1::/64
#
dhcp server ip-pool ipsub-60
gateway-list 192.168.60.254
network 192.168.60.0 mask 255.255.255.0
dns-list 114.114.114.114
#
dhcp server ip-pool ipsub-62
gateway-list 192.168.62.254
network 192.168.62.0 mask 255.255.254.0
dns-list 114.114.114.114
#
ipv6 dhcp pool ipv6
network 2013::/96
dns-server 2012::7272:7272
gateway-list 2013::1
#
policy-based-route 1 permit node 10
if-match acl 3000
apply default-output-interface Dialer0
#
policy-based-route 2 permit node 10
if-match acl 3001
apply default-next-hop 183.234.221.25
#
interface Dialer0
ppp chap password cipher $c$3$aR2MMKUJkob8wLH2r18lRpblii0KdYnXBaky
ppp chap user 07691206318114@163.gd
ppp ipcp dns admit-any
ppp ipcp dns request
ppp pap local-user 07691206318114@163.gd password cipher $c$3$J7gU2I2Dg1hn2SqmizmixhT5D380QN4Gu248
dialer bundle enable
dialer-group 1
dialer timer idle 0
dialer timer autodial 5
ip address ppp-negotiate
tcp mss 1440
ip mtu 1492
nat outbound
#
interface GigabitEthernet0/1
port link-mode route
pppoe-client dial-bundle-number 0
#
interface GigabitEthernet0/2
port link-mode route
ip address 183.234.221.27 255.255.255.248
nat outbound 3002
aft enable
#
interface GigabitEthernet0/5
port link-mode route
aft enable
dhcp server apply ip-pool ipv6
ipv6 dhcp select server
ipv6 dhcp server allow-hint preference 255 rapid-commit
ipv6 policy-based-route ipv6
ipv6 address 2013::1/96
ipv6 nd autoconfig managed-address-flag
ipv6 nd autoconfig other-flag
undo ipv6 nd ra halt
#
interface GigabitEthernet0/6
port link-mode route
ip address 192.168.60.254 255.255.255.0
dhcp server apply ip-pool ipsub-60
ip policy-based-route 1
#
interface GigabitEthernet0/7
port link-mode route
ip address 192.168.62.254 255.255.254.0
dhcp server apply ip-pool ipsub-62
ip policy-based-route 2
#
ip route-static 0.0.0.0 0 Dialer0
ip route-static 0.0.0.0 0 183.234.221.25
#
acl advanced 3000
rule 0 permit ip source 192.168.60.0 0.0.0.255
#
acl advanced 3001
rule 0 permit ip source 192.168.62.0 0.0.1.255
#
acl advanced 3002
rule 0 permit ip source 192.168.60.0 0.0.0.255
rule 5 permit ip source 192.168.62.0 0.0.0.255
#
acl ipv6 advanced 3000
rule 5 permit ipv6 source 2013::/96
#
aft address-group 0
address 183.234.221.27 183.234.221.27
#
aft prefix-nat64 2012:: 96
aft v6tov4 source acl ipv6 number 3000 address-group 0
#
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明