Subject: Problem to get IPv6 working on NetBSD-1.5
To: None <netbsd-help@NetBSD.ORG>
From: Bernd Salbrechter <salb@hell.gud.siemens.at>
List: netbsd-help
Date: 10/11/2000 16:14:12
Hi all!

I have A NetBSD1.5 (N), a FreeBSD4.1 (F) and a Linux (L) host, which
are connected to a Ethernet. I can ping6 N and F from L, but nighter from
N nor from F I can ping6 any of the other hosts. I can ping6 localhost
on all hosts and ping6 -I <interface> all host.

What's wrong, that I need the -I option to ping6 any other host on NetBSD
and FreeBSD?

I append the results (with the output of tcpdump) and the output of the
commands ifconfig -a, netstat -r, ndp -a and ndp -I. Pleas ignore the
IPv4 addresses (we are in a transition and use two IPv4 networks on the
same Ethernet). I have done the ping6 on the FreeBSD host, but on the
NetBSD host the results are the same. To find the begin of each section
search for "[NFL]:". Sorry at the first ping6 I get the neighbor entries
first and more of them, but it look like I must reboot some host to come
into this state.

F: ping6 -I xl0 fe80::2a0:24ff:fe87:3c7
no package lost and the following dump:
21:52:40.630516 fe80::201:2ff:fea4:e97e > fe80::2a0:24ff:fe87:3c7: icmp6: echo request
21:52:40.630711 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: echo reply
21:52:41.620599 fe80::201:2ff:fea4:e97e > fe80::2a0:24ff:fe87:3c7: icmp6: echo request
21:52:41.620735 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: echo reply
21:52:42.620698 fe80::201:2ff:fea4:e97e > fe80::2a0:24ff:fe87:3c7: icmp6: echo request
21:52:42.620820 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: echo reply
21:52:43.620783 fe80::201:2ff:fea4:e97e > fe80::2a0:24ff:fe87:3c7: icmp6: echo request
21:52:43.620904 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: echo reply
21:52:44.620869 fe80::201:2ff:fea4:e97e > fe80::2a0:24ff:fe87:3c7: icmp6: echo request
21:52:44.620994 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: echo reply
21:52:45.180936 fe80::201:2ff:fea4:e97e > fe80::2a0:24ff:fe87:3c7: icmp6: neighbor sol: who has fe80::2a0:24ff:fe87:3c7
21:52:45.181121 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: neighbor adv: tgt is fe80::2a0:24ff:fe87:3c7
21:52:45.620954 fe80::201:2ff:fea4:e97e > fe80::2a0:24ff:fe87:3c7: icmp6: echo request
21:52:45.621077 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: echo reply

F: ping6 fe80::2a0:24ff:fe87:3c7
all packages lost and the following dump:
21:49:13.161123 fe80::201:2ff:fea4:e97e > ff02::1:ff87:3c7: icmp6: neighbor sol: who has fe80::2a0:24ff:fe87:3c7
21:49:13.161379 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: neighbor adv: tgt is fe80::2a0:24ff:fe87:3c7
21:49:14.161207 fe80::201:2ff:fea4:e97e > ff02::1:ff87:3c7: icmp6: neighbor sol: who has fe80::2a0:24ff:fe87:3c7
21:49:14.161383 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: neighbor adv: tgt is fe80::2a0:24ff:fe87:3c7
21:49:15.161318 fe80::201:2ff:fea4:e97e > ff02::1:ff87:3c7: icmp6: neighbor sol: who has fe80::2a0:24ff:fe87:3c7
21:49:15.161475 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: neighbor adv: tgt is fe80::2a0:24ff:fe87:3c7
21:49:17.161517 fe80::201:2ff:fea4:e97e > ff02::1:ff87:3c7: icmp6: neighbor sol: who has fe80::2a0:24ff:fe87:3c7
21:49:17.161679 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: neighbor adv: tgt is fe80::2a0:24ff:fe87:3c7
21:49:18.161605 fe80::201:2ff:fea4:e97e > ff02::1:ff87:3c7: icmp6: neighbor sol: who has fe80::2a0:24ff:fe87:3c7
21:49:18.161766 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: neighbor adv: tgt is fe80::2a0:24ff:fe87:3c7
21:49:19.161692 fe80::201:2ff:fea4:e97e > ff02::1:ff87:3c7: icmp6: neighbor sol: who has fe80::2a0:24ff:fe87:3c7
21:49:19.161844 fe80::2a0:24ff:fe87:3c7 > fe80::201:2ff:fea4:e97e: icmp6: neighbor adv: tgt is fe80::2a0:24ff:fe87:3c7

N: ifconfig -a
ep0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	address: 00:a0:24:87:03:c7
	media: Ethernet 10baseT
	inet 195.3.2.151 netmask 0xffffff00 broadcast 195.3.2.255
	inet6 fe80::2a0:24ff:fe87:3c7%ep0 prefixlen 64 scopeid 0x1
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 32972
	inet 127.0.0.1 netmask 0xff000000
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
	inet6 ::1 prefixlen 128
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
strip0: flags=0<> mtu 1100
strip1: flags=0<> mtu 1100
tun0: flags=10<POINTOPOINT> mtu 1500
tun1: flags=10<POINTOPOINT> mtu 1500
gre0: flags=8010<POINTOPOINT,MULTICAST> mtu 1450
gre1: flags=8010<POINTOPOINT,MULTICAST> mtu 1450
ipip0: flags=8010<POINTOPOINT,MULTICAST>
ipip1: flags=8010<POINTOPOINT,MULTICAST>
gif0: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1280
	tunnel inet 195.3.2.151 --> 158.226.198.2
	inet 10.0.0.2 -> 10.0.0.1 netmask 0xff000000
	inet6 fe80::2a0:24ff:fe87:3c7%gif0 -> :: prefixlen 64 scopeid 0xf
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280

N: netstat -r
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
default            router-2.gud.sieme UGS         1     6105   1500  ep0
10.0.0.1           10.0.0.2           UH          0        7   1280  gif0
loopback           localhost          UGRS        0        0  32972  lo0
localhost          localhost          UH          1       88  32972  lo0
195.3.2            link#1             UC          0        0   1500  ep0
pca068.gud.siemens 00:10:4b:42:b9:73  UHL         1    72268   1500  ep0
pr4431.gud.siemens 00:60:b0:2f:f3:df  UHL         0        2   1500  ep0
hell.gud.siemens.a 00:a0:24:42:db:98  UHL         4      128   1500  ep0
pc7701.gud.siemens 00:a0:24:87:03:c7  UHL         0        4   1500  lo0
router-2.gud.sieme 00:10:2f:07:18:00  UHL         1        0   1500  ep0

[detelete empty entries]

Internet6:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
::                 localhost          UGRS        0        0  32972  lo0 =>
::                 localhost          UGRS        0        0  32972  lo0 =>
default            link#1             UC          0        0   1500  ep0
localhost          localhost          UH         12       20  32972  lo0
::127.0.0.0        localhost          UGRS        0        0  32972  lo0
::224.0.0.0        localhost          UGRS        0        0  32972  lo0
::255.0.0.0        localhost          UGRS        0        0  32972  lo0
::ffff:0.0.0.0     localhost          UGRS        0        0  32972  lo0
2002::             localhost          UGRS        0        0  32972  lo0
2002:7f00::        localhost          UGRS        0        0  32972  lo0
2002:e000::        localhost          UGRS        0        0  32972  lo0
2002:ff00::        localhost          UGRS        0        0  32972  lo0
fe80::             localhost          UGRS        0      100  32972  lo0
fe80::%ep0         link#1             UC          0        0   1500  ep0
fe80::201:2ff:fea4 00:01:02:a4:e9:7e  UHL         0       66   1500  ep0
fe80::260:8ff:fe64 00:60:08:64:3d:98  UHL         0        8   1500  ep0
fe80::2a0:24ff:fe4 00:a0:24:42:db:98  UHL         0       32   1500  ep0
fe80::2a0:24ff:fe8 00:a0:24:87:03:c7  UHL         1        4   1500  lo0
fe80::%lo0         fe80::1%lo0        U           0        0  32972  lo0
fe80::%gif0        link#15            UC          0        0   1280  gif0
fe80::2a0:24ff:fe8 localhost          UH          0        0  32972  lo0
fec0::             localhost          UGRS        0        0  32972  lo0
ff01::             localhost          U           0        0  32972  lo0
ff02::%ep0         link#1             UC          0        0   1500  ep0
ff02::%lo0         fe80::1%lo0        UC          0        0  32972  lo0
ff02::%gif0        link#15            UC          0        0   1280  gif0
N: ndp -a
Neighbor                        Linklayer Address  Netif Expire    St Flgs Prbs
fe80::201:2ff:fea4:e97e%ep0     0:1:2:a4:e9:7e       ep0 expired   S      
fe80::260:8ff:fe64:3d98%ep0     0:60:8:64:3d:98      ep0 expired   S      
fe80::2a0:24ff:fe42:db98%ep0    0:a0:24:42:db:98     ep0 expired   S      
fe80::2a0:24ff:fe87:3c7%ep0     0:a0:24:87:3:c7      ep0 permanent R      
N: ndp -I
ND default interface = ep0

F: ifconfig -a
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet 158.226.198.2 netmask 0xfffffe00 broadcast 158.226.199.255
	inet6 fe80::201:2ff:fea4:e97e%xl0 prefixlen 64 scopeid 0x1 
	ether 00:01:02:a4:e9:7e 
	media: autoselect (10baseT/UTP) status: active
	supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback>
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
	inet6 ::1 prefixlen 128 
	inet 127.0.0.1 netmask 0xff000000 
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
faith0: flags=8000<MULTICAST> mtu 1500
F: netstat -r
Routing tables

Internet:
Destination        Gateway            Flags      Netif Expire
default            router-198         UGSc        7      203      xl0
localhost          localhost          UH          0      151      lo0
158.226.198/23     link#1             UC          0        0      xl0 =>
pce783             0:1:2:a6:3d:45     UHLW        1     5240      xl0   1041
ws6591             link#1             UHLW        1     2336      xl0 =>
router-198         0:10:2f:7:18:0     UHLW        7        0      xl0    548
158.226.199.255    ff:ff:ff:ff:ff:ff  UHLWb       2     1289      xl0

Internet6:
Destination        Gateway            Flags      Netif Expire
::                 localhost.gud.siem UGRSc       lo0 =>
default            link#1             UC          xl0
localhost.gud.siem localhost.gud.siem UH          lo0
::ffff:0.0.0.0     localhost.gud.siem UGRSc       lo0
fe80::             link#1             UCS         xl0
fe80::%xl0         link#1             UC          xl0
fe80::201:2ff:fea4 0:1:2:a4:e9:7e     UHLW        lo0
fe80::2a0:24ff:fe8 0:a0:24:87:3:c7    UHLW        xl0
fe80::%lo0         fe80::1%lo0        Uc          lo0
ff01::             localhost.gud.siem U           lo0
ff02::             link#1             UCS         xl0
ff02::%xl0         link#1             UC          xl0
ff02::%lo0         fe80::1%lo0        UC          lo0
F: ndp -a
Neighbor                        Linklayer Address  Netif Expire    St Flgs Prbs
fe80::201:2ff:fea4:e97e%xl0     0:1:2:a4:e9:7e       xl0 permanent R      
fe80::2a0:24ff:fe87:3c7%xl0     0:a0:24:87:3:c7      xl0 expired   S      
F: ndp -I
ND default interface = xl0

L: ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:A0:24:42:DB:98  
          inet addr:195.3.2.129  Bcast:195.3.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:436632 errors:0 dropped:0 overruns:0 frame:0
          TX packets:193470 errors:0 dropped:0 overruns:0 carrier:0
          collisions:9635 txqueuelen:100 
          Interrupt:5 Base address:0x300 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:25268 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25268 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

sit0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-D5-00-00-00-00-00-00-00-00  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

L: netstat -r (notinclude, because it shows only IPv4 entries).
L: ndp -a (not avaliable)
L: ndp -I (not avaliable)