From owner-freebsd-stable@FreeBSD.ORG Thu Nov 25 16:08:59 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F34E2106567A for ; Thu, 25 Nov 2010 16:08:59 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (unknown [IPv6:2001:4200:7000:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id A946C8FC1A for ; Thu, 25 Nov 2010 16:08:58 +0000 (UTC) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id 54FC739824; Thu, 25 Nov 2010 18:08:56 +0200 (SAST) Date: Thu, 25 Nov 2010 18:08:56 +0200 From: John Hay To: freebsd-stable@freebsd.org Message-ID: <20101125160856.GA73677@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: autogenerated ipv6 addresses on vlans 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, 25 Nov 2010 16:09:00 -0000 It seems that on 8-stable the autogenerated ipv6 addresses in vlans use the mac address of the first interface and not its own mac address. Is there a reason for this? On 7.x it used the vlan's mac address. The rc.conf file look like this (ipv4 and other configs removed) ################################## ipv6_enable="YES" ipv6_gateway_enable="YES" ifconfig_ix0="-rxcsum -lro up" vlans_ix0="101 3101 3103 3199" ipv6_prefix_ix0_101="2001:1234:5678:ffff" ifconfig_ix1="-rxcsum -lro" ifconfig_ix2="-rxcsum -lro up" vlans_ix2="1 8" ipv6_prefix_ix2_1="2001:1234:5678:0003" ipv6_prefix_ix2_8="2001:1234:5678:0001" ################################## ifconfig with ipv4 and global ipv6 addresses stripped: ################################## bce0: flags=8802 metric 0 mtu 1500 options=c01bb ether 00:25:64:f9:eb:5d inet6 fe80::225:64ff:fef9:eb5d%bce0 prefixlen 64 scopeid 0x1 nd6 options=3 media: Ethernet autoselect bce1: flags=8802 metric 0 mtu 1500 options=c01bb ether 00:25:64:f9:eb:5f inet6 fe80::225:64ff:fef9:eb5f%bce1 prefixlen 64 scopeid 0x2 nd6 options=3 media: Ethernet autoselect bce2: flags=8802 metric 0 mtu 1500 options=c01bb ether 00:25:64:f9:eb:61 inet6 fe80::225:64ff:fef9:eb61%bce2 prefixlen 64 scopeid 0x3 nd6 options=3 media: Ethernet autoselect bce3: flags=8802 metric 0 mtu 1500 options=c01bb ether 00:25:64:f9:eb:63 inet6 fe80::225:64ff:fef9:eb63%bce3 prefixlen 64 scopeid 0x4 nd6 options=3 media: Ethernet autoselect ix0: flags=8843 metric 0 mtu 1500 options=1b8 ether 00:1b:21:57:b4:20 inet6 fe80::21b:21ff:fe57:b420%ix0 prefixlen 64 scopeid 0x5 nd6 options=3 media: Ethernet autoselect (10Gbase-SR ) status: active ix1: flags=8843 metric 0 mtu 1500 options=1b8 ether 00:1b:21:57:b4:21 inet6 fe80::21b:21ff:fe57:b421%ix1 prefixlen 64 scopeid 0x6 nd6 options=3 media: Ethernet autoselect (10Gbase-SR ) status: active ix2: flags=8843 metric 0 mtu 1500 options=1a8 ether 00:1b:21:57:ef:7c inet6 fe80::21b:21ff:fe57:ef7c%ix2 prefixlen 64 scopeid 0x7 nd6 options=3 media: Ethernet autoselect (10Gbase-SR ) status: active ix3: flags=8843 metric 0 mtu 1500 options=b8 ether 00:1b:21:57:ef:7d inet6 fe80::21b:21ff:fe57:ef7d%ix3 prefixlen 64 scopeid 0x8 nd6 options=3 media: Ethernet autoselect (10Gbase-SR ) status: active lo0: flags=8049 metric 0 mtu 16384 options=3 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 nd6 options=3 ix0.101: flags=8843 metric 0 mtu 1500 ether 00:1b:21:57:b4:20 inet6 fe80::225:64ff:fef9:eb5d%ix0.101 prefixlen 64 scopeid 0xa nd6 options=3 media: Ethernet autoselect (10Gbase-SR ) status: active vlan: 101 parent interface: ix0 ix0.3101: flags=8843 metric 0 mtu 1500 ether 00:1b:21:57:b4:20 inet6 fe80::225:64ff:fef9:eb5d%ix0.3101 prefixlen 64 scopeid 0xb nd6 options=3 media: Ethernet autoselect (10Gbase-SR ) status: active vlan: 3101 parent interface: ix0 ix0.3103: flags=8843 metric 0 mtu 1500 ether 00:1b:21:57:b4:20 inet6 fe80::225:64ff:fef9:eb5d%ix0.3103 prefixlen 64 scopeid 0xc nd6 options=3 media: Ethernet autoselect (10Gbase-SR ) status: active vlan: 3103 parent interface: ix0 ix0.3199: flags=8843 metric 0 mtu 1500 ether 00:1b:21:57:b4:20 inet6 fe80::225:64ff:fef9:eb5d%ix0.3199 prefixlen 64 scopeid 0xd nd6 options=3 media: Ethernet autoselect (10Gbase-SR ) status: active vlan: 3199 parent interface: ix0 ix2.1: flags=8843 metric 0 mtu 1500 ether 00:1b:21:57:ef:7c inet6 fe80::225:64ff:fef9:eb5d%ix2.1 prefixlen 64 scopeid 0xe nd6 options=3 media: Ethernet autoselect (10Gbase-SR ) status: active vlan: 1 parent interface: ix2 ix2.8: flags=8843 metric 0 mtu 1500 ether 00:1b:21:57:ef:7c inet6 fe80::225:64ff:fef9:eb5d%ix2.8 prefixlen 64 scopeid 0xf nd6 options=3 media: Ethernet autoselect (10Gbase-SR ) status: active vlan: 8 parent interface: ix2 ################################## John -- John Hay -- jhay@meraka.csir.co.za / jhay@FreeBSD.org