[問題] linux下 ipv6 6to4 與nat的問題
※ [本文轉錄自 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
討論串 (同標題文章)
IPv6 近期熱門文章
PTT數位生活區 即時熱門文章
35
104