Update:

First time ever I met Yakov Rekhter!!!

MTU made me cry :-)
JUNOS Technology‎ > ‎

JUNOS H-VPLS

JUNOS H-VPLS BGP-LDP VPLS internetworking:

This scenario covers the LDP-BGP VPLS internetowkring in multihoming deployment configuration and verification. When Customer has two different type of VPLS deployment then it helps in integrating it. Another example is when ISP-A is running the BGP as VPLS and ISP-B is running the LDP VPLS and they are merging up their network then this technique will help in achieving internetworking.

H-VPLS also helps in reducing the number of full mesh in LDP VPLS domain, but for that you will have to use "local-switching" configuration knob under VPLS meshgroup on BGP-LDP Internetworking PE, in our case it will be R3 and R6. In our scenario we dont need any local switching as I am using only one LDP-VPLS PE. If you are using full mesh of LDP VPLS then do not use local-switching.

Setup is built with logical router, R3 and R6 are acting as a internetworking PE where they have BGP as well as LDP VPLS termination.

 

Topology:

 




LDP VPLS only PE: R4

BGP VPLS Only PE: R2

BGP-LDP VPLS PE:  R3 & R6

 

In multihoming scenario of BGP-LDP VPLS, LDP pseudowire will be down in show outputs of backup PE (R6). Whereas on only LDP VPLS PE (R4) pseudowire to the Primary and Backup BGP-LDP PE will be in upstate.

 

MAC address of CE interfaces to verify the MAC learning on end PEs as well as internetworking PEs.

{master}[edit logical-systems]

lab@Vienna_RE0# run show interfaces ge-1/1/2 | match address                      

  Current address: 28:c0:da:fb:59:9e, Hardware address: 28:c0:da:fb:59:9e

      Addresses, Flags: Is-Default Is-Preferred Is-Primary

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show interfaces ge-1/1/4 | match address

  Current address: 28:c0:da:fb:59:a0, Hardware address: 28:c0:da:fb:59:a0

      Addresses, Flags: Is-Default Is-Preferred Is-Primary

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show interfaces ge-1/1/5 | match address

  Current address: 28:c0:da:fb:59:a1, Hardware address: 28:c0:da:fb:59:a1

      Addresses, Flags: Is-Default Is-Preferred Is-Primary

 

{master}[edit logical-systems]

lab@Vienna_RE0#

 

OSPF between all the CEs are up and running:

{master}[edit]

lab@Vienna_RE0# run show ospf neighbor logical-system r1             

Address          Interface              State     ID               Pri  Dead

  1. 192.168.10.4     ge-1/1/2.0             Full      192.168.10.4     128 33

  2. 192.168.10.2     ge-1/1/2.0             Full      192.168.10.2     128 31

 

{master}[edit]

lab@Vienna_RE0# run show ospf neighbor logical-system r5

Address          Interface              State     ID               Pri  Dead

  1. 192.168.10.4     ge-1/1/4.0             Full      192.168.10.4     128 34

  2. 192.168.10.1     ge-1/1/4.0             Full      192.168.10.1     128 34

 

{master}[edit]

lab@Vienna_RE0# run show ospf neighbor logical-system r7

 

{master}[edit]

lab@Vienna_RE0# run show ospf neighbor logical-system r8

Address          Interface              State     ID               Pri  Dead

  1. 192.168.10.1     ge-1/1/3.0             Full      192.168.10.1     128 36

  2. 192.168.10.2     ge-1/1/3.0             Full      192.168.10.2     128 34

 

{master}[edit]

lab@Vienna_RE0#

 

In steady state condition, R3 is primary router and has all PSW terminating on it. Traffic will flow from R1(CE1)-R2-R3-R4-R5(CE2).

 

{master}[edit logical-systems]

lab@Vienna_RE0# top show interfaces ge-1/0/4 

encapsulation ethernet-vpls;

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r2

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: vpls

  Local site: r2-vpls (1)

    connection-site           Type St     Time last up          # Up trans

    2                         rmt   Up Sep 26 10:01:47 2011           6

      Remote PE: 192.168.1.3, Negotiated control-word: No

      Incoming label: 800001, Outgoing label: 800256

      Local interface: vt-1/1/10.51380224, Status: Up, Encapsulation: VPLS

        Description: Intf - vpls vpls local site 1 remote site 2

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r3

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: h-vpls-r3

  BGP-VPLS State

  Local site: r3-vpls (2)

    connection-site           Type St     Time last up          # Up trans

    1                         rmt   Up Sep 26 10:02:21 2011           1

      Remote PE: 192.168.1.2, Negotiated control-word: No

      Incoming label: 800256, Outgoing label: 800001

      Local interface: vt-1/0/10.101712641, Status: Up, Encapsulation: VPLS

        Description: Intf - vpls h-vpls-r3 local site 2 remote site 1

    2                         rmt   RN  

  LDP-VPLS State

  VPLS-id: 100

  Mesh-group connections: h-vpls

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.4(vpls-id 100)  rmt Up     Sep 26 10:02:17 2011           1

      Remote PE: 192.168.1.4, Negotiated control-word: No

      Incoming label: 800000, Outgoing label: 800000

      Negotiated PW status TLV: No

      Local interface: vt-1/1/10.101712640, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls h-vpls-r3 neighbor 192.168.1.4 vpls-id 100

 

On R6 all VPLS connections are in LN state.

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r6

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: h-vpls-r6

  BGP-VPLS State

  Local site: r6-vpls (2)

    connection-site           Type St     Time last up          # Up trans

    1                         rmt   LN  

    2                         rmt   LN  

  LDP-VPLS State

  VPLS-id: 100

  Mesh-group connections: h-vpls-r6

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.4(vpls-id 100)  rmt LN  

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r4

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: ldp-vpls

  VPLS-id: 100

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.3(vpls-id 100)  rmt Up     Sep 26 10:02:14 2011           1

      Remote PE: 192.168.1.3, Negotiated control-word: No

      Incoming label: 800000, Outgoing label: 800000

      Negotiated PW status TLV: No

      Local interface: vt-1/1/10.34603012, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls ldp-vpls neighbor 192.168.1.3 vpls-id 100

    192.168.1.6(vpls-id 100)  rmt Up     Sep 26 10:00:12 2011           1

      Remote PE: 192.168.1.6, Negotiated control-word: No

      Incoming label: 800001, Outgoing label: 262145

      Negotiated PW status TLV: No

      Local interface: vt-1/0/10.34603011, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls ldp-vpls neighbor 192.168.1.6 vpls-id 100

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls mac-table logical-system r4

 

MAC flags (S -static MAC, D -dynamic MAC,

           SE -Statistics enabled, NM -Non configured MAC)

 

Logical system   : r4

Routing instance : ldp-vpls

Bridging domain : __ldp-vpls__, VLAN : NA

   MAC                 MAC      Logical

   address             flags    interface

   28:c0:da:fb:59:9e   D,SE vt-1/1/10.34603012  

   28:c0:da:fb:59:9f   D,SE vt-1/1/10.34603012  

   28:c0:da:fb:59:a0   D,SE ge-1/0/4.0          

   28:c0:da:fb:59:a1   D,SE vt-1/0/10.34603011  

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls mac-table logical-system r3

 

MAC flags (S -static MAC, D -dynamic MAC,

           SE -Statistics enabled, NM -Non configured MAC)

 

Logical system   : r3

Routing instance : h-vpls-r3

Bridging domain : __h-vpls-r3__, VLAN : NA

   MAC                 MAC      Logical

   address             flags    interface

   28:c0:da:fb:59:9e   D,SE vt-1/0/10.101712641 

   28:c0:da:fb:59:9f   D,SE ge-1/0/3.0          

   28:c0:da:fb:59:a0   D,SE vt-1/1/10.101712640 

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls mac-table logical-system r6

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls mac-table logical-system r2

 

MAC flags (S -static MAC, D -dynamic MAC,

           SE -Statistics enabled, NM -Non configured MAC)

 

Logical system   : r2

Routing instance : vpls

Bridging domain : __vpls__, VLAN : NA

   MAC                 MAC      Logical

   address             flags    interface

   28:c0:da:fb:59:9e   D,SE ge-1/0/2.0          

   28:c0:da:fb:59:9f   D,SE vt-1/1/10.51380224  

   28:c0:da:fb:59:a0   D,SE vt-1/1/10.51380224 

 

Creating failure on R3 so all traffic will shift to R6. R6 will have all VPLS connection and PSW in up state.

 

 

{master}[edit logical-systems]

lab@Vienna_RE0# deactivate r3 interfaces

 

{master}[edit logical-systems]

lab@Vienna_RE0# commit

re0:

configuration check succeeds

re1:

commit complete

re0:

commit complete

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r4

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: ldp-vpls

  VPLS-id: 100

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.3(vpls-id 100)  rmt Up     Sep 26 10:02:14 2011           1

      Remote PE: 192.168.1.3, Negotiated control-word: No

      Incoming label: 800000, Outgoing label: 800000

      Negotiated PW status TLV: No

      Local interface: vt-1/1/10.34603012, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls ldp-vpls neighbor 192.168.1.3 vpls-id 100

    192.168.1.6(vpls-id 100)  rmt Up     Sep 26 10:00:12 2011           1

      Remote PE: 192.168.1.6, Negotiated control-word: No

      Incoming label: 800001, Outgoing label: 262145

      Negotiated PW status TLV: No

      Local interface: vt-1/0/10.34603011, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls ldp-vpls neighbor 192.168.1.6 vpls-id 100

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r3

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: h-vpls-r3

  BGP-VPLS State

  Local site: r3-vpls (2)

  LDP-VPLS State

  VPLS-id: 100

  Mesh-group connections: h-vpls

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.4(vpls-id 100)  rmt OL  

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r6

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: h-vpls-r6

  BGP-VPLS State

  Local site: r6-vpls (2)

    connection-site           Type St     Time last up          # Up trans

    1                         rmt   LN  

    2                         rmt   LN  

  LDP-VPLS State

  VPLS-id: 100

  Mesh-group connections: h-vpls-r6

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.4(vpls-id 100)  rmt LN  

 

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r4

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: ldp-vpls

  VPLS-id: 100

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.3(vpls-id 100)  rmt OL  

    192.168.1.6(vpls-id 100)  rmt Up     Sep 26 10:00:12 2011           1

      Remote PE: 192.168.1.6, Negotiated control-word: No

      Incoming label: 800001, Outgoing label: 262145

      Negotiated PW status TLV: No

      Local interface: vt-1/0/10.34603011, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls ldp-vpls neighbor 192.168.1.6 vpls-id 100

 

All VPLS connection came up on R6.

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r6

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: h-vpls-r6

  BGP-VPLS State

  Local site: r6-vpls (2)

    connection-site           Type St     Time last up          # Up trans

    1                         rmt   Up Sep 26 10:04:59 2011           1

      Remote PE: 192.168.1.2, Negotiated control-word: No

      Incoming label: 262401, Outgoing label: 800001

      Local interface: lsi.17826816, Status: Up, Encapsulation: VPLS

        Description: Intf - vpls h-vpls-r6 local site 2 remote site 1

  LDP-VPLS State

  VPLS-id: 100

  Mesh-group connections: h-vpls-r6

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.4(vpls-id 100)  rmt Up     Sep 26 10:04:59 2011           1

      Remote PE: 192.168.1.4, Negotiated control-word: No

      Incoming label: 262145, Outgoing label: 800001

      Negotiated PW status TLV: No

      Local interface: lsi.17826817, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls h-vpls-r6 neighbor 192.168.1.4 vpls-id 100

                                       

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r4

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: ldp-vpls

  VPLS-id: 100

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.3(vpls-id 100)  rmt OL  

    192.168.1.6(vpls-id 100)  rmt Up     Sep 26 10:00:12 2011           1

      Remote PE: 192.168.1.6, Negotiated control-word: No

      Incoming label: 800001, Outgoing label: 262145

      Negotiated PW status TLV: No

      Local interface: vt-1/0/10.34603011, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls ldp-vpls neighbor 192.168.1.6 vpls-id 100

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r2

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: vpls

  Local site: r2-vpls (1)

    connection-site           Type St     Time last up          # Up trans

    2                         rmt   Up Sep 26 10:04:59 2011           7

      Remote PE: 192.168.1.6, Negotiated control-word: No

      Incoming label: 800001, Outgoing label: 262401

      Local interface: vt-1/1/10.51380224, Status: Up, Encapsulation: VPLS

        Description: Intf - vpls vpls local site 1 remote site 2

 

{master}[edit logical-systems]

lab@Vienna_RE0#

 

{master}[edit logical-systems]

lab@Vienna_RE0# # R6 has PSW up with r2 and r4

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r2

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: vpls

  Local site: r2-vpls (1)

    connection-site           Type St     Time last up          # Up trans

    2                         rmt   Up Sep 26 10:04:59 2011           7

      Remote PE: 192.168.1.6, Negotiated control-word: No

      Incoming label: 800001, Outgoing label: 262401

      Local interface: vt-1/1/10.51380224, Status: Up, Encapsulation: VPLS

        Description: Intf - vpls vpls local site 1 remote site 2

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r3

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: h-vpls-r3

  BGP-VPLS State

  Local site: r3-vpls (2)

  LDP-VPLS State

  VPLS-id: 100

  Mesh-group connections: h-vpls

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.4(vpls-id 100)  rmt OL  

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r6

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: h-vpls-r6

  BGP-VPLS State

  Local site: r6-vpls (2)

    connection-site           Type St     Time last up          # Up trans

    1                         rmt   Up Sep 26 10:04:59 2011           1

      Remote PE: 192.168.1.2, Negotiated control-word: No

      Incoming label: 262401, Outgoing label: 800001

      Local interface: lsi.17826816, Status: Up, Encapsulation: VPLS

        Description: Intf - vpls h-vpls-r6 local site 2 remote site 1

  LDP-VPLS State

  VPLS-id: 100

  Mesh-group connections: h-vpls-r6

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.4(vpls-id 100)  rmt Up     Sep 26 10:04:59 2011           1

      Remote PE: 192.168.1.4, Negotiated control-word: No

      Incoming label: 262145, Outgoing label: 800001

      Negotiated PW status TLV: No

      Local interface: lsi.17826817, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls h-vpls-r6 neighbor 192.168.1.4 vpls-id 100

                                       

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r4

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: ldp-vpls

  VPLS-id: 100

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.3(vpls-id 100)  rmt OL  

    192.168.1.6(vpls-id 100)  rmt Up     Sep 26 10:00:12 2011           1

      Remote PE: 192.168.1.6, Negotiated control-word: No

      Incoming label: 800001, Outgoing label: 262145

      Negotiated PW status TLV: No

      Local interface: vt-1/0/10.34603011, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls ldp-vpls neighbor 192.168.1.6 vpls-id 100

 

{master}[edit logical-systems]

lab@Vienna_RE0# # R6 is primary right now and checking the MAC table

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls mac-table logical-system r2

 

MAC flags (S -static MAC, D -dynamic MAC,

           SE -Statistics enabled, NM -Non configured MAC)

 

Logical system   : r2

Routing instance : vpls

Bridging domain : __vpls__, VLAN : NA

   MAC                 MAC      Logical

   address             flags    interface

   28:c0:da:fb:59:9e   D,SE ge-1/0/2.0          

   28:c0:da:fb:59:a0   D,SE vt-1/1/10.51380224  

   28:c0:da:fb:59:a1   D,SE vt-1/1/10.51380224  

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls mac-table logical-system r6

 

MAC flags (S -static MAC, D -dynamic MAC,

           SE -Statistics enabled, NM -Non configured MAC)

 

Logical system   : r6

Routing instance : h-vpls-r6

Bridging domain : __h-vpls-r6__, VLAN : NA

   MAC                 MAC      Logical

   address             flags    interface

   28:c0:da:fb:59:9e   D,SE lsi.17826816        

   28:c0:da:fb:59:a0   D,SE lsi.17826817        

   28:c0:da:fb:59:a1   D,SE ge-1/0/5.0          

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls mac-table logical-system r4

 

MAC flags (S -static MAC, D -dynamic MAC,

           SE -Statistics enabled, NM -Non configured MAC)

 

Logical system   : r4

Routing instance : ldp-vpls

Bridging domain : __ldp-vpls__, VLAN : NA

   MAC                 MAC      Logical

   address             flags    interface

   28:c0:da:fb:59:9e   D,SE vt-1/0/10.34603011  

   28:c0:da:fb:59:a0   D,SE ge-1/0/4.0          

   28:c0:da:fb:59:a1   D,SE vt-1/0/10.34603011  

 

{master}[edit logical-systems]

lab@Vienna_RE0# # now activating R3 interfaces so all PW will be up on R3

 

After recovering R3, it will revert back to the origional topology and traffic flow:h_vpls3.jpg

 

{master}[edit logical-systems]

lab@Vienna_RE0# activate r3 interfaces

 

{master}[edit logical-systems]

lab@Vienna_RE0# commit

re0:

configuration check succeeds

re1:

commit complete

re0:

commit complete

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r3

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: h-vpls-r3

  BGP-VPLS State

  Local site: r3-vpls (2)

    connection-site           Type St     Time last up          # Up trans

    2                         rmt   RN  

  LDP-VPLS State

  VPLS-id: 100

  Mesh-group connections: h-vpls

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.4(vpls-id 100)  rmt Up     Sep 26 10:07:27 2011           1

      Remote PE: 192.168.1.4, Negotiated control-word: No

      Incoming label: 800000, Outgoing label: 800000

      Negotiated PW status TLV: No

      Local interface: vt-1/1/10.101712896, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls h-vpls-r3 neighbor 192.168.1.4 vpls-id 100

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r4

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: ldp-vpls

  VPLS-id: 100

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.3(vpls-id 100)  rmt Up     Sep 26 10:07:24 2011           1

      Remote PE: 192.168.1.3, Negotiated control-word: No

      Incoming label: 800000, Outgoing label: 800000

      Negotiated PW status TLV: No

      Local interface: vt-1/1/10.34603013, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls ldp-vpls neighbor 192.168.1.3 vpls-id 100

    192.168.1.6(vpls-id 100)  rmt Up     Sep 26 10:00:12 2011           1

      Remote PE: 192.168.1.6, Negotiated control-word: No

      Incoming label: 800001, Outgoing label: 262145

      Negotiated PW status TLV: No

      Local interface: vt-1/0/10.34603011, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls ldp-vpls neighbor 192.168.1.6 vpls-id 100

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r3

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: h-vpls-r3

  BGP-VPLS State

  Local site: r3-vpls (2)

    connection-site           Type St     Time last up          # Up trans

    1                         rmt   Up Sep 26 10:07:31 2011           1

      Remote PE: 192.168.1.2, Negotiated control-word: No

      Incoming label: 800256, Outgoing label: 800001

      Local interface: vt-1/0/10.101712897, Status: Up, Encapsulation: VPLS

        Description: Intf - vpls h-vpls-r3 local site 2 remote site 1

    2                         rmt   RN  

  LDP-VPLS State

  VPLS-id: 100

  Mesh-group connections: h-vpls

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.4(vpls-id 100)  rmt Up     Sep 26 10:07:27 2011           1

      Remote PE: 192.168.1.4, Negotiated control-word: No

      Incoming label: 800000, Outgoing label: 800000

      Negotiated PW status TLV: No

      Local interface: vt-1/1/10.101712896, Status: Up, Encapsulation: ETHERNET

        Description: Intf - vpls h-vpls-r3 neighbor 192.168.1.4 vpls-id 100

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls connections logical-system r6

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    <- -- only inbound connection is 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 availble

BK -- Backup connection          ST -- Standby connection

PF -- Profile parse failure      PB -- Profile busy

RS -- remote site standby        SN -- Static Neighbor

 

Legend for interface status

Up -- operational          

Dn -- down

 

Instance: h-vpls-r6

  BGP-VPLS State

  Local site: r6-vpls (2)

    connection-site           Type St     Time last up          # Up trans

    1                         rmt   LN  

    2                         rmt   LN  

  LDP-VPLS State

  VPLS-id: 100

  Mesh-group connections: h-vpls-r6

    Neighbor                  Type  St Time last up          # Up trans

    192.168.1.4(vpls-id 100)  rmt LN  

 

 

 

{master}[edit logical-systems]

lab@Vienna_RE0# # R3 is primary and mac tables on:

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls mac-table logical-system r2

 

MAC flags (S -static MAC, D -dynamic MAC,

           SE -Statistics enabled, NM -Non configured MAC)

 

Logical system   : r2

Routing instance : vpls

Bridging domain : __vpls__, VLAN : NA

   MAC                 MAC      Logical

   address             flags    interface

   28:c0:da:fb:59:9e   D,SE ge-1/0/2.0          

   28:c0:da:fb:59:9f   D,SE vt-1/1/10.51380224  

   28:c0:da:fb:59:a0   D,SE vt-1/1/10.51380224  

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls mac-table logical-system r3

 

MAC flags (S -static MAC, D -dynamic MAC,

           SE -Statistics enabled, NM -Non configured MAC)

 

Logical system   : r3

Routing instance : h-vpls-r3

Bridging domain : __h-vpls-r3__, VLAN : NA

   MAC                 MAC      Logical

   address             flags    interface

   28:c0:da:fb:59:9e   D,SE vt-1/0/10.101712897 

   28:c0:da:fb:59:9f   D,SE ge-1/0/3.0          

   28:c0:da:fb:59:a0   D,SE vt-1/1/10.101712896 

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls mac-table logical-system r6

 

{master}[edit logical-systems]

lab@Vienna_RE0# run show vpls mac-table logical-system r4

 

MAC flags (S -static MAC, D -dynamic MAC,

           SE -Statistics enabled, NM -Non configured MAC)

 

Logical system   : r4

Routing instance : ldp-vpls

Bridging domain : __ldp-vpls__, VLAN : NA

   MAC                 MAC      Logical

   address             flags    interface

   28:c0:da:fb:59:9e   D,SE vt-1/1/10.34603013  

   28:c0:da:fb:59:9f   D,SE vt-1/1/10.34603013  

   28:c0:da:fb:59:a0   D,SE ge-1/0/4.0          

       28:c0:da:fb:59:a1   D,SE vt-1/0/10.34603011


Configuration:

lab@Vienna_RE0# show | no-more

r1 {

    interfaces {

        ge-1/1/2 {

            unit 0 {

                family inet {

                    address 192.168.10.1/24;

                }

            }

        }

    }

    protocols {

        ospf {

            area 0.0.0.0 {

                interface all;

            }

        }

    }

}

r2 {

    interfaces {

        ge-1/0/1 {

            unit 23 {

                vlan-id 23;

                family inet {

                    address 1.1.23.1/24;

                }

                family mpls;

            }

            unit 26 {

                vlan-id 26;

                family inet {

                    address 1.1.26.1/24;

                }

                family mpls;

            }

        }

        ge-1/0/2 {

            unit 0;

        }

        lo0 {

            unit 2 {

                family inet {

                    address 192.168.1.2/32;

                }

            }

        }

    }

    protocols {

        mpls {

            interface all;

        }

        bgp {

            group ibgp {

                type internal;

                local-address 192.168.1.2;

                family l2vpn {

                    signaling;

                }

                neighbor 192.168.1.3;

                neighbor 192.168.1.6;

            }

        }

        ospf {

            area 0.0.0.0 {

                interface all;

            }

        }

        ldp {

            interface all;

        }

        inactive: l2circuit {

            neighbor 192.168.1.3 {

                interface ge-1/0/2.0 {

                    virtual-circuit-id 100;

                    backup-neighbor 192.168.1.6 {

                        standby;

                    }

                }

            }

        }

    }

    routing-instances {

        vpls {

            instance-type vpls;

            interface ge-1/0/2.0;

            route-distinguisher 1:2;

            vrf-target target:1:1;

            protocols {

                vpls {

                    interface ge-1/0/2.0;

                    site r2-vpls {

                        site-identifier 1;

                    }

                }

            }

        }

    }

    routing-options {

        autonomous-system 100;

    }

}

r3 {

    interfaces {

        ge-1/0/1 {

            unit 34 {

                vlan-id 34;

                family inet {

                    address 1.1.34.1/24;

                }

                family mpls;

            }

            unit 36 {

                vlan-id 36;

                family inet {

                    address 1.1.36.1/24;

                }

                family mpls;

            }

        }

        ge-1/0/3 {

            unit 0;

        }

        ge-1/1/1 {

            unit 23 {

                vlan-id 23;

                family inet {

                    address 1.1.23.2/24;

                }

                family mpls;

            }

        }

        lo0 {

            unit 3 {

                family inet {

                    address 192.168.1.3/32;

                }

            }

        }

    }

    protocols {

        mpls {

            interface all;

        }

        bgp {

            group ibgp {

                type internal;

                local-address 192.168.1.3;

                family l2vpn {

                    signaling;

                }

                neighbor 192.168.1.6;

                neighbor 192.168.1.2;

            }

        }

        ospf {

            area 0.0.0.0 {

                interface all;

            }

        }

        ldp {

            interface all;

        }

    }

    routing-instances {

        h-vpls-r3 {

            instance-type vpls;

            interface ge-1/0/3.0;

            route-distinguisher 1:3;

            vrf-target target:1:1;

            protocols {

                vpls {

                    interface ge-1/0/3.0;

                    site r3-vpls {

                        site-identifier 2;

                        multi-homing;

                        mesh-group h-vpls;            <<< Enable the multihoming for the LDP VPLS.

                    }

                    vpls-id 100;

                    mesh-group h-vpls {

                        vpls-id 100;

                        local-switching;

                        neighbor 192.168.1.4;          <<< Terminates the LDP pseudowire.

                    }

                }

            }

        }

    }

    routing-options {

        autonomous-system 100;

    }

}

r4 {

    interfaces {

        ge-1/0/1 {

            unit 46 {

                vlan-id 46;

                family inet {

                    address 1.1.46.2/24;

                }

                family mpls;

            }

        }

        ge-1/0/4 {

            unit 0;

        }

        ge-1/1/1 {

            unit 34 {

                vlan-id 34;

                family inet {

                    address 1.1.34.2/24;

                }

                family mpls;

            }

        }

        lo0 {

            unit 4 {

                family inet {

                    address 192.168.1.4/32;

                }

            }

        }

    }

    protocols {

        mpls {

            interface all;

        }

        ospf {

            area 0.0.0.0 {

                interface all;

            }

        }

        ldp {

            interface all;

        }

        inactive: l2circuit {

            neighbor 192.168.1.3 {

                interface ge-1/0/4.0 {

                    virtual-circuit-id 100;

                    backup-neighbor 192.168.1.6 {

                        standby;

                    }

                }

            }

        }

    }

    routing-instances {

        ldp-vpls {

            instance-type vpls;

            interface ge-1/0/4.0;

            protocols {

                vpls {

                    vpls-id 100;

                    neighbor 192.168.1.3;

                    neighbor 192.168.1.6;

                }

            }

        }

    }

}

r5 {

    interfaces {

        ge-1/1/4 {

            unit 0 {

                family inet {

                    address 192.168.10.2/24;

                }

            }

        }

    }

    protocols {

        ospf {

            area 0.0.0.0 {

                interface all;

            }

        }

    }

}

r6 {

    interfaces {

        ge-1/0/5 {

            unit 0;

        }

        ge-1/1/1 {

            unit 26 {

                vlan-id 26;

                family inet {

                    address 1.1.26.2/24;

                }

                family mpls;

            }

            unit 36 {

                vlan-id 36;

                family inet {

                    address 1.1.36.2/24;

                }

                family mpls;

            }

            unit 46 {

                vlan-id 46;

                family inet {

                    address 1.1.46.1/24;

                }

                family mpls;

            }

        }

        lo0 {

            unit 6 {

                family inet {

                    address 192.168.1.6/32;

                }

            }

        }

    }

    protocols {

        mpls {

            interface all;

        }

        bgp {

            group ibgp {

                type internal;

                local-address 192.168.1.6;

                family l2vpn {

                    signaling;

                }

                neighbor 192.168.1.3;

                neighbor 192.168.1.2;

            }

        }

        ospf {

            area 0.0.0.0 {

                interface all;

            }

        }

        ldp {

            interface all;

        }

    }

    routing-instances {

        h-vpls-r6 {

            instance-type vpls;

            interface ge-1/0/5.0;

            route-distinguisher 1:6;

            vrf-target target:1:1;

            protocols {

                vpls {

                    interface ge-1/0/5.0;

                    no-tunnel-services;

                    site r6-vpls {

                        site-identifier 2;

                        multi-homing;

                        mesh-group h-vpls-r6;

                    }

                    vpls-id 100;

                    mesh-group h-vpls-r6 {

                        vpls-id 100;

                        neighbor 192.168.1.4;

                    }

                }

            }

        }

    }

    routing-options {

        autonomous-system 100;

    }

}

r7 {

    interfaces {

        ge-1/1/5 {

            unit 0 {

                family inet {

                    address 192.168.10.3/24;

                }

            }

        }

    }

    protocols {

        ospf {

            area 0.0.0.0 {

                interface all;

            }

        }

    }

}

r8 {

    interfaces {

        ge-1/1/3 {

            unit 0 {

                family inet {

                    address 192.168.10.4/24;

                }

            }

        }

    }

    protocols {

        ospf {

            area 0.0.0.0 {

                interface all;

            }

        }

    }

}