Hi Xyxue,

Yes, I think that looks good.
To do VPLS add the mpls-tunnel and [many] host-eth to a bridge-domain, rather 
than a x-connect.

Regards,
neale

From: 薛欣颖 <xy...@fiberhome.com>
Date: Friday, 26 May 2017 at 09:00
To: "Neale Ranns (nranns)" <nra...@cisco.com>, vpp-dev <vpp-dev@lists.fd.io>
Subject: Re: Re: [vpp-dev] VPLS VPWS

Hi neale,

Is my configuration below correct?
MPLS L2VPN(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 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 l2-only via 1.1.1.2 host-eth0 out-label 34  out-label 33
set int state mpls-tunnel0 up
set interface l2 xconnect mpls-tunnel0  host-eth1
mpls local-label add eos 1023 l2-input-on mpls-tunnel0
mpls local-label add non-eos 1024 mpls-lookup-in-table 0

######## ######## ######## ########
 ####PE2
create host-interface name eth0
create host-interface name eth1
set int state host-eth1 up
set int state host-eth0 up
set int ip address host-eth1 1.1.1.2/24
set interface mac address host-eth0 00:50:43:00:02:02
set interface mac address host-eth1 0E:1A:0D:00:50:43
mpls tunnel l2-only via 1.1.1.1 host-eth1 out-label 1024 out-label 1023
set int state mpls-tunnel0 up
set interface l2 xconnect mpls-tunnel0  host-eth1
mpls local-label add eos 33 l2-input-on mpls-tunnel0
mpls local-label add non-eos 34 mpls-lookup-in-table 0


In addtion,how to configure VPLS?

Thanks,
xyxue
________________________________

From: Neale Ranns (nranns)<mailto:nra...@cisco.com>
Date: 2017-05-25 00:32
To: 薛欣颖<mailto:xy...@fiberhome.com>; vpp-dev<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] VPLS VPWS
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