Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2013 05:57:18 -0700 (PDT)
From:      Barney Cordoba <barney_cordoba@yahoo.com>
To:        freebsd-net@freebsd.org, Pablo Ribalta Lorenzo <rlp@semihalf.com>
Subject:   Re: vlan with modified MAC fails to communicate
Message-ID:  <1364561838.74177.YahooMailClassic@web121605.mail.ne1.yahoo.com>
In-Reply-To: <515580B0.2070205@semihalf.com>

next in thread | previous in thread | raw e-mail | index | archive | help


--- On Fri, 3/29/13, Pablo Ribalta Lorenzo <rlp@semihalf.com> wrote:

> From: Pablo Ribalta Lorenzo <rlp@semihalf.com>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1364561838.74177.YahooMailClassic>