Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2002 11:35:32 +0900
From:      song <song@direct.ksp.nis.nec.co.jp>
To:        questions@FreeBSD.org
Subject:   A question about ping6
Message-ID:  <3C75AE74.62C5B688@direct.ksp.nis.nec.co.jp>

next in thread | raw e-mail | index | archive | help
Hello:
  I met a problem when I used ping6 in FreeBSD4.5 and the version
before.I created a point to point link named tun0.I specified IPv4 and
IPV6 addresses for both ends of it.It look like this:

# ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet6 fe80::2e0:29ff:fe0a:d197%tun0 --> :: prefixlen 64 scopeid
0x10
        inet6 2001::1 --> 2001::2 prefixlen 64
        inet 192.168.40.1 --> 192.168.40.2 netmask 0xffffff00
        Opened by PID 526

If I ping the IPV6 source address of the interface .It was OK.
# ping6 2001::1
PING6(56=40+8+8 bytes) 2001::1 --> 2001::1
16 bytes from 2001::1, icmp_seq=0 hlim=64 time=0.276 ms

But when I ping the destination IPV6 address of the interface It
returned error:
# ping6 2001::2
PING6(56=40+8+8 bytes) 2001::1 --> 2001::2
ping6: sendmsg: Address family not supported by protocol family
ping6: wrote 2001::2 16 chars, ret=-1

I don't know what the reason is.Could you give me some help or advice?
Thank you so much.

--
  Gang.Song

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C75AE74.62C5B688>