Published 6月 03, 2018 by with 0 comment

JNCIP-SP Lab: Configuring LDP Signaling for VPLS


There are two kind of signaling for VPLS.
One is LDP, and other is BGP
This lab will show how to configure VPLS with LDP signaling


!!!!!The VMWare network setting is very important!!!!!

For VMware setting:
VMWare-1:



VMWare-2:



1. Setting interface IP address:
vMX-1:
set logical-systems R1 interfaces ge-0/0/1 unit 12 description TO_R2
set logical-systems R1 interfaces ge-0/0/1 unit 12 vlan-id 12
set logical-systems R1 interfaces ge-0/0/1 unit 12 family inet address 10.200.12.1/24
set logical-systems R1 interfaces ge-0/0/3 unit 45 description TO_R4_VPLS_NO_IPV4
set logical-systems R1 interfaces ge-0/0/3 unit 45 vlan-id 45
set logical-systems R1 interfaces lo0 unit 1 family inet address 10.200.1.1/32

set logical-systems R2 interfaces ge-0/0/1 unit 23 description TO_R3
set logical-systems R2 interfaces ge-0/0/1 unit 23 vlan-id 23
set logical-systems R2 interfaces ge-0/0/1 unit 23 family inet address 10.200.23.2/24
set logical-systems R2 interfaces ge-0/0/2 unit 12 description TO_R1
set logical-systems R2 interfaces ge-0/0/2 unit 12 vlan-id 12
set logical-systems R2 interfaces ge-0/0/2 unit 12 family inet address 10.200.12.2/24
set logical-systems R2 interfaces lo0 unit 2 family inet address 10.200.1.2/32

set logical-systems R4 interfaces ge-0/0/4 unit 45 description TO_R1
set logical-systems R4 interfaces ge-0/0/4 unit 45 vlan-id 45
set logical-systems R4 interfaces ge-0/0/4 unit 45 family inet address 172.16.45.4/24
set logical-systems R4 interfaces lo0 unit 4 family inet address 172.16.4.4/32

set interfaces ge-0/0/1 vlan-tagging
set interfaces ge-0/0/2 vlan-tagging
set interfaces ge-0/0/3 vlan-tagging
set interfaces ge-0/0/4 vlan-tagging

vMX-2:
set logical-systems R3 interfaces ge-0/0/3 unit 450 description TO_R5_VPLS_NO_IPV4
set logical-systems R3 interfaces ge-0/0/3 unit 450 vlan-id 450
set logical-systems R3 interfaces ge-0/0/2 unit 23 description TO_R2
set logical-systems R3 interfaces ge-0/0/2 unit 23 vlan-id 23
set logical-systems R3 interfaces ge-0/0/2 unit 23 family inet address 10.200.23.3/24
set logical-systems R3 interfaces lo0 unit 3 family inet address 10.200.1.3/32

set logical-systems R5 interfaces ge-0/0/4 unit 450 description TO_R3
set logical-systems R5 interfaces ge-0/0/4 unit 450 vlan-id 450
set logical-systems R5 interfaces ge-0/0/4 unit 450 family inet address 172.16.45.5/24
set logical-systems R5 interfaces lo0 unit 5 family inet address 172.16.5.5/32

set interfaces ge-0/0/2 vlan-tagging
set interfaces ge-0/0/3 vlan-tagging
set interfaces ge-0/0/4 vlan-tagging


2. IS-IS and OSPF setting:
vMX-1:
set logical-systems R1 interfaces ge-0/0/1 unit 12 family iso
set logical-systems R1 interfaces lo0 unit 1 family iso address 49.0001.0000.0000.0001.00
set logical-systems R1 protocols isis level 1 disable
set logical-systems R1 protocols isis interface ge-0/0/1.12
set logical-systems R1 protocols isis interface lo0.1

set logical-systems R2 interfaces ge-0/0/1 unit 23 family iso
set logical-systems R2 interfaces ge-0/0/2 unit 12 family iso
set logical-systems R2 interfaces lo0 unit 2 family iso address 49.0002.0000.0000.0002.00
set logical-systems R2 protocols isis level 1 disable
set logical-systems R2 protocols isis interface ge-0/0/1.23
set logical-systems R2 protocols isis interface ge-0/0/2.12
set logical-systems R2 protocols isis interface lo0.2

set logical-systems R4 protocols ospf area 0.0.0.0 interface all
set logical-systems R4 protocols ospf area 0.0.0.0 interface lo0.4 passive
set logical-systems R4 protocols ospf area 0.0.0.0 interface ge-0/0/4.45


vMX-2:
set logical-systems R3 interfaces ge-0/0/2 unit 23 family iso
set logical-systems R3 interfaces lo0 unit 3 family iso address 49.0003.0000.0000.0003.00
set logical-systems R3 protocols isis level 1 disable
set logical-systems R3 protocols isis interface ge-0/0/2.23
set logical-systems R3 protocols isis interface lo0.3

set logical-systems R5 protocols ospf area 0.0.0.0 interface all
set logical-systems R5 protocols ospf area 0.0.0.0 interface lo0.5 passive
set logical-systems R5 protocols ospf area 0.0.0.0 interface ge-0/0/4.450


3. BGP Setting:
R1,R2 and R3 are iBGP peering (AS 65001).
R2 is a RR.
vMX-1:
set logical-systems R1 protocols bgp group TO_RR type internal
set logical-systems R1 protocols bgp group TO_RR local-address 10.200.1.1
set logical-systems R1 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R1 routing-options autonomous-system 65001

set logical-systems R2 protocols bgp group RR type internal
set logical-systems R2 protocols bgp group RR local-address 10.200.1.2
set logical-systems R2 protocols bgp group RR cluster 10.200.1.2
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.1
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.3
set logical-systems R2 routing-options autonomous-system 65001


vMX-2:
set logical-systems R3 protocols bgp group TO_RR type internal
set logical-systems R3 protocols bgp group TO_RR local-address 10.200.1.3
set logical-systems R3 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R3 routing-options autonomous-system 65001


Check:
vMX-1:
[edit]
root@vMX-1# run show bgp summary logical-system R1   
Groups: 1 Peers: 1 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0              
                       0          0          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.200.1.2            65001          3          3       0       0          13 0/0/0/0              0/0/0/0

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show bgp summary logical-system R2   
Groups: 1 Peers: 2 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0              
                       0          0          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.200.1.1            65001          2          3       0       0          16 0/0/0/0              0/0/0/0
10.200.1.3            65001          3          2       0       0           8 0/0/0/0              0/0/0/0

[edit]
root@vMX-1#


vMX-2:
[edit]
root@vMX-2# run show bgp summary logical-system R3   
Groups: 1 Peers: 1 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0              
                       0          0          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.200.1.2            65001          2          4       0       0          46 0/0/0/0              0/0/0/0

[edit]
root@vMX-2#


4. MPLS and LSP setting
vMX-1:
set logical-systems R1 interfaces ge-0/0/1 unit 12 family mpls
set logical-systems R1 protocols rsvp interface ge-0/0/1.12
set logical-systems R1 protocols mpls interface ge-0/0/1.12
set logical-systems R1 protocols mpls label-switched-path R1_TO_R3 to 10.200.1.3
set logical-systems R1 protocols mpls label-switched-path R1_TO_R3 primary VIA_R2
set logical-systems R1 protocols mpls path VIA_R2 10.200.12.2 strict
set logical-systems R1 protocols mpls path VIA_R2 10.200.1.3 loose

set logical-systems R2 interfaces ge-0/0/1 unit 23 family mpls
set logical-systems R2 interfaces ge-0/0/2 unit 12 family mpls
set logical-systems R2 protocols rsvp interface all
set logical-systems R2 protocols mpls interface all


vMX-2:
set logical-systems R3 interfaces ge-0/0/2 unit 23 family mpls
set logical-systems R3 protocols mpls label-switched-path R3_TO_R1 to 10.200.1.1
set logical-systems R3 protocols mpls label-switched-path R3_TO_R1 primary VIA_R2
set logical-systems R3 protocols mpls path VIA_R2 10.200.23.2 strict
set logical-systems R3 protocols mpls path VIA_R2 10.200.1.1 loose
set logical-systems R3 protocols mpls interface ge-0/0/2.23
set logical-systems R3 protocols rsvp interface ge-0/0/2.23


Check:
vMX-1:
[edit]
root@vMX-1# run show mpls lsp logical-system R1   
Ingress LSP: 1 sessions
To              From            State Rt P     ActivePath       LSPname
10.200.1.3      10.200.1.1      Up     0 *     VIA_R2           R1_TO_R3
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions
To              From            State   Rt Style Labelin Labelout LSPname
10.200.1.1      10.200.1.3      Up       0  1 FF       3        - R3_TO_R1
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

[edit]
root@vMX-1#


vMX-2:
[edit]
root@vMX-2# run show mpls lsp logical-system R3   
Ingress LSP: 1 sessions
To              From            State Rt P     ActivePath       LSPname
10.200.1.1      10.200.1.3      Up     0 *     VIA_R2           R3_TO_R1
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions
To              From            State   Rt Style Labelin Labelout LSPname
10.200.1.3      10.200.1.1      Up       0  1 FF       3        - R1_TO_R3
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

[edit]
root@vMX-2# 


5. Setting LDP Signaling for VPLS
For VPLS setting:
The interface need to setup encapsulation and family vpls.
BGP family address need to use l2vpn signaling.
R1 and R3 need to enable LDP for loopback interface.
R1 and R4, the VLAN ID is 45 but R3 and R5, the VLAN ID is 450.
So we need to use command "vlan-id 45" to rewrite VLAN-ID.

vMX-1:
set interfaces ge-0/0/3 encapsulation flexible-ethernet-services
set logical-systems R1 interfaces ge-0/0/3 unit 45 encapsulation vlan-vpls
set logical-systems R1 interfaces ge-0/0/3 unit 45 family vpls
set logical-systems R1 protocols bgp group TO_RR family l2vpn signaling
set logical-systems R1 protocols ldp interface lo0.1
set logical-systems R1 routing-instances VPLS_R4 instance-type vpls
set logical-systems R1 routing-instances VPLS_R4 interface ge-0/0/3.45
set logical-systems R1 routing-instances VPLS_R4 protocols vpls no-tunnel-services
set logical-systems R1 routing-instances VPLS_R4 protocols vpls vpls-id 1
set logical-systems R1 routing-instances VPLS_R4 protocols vpls neighbor 10.200.1.3

set logical-systems R2 protocols bgp group RR family l2vpn signaling


vMX-2:
set interfaces ge-0/0/3 encapsulation flexible-ethernet-services
set logical-systems R3 interfaces ge-0/0/3 unit 450 encapsulation vlan-vpls
set logical-systems R3 interfaces ge-0/0/3 unit 450 family vpls
set logical-systems R3 protocols bgp group TO_RR family l2vpn signaling
set logical-systems R3 protocols ldp interface lo0.3
set logical-systems R3 routing-instances VPLS_R5 instance-type vpls
set logical-systems R3 routing-instances VPLS_R5 vlan-id 45
set logical-systems R3 routing-instances VPLS_R5 interface ge-0/0/3.450
set logical-systems R3 routing-instances VPLS_R5 protocols vpls no-tunnel-services
set logical-systems R3 routing-instances VPLS_R5 protocols vpls vpls-id 1
set logical-systems R3 routing-instances VPLS_R5 protocols vpls neighbor 10.200.1.1


Check:
vMX-1:
[edit]
root@vMX-1# run show vpls connections logical-system R1
Layer-2 VPN connections:

Legend for connection status (St)  
EI -- encapsulation invalid      NC -- interface encapsulation not CCC/TCC/VPLS
EM -- encapsulation mismatch     WE -- interface and instance encaps not same
VC-Dn -- Virtual circuit down    NP -- interface hardware not present
CM -- control-word mismatch      -> -- only outbound connection is up
CN -- circuit not provisioned    <- --="" br="" connection="" inbound="" is="" only="" up="">OR -- out of range               Up -- operational
OL -- no outgoing label          Dn -- down                     
LD -- local site signaled down   CF -- call admission control failure     
RD -- remote site signaled down  SC -- local and remote site ID collision
LN -- local site not designated  LM -- local site ID not minimum designated
RN -- remote site not designated RM -- remote site ID not minimum designated
XX -- unknown connection status  IL -- no incoming label
MM -- MTU mismatch               MI -- Mesh-Group ID not available
BK -- Backup connection          ST -- Standby connection
PF -- Profile parse failure      PB -- Profile busy
RS -- remote site standby        SN -- Static Neighbor
LB -- Local site not best-site   RB -- Remote site not best-site
VM -- VLAN ID mismatch

Legend for interface status
Up -- operational                      
Dn -- down

Instance: VPLS_R4
  VPLS-id: 1
    Neighbor                  Type  St     Time last up          # Up trans
    10.200.1.3(vpls-id 1)     rmt   Up     Sep 25 01:20:09 2015           1
      Remote PE: 10.200.1.3, Negotiated control-word: No
      Incoming label: 262145, Outgoing label: 262145
      Negotiated PW status TLV: No
      Local interface: lsi.17825792, Status: Up, Encapsulation: ETHERNET
        Description: Intf - vpls VPLS_R4 neighbor 10.200.1.3 vpls-id 1
      Flow Label Transmit: No, Flow Label Receive: No

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show ospf neighbor logical-system R4   
Address          Interface              State     ID               Pri  Dead
172.16.45.5      ge-0/0/4.45            Full      172.16.5.5       128    37

[edit]
root@vMX-1# 


vMX-2:
[edit]
root@vMX-2# run show vpls mac-table logical-system R3                      

MAC flags (S -static MAC, D -dynamic MAC, L -locally learned, C -Control MAC
           SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC)

Logical system   : R3
Routing instance : VPLS_R5
 Bridging domain : __VPLS_R5__, VLAN : 45
   MAC                 MAC      Logical          NH     RTR
   address             flags    interface        Index  ID
   00:05:86:71:b5:04   D        lsi.17826048   
   00:05:86:71:d4:04   D        ge-0/0/3.450   

[edit]
root@vMX-2#

[edit]
root@vMX-2# run traceroute 172.16.4.4 source 172.16.5.5 logical-system R5   
traceroute to 172.16.4.4 (172.16.4.4) from 172.16.5.5, 30 hops max, 40 byte packets
 1  172.16.4.4 (172.16.4.4)  5.452 ms  3.174 ms  2.701 ms

[edit]
root@vMX-2#


Tracing protocol VPLS:

set logical-systems R1 routing-instances VPLS_R4 protocols vpls traceoptions file VPLS
set logical-systems R1 routing-instances VPLS_R4 protocols vpls traceoptions flag all

run clear vpls statistics instance VPLS_R4 logical-system R1

[edit]
root@vMX-1# run show log R1/VPLS   
Sep 25 01:32:00 trace_on: Tracing to "/var/log/R1/VPLS" started
Sep 25 01:32:00.751802 vc_iflchange  intf vt/lsi:10.200.1.3-1 (index 329) change flags 0x0
Sep 25 01:32:00.751835 [vc_intf_params_change] Intf vt/lsi:10.200.1.3-1: NO Intf Params CHANGE
Sep 25 01:32:00.751967 vc_iflchange  intf ge-0/0/3.45 (index 351) change flags 0x0
Sep 25 01:32:00.751976 [vc_intf_params_change] Intf ge-0/0/3.45: NO Intf Params CHANGE
Sep 25 01:32:00.752212 [vc_ifachange] intf lsi.17825792: new status intf Up (old status intf Up)
Sep 25 01:32:00.752221 [vc_ifachange] Triggering VC status update timer for intf lsi.17825792
Sep 25 01:32:00.752224        Triggering VC status update timer for intf vt/lsi:10.200.1.3-1
Sep 25 01:32:00.753642 [vc_ifachange] intf ge-0/0/3.45: new status intf Up (old status intf Up)
Sep 25 01:32:00.795211 [vc_ifachange] Triggering VC status update timer for intf ge-0/0/3.45
Sep 25 01:32:00.795221        Triggering VC status update timer for intf ge-0/0/3.45
Sep 25 01:32:00.795238 [vc_ifachange] ge-0/0/3.45 is not in any vc yet
Sep 25 01:32:00.795249 [l2ckt_cfg_intf_count] local vpls interface: ge-0/0/3.45 status changed to UP belonging to instance VPLS_R4 up count = 1 stdby up count = 0 total count = 1 encapsType = 40
Sep 25 01:32:00.795492 [vc_intf_vc_status_update] Recomputing the status of the VC for interface: vt/lsi:10.200.1.3-1, flags 0x0, 0x2885180
Sep 25 01:32:00.795502       interface vt/lsi:10.200.1.3-1: vc status = intf Up, intf_up = TRUE
Sep 25 01:32:00.795506       interface vt/lsi:10.200.1.3-1: UP adv_down = 0 : vc_down = 0, ccc_up = 1
Sep 25 01:32:00.795510       interface vt/lsi:10.200.1.3-1: VC PRESENT
Sep 25 01:32:00.795514       interface vt/lsi:10.200.1.3-1: VC PRESENT vc_nh_unusable = 0, vc_stby_nh_unusable = 0
Sep 25 01:32:00.795518       interface vt/lsi:10.200.1.3-1: Done Computing adv, vc down and ccc_up status adv_down = 0, vc_down = 0, ccc_up = 1
Sep 25 01:32:00.795523 [vc_intf_vc_status_update] Done Recomputing the status of the VC for interface vt/lsi:10.200.1.3-1: flags 0x0, 0x2885180
Sep 25 01:32:00.795907 [l2ckt_handle_local_adv_rt_status_change] VC-interface vt/lsi:10.200.1.3-1 transport LSP state transition to UP
Sep 25 01:32:00.795938 [l2ckt_vc_adv_recv] Intf vt/lsi:10.200.1.3-1 (VC-ID 1) updated from signalled info: label 262145, encaps ETHERNET, cw-bit 0, mtu 1500, cb-size 0,  TDM payload size 0 (bytes), TDM bitrate 0 (xDS0) no vlan-id,flow-label-tx 0, flow-lablel-rx 0,
Sep 25 01:32:00.795963 Route flash received from mpls.0 : New policy
Sep 25 01:32:00.795968        Triggering VC status update timer for intf vt/lsi:10.200.1.3-1
Sep 25 01:32:00.811419 [vc_intf_vc_status_update] Recomputing the status of the VC for interface: ge-0/0/3.45, flags 0x0, 0x880180
Sep 25 01:32:00.811437       interface ge-0/0/3.45: vc status = intf Up, intf_up = TRUE
Sep 25 01:32:00.811442       interface ge-0/0/3.45: Local vpls adv_down = 0, vc_down = 0, ccc_up = 1
Sep 25 01:32:00.811446       interface ge-0/0/3.45: Done Computing adv, vc down and ccc_up status adv_down = 0, vc_down = 0, ccc_up = 1
Sep 25 01:32:00.811453 [vc_intf_vc_status_update] Done Recomputing the status of the VC for interface ge-0/0/3.45: flags 0x0, 0x880180
Sep 25 01:32:00.862614 [vc_intf_vc_status_update] Recomputing the status of the VC for interface: vt/lsi:10.200.1.3-1, flags 0x0, 0x2885180
Sep 25 01:32:00.862642       interface vt/lsi:10.200.1.3-1: vc status = intf Up, intf_up = TRUE
Sep 25 01:32:00.862647       interface vt/lsi:10.200.1.3-1: UP adv_down = 0 : vc_down = 0, ccc_up = 1
Sep 25 01:32:00.862651       interface vt/lsi:10.200.1.3-1: VC PRESENT
Sep 25 01:32:00.862657       interface vt/lsi:10.200.1.3-1: VC PRESENT vc_nh_unusable = 0, vc_stby_nh_unusable = 0
Sep 25 01:32:00.862661       interface vt/lsi:10.200.1.3-1: Done Computing adv, vc down and ccc_up status adv_down = 0, vc_down = 0, ccc_up = 1
Sep 25 01:32:00.862669 [vc_intf_vc_status_update] Done Recomputing the status of the VC for interface vt/lsi:10.200.1.3-1: flags 0x0, 0x2885180
Sep 25 01:32:05.148484  [l2ckt_intf_change_process] Change processing for intf vt/lsi:10.200.1.3-1: vc flags 0x0 0x2885100 l2ckt flags 0x0 0x8000000
Sep 25 01:32:05.148544 l2ckt_intf_create_mib2d_notify: Not a TDM/ATM VC
Sep 25 01:32:05.148553 [l2ckt_vc_get_intfs_and_labels] mtu mismatch check passed.
Sep 25 01:32:05.148562 Evaluated local PW status code 0x0 for intf vt/lsi:10.200.1.3-1 (nbr 10.200.1.3) belonging to instance VPLS_R4
Sep 25 01:32:05.148567 [l2ckt_intf_change_process] Evaluating VT/LSI Intf vt/lsi:10.200.1.3-1: belonging to instance VPLS_R4, vt/lsi condition is met
Sep 25 01:32:05.148572 vt/lsi:10.200.1.3-1 OP state transition to UP

[edit]
root@vMX-1#


Final configuration:
vMX-1:
set system host-name vMX-1
set logical-systems R1 interfaces ge-0/0/1 unit 12 description TO_R2
set logical-systems R1 interfaces ge-0/0/1 unit 12 vlan-id 12
set logical-systems R1 interfaces ge-0/0/1 unit 12 family inet address 10.200.12.1/24
set logical-systems R1 interfaces ge-0/0/1 unit 12 family iso
set logical-systems R1 interfaces ge-0/0/1 unit 12 family mpls
set logical-systems R1 interfaces ge-0/0/3 unit 45 description TO_R4_VPLS_NO_IPV4
set logical-systems R1 interfaces ge-0/0/3 unit 45 encapsulation vlan-vpls
set logical-systems R1 interfaces ge-0/0/3 unit 45 vlan-id 45
set logical-systems R1 interfaces ge-0/0/3 unit 45 family vpls
set logical-systems R1 interfaces lo0 unit 1 family inet address 10.200.1.1/32
set logical-systems R1 interfaces lo0 unit 1 family iso address 49.0001.0000.0000.0001.00
set logical-systems R1 protocols rsvp interface ge-0/0/1.12
set logical-systems R1 protocols mpls label-switched-path R1_TO_R3 to 10.200.1.3
set logical-systems R1 protocols mpls label-switched-path R1_TO_R3 primary VIA_R2
set logical-systems R1 protocols mpls path VIA_R2 10.200.12.2 strict
set logical-systems R1 protocols mpls path VIA_R2 10.200.1.3 loose
set logical-systems R1 protocols mpls interface ge-0/0/1.12
set logical-systems R1 protocols bgp group TO_RR type internal
set logical-systems R1 protocols bgp group TO_RR local-address 10.200.1.1
set logical-systems R1 protocols bgp group TO_RR family l2vpn signaling
set logical-systems R1 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R1 protocols isis level 1 disable
set logical-systems R1 protocols isis interface ge-0/0/1.12
set logical-systems R1 protocols isis interface lo0.1
set logical-systems R1 protocols ldp interface lo0.1
set logical-systems R1 routing-instances VPLS_R4 instance-type vpls
set logical-systems R1 routing-instances VPLS_R4 interface ge-0/0/3.45
set logical-systems R1 routing-instances VPLS_R4 protocols vpls no-tunnel-services
set logical-systems R1 routing-instances VPLS_R4 protocols vpls vpls-id 1
set logical-systems R1 routing-instances VPLS_R4 protocols vpls neighbor 10.200.1.3
set logical-systems R1 routing-options autonomous-system 65001
set logical-systems R2 interfaces ge-0/0/1 unit 23 description TO_R3
set logical-systems R2 interfaces ge-0/0/1 unit 23 vlan-id 23
set logical-systems R2 interfaces ge-0/0/1 unit 23 family inet address 10.200.23.2/24
set logical-systems R2 interfaces ge-0/0/1 unit 23 family iso
set logical-systems R2 interfaces ge-0/0/1 unit 23 family mpls
set logical-systems R2 interfaces ge-0/0/2 unit 12 description TO_R1
set logical-systems R2 interfaces ge-0/0/2 unit 12 vlan-id 12
set logical-systems R2 interfaces ge-0/0/2 unit 12 family inet address 10.200.12.2/24
set logical-systems R2 interfaces ge-0/0/2 unit 12 family iso
set logical-systems R2 interfaces ge-0/0/2 unit 12 family mpls
set logical-systems R2 interfaces lo0 unit 2 family inet address 10.200.1.2/32
set logical-systems R2 interfaces lo0 unit 2 family iso address 49.0002.0000.0000.0002.00
set logical-systems R2 protocols rsvp interface all
set logical-systems R2 protocols mpls interface all
set logical-systems R2 protocols bgp group RR type internal
set logical-systems R2 protocols bgp group RR local-address 10.200.1.2
set logical-systems R2 protocols bgp group RR family l2vpn signaling
set logical-systems R2 protocols bgp group RR cluster 10.200.1.2
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.1
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.3
set logical-systems R2 protocols isis level 1 disable
set logical-systems R2 protocols isis interface ge-0/0/1.23
set logical-systems R2 protocols isis interface ge-0/0/2.12
set logical-systems R2 protocols isis interface lo0.2
set logical-systems R2 routing-options autonomous-system 65001
set logical-systems R4 interfaces ge-0/0/4 unit 45 description TO_R1
set logical-systems R4 interfaces ge-0/0/4 unit 45 vlan-id 45
set logical-systems R4 interfaces ge-0/0/4 unit 45 family inet address 172.16.45.4/24
set logical-systems R4 interfaces lo0 unit 4 family inet address 172.16.4.4/32
set logical-systems R4 protocols ospf area 0.0.0.0 interface all
set logical-systems R4 protocols ospf area 0.0.0.0 interface lo0.4 passive
set logical-systems R4 protocols ospf area 0.0.0.0 interface ge-0/0/4.45
set interfaces ge-0/0/1 vlan-tagging
set interfaces ge-0/0/2 vlan-tagging
set interfaces ge-0/0/3 vlan-tagging
set interfaces ge-0/0/3 encapsulation flexible-ethernet-services
set interfaces ge-0/0/4 vlan-tagging


vMX-2:
set system host-name vMX-2
set logical-systems R3 interfaces ge-0/0/2 unit 23 description TO_R2
set logical-systems R3 interfaces ge-0/0/2 unit 23 vlan-id 23
set logical-systems R3 interfaces ge-0/0/2 unit 23 family inet address 10.200.23.3/24
set logical-systems R3 interfaces ge-0/0/2 unit 23 family iso
set logical-systems R3 interfaces ge-0/0/2 unit 23 family mpls
set logical-systems R3 interfaces ge-0/0/3 unit 450 description TO_R5_VPLS_NO_IPV4
set logical-systems R3 interfaces ge-0/0/3 unit 450 encapsulation vlan-vpls
set logical-systems R3 interfaces ge-0/0/3 unit 450 vlan-id 450
set logical-systems R3 interfaces ge-0/0/3 unit 450 family vpls
set logical-systems R3 interfaces lo0 unit 3 family inet address 10.200.1.3/32
set logical-systems R3 interfaces lo0 unit 3 family iso address 49.0003.0000.0000.0003.00
set logical-systems R3 protocols rsvp interface ge-0/0/2.23
set logical-systems R3 protocols mpls label-switched-path R3_TO_R1 to 10.200.1.1
set logical-systems R3 protocols mpls label-switched-path R3_TO_R1 primary VIA_R2
set logical-systems R3 protocols mpls path VIA_R2 10.200.23.2 strict
set logical-systems R3 protocols mpls path VIA_R2 10.200.1.1 loose
set logical-systems R3 protocols mpls interface ge-0/0/2.23
set logical-systems R3 protocols bgp group TO_RR type internal
set logical-systems R3 protocols bgp group TO_RR local-address 10.200.1.3
set logical-systems R3 protocols bgp group TO_RR family l2vpn signaling
set logical-systems R3 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R3 protocols isis level 1 disable
set logical-systems R3 protocols isis interface ge-0/0/2.23
set logical-systems R3 protocols isis interface lo0.3
set logical-systems R3 protocols ldp interface lo0.3
set logical-systems R3 routing-instances VPLS_R5 instance-type vpls
set logical-systems R3 routing-instances VPLS_R5 vlan-id 45
set logical-systems R3 routing-instances VPLS_R5 interface ge-0/0/3.450
set logical-systems R3 routing-instances VPLS_R5 protocols vpls no-tunnel-services
set logical-systems R3 routing-instances VPLS_R5 protocols vpls vpls-id 1
set logical-systems R3 routing-instances VPLS_R5 protocols vpls neighbor 10.200.1.1
set logical-systems R3 routing-options autonomous-system 65001
set logical-systems R5 interfaces ge-0/0/4 unit 450 description TO_R3
set logical-systems R5 interfaces ge-0/0/4 unit 450 vlan-id 450
set logical-systems R5 interfaces ge-0/0/4 unit 450 family inet address 172.16.45.5/24
set logical-systems R5 interfaces lo0 unit 5 family inet address 172.16.5.5/32
set logical-systems R5 protocols ospf area 0.0.0.0 interface all
set logical-systems R5 protocols ospf area 0.0.0.0 interface lo0.5 passive
set logical-systems R5 protocols ospf area 0.0.0.0 interface ge-0/0/4.450
set interfaces ge-0/0/2 vlan-tagging
set interfaces ge-0/0/3 vlan-tagging
set interfaces ge-0/0/3 encapsulation flexible-ethernet-services
set interfaces ge-0/0/4 vlan-tagging


Reference:
1. Junos VPLS Configuration Guide
JNCIS-SP-Part3_2013-05-15.pdf (Chapter 17: VPLS Configuration)

2. JNCIP-SP Lab Configuring BGP Signaling for VPLS
http://juilin77.blogspot.com/2018/06/jncip-sp-lab-configuring-bgp-signaling.html

3. Configuring LDP Signaling for VPLS
https://www.juniper.net/documentation/en_US/release-independent/nce/topics/task/configuration/vpls-ldp-signaling-solutions.html


最初發表 / 最後更新: 2015.09.25 / 2018.06.03

0 comments:

張貼留言