From owner-freebsd-net@FreeBSD.ORG Fri Mar 29 12:59:14 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6BC34F3 for ; Fri, 29 Mar 2013 12:59:14 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from nm3-vm2.bullet.mail.ne1.yahoo.com (nm3-vm2.bullet.mail.ne1.yahoo.com [98.138.91.19]) by mx1.freebsd.org (Postfix) with ESMTP id 21F98178 for ; Fri, 29 Mar 2013 12:59:12 +0000 (UTC) Received: from [98.138.90.52] by nm3.bullet.mail.ne1.yahoo.com with NNFMP; 29 Mar 2013 12:57:18 -0000 Received: from [98.138.86.157] by tm5.bullet.mail.ne1.yahoo.com with NNFMP; 29 Mar 2013 12:57:18 -0000 Received: from [127.0.0.1] by omp1015.mail.ne1.yahoo.com with NNFMP; 29 Mar 2013 12:57:18 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 674823.93461.bm@omp1015.mail.ne1.yahoo.com Received: (qmail 76598 invoked by uid 60001); 29 Mar 2013 12:57:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1364561838; bh=FhodvRiELbSm/Y4CF8nsQGtWgVoeJcXuels/3lkRAxM=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=A4n07EfLHhKixwUxXvK8ljlLi3lAbVPbLXu8115PzgOsPiyzpVdBPL1mN7WTwnxPtuafAwLXhj0KBORW3zR89N4moOVUGAqxjmTOu+KN20CvHQDKQ3c4yWYKayPhkH2jsdeAYaNNf6yZhCZvnq00Qm7jVckhuYxeqzaExO5a8PQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=1nRwlfXr0wOGVMPPxNQ8k3vM1HX7J0j5CrSIAJe6vMjov6sT8GyF/iE0eV9sH6Ogxypz5RvsMnOiDl6JhfJVxjoyWaX3N2N84CR/0kYjgpH8y78ljFiKpHs7M/TCHPMUBegIKX7/MZ0u1uxpuKttyQc4fFJeJaEyypC2n5VMdWU=; X-YMail-OSG: P4MoLuQVM1muUgD6C5Eny5SkQ.2NcThZiHah0mshyj9b_VL gtoRyzQVixCwacSUmKecsbs.VLvxfCZUBk7PYnom7EPDMgmJC9XxQNj.Z0Yb rnnY19Lm022_6zER7pqeoX.v8dXrkhLKU6asUBDGHPDB95PbLl5EoYANZgXu TnB22VqCmKM0YYIZbDnEV7IETNVG73Wr2qXyzNkdpgWxKNk02HNhXfuFEEv. kMOnN6oiOts9APFT.zXfV4M9kvYzqmMmTmfoxQd3gBA6uVaP5PIv8mNjc5oo 7uknyjJtxNvjy.C7bVP1E7kcda4xGpty1ZKS3EVsjuUz27KlEIygrb4qTp.0 EtsfoLGxHab4HaYCJXBiRunB97o51dKRJHg28xi5qZs4bxNq2b1HEhosSoef aExpIOkU9vxRhS1M6s0c2eVcWX9GwTYg6upUsVwNXO_j6Lj17BMjsQkczMm9 zLyar4LXTcVN9UxW3zv13jJoiWWDerOhdsHXR5zYTOait778ekwE6nWMPnSW LMLusMrYhJiyKFPvjOjMfwFh3pZsicQ-- Received: from [98.203.118.124] by web121605.mail.ne1.yahoo.com via HTTP; Fri, 29 Mar 2013 05:57:18 PDT X-Rocket-MIMEInfo: 002.001, CgotLS0gT24gRnJpLCAzLzI5LzEzLCBQYWJsbyBSaWJhbHRhIExvcmVuem8gPHJscEBzZW1paGFsZi5jb20.IHdyb3RlOgoKPiBGcm9tOiBQYWJsbyBSaWJhbHRhIExvcmVuem8gPHJscEBzZW1paGFsZi5jb20.Cj4gU3ViamVjdDogdmxhbiB3aXRoIG1vZGlmaWVkIE1BQyBmYWlscyB0byBjb21tdW5pY2F0ZQo.IFRvOiBmcmVlYnNkLW5ldEBmcmVlYnNkLm9yZwo.IERhdGU6IEZyaWRheSwgTWFyY2ggMjksIDIwMTMsIDc6NTMgQU0KPiBIaSB0aGVyZSEKPiAKPiBMYXRlbHkgSSd2ZSBiZWVuIGludmVzdGlnYXQBMAEBAQE- X-Mailer: YahooMailClassic/15.1.7 YahooMailWebService/0.8.139.530 Message-ID: <1364561838.74177.YahooMailClassic@web121605.mail.ne1.yahoo.com> Date: Fri, 29 Mar 2013 05:57:18 -0700 (PDT) From: Barney Cordoba Subject: Re: vlan with modified MAC fails to communicate To: freebsd-net@freebsd.org, Pablo Ribalta Lorenzo In-Reply-To: <515580B0.2070205@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Mar 2013 12:59:14 -0000 --- On Fri, 3/29/13, Pablo Ribalta Lorenzo wrote: > From: Pablo Ribalta Lorenzo > Subject: vlan with modified MAC fails to communicate > To: freebsd-net@freebsd.org > Date: Friday, March 29, 2013, 7:53 AM > Hi there! > > Lately I've been investigating an issue that I would like to > share, as I feel I may have to attack it from a different > end. > > I have an ethernet interface from where I create a vlan. > Once I set up the ip address in the vlan I can ping > correctly on both > sides. The issue arrives when I try to change the MAC > address of the vlan, as from then on it fails to communicate > unless: > > - I restore vlan's MAC address to its previous value > - I enable promisc mode. > > It's also worth to mention that my current setup is FreeBSD > 8.3 and the NIC driver I'm using is not fully mature. > > I was wondering if this behavior is due to some limitations > in the NCI driver I'm using or if in fact it's the correct > way to > proceed, as it was possible to reproduce this same issue in > FreeBSD 8.3 and FreeBSD CURRENT versions, even using more > mature > NIC drivers as 'em' and 're'. > > Could somebody please shed some light in this? Thank you. > Without looking at the code, it's likely that you should be changing the MAC address BEFORE you set up the VLAN. The mac is probably being mapped into some table that being used to track the vlans. BC