From owner-freebsd-stable@FreeBSD.ORG Thu Oct 12 09:12:34 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEA3B16A403 for ; Thu, 12 Oct 2006 09:12:34 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from ramstind.fig.ol.no (ramstind.fig.ol.no [128.39.174.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62E8D43D91 for ; Thu, 12 Oct 2006 09:12:19 +0000 (GMT) (envelope-from trond@fagskolen.gjovik.no) Received: from ramstind.fig.ol.no (Ximalas@localhost [127.0.0.1]) by ramstind.fig.ol.no (8.13.6/8.13.6) with ESMTP id k9C9CAZT069347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 12 Oct 2006 11:12:10 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by ramstind.fig.ol.no (8.13.6/8.13.6/Submit) with ESMTP id k9C9CAMC069344 for ; Thu, 12 Oct 2006 11:12:10 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: ramstind.fig.ol.no: trond owned process doing -bs Date: Thu, 12 Oct 2006 11:12:05 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: FreeBSD stable Message-ID: <20061012105558.X66952@ramstind.fig.ol.no> Organization: =?ISO-8859-1?Q?Fagskolen_i_Gj=F8vik?= MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-613639430-1160644325=:66952" X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=failed X-Spam-Checker-Version: SpamAssassin on ramstind.fig.ol.no Subject: Creation of IPv6 link-local addresses X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2006 09:12:34 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-613639430-1160644325=:66952 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Questions regarding IPv6 may not belong here, but I take my chances anyway. Subsection 5.3 of RFC 2462 states that: ``A node forms a link-local address whenever an interface becomes enabled [...]'' One of the events listed in Subsection 5.3 is when: ``The interface becomes enabled by system management after having been administratively disabled.'' On one of the systems I manage, I use vlan devices cloned from one of the two physical interfaces. Here's a slightly edited output from ifconfig: xl0: flags=8843 mtu 1500 options=9 inet6 fe80::250:4ff:fe43:9d15%xl0 prefixlen 64 scopeid 0x1 inet6 2001:XXXX:YYYY:ZZZZ:250:4ff:fe43:9d15 prefixlen 64 autoconf ether 00:50:04:43:9d:15 media: Ethernet autoselect (100baseTX ) status: active dc0: flags=8843 mtu 1500 options=8 inet6 fe80::204:e2ff:fe39:29c6%dc0 prefixlen 64 scopeid 0x2 ether 00:04:e2:39:29:c6 media: Ethernet autoselect (100baseTX ) status: active vlan0: flags=8843 mtu 1500 inet6 fe80::250:4ff:fe43:9d15%vlan0 prefixlen 64 scopeid 0x4 ether 00:04:e2:39:29:c6 media: Ethernet autoselect (100baseTX ) status: active vlan: 40 parent interface: dc0 First, the link-local address on the vlan0 interface is based on the link-layer address of the primary interface, xl0, yet the vlan interface has the other physical interface, dc0, as its parent interface. Second, the link-layer address is not recreated when I do an ``ifconfig vlan0 down'' followed by an ``ifconfig vlan0 up''. It seems like the IPv6 stack needs some refurbishment. Can I set additional link-local addresses on the vlan interfaces and subsequently remove the ``bogus'' link-local addresses without disturbing or crashing my system? Trond. - -- - ---------------------------------------------------------------------- Trond Endrestøl | trond@fagskolen.gjovik.no Patron of The Art of Computer Programming| FreeBSD 6.1-S & Pine 4.64 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFLgbpbYWZalUoElsRAnY5AJ4pIKeolRGM1mrcE3UXIP43306ilwCeN/k9 +5CNXW21duhxe3Fny+ZUjZE= =Zzi5 -----END PGP SIGNATURE----- --0-613639430-1160644325=:66952--