• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

why I can't ping each other with ipv6

Started by yangleifage, May 24, 2009, 10:02:10 PM

Previous topic - Next topic

yangleifage

hi all.
I have two target, A and B ,they are conected with wire-ruling directly,and I can ping each other with ipv4.

for A:
Quote
root@localhost:/root> ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0F:B7:10:34:0E  
         inet6 addr: 2002:1::2/64 Scope:Global
         inet6 addr: fe80::20f:b7ff:fe10:340e/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:3029 errors:0 dropped:0 overruns:0 frame:0
         TX packets:324 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:351550 (343.3 KiB)  TX bytes:27904 (27.2 KiB)

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:332 errors:0 dropped:0 overruns:0 frame:0
         TX packets:332 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:49304 (48.1 KiB)  TX bytes:49304 (48.1 KiB)

root@localhost:/root> route -A inet6
Kernel IPv6 routing table
Destination                                 Next Hop                                Flags Metric Ref    Use Iface
::1/128                                     ::                                      U     0      0        1 lo      
2002:1::/128                                ::                                      U     0      0        1 lo      
2002:1::2/128                               ::                                      U     0      1047       1 lo      
2002:1::/64                                 ::                                      U     1      0        0 eth0    
2002:1::/64                                 ::                                      U     256    0        0 eth0    
fe80::/128                                  ::                                      U     0      0        1 lo      
fe80::20f:b7ff:fe10:340e/128                ::                                      U     0      0        1 lo      
fe80::/64                                   ::                                      U     256    0        0 eth0    
ff00::/8                                    ::                                      U     256    0        0 eth0    
root@localhost:/root>  


root@localhost:/root> tcpdump -n ip6   (when B ping A)
tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
00:27:10.156954 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:12.156127 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:13.159758 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:14.155389 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:15.171001 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:16.174633 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:17.170264 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:18.189877 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:19.185515 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:20.185139 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:22.185394 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:23.185025 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:24.184650 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:26.183906 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:27.182659 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:28.183162 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:30.182418 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:31.182049 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:32.181674 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:34.180930 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:35.179869 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:36.180186 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:38.191436 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:39.191067 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
00:27:40.189787 IP6 2002:1::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32

for B
Quote
root@lyang0:/home/lyang0/Netperf/netperf-2.4.4/src# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:1e:4f:d4:95:29  
         inet6 addr: 2002:1::1/64 Scope:Global
         inet6 addr: fe80::21e:4fff:fed4:9529/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:16002432 errors:0 dropped:0 overruns:0 frame:0
         TX packets:13766471 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:162155921 (154.6 MB)  TX bytes:2541958312 (2.3 GB)
         Memory:fe9e0000-fea00000

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:255813887 errors:0 dropped:0 overruns:0 frame:0
         TX packets:255813887 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:1119621463 (1.0 GB)  TX bytes:1119621463 (1.0 GB)


root@lyang0:/home/lyang0/Netperf/netperf-2.4.4/src# route -A inet6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
::1/128                        ::                         Un   0   1  1907 lo
2001:1::/64                    ::                         U    256 0     0 eth0
2002:1::1/128                  ::                         Un   0   1   278 lo
2002:1::/64                    ::                         U    1   0     0 eth1
2002:1::/64                    ::                         U    256 0     0 eth0
2002:1::/64                    ::                         U    256 0     0 eth1
fe80::21e:4fff:fed4:9529/128   ::                         Un   0   1     0 lo
fe80::/64                      ::                         U    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 eth1
ff00::/8                       ::                         U    256 0     0 eth0
ff00::/8                       ::                         U    256 0     0 eth1
::/0                           ::                         !n   -1  1     8 lo
root@lyang0:/home/lyang0/Netperf/netperf-2.4.4/src#



root@lyang0:/home/lyang0/Netperf/netperf-2.4.4/src# tcpdump -i eth1   (When A ping B)
tcpdump: WARNING: eth1: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable
do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable
do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable
11:33:00.618243 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:00.619204 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:01.618575 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:01.618598 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable
11:33:02.610425 IP6 fe80::21e:4fff:fed4:9529 > 2002:1::2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
11:33:02.618970 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:02.618984 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:03.610426 IP6 fe80::21e:4fff:fed4:9529 > 2002:1::2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
11:33:04.610425 IP6 fe80::21e:4fff:fed4:9529 > 2002:1::2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
11:33:04.623719 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:04.623733 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:05.624065 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:05.624093 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:06.624443 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:06.624465 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:08.629188 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:08.629209 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:09.629557 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:09.629577 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:10.623424 IP6 fe80::21e:4fff:fed4:9529 > 2002:1::2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
11:33:10.629951 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:10.629964 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:11.623425 IP6 fe80::21e:4fff:fed4:9529 > 2002:1::2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
11:33:12.623425 IP6 fe80::21e:4fff:fed4:9529 > 2002:1::2: ICMP6, neighbor solicitation, who has 2002:1::2, length 32
11:33:12.634698 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:12.634713 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:13.635047 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:13.635070 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:14.635424 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:14.635445 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:16.640182 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:16.640205 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32
11:33:17.640537 IP6 2002:1::2 > ff02::1:ff00:1: ICMP6, neighbor solicitation, who has 2002:1::1, length 32
11:33:17.640559 IP6 2002:1::1 > 2002:1::2: ICMP6, neighbor advertisement, tgt is 2002:1::1, length 32


It can't ping each other please help me
Thanks for your time

sdsdsd


snarked

You are aware that "2002::/16" has a special meaning and ISN'T a private network, aren't you?  YOu have no 6in4 (including 6to4) interface, so of course it's unroutable.

The ONLY non-routable range is "2001:0DB8::/32" - as it's reserved by the RFCs for documentation examples only.  Site-local addresses (now officially depreciated) should be allocated from FEC0::/10.

sudtech

Which command are you using to ping the systems , u need to specify the device interface ,i.e, etho or eth1

From A

ping6 -c4 -I eth0 fe80::21e:4fff:fed4:9529


From B

ping6 -c4 -I eth1 fe80::20f:b7ff:fe10:340e

Pl interchange the Device interfaces ,if it dosen't work .Normally ,i think it should be the local device interface .

jtcloe

Here's what catches my attn on the second host:

2001:1::/64                    ::                         U    256 0     0 eth0
2002:1::1/128                  ::                         Un   0   1   278 lo
2002:1::/64                    ::                         U    1   0     0 eth1
2002:1::/64                    ::                         U    256 0     0 eth0
2002:1::/64                    ::                         U    256 0     0 eth1


First, why is there a route to 2002:1::1/128 to lo?  That alone is probably whats biting you.

Second, why is there route to 2001:1::/64 to both eth0 and eth1?  And what is the ip for eth0 (you only showed eth1)?

Does this box have two nic's that are supposed to be bridging?  If so, neither eth* interface should have any addressing on it, only the bridge.

If it does have two nic's, but they aren't bridging, then each nic should have IP addressing related to the network its on (and the two networks should be distinct from an addressing perspective).

snarked

You don't get it.  It won't work with 2002::/16 addresses.  Packets to those addresses extract the embedded IPv4 address and use that as the destination to send the encapsulated IPv6 packet over IPv4.  This is done in the kernel directly in the sit0 or gif0 interface.  I have not explored what happens when such is routed to a non-encapsulating interface, but there may be kernel code which will get confused or outright refuse to route these special addresses.

kasperd

Not sure why such an old thread suddenly got replies again. But since it is active now, and since a few posts have pointed out how not to use 2002::/16, but none have said what to do instead, I feel a reply would be appropriate.

If you do want addresses to use on your LAN and not get routed to the outside world, you need to use RFC 4193 addresses. RFC 4193 specifies that a prefix is created by taking the 8 bit prefix fd and append 40 randomly generated bits to produce a 48 bit prefix to use for your LAN.

If for example your 40 random bits are b5208af854 your prefix becomes fdb5:208a:f854::/48. You can split this into subnets if you want to, so you could have fdb5:208a:f854::/64, fdb5:208a:f854:1::/64, fdb5:208a:f854:2::/64 etc.