hi Neale,
we are not looking for any additional datapath lookup based on MAC here.
this is related to one of the feature that we are trying to translate
to VPP. where we need to handle and generate traffic with configure
destination and source MAC. we have tried multiple options and were
able to handle incoming traffic, but we were having issues sending
traffic with specific source MAC particularly with ECMP routes.
so i only see two ways either we support configurable MAC address on
vlan interface
or have some ability to configure which source MAC to use in the route
configuration
please let me know if you want to understand the feature in detail. we
can setup a short call for the same.
Regards,
Prabhjot
Quoting "Neale Ranns (nranns)" <nra...@cisco.com>:
Hi Prabhjot,
I would say it is possible, but one would need to place the NIC in
promiscuous mode for an L3 interface, do maybe do MAC to interface
matching in the data-plane which would cost many cycles. Or an rx
would you still want to match to input interface based only on the
VLAN Tag.
I confess I don’t understand why you want such a feature, when the
VLAN tag identifies the sub-interface. Perhaps you could help me
understand.
Thanks,
neale
-----Original Message-----
From: "prabh...@techtrueup.com" <prabh...@techtrueup.com>
Date: Friday, 1 December 2017 at 13:30
To: Omer Majeed <omer.maj...@rwth-aachen.de>
Cc: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>, "Neale Ranns
(nranns)" <nra...@cisco.com>
Subject: Re: [vpp-dev] Fwd: :: Setting Mac address on Vlan interface
hi Neale,
we are expecting to be able to handle different MAC addresses for
VLAN interfaces. This feature seems to be not available in VPP as of
now.
we also tried looking for possible work around, which were dead ends
as of now. Please let us know if we agree to this as something that
can be done for VPP, we can work on this and contribute if useful.
please share your inputs
Regards,
Prabhjot
Quoting Omer Majeed <omer.maj...@rwth-aachen.de>:
> Hi Neale,
>
> Thanks for the reply.
> A physical interface could have multiple Vlan interfaces and I
want traffic
> originating from Vlan interface to have user defined Mac address rather
> than parent's Mac address.
>
> In Linux we have this privilege to associate Mac addresses to Vlan
> interfaces using ifconfig.
> In Linux, we use vconfig to create Vlan interface and then we could
> leverage ifconfig to configure our own Mac address on the Vlan
interface.
>
> Could we have something similar in VPP?
>
> Best Regards,
> Omer
>
> On Wed, Nov 29, 2017 at 6:44 PM, Neale Ranns (nranns)
<nra...@cisco.com>
> wrote:
>
>> Hi Omer,
>>
>>
>>
>> You can set the MAC address of a ‘host’ interface when it is created:
>>
>> create host-interface name <ifname> [hw-addr <mac-addr>]
>>
>>
>>
>> you can also change it after creation:
>>
>> set interface mac address <interface> <mac-address>
>>
>>
>>
>> but you cannot set the MAC address of a VLAN interface. A
VLAN interface
>> will always have the same MAC address as its parent/physical
interface.
>>
>>
>>
>> Regards,
>>
>> Neale
>>
>>
>>
>>
>>
>> *From: *<vpp-dev-boun...@lists.fd.io> on behalf of Omer Majeed <
>> omer.maj...@rwth-aachen.de>
>> *Date: *Wednesday, 29 November 2017 at 11:45
>> *To: *"vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
>> *Subject: *[vpp-dev] Fwd: :: Setting Mac address on Vlan interface
>>
>>
>>
>> Hi,
>>
>>
>>
>> I am trying to form an ecmp between Vlan interfaces. Traffic
coming with
>> IP 1.1.1.5 would go through Vlan interfaces host-tap0.1 and
host-tap1.1
>> forming ecmp.
>>
>>
>>
>> ip route add 1.1.1.5/32 table 3 via 1.1.1.5 host-tap0.1
>> ip route add 1.1.1.5/32 table 3 via 1.1.1.5 host-tap1.1
>>
>>
>> set ip arp host-tap0.1 1.1.1.5 02:00:00:00:00:02
>>
>> set ip arp host-tap1.1 1.1.1.5 02:00:00:00:00:02
>>
>>
>>
>> ip route add 1.1.1.5/32 table 5 via 1.1.1.5 host-tap2.1
>>
>> ip route add 1.1.1.5/32 table 5 via 1.1.1.5 host-tap3.1
>>
>>
>>
>> set ip arp host-tap2.1 1.1.1.5 02:00:00:00:00:01
>>
>> set ip arp host-tap3.1 1.1.1.5 02:00:00:00:00:01
>>
>>
>>
>> However traffic flows having Source Mac addresses as that of
respective
>> Vlan interfaces. Is there any way I could set Vlan interfaces
with my own
>> desired Mac Addresses, so that the traffic has user defined
Mac addresses
>> as Source Mac addresses.
>>
>>
>>
>> Thanks.
>>
>> Best Regards,
>>
>> Omer Majeed
>>
>>
>>
>>
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev