Hi Neale,

we have the traffic working however the packets looks like 

source 1.1.1.3 (02:00:00:00:00:01) dest 2.2.2.3 (02:00:00:00:00:02)
however for reverse traffic
source 2.2.2.3 (02:fe:c9:7a:70:00) dest 1.1.1.3 (02:00:00:00:00:01)

use of BVI for this purpose is ruled out as this use case also need to
handle ECMP route with multiple VLAN interfaces

Packet  Egressed by VPP needs to be going though some third party
firewall VM eventually, so at this point we are unable to rule out
strict requirement on source MAC.

so essentially we were looking at option to set MAC on VLAN interfaces
while correlating it to linux counterpart.

so my expectation is there should be a way to have uniformity in
source and dest MAC for forward and reverse traffic

Regards,
Prabhjot

----- Original Message -----
From: "Neale Ranns (nranns)" <nra...@cisco.com>
To:"prabh...@techtrueup.com" <prabh...@techtrueup.com>
Cc:"vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>, "Omer Majeed"
<omer.maj...@rwth-aachen.de>
Sent:Sat, 2 Dec 2017 08:00:06 +0000
Subject:Re: [vpp-dev] Fwd: :: Setting Mac address on Vlan interface

 Hi Prabhjot,

 Your explanation of what you want I think I understand; it’s the
ability to set the src,dst MAC address of a packet as it egresses of
VLAN interface. Where in this case a vlan interface is a 802.1Q
interface and not a BVI*.
 But I don’t understand why you want this. You say “we are not
looking for any additional datapath lookup based on MAC”, in other
words, the RX side does not care what the src,dst MAC addresses are,
so why is it important what the TX side sets? Is it for the benefit of
intervening switches? If so I still don’t understand why ☹

 What is the issue you are trying to address by setting different
src,dst MAC addresses? Perhaps there are existing means to achieve
this already.

 Regards,
 neale

 *In some vendor’s documentation ‘VLAN’ interfaces, also known
as BVI, SVI or IRB (depending on your preferred vendor, platform or
decade) is what VPP terms an BVI. This is an L3 port attached to a
bridge-domain.

 -----Original Message-----
 From: "prabh...@techtrueup.com" <prabh...@techtrueup.com>
 Date: Friday, 1 December 2017 at 18:37
 To: "Neale Ranns (nranns)" <nra...@cisco.com>
 Cc: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>, Omer Majeed
<omer.maj...@rwth-aachen.de>
 Subject: Re: [vpp-dev] Fwd: :: Setting Mac address on Vlan interface

 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

Reply via email to