看板IPv6
标 题Re: [问题] linux IPv6 router 的问题
发信站铭传大学资工神话 (Sat Oct 11 23:41:27 2003)
转信站ptt!ctu-reader!ctu-peer!news.nctu!news.cis.nctu!news.cs.nthu!newsfeed.
※ 引述《Paranoid (Gentoo 万岁 !!)》之铭言:
: 1. 麻烦您把所有用 route 和 ifconfig 的指令全改为 ip。(我当初也想说没差,但
: 後来出过灵异现象。)
: 2. 请贴两台机器的位址表和路由表。(ip -6 addr show 和 ip -6 route show)
: 3. 如果还不行,就应该是 ASCC 那边没把您的 3ffe:4001:2118::/48 带出去。
: ----------------------------------------------------------------------------
: 试试看 .....
: #!/bin/sh
: ip tunnel add ascc mode sit remote 140.109.1.6 local 203.68.42.188 ttl 255
: ip link set ascc up
: ip -6 addr add 2001:288:3b0::9f/127 dev ascc
: ip -6 route add ::/0 dev ascc
: ip -6 route add 3ffe:4001:2118::/64 dev eth1
: # Do forward packets for all interfaces
: echo "1" > /proc/sys/net/ipv6/conf/all/forwarding
我用上述的script执行了。
radvd.conf 新增了AdvRouterAddr on;
--------------------------------------
interface eth1
{
AdvSendAdvert on;
prefix 3ffe:4001:2118::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
结果还是不行~~~~
linux route server 下执行
------------------------------------------------------------------------
# ip -6 addr show
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
inet6 ::1/128 scope host
inet6 ::1/128 scope host
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
inet6 fe80::2c0:a8ff:fefb:b1ab/10 scope link
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
inet6 fe80::6e74:26ff:fe17:856/10 scope link
5: ascc@NONE: <POINTOPOINT,NOARP,UP> mtu 1480 qdisc noqueue
inet6 2001:288:3b0::9f/127 scope global
inet6 fe80::cb44:2abc/128 scope link
# ip -6 route show
2001:288:3b0::9e/127 via :: dev ascc proto kernel metric 256 mtu 1480 advmss
1420
3ffe:4001:2118::/64 dev eth1 metric 1024 mtu 1500 advmss 1440
fe80::/10 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440
fe80::/10 dev eth1 proto kernel metric 256 mtu 1500 advmss 1440
fe80::/10 via :: dev ascc proto kernel metric 256 mtu 1480 advmss 1420
ff00::/8 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440
ff00::/8 dev eth1 proto kernel metric 256 mtu 1500 advmss 1440
ff00::/8 dev ascc proto kernel metric 256 mtu 1480 advmss 1420
default dev ascc metric 1024 mtu 1480 advmss 1420
unreachable default dev lo metric -1 error -101
---------------------------------------------------------------------------
linux host 下执行
# tracepath6 2001:288:3b0::9e
1?: [LOCALHOST] pmtu 1500
1: 2001:288:3b0::9f 2.801ms
2: 2001:288:3b0::9f asymm 1 2.802ms pmtu 1480
2: no reply
3: no reply
# ip -6 addr show
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
inet6 ::1/128 scope host
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
inet6 3ffe:4001:2118:0:6e74:a3ff:fef7:83a6/64 scope global dynamic
valid_lft 2591707sec preferred_lft 604507sec
inet6 fe80::6e74:a3ff:fef7:83a6/10 scope link
# ip -6 route show
3ffe:4001:2118::/64 dev eth0 proto kernel metric 256 expires 2591662sec mtu 1
500 advmss 1440
fe80::/10 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440
ff00::/8 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440
default via fe80::6e74:26ff:fe17:856 dev eth0 proto kernel metric 1024 expire
s 477sec mtu 1500 advmss 1440
unreachable default dev lo metric -1 error -101
这是我另一台linux ,用的是chtt的host IPv6 addr
下面是traceroute linux router subnet下的host
# traceroute6 3ffe:4001:2118:0:6e74:a3ff:fef7:83a6
traceroute to 3ffe:4001:2118:0:6e74:a3ff:fef7:83a6 (3ffe:4001:2118:0:6e74:a3ff:f
ef7:83a6) from 3ffe:3600:1e::4bb, 30 hops max, 16 byte packets
1 3ffe:3600:1e::4ba (3ffe:3600:1e::4ba) 13.393 ms * 13.378 ms
2 3ffe:3600:e:100::1 (3ffe:3600:e:100::1) 14.022 ms 13.902 ms *
3 3ffe:3600::17 (3ffe:3600::17) 266.417 ms 247.038 ms 246.695 ms
4 c7513-gw.int.ipv6.ascc.net (2001:288:3b0::c) 365.043 ms 364.82 ms 364.704
ms
5 TFN-c7513.int.ipv6.ascc.net (2001:288:3b0::5b) 367.884 ms 367.598 ms 367.
836 ms
6 c7513-TFN.int.ipv6.ascc.net (2001:288:3b0::5a) 402.244 ms 367.866 ms 379.
025 ms
就这一直重复到~~~~30
会不会是是中研院真的没帮偶转~~~~~?
--
※ Origin: 铭传资工神话站 <bbs.csie.mcu.edu.tw>
※ From : sw66-91-225.adsl.seed.net.tw