[6bone] ?IPv6 anycast...

Warodom Werapun ple@graduate.kmitl.ac.th
Mon, 19 May 2003 10:24:13 +0700


Saku Ytti wrote:

>>   I like to test 'anycast' address of IPv6.
>>Could anyone tell me, how could I test it?
>>    
>>
>On linux:
>ip link set sit0 up;ip addr add $(printf "2002:%02x%02x:%02x%02x::1" $(ip
>route get 192.88.99.1|head -n1|sed 's/\./ /g'|sed 's/.*src \([0-9
>]\+\).*/\1/')) dev sit0;ip -6 route add 2000::/3 via ::192.88.99.1
>
   
    It does not work yet.  There is error message " No route to host".

Nomally, I use 3ffe:b80:2:f5df::2 as my IPv6 address.
And I already had 2000::/3 in routing table.

------------------------------------------------------
[root@graduate67 root]# ping6 www.kame.net
PING www.kame.net(orange.kame.net) 56 data bytes
64 bytes from orange.kame.net: icmp_seq=1 ttl=55 time=625 ms

[root@graduate67 root]# ifconfig eth0 |grep inet
          inet addr:161.246.6.217  Bcast:161.246.6.255  Mask:255.255.255.0
          inet6 addr: fe80::260:67ff:fe66:b459/10 Scope:Link
          inet6 addr: 3ffe:b80:14fe:1::1/64 Scope:Global

[root@graduate67 root]# ifconfig sit1
sit1      Link encap:IPv6-in-IPv4
          inet6 addr: fe80::a1f6:6d9/10 Scope:Link
          inet6 addr: 2002::1/128 Scope:Global
          inet6 addr: 3ffe:b80:2:f5df::2/128 Scope:Global
          inet6 addr: 2002:a100::1/128 Scope:Global
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:58 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:36282 (35.4 Kb)  TX bytes:9740 (9.5 Kb)


[root@graduate67 root]# more anycast.sh
ip link set sit1 up;ip addr add $(printf "2002:%02x%02x:%02x%02x::1" 
$(ip route get 161.246.6.217 |head -n1|sed 's/\./ /g'|sed
 's/.*src \([0-9]\+\).*/\1/')) dev sit1;ip -6 route add 2000::/3 via 
::161.246.6.217

echo "ip link set sit1 up;ip addr add $(printf 
"2002:%02x%02x:%02x%02x::1" $(ip route get 161.246.6.217 |head -n1|sed 
's/\./ /
g'|sed 's/.*src \([0-9]\+\).*/\1/')) dev sit1;ip -6 route add 2000::/3 
via ::161.246.6.217 "

[root@graduate67 root]# ./anycast.sh
RTNETLINK answers: No route to host
ip link set sit1 up;ip addr add 2002:a100:0000::1 dev sit1;ip -6 route 
add 2000::/3 via ::161.246.6.217
------------------------------------------------------


Does anycast IPv6 address need to begin with 2002:a100 prefix?
Or anycast can be any Unicast addr number, is it?
So, Does anycast involve with the routing only?

Best Regards,
- Warodom  Werapun