From owner-freebsd-net@FreeBSD.ORG Wed Oct 6 16:22:14 2010 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 02E23106564A for ; Wed, 6 Oct 2010 16:22:14 +0000 (UTC) (envelope-from arroz@guiamac.com) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) by mx1.freebsd.org (Postfix) with SMTP id AEF408FC18 for ; Wed, 6 Oct 2010 16:22:13 +0000 (UTC) Received: (qmail 90955 invoked by uid 0); 6 Oct 2010 15:55:31 -0000 Received: from 193.136.153.51 (HELO ?10.5.24.253?) (193.136.153.51) by relay01.pair.com with SMTP; 6 Oct 2010 15:55:31 -0000 X-pair-Authenticated: 193.136.153.51 From: Miguel Arroz Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 6 Oct 2010 16:55:28 +0100 Message-Id: To: freebsd-net@freebsd.org Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) Subject: Cannot attribute both IPv4 and IPv6 to a VLAN interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2010 16:22:14 -0000 Hello, I'm using a FreeBSD machine as a NATBox/router for two small networks. = The installed version is FreeBSD 7.1-RELEASE-p13. My network setup is one ethernet cable connecting to the NATBox, with = 3 VLANs (2 of them tagged). The non-tagged VLAN is the "outter" network, = and the other two VLANs are the two networks referred above. Here's my network config for IPv4: cloned_interfaces=3D"vlan18 vlan19" ifconfig_em0=3D"inet xxx.xxx.xxx.51 netmask 255.255.255.0" ifconfig_vlan18=3D"inet 10.5.25.254 netmask 255.255.255.0 vlan 18 = vlandev em0" ifconfig_vlan19=3D"inet 10.5.24.254 netmask 255.255.255.0 vlan 19 = vlandev em0" ifconfig_vlan18_alias0=3D"inet 10.5.25.253 netmask 0xffffffff" defaultrouter=3D"xxx.xxx.xxx.254" vlan18 has a second IP for a jail running a service needed on that = network, but it's not part of my problem. All this works fine under = IPv4, both the "inside" networks are NATed, and that's it. Now, I'm adding IPv6. The idea is having an IPv6 address on the = router, and two /64 networks for each one of the "inside" networks. But = I'm having a problem configuring the network interfaces. Although I have = no problem on the main interface, I'm not able to attribute both a = globally routable IPv6 address and an IPv4 address to the vlan = interfaces. This is what I'm trying to do: ipv6_ifconfig_em0=3D"xxx:xxx:xxx:40::460:1 prefixlen 64" ipv6_ifconfig_vlan18=3D"xxx:xxx:xxx:460:: prefixlen 64 vlan 18 vlandev = em0" ipv6_ifconfig_vlan19=3D"xxx:xxx:xxx:461:: prefixlen 64 vlan 19 vlandev = em0" ipv6_defaultrouter=3D"xxx:xxx:xxx:40::" When I run /etc/rc.d/network_ipv6 restart, among the output I get = this: ifconfig: SIOCSETVLAN: Device busy The final result is that em0 gets the correct configuration, but both = vlan18 and 19 do not. They both have the IPv4 and an fe80:... IPv6, but = not the globally routed 2001:... IPv6. Is this a known bug? Is there a workaround? Regards, Miguel Arroz