10 IP - FC3041 - E01 - 1-ZXR10 M6000-S MPLS L2 VPN VPWS Configuration&Operation-V3.00.10-15p

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

ZXR10 M6000-S MPLS L2 VPN

VPWS Configuration &


Operation-V3.00.10
Objectives

n Be familiar with VPWS configuration and


maintenance

2
Content

n VPWS Configuration and Maintenance

3
VPWS Configuration Step

n ZXR10 M6000-S VPWS Configuration Steps:


l Create VPWS instance, and configure parameters such as vcid、pwtype、peer,
etc
l Configure IGP on PE、P, enable communication between PEs, and can have
the route to the loopback addresses of each other.
l PE、P enable mpls ldp in global configuration mode,and assign router-id
for mpls ldp instance,and enable mpls ldp function on interfaces between
PE、P.
l Configure target-session on PEs, to active LDP relationship between PEs. (If
PEs are directly connected, without P in-between, then no need to configure
this step).
l Configure interface to CE in VPWS instance.

© ZTE All rights reserved 4


VPWS Basic Configuration

n Enable L2VPN function,and create L2VPN VPWS instance


l ZXR10(config)#mpls l2vpn enable
l ZXR10(config)#vpws <name>

n Binding VPWS instance with AC interface


l ZXR10(config-vpws-name)#access-point <ac-interface>
l ZXR10(config-vpws-name-ac-interface)#access-params ethernet //*AC type
is ethenet

n Create PW ( Pseudo Wire )


l ZXR10(config)#pw pw1

© ZTE All rights reserved 5


VPWS Basic Configuration

n Binding Pseudo Wire with VPWS instance


l ZXR10(config-vpws-name)#pseudo-wire < pw-name>
l ZXR10(config-vpws-name-pw-pw name)#neighbour < A.B.C.D> vcid <vcid
value> //* Configure PW and vcid

n VPWS function is based on LDP,if building PW between


indirectly connected PEs,LDP neighbor must be set up firstly by
TARGET HELLO method,then PW label will be distributed.
l ZXR10(config-ldp)# target-session <A.B.C.D>

© ZTE All rights reserved 6


VPWS Configuration Example
n Practice Target:
l CE1 and CE2 can communicate with each other by using VPWS

Fei-0/1/0/2 Fei-0/1/0/1 Fei-0/1/0/1 Fei-0/1/0/2

PE2 PE1

CE2 CE1

© ZTE All rights reserved 7


VPWS Configuration Example

n Steps:
1. Configure interface address to ensure PE1 can communication with PE2
2. Configure loopback interfaces, as Router-ID of LDP
3. Configure OSPF protocol and advertising loopback interfaces
4.Configure LDP instance,using command target-session if PEs are indirectly
connected
5. Configure l2VPN instance

© ZTE All rights reserved 8


VPWS Configuration Example —PE1

n PE1 Configuration

PE1(config)# interface fei-0/1/0/1


PE1(config-if-fei-0/1/0/1)# ip address 1.1.1.1 255.255.255.0
PE1(config-if-fei-0/1/0/1)#exit
PE1(config)# interface loopback1
PE1(config-if-loopback1)# ip address 100.100.1.1 255.255.255.255
PE1(config-if-loopback1)# exit
PE1(config)# router ospf 200
PE1(config-ospf-200)#area 0
PE1(config-ospf-200-area 0)# network 1.1.1.0 0.0.0.255
PE1(config-ospf-200-area 0)# network 100.100.1.1 0.0.0.0
PE1(config-ospf-200-area 0)# exit
PE1(config)# mpls ldp instance 100
PE1(config-ldp-100)# router-id loopback1
PE1(config-ldp-100)# interface fei-0/1/0/1
PE1(config-ldp-100-if-fei-0/1/0/1)# exit
PE1(config-ldp-100)# exit

© ZTE All rights reserved 9


VPWS Configuration Example —PE1

n PE1 Configuration

PE1(config)# pw pw1 //Create Pseudo-wire


PE1(config)# mpls l2vpn enable //enable L2VPN
PE1(config)# vpws vpws_zte1 //create VPWS instance
PE1(config-vpws)# pseudo-wire pw1 //binding PW with VPWS instance
PE1(config-vpws-vpws_zte1-pw-pw1)# neighbour 100.100.1.2 vcid 20 //defining PE2 as the
other end of PW, 20 as vcid
PE1(config-vpws-vpws_zte1-pw-pw1-neighbour)# signal dynamic //PW type as dynamic,
creating PW by using LDP
PE1(config-vpws-vpws_zte1-pw-pw1-neighbour)# encapsulation raw //defining
encapsulation type
PE1(config-vpws-vpws_zte1-pw-pw1-neighbour)# exit
PE1(config-vpws-vpws_zte1-pw-pw1)# exit
PE1(config-vpws-vpws_zte1)# access-point fei-0/1/0/2 //defining AC interface
PE1(config-vpws-vpws_zte1-ac-fei-0/1/0/2)# access-params ethernet // defining AC
interface as ethernet
PE1(config-vpws-vpws_zte1-ac-fei-0/1/0/2-eth)# exit
PE1(config-vpws-vpws_zte1-ac-fei-0/1/0/2)# exit
PE1(config-vpws-vpws_zte1)# exit
© ZTE All rights reserved 10
VPWS Configuration Example —PE2

n PE2 Configuration

PE2(config)# interface fei-0/1/0/1


PE2(config-if-fei-0/1/0/1)# ip address 1.1.1.2 255.255.255.0
PE2(config-if-fei-0/1/0/1)# exit
PE2(config)# interface loopback1
PE2(config-if-loopback1)# ip address 100.100.1.2 255.255.255.255
PE2(config-if-loopback1)# exit
PE2(config)# router ospf 200
PE2(config-ospf-200)#area 0
PE2(config-ospf-200-area 0)# network 100.100.1.2 0.0.0.0
PE2(config-ospf-200-area 0)# network 1.1.1.0 0.0.0.255
PE2(config-ospf-200-area 0)# exit
PE2(config)# mpls ldp instance 100
PE2(config-ldp-100)# router-id loopback1
PE2(config-ldp-100)# interface fei-0/1/0/1
PE2(config-ldp-100-if-fei-0/1/0/1)# exit
PE2(config-ldp-100)# exit

© ZTE All rights reserved 11


VPWS Configuration Example —PE2

n PE2 Configuration

PE2(config)# pw pw1
PE2(config)# mpls l2vpn enable
PE2(config)# vpws vpws_zte1
PE2(config-vpws)# pseudo-wire pw1
PE2(config-vpws-vpws_zte1-pw-pw1)# neighbour 100.100.1.1 vcid 20
PE2(config-vpws-vpws_zte1-pw-pw1-neighbour)# signal dynamic
PE2(config-vpws-vpws_zte1-pw-pw1-neighbour)# encapsulation raw
PE2(config-vpws-vpws_zte1-pw-pw1-neighbour)# exit
PE2(config-vpws-vpws_zte1-pw-pw1)# exit
PE2(config-vpws-vpws_zte1)# access-point fei-0/1/0/2
PE2(config-vpws-vpws_zte1-ac-fei-0/1/0/2)# access-params ethernet
PE2(config-vpws-vpws_zte1-ac-fei-0/1/0/2-eth)# exit
PE2(config-vpws-vpws_zte1-ac-fei-0/1/0/2)# exit
PE2(config-vpws-vpws_zte1)# exit

© ZTE All rights reserved 12


VPWS Maintenance

n Check PE2 configuration


PE2(config)# show l2vpn forwardinfo detail
Service type and instance name:[VPWS vpws_zte1]
Peer IP address : 100.100.1.1 VCID : 20
Connection mode : VCID Extend : 0
Signaling protocol : LDP VC type : Ethernet
Last status change time : 00:10:49 Create time : 00:10:49
MPLS VC local label : 81920 Remote label : 81920
PW name : pw1 Control Word : -
Related PW name :- PW FRR type : NULL
Activation status : ENABLE Band Width : 0
VC status : UP (local AC down: interface)
Remote status : AR|AT
VCCV CC type : ALERT_LABEL
VCCV CV type : LSP
Tunnel label :{3}
Output interface : fei-0/1/0/1
Imposed label stack : { 81920 3 }

© ZTE All rights reserved 13


VPWS Maintenance

n Check PE2 inner label


PE2(config)# show l2vpn forwardinfo
Headers: PWType - Pseudo Wire type and Pseudo Wire connection mode
Llabel - Local label, Rlabel - Remote label
VPNowner - Owner type and instance name
Codes : H - HUB mode, S - SPOKE mode, L - VPLS, W - VPWS, M - MSPW, MO -
MONITOR
$pw - auto_pw
PWName PeerIP FEC PWType State Llabel Rlabel VPNowner
pw1 100.100.1.1 128 Ethernet UP 81920 81920 W:vpws_zte1

n Check PE2 outer label

PE2(config)#show mpls forwarding-table

Local Outgoing Prefix or Outgoing Next Hop M/S


label label Lspname interface
16384 Poptag 100.100.1.1/32 fei-0/1/0/1 1.1.1.1 M

© ZTE All rights reserved 14


Thank you

You might also like