Monday, November 23, 2020

Create "Route Path - MPLS Tunnel - MPLS L2-VPN" CIENA 5160

Warning: It's just Personal Note !!!

Create Primary & Secondary Route Path: 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! RSVP PATH
!
JKT-CNA-5160> rsvp-te path create rsvp-path TO-CNA-JKT-PRI-NEW
JKT-CNA-5160*>rsvp-te path set rsvp-path TO-CNA-JKT-PRI-NEW index 1 ip 10.49.4.157
JKT-CNA-5160*>rsvp-te path set rsvp-path TO-CNA-JKT-PRI-NEW index 2 ip 10.49.3.149
JKT-CNA-5160*>rsvp-te path set rsvp-path TO-CNA-JKT-PRI-NEW index 3 ip 10.49.3.145
JKT-CNA-5160*>rsvp-te path set rsvp-path TO-CNA-JKT-PRI-NEW index 4 ip 10.49.1.17
JKT-CNA-5160*>rsvp-te path set rsvp-path TO-CNA-JKT-PRI-NEW index 5 ip 10.49.4.165

JKT-CNA-5160*>rsvp-te path create rsvp-path TO-CNA-JKT-SEC-NEW
JKT-CNA-5160*>rsvp-te path set rsvp-path TO-CNA-JKT-SEC-NEW index 1 ip 10.48.1.179 hop-type loose


Create MPLS Tunnel: 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! MPLS-TE/GMPLS-TP INGRESS/EGRESS TUNNELS
!
JKT-CNA-5160*>mpls tunnel create rsvp-ingress TUN-CNA-JKT-PRI-NEW dest-ip 10.48.1.179 setup-priority 7 explicit-tunnel-path TO-CNA-JKT-PRI-NEW

JKT-CNA-5160*>mpls tunnel create rsvp-ingress TUN-CNA-JKT-SEC-NEW dest-ip 10.48.1.179 setup-priority 7 explicit-tunnel-path TO-CNA-JKT-SEC-NEW backup-tunnel TUN-CNA-JKT-PRI-NEW


Create MPLS-L2VPN:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! L2-VPN STATIC and DYNAMIC PSEUDOWIREs
!
JKT-CNA-5160*>mpls l2-vpn create dynamic-vc VPLS-INET-21012004-JKT pw-id 21012004 peer 10.48.1.179 te-tunnel TUN-CNA-JKT-PRI-NEW mtu 9000 (If There's Existing MPLS L2-VPN Create Different dynamic-vc with Different Peer)
JKT-CNA-5160*>mpls l2-vpn set dynamic-vc VPLS-INET-21012004-JKT customer JKT-Customer (If There's Existing MPLS L2-VPN Create Different dynamic-vc but with Same customer)


Tag MPLS-L2VPN To Port :
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! NETWORK CONFIG:  vlan translation
!
JKT-CNA-5160*>port set port 7 acceptable-frame-type all
JKT-CNA-5160*>virtual-circuit ethernet set port 7 vlan-ethertype 9100 --> (For Making Port Become QinQ)


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! VIRTUAL-SWITCH CONFIG:
!
JKT-CNA-5160*>virtual-switch ethernet create vs VPLS-INET-21012004 mode vpls description INET ---> (QinQ)
JKT-CNA-5160*>virtual-switch ethernet create vs VPLS_INET-OAM_2004-21012004 mode vpls description INET-OAM-2004 ---> (Trunk)


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (If There's Existing VPLS, No Need Add New)
! VIRTUAL-SWITCH MPLS AC CONFIG:
!
JKT-CNA-5160*>virtual-switch ethernet add vs VPLS-INET-21012004 port 7 ---> (QinQ)
JKT-CNA-5160*>virtual-switch ethernet add vs VPLS-INET-21012004 port 7 vlan 2004 ingress-l2-transform pop egress-l2-transform push-8100.2004 ---> (Trunk)


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! VIRTUAL-SWITCH MPLS-VC ATTACHMENT:
!
JKT-CNA-5160*>virtual-switch ethernet attach mpls-vc VPLS-INET-21012004-JKT vs VPLS-INET-21012004-JKT


JKT-CNA-5160*>configuration save
JKT-CNA-5160>