netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to test multipe unicast MAC address
@ 2013-04-08  7:08 Rayagond K
  2013-04-08 14:16 ` Eric Dumazet
  0 siblings, 1 reply; 5+ messages in thread
From: Rayagond K @ 2013-04-08  7:08 UTC (permalink / raw)
  To: netdev

Hi All,

How to assign multiple unicast MAC address to single interface ?
How to test multiple unicast MAC address filtering ?

Thanks in advance.

wwr
Rayagond.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to test multipe unicast MAC address
  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
  2013-04-08 18:13   ` Rayagond K
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Dumazet @ 2013-04-08 14:16 UTC (permalink / raw)
  To: Rayagond K; +Cc: netdev

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to test multipe unicast MAC address
  2013-04-08 14:16 ` Eric Dumazet
@ 2013-04-08 14:57   ` John Fastabend
  2013-04-08 18:13   ` Rayagond K
  1 sibling, 0 replies; 5+ messages in thread
From: John Fastabend @ 2013-04-08 14:57 UTC (permalink / raw)
  To: Rayagond K; +Cc: Eric Dumazet, netdev

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to test multipe unicast MAC address
  2013-04-08 14:16 ` Eric Dumazet
  2013-04-08 14:57   ` John Fastabend
@ 2013-04-08 18:13   ` Rayagond K
  2013-04-08 20:28     ` John Fastabend
  1 sibling, 1 reply; 5+ messages in thread
From: Rayagond K @ 2013-04-08 18:13 UTC (permalink / raw)
  To: Eric Dumazet; +Cc: netdev

On Mon, Apr 8, 2013 at 7:46 PM, Eric Dumazet <eric.dumazet@gmail.com> 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

I tried this, but this won't update the uc address and in netdev
struct  and won't call .ndo_set_multicast_list.

I am planning to use vlan through vconfig as below,

#vconfig add eth0 100
#ifconfig eth0.100 10.144.134.1 netmask 255.255.255.0 up
#ifconfig eth0.100 hw ether 00:55:22:44:f7:80

This will update uc in netdev and calls .ndo_set_multicast_list.

>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to test multipe unicast MAC address
  2013-04-08 18:13   ` Rayagond K
@ 2013-04-08 20:28     ` John Fastabend
  0 siblings, 0 replies; 5+ messages in thread
From: John Fastabend @ 2013-04-08 20:28 UTC (permalink / raw)
  To: Rayagond K; +Cc: Eric Dumazet, netdev

On 04/08/2013 11:13 AM, Rayagond K wrote:
> On Mon, Apr 8, 2013 at 7:46 PM, Eric Dumazet <eric.dumazet@gmail.com> 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
>
> I tried this, but this won't update the uc address and in netdev
> struct  and won't call .ndo_set_multicast_list.
>

This should work macvlan calls uc_sync and mc_sync on the lowerdev. It
is working on the tip at least,

# bridge fdb show dev p3p2
01:00:5e:00:00:01 self permanent
33:33:00:00:00:01 self permanent
33:33:ff:69:9f:09 self permanent
# ip link add link p3p2 address 00:11:22:33:44:55 type macvlan
# ip link set dev macvlan0 up
# bridge fdb show dev p3p2
00:11:22:33:44:55 self permanent
01:00:5e:00:00:01 self permanent
33:33:00:00:00:01 self permanent
33:33:ff:69:9f:09 self permanent
33:33:ff:33:44:55 self permanent


> I am planning to use vlan through vconfig as below,
>
> #vconfig add eth0 100
> #ifconfig eth0.100 10.144.134.1 netmask 255.255.255.0 up
> #ifconfig eth0.100 hw ether 00:55:22:44:f7:80
>
> This will update uc in netdev and calls .ndo_set_multicast_list.
>



-- 
John Fastabend         Intel Corporation

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-08 20:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-04-08 18:13   ` Rayagond K
2013-04-08 20:28     ` John Fastabend

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).