Subject: Re: how to test multipe unicast MAC address

From: John Fastabend <[email-masked]>
Date: Mon, 08 Apr 2013 07:57:53 -0700

On 04/08/2013 07:16 AM, Eric Dumazet wrote:
> On Mon, 2013-04-08 at 12:38 +0530, Rayagond K wrote:
>> Hi All,
>>
>> How to assign multiple unicast MAC address to single interface ?
>> How to test multiple unicast MAC address filtering ?
>>
>> Thanks in advance.
>>
>
> Standard way would be to use macvlan
>
> ip link add link eth0 name foo02 addr 44:44:44:44:00:02 type macvlan
> ip link add link eth0 name foo03 addr 44:44:44:44:00:03 type macvlan
>

Or if you have a recent version of net-next you can add them directly
without using macvlan,

# bridge fdb add 44:44:44:44:00:02 dev eth0 self

But you'll need to wait a bit before that gets in a stable release.

-- 
John Fastabend         Intel Corporation