All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Fastabend <john.fastabend@gmail.com>
To: Rayagond K <rayagond@vayavyalabs.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>, netdev <netdev@vger.kernel.org>
Subject: Re: how to test multipe unicast MAC address
Date: Mon, 08 Apr 2013 07:57:53 -0700	[thread overview]
Message-ID: <5162DAF1.8060903@gmail.com> (raw)
In-Reply-To: <1365430604.3887.8.camel@edumazet-glaptop>

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

  reply	other threads:[~2013-04-08 14:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-08  7:08 how to test multipe unicast MAC address Rayagond K
2013-04-08 14:16 ` Eric Dumazet
2013-04-08 14:57   ` John Fastabend [this message]
2013-04-08 18:13   ` Rayagond K
2013-04-08 20:28     ` John Fastabend

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5162DAF1.8060903@gmail.com \
    --to=john.fastabend@gmail.com \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=rayagond@vayavyalabs.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.