[OpenWrt-Devel] [PATCH] vlandev: Add support for setting a unique MAC on a VLAN interface

André Valentin avalentin at marcant.net
Fri Jan 29 07:15:00 EST 2016


Hi Felix,

thanks for the hint. Did you configure the MAC in the interface section?
I suggest I had a wrongly created MAC on my first tries which resulted in kernel not accepting it.

Kind regards,

André

Am 28.01.2016 um 23:35 schrieb Felix Fietkau:
> On 2016-01-24 20:47, André Valentin wrote:
>> There are cases where you need a different MAC on a VLAN interface, i.e. if
>> if have move than one connection to a switch. A later change of the MAC
>> is not possible on VLAN interfaces, so it has to be done on creation.
>> The new macaddr option allows to set a unique MAC for a VLAN interface.
>> Example:
>> config device 'testvl'
>>         option type '8021ad'
>>         option name 'testvl'
>>         option ifname 'eth0'
>>         option vid '106'
>>         option macaddr 'f2:48:00:89:45:4c'
>>
>> config interface 'testif'
>>         option ifname 'testvl'
>>         option proto 'none'
>>         option auto '1'
>>
>> Signed-off-by: André Valentin <avalentin at marcant.net>
> I don't see the point of this patch - I just tried your example config,
> and it works just fine without it ;)
> 
> - Felix
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list