作者kuangs (kuangs)
看板IPv6
标题[问题] IPv4 如何Ping IPv6 透过NATPT
时间Tue Apr 23 11:26:50 2013
各位大家好
小弟目前在测试IPv6 and IPv4 互相转换问题
------ _______ ------
| only | | Route | | Only |
| IPv4 |-------------|(NAPTD)|-------------| IPv6 |
|------| |_______| |------|
v4 PC
IP 200.200.200.200
gateway 200.200.200.254
DNS 8.8.8.8
v6 PC
IP 2001:4432:5641:2:341:234:21:54
gateway 2001:4432:5641:2:341:234:21:254
DNS 2000:ffff::808:808
如果我从 IPv6(only) 端的PC 去Ping IPv4(only)
e.x. ping 2000:ffff::8c8c:8c8c (200.200.200.200)
是正可运作的 有Request 有Reply
但是如果从 IPv4(only) 端PC 去Ping IPv6(only)
却无法运作 出现 "目的不可达"的讯息
再naptd 设定里 有设定静态路由
Do you want to create a pool of public IPv4 addresses that will allow incoming connections to be dynamically mapped to appropriate IPv6 addresses? [y/N]
y
Enter the first public IPv4 address pool to use.
starting IP: 192.168.1.123
ending IP (inclusive) [192.168.1.123]:(enter)
Do you want to create static mappings of public IPv4 addresses that will allow incoming connections to reach IPv6 hosts? [y/N]
y
IPv4 address: 192.168.1.123
IPv6 address: 2001:4432:5641:2:341:234:21:54
但当我 v4 PC端 Ping 192.168.1.123 时 出现 "目的不可达"的讯息
去Linux 底层 tcpdump 看封包时 发现 都是问ARP的封包
於是我尝试过手动设定ARP 但是ip neigh 已经有相同MAC 的IPv6 IP
所以会出现 已存在的错误讯息
再去跟IPv6 ping IPv4 的封包相比 初步研判好像是封包没有进到naptd 这套软体里
请问各位前辈 是否有人有相同问题 或是有解决方法可以参考??
还是说Naptd 的设定有错误?? 谢谢
TOTD CONF
forwarder 8.8.8.8
forwarder 168.95.1.1
prefix 2001:4432:5641:2::
port 53
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.35.110.23