From owner-freebsd-net@FreeBSD.ORG Tue Apr 19 19:26:06 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97D54106567A; Tue, 19 Apr 2011 19:26:06 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (unknown [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5A9588FC0C; Tue, 19 Apr 2011 19:26:06 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 67ACD4AC45; Tue, 19 Apr 2011 23:26:05 +0400 (MSD) Date: Tue, 19 Apr 2011 23:26:04 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1538532090.20110419232604@serebryakov.spb.ru> To: Doug Barton In-Reply-To: <4DADD907.2010004@FreeBSD.org> References: <884389059.20110419211805@serebryakov.spb.ru> <4DADCDF0.7000607@FreeBSD.org> <888636747.20110419223938@serebryakov.spb.ru> <4DADD907.2010004@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, lev@FreeBSD.org Subject: Re: Proper way to setup IPv6 gateway on running node without reboot? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2011 19:26:06 -0000 Hello, Doug. You wrote 19 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2011 =D0=B3., 22:48:39: >> ifconfig shows only one "inet6" address for each (manually >> configured), and these nd6 flags: >> nd6 options=3D3 > Re-read what I wrote above. You've got to enable the link-local > addresses for each interface. man ifconfig has only one mention about link-local addresses in BUGS section (with warning about removing them by hands) and mention, that they are automagically assigned on interface creation, if net.inet6.ip6.auto_linklocal is set to 1 (which is true on my system, but all my interfaces were created BEFORE IPv6 has been enabled in system). /etc/rc.d/auto_linklocal works only with lo0. It seems to me, that it is impossible to force kernel to create link-local addresses for already-created interfaces. But I want to be wrong here! > If that doesn't work, please paste full 'ifconfig' output into your next > message. gateway# ifconfig em0 em0: flags=3D8843 metric 0 mtu 1500 options=3D20db ether 00:07:e9:09:ed:f3 inet 192.168.134.1 netmask 0xffffff00 broadcast 192.168.134.255 inet6 2001:470:hhhh:1::1 prefixlen 64 nd6 options=3D3 media: Ethernet 1000baseT status: active gateway# ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 ether 00:02:6f:53:67:5a inet 192.168.135.1 netmask 0xffffff00 broadcast 192.168.135.255 inet6 2001:470:hhhh:2::1 prefixlen 64 nd6 options=3D3 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running ssid home.serebryakov.spb.ru channel 8 (2447 MHz 11g) bssid 00:02:6= f:53:67:5a regdomain ROW country RU indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs --=20 // Black Lion AKA Lev Serebryakov