Hi Xyxue,

VPP does not support VP{WL]S.

However, I’ve made a patch to enable it;
  https://gerrit.fd.io/r/#/c/6861/1
please experiment and let me know how you get on.

Changes to your configs below:

-          Create the mpls tunnel in L2 mode
mpls tunnel l2-only via 1.1.1.2 host-eth0 out-label 34 [out-label PW_CW]

-          Pop the inner label with an instruction to send the payload to an L2 
interface

mpls local-label add eos 1023 l2-input-on mpls-tunnelXXX

add the use of the l2 configs remains the same.

Regards,
Neale



From: <vpp-dev-boun...@lists.fd.io> on behalf of 薛欣颖 <xy...@fiberhome.com>
Date: Wednesday, 24 May 2017 at 03:24
To: vpp-dev <vpp-dev@lists.fd.io>
Subject: [vpp-dev] VPLS VPWS

Hi guys,
Does VPP support VPWS 、VPLS? How should it be configured?Does my configuration  
below implement VPWS?

 ####PE1
create host-interface name eth0
create host-interface name eth1
set int state host-eth1 up
set int state host-eth0 up
set interface ip table host-eth0 0
set int ip address host-eth0 1.1.1.1/24
set interface mac address host-eth0 00:03:7F:FF:FF:FF
set interface mac address host-eth1 00:03:7F:FF:FF:FE
set interface mpls  host-eth0   enable

mpls tunnel add via 1.1.1.2 host-eth0 out-label 34
set int state mpls-tunnel0 up
set interface l2 xconnect mpls-tunnel0  host-eth1 ///// To implement VPWS 
,directly xconnect eth interface to MPLS TUNNEL,is that correct? How to add PW 
LABEL 33?

mpls local-label add eos 1023 ip4-lookup-in-table 1       ###PW Label, how to 
pop?
mpls local-label add non-eos 1024 mpls-lookup-in-table 0  ###LSP Label pop,is 
that correct?

Thanks,
xyxue
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to