From owner-freebsd-net@FreeBSD.ORG Sun Nov 9 02:21:54 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA63816A4CF for ; Sun, 9 Nov 2003 02:21:54 -0800 (PST) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (does-d9b91906.pool.mediaWays.net [217.185.25.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CE9943FF7 for ; Sun, 9 Nov 2003 02:21:17 -0800 (PST) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from NOSPAM.spam.NOSPAM.spam.NOSPAM.dyndns.dk (NOSPAM.spam.NOSPAM.spam.NOSPAM.dyndns.dk [2002:d9b9:1906:0:200:c0ff:fefc:19aa]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id hA9AKtw32251 verified NO); Sun, 9 Nov 2003 11:20:59 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost)hA9AKgm34428; Sun, 9 Nov 2003 11:20:42 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Sun, 9 Nov 2003 11:20:42 +0100 (CET) Message-Id: <200311091020.hA9AKgm34428@NOSPAM.spam.NOSPAM.spam.NOSPAM.dyndns.dk> X-Authentication-Warning: NOSPAM.spam.NOSPAM.spam.NOSPAM.dyndns.dk: beer set sender to bounce@NOSPAM.dyndns.dk using -f From: Barry Bouwsma To: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= References: <200311021403.hA2E3OE48213@NOSPAM.spam.NOSPAM.spam.NOSPAM.dyndns.dk> cc: FreeBSD Networking Nerds Subject: Re: IPv6 autoconf addresses with changing RAs... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Nov 2003 10:21:55 -0000 > > What I want to happen, is that when the new IPv6 address is autoconf'ed, > > the old one should disappear from the interface. (I've been too impatient > Does the following behavior of rtadvd(8) help you? Yes, thank you, Jinmei-san! Excellent! Except, > At least rtadvd contained in FreeBSD 4.8R seem to support this > behavior. which explains why the man page I have says nothing about it, nor would it work like that for me. Because I still have most of a FreeBSD 4.5 userland, although a recent 4.9-RC kernel. :-P But now I have compiled a RELENG_4 version of `rtadvd' and installed it on the router, changed the addresses, and seen exactly what the man page described: On the host, seen after changing an address on the router: ed0: flags=8843 mtu 1500 [snip] inet6 2002:d507:7774:0:200:c0ff:fefc:19aa prefixlen 64 deprecated autoconf inet6 2002:d570:7774:0:200:c0ff:fefc:19aa prefixlen 64 autoconf [I'm offline, but these are the leftover IPv4-based addresses from earlier, and a change to test this feature...] [snip] [17:46:50]root@NOSPAM.spam.NOSPAM.spam.NOSPAM.dyndns.dk:/usr/src/usr.sbin/rtadvd{1490}# ping6 2002:d570:7774:0:220:afff:fed4:dbcb PING6(56=40+8+8 bytes) 2002:d570:7774:0:200:c0ff:fefc:19aa --> 2002:d570:7774:0:220:afff:fed4:dbcb 16 bytes from 2002:d570:7774:0:220:afff:fed4:dbcb, icmp_seq=0 hlim=64 time=607.904 ms This works perfectly, and I think I no longer need to poke `rtadvd' with `rtsol' when I assign the IPv6 address(es) each time. The only thing it seems I must still do by hand, is for the host to determine its IP is changed, and notify the dynamic DNS server of this address, and for that I believe I must still use the cron job which I had hacked to delete the old IPv6 address after detecting a change. That might teach me to update my whole machine, rather than only the parts which break with a new kernel... Or maybe not, I am lazy... Many thanks again! Barry Bouwsma (above e-mail works for IPv6; dropping the hostname part only may make it work on IPv4 or not; dropping it entirely won't hurt either)