[問題] linux IPv6 router 的問題

看板IPv6作者時間21年前 (2003/10/10 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/23 (看更多)
以下是我linux reouter 環境 跟中研院申請的ip ----------------------------------------------------------------- [ASCC] IPv4 IP: 140.109.1.6 IPv6 IP: 2001:288:3b0::9e/127 Routing protocol: static route [我們實驗室] IPv4 IP: 203.68.42.188 IPv6 IP: 2001:288:3b0::9f/127 IPv6 block: 3ffe:4001:2118::/48 Routing protocol: static route linux router server 設定如下 eth0 203.68.42.188 eth1 192.168.1.1 我是用vbird網站上的nat.sh作為我的設定 。 再執行下面這個.sh ----------------------------------------------------------------- #!/bin/bash if ! [ -f /proc/net/if_inet6 ] then echo "IPv6 is not installed!" 1>&2; exit 1; fi ifconfig sit0 up \ && ifconfig sit0 tunnel ::140.109.1.6 \ && ifconfig sit1 add 2001:288:3b0::9f/127 \ && route -A inet6 add ::/0 gw 2001:288:3b0::9e \ && ip route add 3ffe:4001:2118::/48 dev eth1 \ && echo "1" > /proc/sys/net/ipv6/conf/all/forwarding \ && echo "IPv6 configuration completed" || \ { echo "IPv6 configuration failed!" 1>&2; exit 1; } ----------------------------------------------------------------- radvd.conf 的設定如下 ----------------------------------------------------------------- interface eth1 { AdvSendAdvert on; prefix 3ffe:4001:2118::/64 { AdvOnLink on; AdvAutonomous on; }; }; ----------------------------------------------------------------- 成功~~~~連線。 這台linux router主機連線測試如下 traceroute6 www.6bone.net ----------------------------------------------------------------- traceroute to 6bone.net (3ffe:b00:c18:1::10) from 2001:288:3b0::9f, 30 hops max, 16 byte packets 1 2001:288:3b0::9e (2001:288:3b0::9e) 2.005 ms 1.849 ms 1.775 ms 2 rap.ipv6.viagenie.qc.ca (3ffe:b00:c18:1:290:27ff:fe17:fc0f) 243.036 ms 231.934 ms 242.651 ms 3 www.6bone.net (3ffe:b00:c18:1::10) 230.921 ms 231.155 ms 230.406 ms ----------------------------------------------------------------- traceroute6 ipv6.csie.mcu.edu.tw ----------------------------------------------------------------- traceroute to ipv6.csie.mcu.edu.tw (3ffe:4001:2110:0:201:3ff:fe41:4042) from 2001:288:3b0::9f, 30 hops max, 16 byte packets 1 2001:288:3b0::9e (2001:288:3b0::9e) 1.961 ms 2.203 ms 1.794 ms 2 mcu1-gw-tun.int.ipv6.ascc.net (2001:288:3b0::95) 4.802 ms 4.344 ms 3.784 ms 3 3ffe:4001:2110:0:201:3ff:fe41:4042 (3ffe:4001:2110:0:201:3ff:fe41:4042) 4.411 ms 4.265 ms 4.068 ms ----------------------------------------------------------------- 另一台linux 主機 eth0 : 192.168.1.3 ----------------------------------------------------------------- ifconfig# ----------------------------------------------------------------- eth0 Link encap:Ethernet HWaddr 6C:74:A3:F7:83:A6 inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: 3ffe:4001:2118:0:6e74:a3ff:fef7:83a6/64 Scope:Global inet6 addr: fe80::6e74:a3ff:fef7:83a6/10 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:978 errors:0 dropped:0 overruns:0 frame:0 TX packets:415 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:103513 (101.0 Kb) TX bytes:65792 (64.2 Kb) Interrupt:12 Base address:0xf000 ----------------------------------------------------------------- ping6 2001:288:3b0::9f ping 那台linux router server ----------------------------------------------------------------- PING 2001:288:3b0::9f(2001:288:3b0::9f) from 3ffe:4001:2118:0:6e74:a3ff:fef7:83a6 : 56 data bytes 64 bytes from 2001:288:3b0::9f: icmp_seq=1 ttl=64 time=0.484 ms 64 bytes from 2001:288:3b0::9f: icmp_seq=2 ttl=64 time=0.371 ms 64 bytes from 2001:288:3b0::9f: icmp_seq=3 ttl=64 time=0.339 ms 64 bytes from 2001:288:3b0::9f: icmp_seq=4 ttl=64 time=0.339 ms --- 2001:288:3b0::9f ping statistics --- 4 packets transmitted, 4 received, 0% loss, time 3004ms rtt min/avg/max/mdev = 0.339/0.383/0.484/0.061 ms ----------------------------------------------------------------- ping6 2001:288:3b0::9e ----------------------------------------------------------------- PING 2001:288:3b0::9e(2001:288:3b0::9e) from 3ffe:4001:2118:0:6e74:a3ff:fef7:83a6 : 56 data bytes --- 2001:288:3b0::9e ping statistics --- 32 packets transmitted, 0 received, 100% loss, time 31018ms ----------------------------------------------------------------- tracepath6 2001:288:3b0::9f ----------------------------------------------------------------- 1?: [LOCALHOST] pmtu 1500 1: 2001:288:3b0::9f 2.784ms reached Resume: pmtu 1500 hops 1 back 1 ----------------------------------------------------------------- tracepath6 2001:288:3b0::9e ----------------------------------------------------------------- 1?: [LOCALHOST] pmtu 1500 1: 2001:288:3b0::9f 2.795ms 2: 2001:288:3b0::9f asymm 1 2.806ms pmtu 1480 2: no reply 3: no reply ----------------------------------------------------------------- 以上就是我試的結果, 之前也在別的地方post過, 上次 是 用中華電信研究所的。 這次還是一樣~~~~ 會不會是我用vbird的nat.sh所影響的? 還是我linux router server還有別的地方 要改 ? 我知道看這這些字是很累人的,所以謝謝你們耐心看完~~~~~ @@ -- ※ Origin: 銘傳資工神話站 <bbs.csie.mcu.edu.tw> ※ From : sw64-118-162.adsl.seed.net.tw
文章代碼(AID): #_XQ9U00 (IPv6)
討論串 (同標題文章)
文章代碼(AID): #_XQ9U00 (IPv6)