# traceroute6 www.6bone.net
traceroute to 6bone.net (2001:5c0:0:2::24) from 3ffe:321f:0:525::1, 30 hops max, 16 byte packets
1 3ffe:3200::9 (3ffe:3200::9) 17.927 ms 12.379 ms 18.241 ms
2 backup.ipv6.net.edu.cn (3ffe:3200::2) 16.137 ms 16.776 ms 15.762 ms
3 3ffe:2b00:500:2c::2 (3ffe:2b00:500:2c::2) 525.088 ms 523.628 ms 537.893 ms
4 tu-0.viagenie.mlpsca01.us.b6.verio.net (2001:418:0:4000::26) 479.759 ms 442.372 ms 441.983 ms
5 3ffe:b00:c18:1::1 (3ffe:b00:c18:1::1) 475.668 ms 475.701 ms 475.876 ms
6 www.6bone.net (2001:5c0:0:2::24) 516.658 ms 476.343 ms 477.029 ms
-------------------------------------------------
#traceroute www.6bone.net
traceroute to 6bone.net (209.71.226.24), 30 hops max, 38 byte packets
1 xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) 0.332 ms 5.045 ms 0.323 ms
2 xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) 0.621 ms 0.682 ms 0.553 ms
3 210.43.146.125 (210.43.146.125) 0.691 ms 0.522 ms 0.560 ms
4 210.43.146.5 (210.43.146.5) 0.919 ms 0.726 ms 0.766 ms
5 202.112.53.213 (202.112.53.213) 12.923 ms 2.182 ms 2.080 ms
6 bjcd3.cernet.net (202.112.46.161) 13.671 ms 9.869 ms 9.507 ms
7 202.112.61.197 (202.112.61.197) 12.701 ms 9.719 ms 9.768 ms
8 202.112.61.34 (202.112.61.34) 210.741 ms 209.512 ms 208.044 ms
9 sl-gw10-hk-11-0.sprintlink.net (203.222.39.157) 206.988 ms 208.358 ms 204.920 ms 10 sl-bb21-hk-2-1.sprintlink.net (203.222.38.47) 208.520 ms 214.165 ms 212.232 ms
11 sl-bb24-sj-0-3.sprintlink.net (144.232.8.217) 388.573 ms 382.812 ms 391.084 ms
12 sl-bb25-sj-15-0.sprintlink.net (144.232.3.218) 393.157 ms 393.785 ms 392.492 ms 13 sl-bb22-sj-12-0.sprintlink.net (144.232.3.209) 393.881 ms 394.198 ms 400.750 ms 14 sl-bb22-rly-11-0.sprintlink.net (144.232.20.187) 478.523 ms 519.525 ms 662.978 ms 15 sl-bb26-rly-12-0.sprintlink.net (144.232.14.174) 449.615 ms 470.806 ms 463.488 ms 16 sl-st21-ash-11-0.sprintlink.net (144.232.20.134) 514.742 ms 458.815 ms 471.815 ms 17 sl-deutsche-5-0.sprintlink.net (144.223.246.70) 460.628 ms 497.855 ms 460.490 ms 18 217.239.40.78 (217.239.40.78) 493.289 ms 493.951 ms 473.424 ms
19 62.159.61.254 (62.159.61.254) 422.116 ms 434.238 ms 430.717 ms
20 ATM7-0-103.WANB-NYCMNY.IP.GROUPTELECOM.NET (66.59.191.61) 433.951 ms 429.128 ms 443.283 ms
21 POS6-0.WANB-MTRLPQ.IP.GROUPTELECOM.NET (216.18.63.198) 468.136 ms 466.506 ms 462.706 ms
22 h216-18-72-73.gtcust.grouptelecom.net (216.18.72.73) 465.921 ms 478.913 ms 472.319 ms
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
--------------------------------------------------
# ping6 www.6bone.net PING
www.6bone.net(www.6bone.net) 56 data bytes
64 bytes from www.6bone.net: icmp_seq=2 ttl=59 time=527 ms
64 bytes from www.6bone.net: icmp_seq=3 ttl=59 time=500 ms
64 bytes from www.6bone.net: icmp_seq=4 ttl=59 time=536 ms
64 bytes from www.6bone.net: icmp_seq=5 ttl=59 time=479 ms
64 bytes from www.6bone.net: icmp_seq=6 ttl=59 time=494 ms
64 bytes from www.6bone.net: icmp_seq=7 ttl=59 time=493 ms
--- www.6bone.net ping statistics ---
7 packets transmitted, 6 received, 14% packet loss, time 5998ms rtt min/avg/max/mdev = 479.873/505.366/536.968/20.171 ms
-------------------------------------------------
Now, let's try a multicast address
(note:All Routers Addresses:
FF01:0:0:0:0:0:0:2
FF02:0:0:0:0:0:0:2
FF05:0:0:0:0:0:0:2
The above 3 multicast addresses identify the group of all IPv6 routers, within scope 1 (node-local), 2 (link-local), or 5 (site-local))
---------------------------
FF01:0:0:0:0:0:0:2 node-local routers
# ping6 -c 3 ff01::1
PING ff01::1(ff01::1) 56 data bytes --- ff01::1
ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms
-------------------------------------------
Note: When pinging IPv6 link‐local address option "-I" is required, or it'll complain about "connect: Invalid argument".
---------------------------------------
FF02:0:0:0:0:0:0:2 link-local routers
# ping6 -I sit1 -c 3 FF02::2
PING FF02::2(ff02::2) from fe80::cac4:33da sit1: 56 data bytes --- FF02::2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms
Of course ,“inet6 addr: fe80::cac4:33da/64 Scope:Link” is my sit1's link-local address. ::1 is the loopback address.
------------------------------------------
FF05:0:0:0:0:0:0:2 site-local router
# ping6 -c 3 FF05::2
connect: Cannot assign requested address
-------------------------------------
All Nodes Addresses: FF01:0:0:0:0:0:0:1
FF02:0:0:0:0:0:0:1
The above multicast addresses identify the group of all IPv6 nodes, within scope 1 (node-local) or 2 (link-local).
--------------------------
# ping6 -c 3 FF01::1
PING FF01::1(ff01::1) from ::1 sit1: 56 data bytes --- FF01::1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1998m
------------------------
#ping6 -I sit1 -c 3 FF02::1
PING FF02::1(ff02::1) from fe80::cac4:33da sit1: 56 data bytes
64 bytes from ::1: icmp_seq=1 ttl=64 time=0.066 ms
64 bytes from fe80::ca26:6309: icmp_seq=1 ttl=64 time=23.6 ms (DUP!)
64 bytes from ::1: icmp_seq=2 ttl=64 time=0.055 ms
64 bytes from fe80::ca26:6309: icmp_seq=2 ttl=64 time=48.0 ms (DUP!)
64 bytes from ::1: icmp_seq=3 ttl=64 time=0.054 ms
--- FF02::1 ping statistics --- 3 packets transmitted, 3 received, +2 duplicates, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.054/14.370/48.002/19.142 ms
Is this the way to find all IPv6 nodes in link-local if packets all not blocked and responded, not sure! And who's fe80::ca26:6309?
------------
#ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet addr:xxx.xxx.xxx.xxx Bcast:XXXX.XXXX.XXXX.255 Mask:255.255.255.0
inet6 addr: fe80::2xx:xxff:fexx:xxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:115628 errors:43 dropped:0 overruns:0 frame:43 TX packets:13735
errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13467437 (12.8 MiB) TX bytes:1069253 (1.0 MiB) Interrupt:177 Base address:0x8000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4334 errors:0 dropped:0 overruns:0 frame:0 TX packets:4334 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:304444 (297.3 KiB)
TX bytes:304444 (297.3 KiB) sit1 Link encap:IPv6-in-IPv4 inet6 addr: xxxx:xxxx:0:xxxx::x/128 Scope:Global --my IPv6 addr
inet6 addr: fe80::cac4:33da/128 Scope:Link UP POINTOPOINT RUNNING NOARP
MTU:1480 Metric:1 RX packets:2424 errors:0 dropped:0 overruns:0 frame:0 TX
packets:2146 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX
bytes:2255577 (2.1 MiB) TX bytes:293730 (286.8 KiB) vmnet8 Link encap:Ethernet
HWaddr 00:50:56:C0:00:08 inet addr:172.16.212.1 Bcast:172.16.212.255
Mask:255.255.255.0 inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link UP
BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0
dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
------------------
# tracepath www.6bone.net
1: xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) 0.155ms pmtu 1500 ---my ip, omited
1: xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) 5.189ms --gateway ip, omitted
2: 210.43.146.97 (210.43.146.97) asymm 36 2.758ms
3: 210.43.146.125 (210.43.146.125) 2.463ms
4: 210.43.146.5 (210.43.146.5) 2.137ms
5: 202.112.53.213 (202.112.53.213) 7.895ms
6: bjcd3.cernet.net (202.112.46.161) 13.973ms
7: 202.112.61.197 (202.112.61.197) asymm 8 15.869ms
8: 202.112.61.34 (202.112.61.34) asymm 9 200.454ms
9: sl-gw10-hk-11-0.sprintlink.net (203.222.39.157) asymm 10 199.265ms
10: sl-bb21-hk-2-1.sprintlink.net (203.222.38.47) asymm 11 203.073ms
11: sl-bb24-sj-0-3.sprintlink.net (144.232.8.217) asymm 12 376.037ms
12: sl-bb25-sj-15-0.sprintlink.net (144.232.3.218) asymm 13 376.483ms
13: sl-bb22-sj-12-0.sprintlink.net (144.232.3.209) asymm 14 382.428ms
14: sl-bb22-rly-11-0.sprintlink.net (144.232.20.187) asymm 15 435.451ms
15: sl-bb26-rly-12-0.sprintlink.net (144.232.14.174) asymm 16 442.295ms
16: sl-st21-ash-11-0.sprintlink.net (144.232.20.134) asymm 17 438.933ms
17: sl-deutsche-5-0.sprintlink.net (144.223.246.70) asymm 15 441.557ms
18: 217.239.40.78 (217.239.40.78) asymm 17 467.039ms
19: 62.159.61.254 (62.159.61.254) asymm 22 424.879ms
20: ATM7-0-103.WANB-NYCMNY.IP.GROUPTELECOM.NET (66.59.191.61) asymm
21 427.091ms
21: POS6-0.WANB-MTRLPQ.IP.GROUPTELECOM.NET 216.18.63.198) asymm 26 454.253ms
22: h216-18-72-73.gtcust.grouptelecom.net 216.18.72.73) asymm 25 449.843ms
23: no reply
24: no reply
25: no reply
26: no reply
27: no reply
28: no reply
29: no reply
30: no reply
31: no reply
Too many hops: pmtu 1500 Resume: pmtu 1500
------------
# tracepath6 www.6bone.net
1?: [LOCALHOST] pmtu 1480 1: 3ffe:3200::9 19.569ms
2: backup.ipv6.net.edu.cn 20.729ms 3: backup.ipv6.net.edu.cn asymm 2 20.359ms pmtu 1280
3: 3ffe:2b00:500:2c::2 asymm 9 695.570ms
4: tu-0.viagenie.mlpsca01.us.b6.verio.net asymm 3 615.156ms
5: 3ffe:b00:c18:1::1 asymm 6 651.834ms
6: no reply
7: no reply
8: no reply
9: no reply
10: no reply
11: no reply
12: no reply
13: no reply
14: no reply
15: no reply
16: no reply
17: no reply
18: no reply
19: no reply
20: no reply
21: no reply
22: no reply
23: no reply
24: no reply
25: no reply
26: no reply
27: no reply
28: no reply
29: no reply
30: no reply
31: no reply
Too many hops: pmtu 1280 Resume: pmtu 1280
----------------------------
#ping6 www.6bone.net
#tcpdump -t -n -i eth0 -s 512 -vv proto ipv6
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 512 bytes
IP (tos 0x0, ttl 30, id 0, offset 0, flags [DF], length: 124) aaa.aaa.aaa.aaa> bbb.bbb.bbb.bbb: 3ffe:321f:0:525::1 > 2001:5c0:0:2::24: [icmp6 sum ok] icmp6: echo request seq 1 (len 64, hlim 64)
IP (tos 0x0, ttl 23, id 0, offset 0, flags [DF], length: 124) bbb.bbb.bbb.bbb >aaa.aaa.aaa.aaa: 2001:5c0:0:2::24 > 3ffe:321f:0:525::1: [icmp6 sum ok] icmp6: echo reply seq 1 (len 64, hlim 59)
------------------------------------------------
#host -t AAAA www.kame.net
www.kame.net has AAAA address 2001:200:0:8002:203:47ff:fea5:3085
As Mozilla in my debian supports IPv6(I can't remember version), so just put
http://[2001:200:0:8002:203:47ff:fea5:3085]/
in mozilla's address bar and press Enter, u'll see a dancing kame :-)
----------------------
# nmap -6 ::1
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2004-12-30 22:22 CST
Interesting ports on ip6-localhost (::1):
(The 1662 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
Nmap run completed -- 1 IP address (1 host up) scanned in 0.180 seconds
------------------------------------
Gossip:
In fact, I was editing this page in linux, when it was finished and I refreshed this page but only to find that the line feed has missing. Oh , it looks badly since all sentences are all in one single paragraph. Let me think.... Is it the reason that in windows is“/0x0d/0x0a”but in linux is “/0x0a”(Not to mention “0x0d”in Mac)?As when I posted my article, the content was sent to csdn, but was processed by a ASP server running on windows platform, so it spoiled my page. Next time maybe I should write a shell script to try to solve this problem when I rebooted into linux again !