作者scarface (花音部飙隼~)
看板IPv6
标题[问题] linux下 ipv6 6to4 与nat的问题
时间Mon Feb 22 13:41:45 2010
※ [本文转录自 Linux 看板]
作者: scarface (花音部飙隼~) 看板: Linux
标题: [问题] linux下 ipv6 6to4 与nat的问题
时间: Mon Feb 22 13:41:21 2010
请问 ipv6 6to4 跟nat可以共存吗??~
我的配置如下:
PC A(XP)------------( router A )-------------------|
140.112.1.100 140.112.1.1 140.115.1.100 |
|
PC B(linux)----------( router B )------------------|
140.114.1.100 140.114.1.1 140.115.1.200
router A上的interface
eth0 140.112.1.1/255.255.255.0
eth1 140.115.1.100/255.255.255.0
tun6to40 2002:8c73:164::1401:1500:1100/16
router B上的interface
eth0 140.114.1.1/255.255.255.0
eth1 140.115.1.200/255.255.255.0
tun6to40 2002:8c73:1c8::1401:1500:1200/16
pc A (在cmd下用ipv6 install启动6to4 interface)
140.112.1.100
Ethernet adapter 区域连线:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Marvell Yukon 88E8039 PCI-E Fast
Ethernet Controller
Physical Address. . . . . . . . . : 00-1E-33-D4-CA-2A
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 140.112.1.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : fe80::21e:33ff:fed4:ca2a%6
Default Gateway . . . . . . . . . : 140.112.1.1
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
Tunnel adapter 6to4 Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : 6to4 Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 8C-70-01-64
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 2002:8c70:164::8c70:164
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Disabled
PC B
eth0 140.114.1.100/255.255.255.0
v6to4 Link encap:IPv6-in-IPv4
inet6 addr: 2002:8c72:164::1401:1400:1100/128 Scope:Global
inet6 addr: ::140.114.1.1/128 Scope:Compat
UP RUNNING NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
router A跟router B是用linux做的~
设定上是参考
http://6to4.version6.net/?show_ip=140.114.1.200&show_op_sys=Linux&lang=en_GB
弄的
也就是多弄出一个 tun6to4的 interface
我现在遇到问题是PC A跟PC B互ping6的时候~封包都不会通过新增的 tun6to4这个
interface
也就是说 ip -6 route 的设定好像跟本不会跑到
另外router A跟router B本来是有nat的(就是pcA 跟pcB无法直接互ping到)
因为现在封包不会通过tun6to4而是透过 eth0 eth1去传所以会被iptables档掉~
後来我拿掉iptables中相关的rule始pc A跟pc B可以互ping6可是我抓封包~
封包ip header中protocol栏位是41(0x29)
我想问在6to4的封包传递过程是全程都以protocol 41的型式在传吗@_@??~
我看网路上一些文件~好像有提到router会在ipv6封包上加ipv4 header跟拿调ipv4
header的动作~
这是指protocol 41的封包在过router时会被转变成protocol 1吗?@_@??(比方以ping的
icmp封包来说的话)
另外6to4的router可以始用nat吗??~
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.169.16.222
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.169.16.222