linux下 ipv6 6to4 與nat的問題 - Linux

Tristan Cohan avatar
By Tristan Cohan
at 2010-02-22T13:41

Table of Contents

請問 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嗎??~


--
Tags: Linux

All Comments

Hazel avatar
By Hazel
at 2010-02-23T22:45
6to4和V4的nat可以並存,目前有在跑,可是upnp失敗了
之前我想裝upnp結果不但沒動,連v6都一起炸掉-_-

請問virtualbox下執行 vmx 檔,出現no screens found 的問題

Freda avatar
By Freda
at 2010-02-21T03:25
不好意思,新手一枚 不會故障排除,英文也很糟 這問題可能很淺 因為 virtualbox 支援vmware的.vmx檔案 所以就直接開啟使用 文字模式下沒有問題 可是就是不能xstart 會出現 The X server is now disabled. Restart GDM when it is co ...

區網軟體資產監控

Liam avatar
By Liam
at 2010-02-20T23:23
因為公司內部的需要 想要收集公司所有主機的資訊以及軟體安裝情形 (防止員工偷安裝盜版 讓BSA又找上門) 之前忘了在哪裡有看到一套這樣的軟體 是自由軟體 他有分server端還有client端(都有winandamp;linux版本) 安裝在每台電腦後 可以收集這些資訊 後來忘了是哪一套軟體= = ...

雙系統 時差問題

Anonymous avatar
By Anonymous
at 2010-02-20T22:36
※ 引述《freesamael (燒賣)》之銘言: : 因為問題不在校時阿。 : 只要繼續用 UTC 時間, : 每次 Linux 校時完就會對 BIOS 寫入 UTC 時間, : 換 Windows 差 8 小時。 Fedora的安裝過程,在選時區那頁有一個checkbox 就是選擇要不要把系統時間(BI ...

gcin中嘸蝦米的逗點

Daph Bay avatar
By Daph Bay
at 2010-02-20T19:58
大家好! 因為我有在利用 vim+latex 排版中文文章,但因為嘸蝦米內定的逗 點符號,那是全型的``,and#39;and#39;,但是vim中有許多的功能是用,當作分隔點,這在vim 中會造成一堆功能無法使用,也請各位朋友不要叫我使用gvim或texmaker 等等 TeX editor,因為小弟的筆電 ...

解決ASUS WebStorage 在Ubuntu 9.10 移除使用 dpkg -P 的錯

Suhail Hany avatar
By Suhail Hany
at 2010-02-20T14:54
如果使用 dpkg -P eeestorage 出現錯誤時候可以修改 vi /var/lib/dpkg/info/eeestorage.postrm 約 22 行 將原來 case and#34;$1and#34; in remove|upgrade|deconfigure) 改為 case ...