From owner-freebsd-net@FreeBSD.ORG Wed May 21 17:31:46 2008 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 D087D106566C for ; Wed, 21 May 2008 17:31:46 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id A30378FC19 for ; Wed, 21 May 2008 17:31:46 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2896242rvf.43 for ; Wed, 21 May 2008 10:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=5RvKaYC2QfZyhE6qiUZkxMLhh8W+cE5ZcZZEoJofKu4=; b=oImpsmW9sf4NK6QeiWMpplbCw3g8iheD+XoP4cKZLZgQcbd50jrfvzoqM3SyCU5sFFBfQxie9TqvwtVSukJC+1VP5DLRI/ZlQKL4S92Lb5vkntY7scd6ciq6Vsgfnu/n5c1ZO+Sdq+KVAulXF3oswkhttRZUx9crAWAnGcYA8rY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=aomSVxz4dZXaAkcNie/c8dYKmbE8jqy3cZHkW9jT0Z3OD1m06Ifq0OdsNqxgeYUKtRxp9BOpt9amCgk2RS3T9H6dKn0jRJkCKwqufHqwDLceb4WliYLtsssRtiLiTA0Sbr9TsiZHoF7CmK1Bm+I54yhLb4esqMSQIkiUtXRvQ40= Received: by 10.140.208.14 with SMTP id f14mr5220446rvg.283.1211391106325; Wed, 21 May 2008 10:31:46 -0700 (PDT) Received: by 10.141.171.3 with HTTP; Wed, 21 May 2008 10:31:46 -0700 (PDT) Message-ID: <2e77fc10805211031n6c42ffd2u3dee28164094b83b@mail.gmail.com> Date: Wed, 21 May 2008 20:31:46 +0300 From: "Niki Denev" Sender: ndenev@gmail.com To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 53a15072d3c74390 Subject: lagg0.2 style vlans on lagg(4) 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, 21 May 2008 17:31:46 -0000 If one tries to use lagg0.2 style vlans on lagg0 interface configured from rc.conf it does't work. The problem is that all of the cloned interfaces (lagg0 , lagg0.2, etc) are created before any other interface configuration is done, and in this case lagg0 is created, then lagg0.2 is created. But because lagg0 does not have any members yet, it's MAC address is all zeroes, and this is inherited by the vlan interfaces. At the next step the members are added to the lagg0 interface and it's mac address gets set, but the vlan interfaces never see this change and remain with mac address 00:00:00:00:00:00 and in unusable state. Does it sound reasonable for the vlan(4) interfaces to update their mac address when their parent changes it. (this should probably look more like the parent telling the vlans attached to it that it's mac has changed, but i'm not sure if the parent knows about children interfaces)