Many thanks for your replies Jan, John! I tried translate1-2 and translate2-1, the ingress vlan is getting popped, but the egress vlan stack instead of being (150|200), it became (150|200|200) - i.e. there were three tags imposed on the packet, instead of two. Looking into the issue.
John, by popping and pushing on the same interface, do you mean that call l2vtr_configure twice with pop and push once each respectively? Thanks, -nagp On Fri, Jan 13, 2017 at 11:55 PM, John Lo (loj) <l...@cisco.com> wrote: > If doing tag1 to tag2 translation as suggested, only need to do it on one > interface. Whatever is specified on an interface will be performed on input > while the opposite will be performed on output. Using pop on both > interfaces, as suggested in my other reply, is more straightforward but is > less efficient as VTR operation is performed on each packet twice. > > > > Regards, > > John > > > > *From:* vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] *On > Behalf Of *Jan Gelety -X (jgelety - PANTHEON TECHNOLOGIES at Cisco) > *Sent:* Friday, January 13, 2017 12:24 PM > *To:* Nagaprabhanjan Bellaru <nagp.li...@gmail.com>; vpp-dev < > vpp-dev@lists.fd.io> > *Subject:* Re: [vpp-dev] L2 Xconnect does not re-write vlan tags? > > > > Hello nagp, > > > > You need to use tag rewrite > > > > l2_interface_vlan_tag_rewrite <intfc> | sw_if_index <nn> [disable] > [push-[1|2]] [pop-[1|2]] [translate-1-[1|2]] [translate-2-[1|2]] > [push_dot1q 0] tag1 <nn> tag2 <nn> > > > > on both interfaces. > > > > - option translate-1-2 on sub-if1 > > - option translate-2-1 on sub-if2 > > > > Regards, > > Jan > > > > *From:* vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io > <vpp-dev-boun...@lists.fd.io>] *On Behalf Of *Nagaprabhanjan Bellaru > *Sent:* Friday, January 13, 2017 17:51 > *To:* vpp-dev <vpp-dev@lists.fd.io> > *Subject:* [vpp-dev] L2 Xconnect does not re-write vlan tags? > > > > Hi, > > I have a L2 cross-connect configuration where packets arrive on a sub-if1 > (with vlan id 500) and go out on sub-if2 (with a vlan stack 200, 150). > > When I send packets on sub-if1, it is getting out on sub-if2, but the vlan > tags are not getting re-written. Is there anything else that should be done > or is this the standard behavior? > > Thanks, > > -nagp >
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev