Hi Folks,
This paper is in continuation of my previous series of articles starting with the article titled "How-To: Build a service provider network with a single Juniper Networks box"
Topology Covered in this Article: Virtual private LAN service (VPLS) with BGP Signaling
Earlier, I helped you to build and understand the below topologies,
Part 1: MPLS L3VPN topology with IGP as OSPF and RSVP LSP for MPLS. There were direct MP-iBGP peering between the PE routers.
Part 2: We introduced route-reflectors in the MPLS L3VPN topology with IGP as OSPF and RSVP LSP for MPLS.
Today, I would love to introduce to VPLS with BGP Signaling. Virtual private LAN service (VPLS) is an Ethernet-based point-to-multipoint Layer 2 VPN. It allows you to connect geographically dispersed Ethernet LAN sites to each other across an MPLS backbone. For customers who implement VPLS, all sites appear to be in the same Ethernet LAN even though traffic travels across the service provider's network.
VPLS, in its implementation and configuration, has much in common with an MPLS Layer 2 VPN. In a VPLS topology, a packet originating within a customer’s network is sent first to a customer edge (CE) device (for example, a router or Ethernet switch). It is then sent to a provider edge (PE) router within the service provider’s network. The packet traverses the service provider’s network over an MPLS label-switched path (LSP). It arrives at the egress PE router, which then forwards the traffic to the CE device at the destination customer site.
The difference is that for VPLS, packets can traverse the service provider’s network in point-to-multipoint fashion, meaning that a packet originating from a CE device can be broadcast to all the PE routers participating in a VPLS routing instance. In contrast, a Layer 2 VPN forwards packets in point-to-point fashion only. The paths carrying VPLS traffic between each PE router participating in a routing instance are signaled using BGP.
An important element of a VPLS instance is the signaling protocol. You can configure BGP signaling, LDP signaling, or both BGP and LDP signaling in a VPLS instance.
Theme: I will help you in building a basic service provider network with a single box! All you need is a single box with 4 physical loops to build a VPLS end-to-end Domain.
You can also use a virtual vMX box deployed in ESXi or KVM with a virtual loop!
Requirement:
Operating system: Junos OS Release 9.3 or higher
Box: EX Series, M Series, MX Series, PTX Series, T Series [any box that supports logical systems]
Interconnecting the logical systems can be achieved with lt interface [logical tunnel] or with physical interfaces.
Interfaces Supported: Ethernet Interfaces ge/xe that supports 802.1Q VLAN
+----------+
| |<-Loop Cable
| |
+------+++--------+++--------+
| +-+ +-+ |
| Interface 1 Interface 2 |
| |
| |
| One Physical |
| EX, M, MX, PTX, T Series |
| |
+----------------------------+
Steps:
Make 4 Physical Loop of physical interfaces in the box [4 loops – 8 interfaces].
Copy the following configuration template to a word editor and replace the strings interface1/2/3/4/5/6/7/8 with the actual interfaces you have looped.
Load the configuration to the box with “load merge terminal relative”.
Topology:
This is a VPLS topology with IGP as OSPF and RSVP LSP for MPLS. There are MP-iBGP peering between r1/r5 [PE] to r4 [RR].
+---------------------------+----------------------------------------------------+--------------+
| r0 lo0.100 192.168.1.100 | Loop Cable: 4 | MPLS CLOUD |
| r1 lo0.101 192.168.1.101 | +-----+ | IGP-OSPF |
| r2 lo0.102 192.168.1.102 | AS 64512 | R8 | | MPLS-RSVP-LSP|
| r3 lo0.103 192.168.1.103 | | CE3 |10.11.12.3/24 +--------------+
| r4 lo0.104 192.168.1.104 | +--+--+ |Interfaces |
| r5 lo0.105 192.168.1.105 | I8.0| [FOURTH LOOP] | Looped |
| r6 lo0.106 192.168.1.106 | |I7.0 |Loop 1 - I1-I2|
| r7 lo0.107 192.168.1.107 | +--+--+ |Loop 2 - I3-I4|
| r8 lo0.108 192.168.1.108 | | R7 | |Loop 3 - I5-I6|
+---------------------------+ | PE3 | |Loop 4 - I7-I8|
| +--+--+ +--------------+
| I2.47| |
| |I1.47 |
| +--+--+ |
| I2.24| R4 | I1.43 |
| +----+ P3 +----+ |
| | +-----+ | |
| | RR | |
| | AS 100 | |
| | | |
| 10.11.12.1/24 I1.24 | | I2.43 10.11.12.2/24|
| +-----+I4.0 +-----+ +--+--+I1.23 +--+--+ +-----+I5.0 +-----+ |
| | R0 +---------+ R1 |I1.12 | R2 +---------+ R3 |I1.35 | R5 +---------+ R6 | |
| | CE1 | I3.0| PE1 +---------+ P1 | | P2 +---------+ PE2 | I6.0 | CE2 | |
| +-----+ +-----+ I2.12+-----+ I2.23+-----+ I2.35+-----+ +-----+ |
| AS 64512 [SECOND LOOP] [THIRD LOOP]AS 64512 |
+-----------------------------------------------------------------------------------------------+
| Template - MPLS VPLS SETUP [3 CE] - IGP OSPF # MPLS RSVP LSP # SINGLE RR [4 loops Required] |
+-----------------------------------------------------------------------------------------------+
Configuration:
logical-systems {
r0 {
interfaces {
interface4 {
unit 0 {
vlan-id 1000;
family inet {
address 10.11.12.1/24;
}
}
}
lo0 {
unit 100 {
family inet {
address 192.168.1.100/32;
}
}
}
}
routing-options {
autonomous-system 64512;
}
}
r1 {
interfaces {
interface1 {
unit 12 {
vlan-id 12;
family inet {
address 1.1.12.1/30;
}
family mpls;
}
}
interface3 {
unit 0 {
encapsulation vlan-vpls;
vlan-id 1000;
family vpls;
}
}
lo0 {
unit 101 {
family inet {
address 192.168.1.101/32;
}
}
}
}
protocols {
rsvp {
interface interface1.12;
}
mpls {
label-switched-path r1-to-r5 {
to 192.168.1.105;
}
label-switched-path r1-to-r4 {
to 192.168.1.104;
}
label-switched-path r1-to-r7 {
to 192.168.1.107;
}
interface interface1.12;
}
bgp {
group ibgp-to-rr {
type internal;
local-address 192.168.1.101;
family l2vpn {
signaling;
}
neighbor 192.168.1.104;
}
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface lo0.101 {
passive;
}
interface interface1.12;
}
}
}
routing-instances {
vpls-ce {
instance-type vpls;
interface interface3.0;
route-distinguisher 100:21111;
vrf-target target:100:211111;
protocols {
vpls {
no-tunnel-services;
site pe1 {
automatic-site-id;
}
}
}
}
}
routing-options {
autonomous-system 100;
}
}
r2 {
interfaces {
interface1 {
unit 23 {
vlan-id 23;
family inet {
address 1.1.23.1/30;
}
family mpls;
}
unit 24 {
vlan-id 24;
family inet {
address 1.1.24.1/30;
}
family mpls;
}
}
interface2 {
unit 12 {
vlan-id 12;
family inet {
address 1.1.12.2/30;
}
family mpls;
}
}
lo0 {
unit 102 {
family inet {
address 192.168.1.102/32;
}
}
}
}
protocols {
rsvp {
interface interface2.12;
interface interface1.23;
interface interface1.24;
}
mpls {
interface interface2.12;
interface interface1.23;
interface interface1.24;
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface interface2.12;
interface lo0.102;
interface interface1.23;
interface interface1.24;
}
}
}
}
r3 {
interfaces {
interface1 {
unit 35 {
vlan-id 35;
family inet {
address 1.1.35.1/30;
}
family mpls;
}
}
interface2 {
unit 23 {
vlan-id 23;
family inet {
address 1.1.23.2/30;
}
family mpls;
}
unit 43 {
vlan-id 43;
family inet {
address 1.1.43.2/30;
}
family mpls;
}
}
lo0 {
unit 103 {
family inet {
address 192.168.1.103/32;
}
}
}
}
protocols {
rsvp {
interface interface2.23;
interface interface2.43;
interface interface1.35;
}
mpls {
interface interface2.23;
interface interface2.43;
interface interface1.35;
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface interface2.23;
interface lo0.103;
interface interface2.43;
interface interface1.35;
}
}
}
}
r4 {
interfaces {
interface1 {
unit 43 {
vlan-id 43;
family inet {
address 1.1.43.1/30;
}
family mpls;
}
unit 47 {
vlan-id 47;
family inet {
address 1.1.47.1/30;
}
family mpls;
}
}
interface2 {
unit 24 {
vlan-id 24;
family inet {
address 1.1.24.2/30;
}
family mpls;
}
}
lo0 {
unit 104 {
family inet {
address 192.168.1.104/32;
}
}
}
}
protocols {
rsvp {
interface interface2.24;
interface interface1.43;
interface interface1.47;
}
mpls {
label-switched-path r4-to-r1 {
to 192.168.1.101;
}
label-switched-path r4-to-r5 {
to 192.168.1.105;
}
label-switched-path r4-to-r7 {
to 192.168.1.107;
}
interface interface2.24;
interface interface1.43;
interface interface1.47;
}
bgp {
group ibgp-to-rr_client {
type internal;
local-address 192.168.1.104;
family l2vpn {
signaling;
}
cluster 192.168.1.104;
neighbor 192.168.1.101;
neighbor 192.168.1.105;
neighbor 192.168.1.107;
}
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface interface2.24;
interface lo0.104;
interface interface1.43;
interface interface1.47;
}
}
}
routing-options {
autonomous-system 100;
}
}
r5 {
interfaces {
interface2 {
unit 35 {
vlan-id 35;
family inet {
address 1.1.35.2/30;
}
family mpls;
}
}
interface5 {
unit 0 {
encapsulation vlan-vpls;
vlan-id 1000;
family vpls;
}
}
lo0 {
unit 105 {
family inet {
address 192.168.1.105/32;
}
}
}
}
protocols {
rsvp {
interface interface2.35;
}
mpls {
label-switched-path r5-to-r1 {
to 192.168.1.101;
}
label-switched-path r5-to-r4 {
to 192.168.1.104;
}
label-switched-path r5-to-r7 {
to 192.168.1.107;
}
interface interface2.35;
}
bgp {
group ibgp-to-rr {
type internal;
local-address 192.168.1.105;
family l2vpn {
signaling;
}
neighbor 192.168.1.104;
}
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface interface2.35;
interface lo0.105 {
passive;
}
}
}
}
routing-instances {
vpls-ce {
instance-type vpls;
interface interface5.0;
route-distinguisher 100:21111;
vrf-target target:100:211111;
protocols {
vpls {
no-tunnel-services;
site pe2 {
automatic-site-id;
}
}
}
}
}
routing-options {
autonomous-system 100;
}
}
r6 {
interfaces {
interface6 {
unit 0 {
vlan-id 1000;
family inet {
address 10.11.12.2/24;
}
}
}
lo0 {
unit 106 {
family inet {
address 192.168.1.106/32;
}
}
}
}
routing-options {
autonomous-system 64512;
}
}
r7 {
interfaces {
interface2 {
unit 47 {
vlan-id 47;
family inet {
address 1.1.47.2/30;
}
family mpls;
}
}
interface7 {
unit 0 {
encapsulation vlan-vpls;
vlan-id 1000;
family vpls;
}
}
lo0 {
unit 107 {
family inet {
address 192.168.1.107/32;
}
}
}
}
protocols {
rsvp {
interface interface2.47;
}
mpls {
label-switched-path r7-to-r1 {
to 192.168.1.101;
}
label-switched-path r7-to-r4 {
to 192.168.1.104;
}
label-switched-path r7-to-r5 {
to 192.168.1.105;
}
interface interface2.47;
}
bgp {
group ibgp-to-rr {
type internal;
local-address 192.168.1.107;
family l2vpn {
signaling;
}
neighbor 192.168.1.104;
}
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface lo0.107 {
passive;
}
interface interface2.47;
}
}
}
routing-instances {
vpls-ce {
instance-type vpls;
interface interface7.0;
route-distinguisher 100:21111;
vrf-target target:100:211111;
protocols {
vpls {
no-tunnel-services;
site pe3 {
automatic-site-id;
}
}
}
}
}
routing-options {
autonomous-system 100;
}
}
r8 {
interfaces {
interface8 {
unit 0 {
vlan-id 1000;
family inet {
address 10.11.12.3/24;
}
}
}
lo0 {
unit 108 {
family inet {
address 192.168.1.108/32;
}
}
}
}
routing-options {
autonomous-system 64512;
}
}
}
interfaces {
interface1 {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
}
interface2 {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
}
interface3 {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
}
interface4 {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
}
interface5 {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
}
interface6 {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
}
interface7 {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
}
interface8 {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
}
}
Troubleshooting Commands:
Sample Output:
Interface 1: ge-0/0/0
Interface 2: ge-0/0/1
Interface 3: ge-0/0/2
Interface 4: ge-0/0/3
Interface 5: ge-0/0/4
Interface 6: ge-0/0/5
Interface 7: ge-0/0/6
Interface 8: ge-0/0/7
lab> show ospf neighbor logical-system all
logical-system: r1
Address Interface State ID Pri Dead
1.1.12.2 ge-0/0/0.12 Full 192.168.1.102 128 32
-----
logical-system: r3
1.1.35.2 ge-0/0/0.35 Full 192.168.1.105 128 31
1.1.23.1 ge-0/0/1.23 Full 192.168.1.102 128 34
1.1.43.1 ge-0/0/1.43 Full 192.168.1.104 128 32
-----
logical-system: r4
1.1.43.2 ge-0/0/0.43 Full 192.168.1.103 128 37
1.1.47.2 ge-0/0/0.47 Full 192.168.1.107 128 39
1.1.24.1 ge-0/0/1.24 Full 192.168.1.102 128 36
-----
logical-system: r5
1.1.35.1 ge-0/0/1.35 Full 192.168.1.103 128 38
-----
logical-system: r6
OSPF instance is not running
-----
logical-system: r7
1.1.47.1 ge-0/0/1.47 Full 192.168.1.104 128 36
-----
logical-system: r8
OSPF instance is not running
-----
logical-system: r0
OSPF instance is not running
-----
logical-system: r2
1.1.23.2 ge-0/0/0.23 Full 192.168.1.103 128 38
1.1.24.2 ge-0/0/0.24 Full 192.168.1.104 128 35
1.1.12.1 ge-0/0/1.12 Full 192.168.1.101 128 36
-----
logical-system: default
OSPF instance is not running
lab> show mpls lsp logical-system all | no-more
logical-system: r1
Ingress LSP: 3 sessions
To From State Rt P ActivePath LSPname
192.168.1.104 192.168.1.101 Up 0 * r1-to-r4
192.168.1.105 192.168.1.101 Up 0 * r1-to-r5
192.168.1.107 192.168.1.101 Up 0 * r1-to-r7
Total 3 displayed, Up 3, Down 0
Egress LSP: 3 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.1.101 192.168.1.104 Up 0 1 FF 3 - r4-to-r1
192.168.1.101 192.168.1.105 Up 0 1 FF 3 - r5-to-r1
192.168.1.101 192.168.1.107 Up 0 1 FF 3 - r7-to-r1
Total 3 displayed, Up 3, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
-----
logical-system: r3
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
Transit LSP: 6 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.1.101 192.168.1.105 Up 0 1 FF 299776 299776 r5-to-r1
192.168.1.104 192.168.1.105 Up 0 1 FF 299792 3 r5-to-r4
192.168.1.105 192.168.1.104 Up 0 1 FF 299824 3 r4-to-r5
192.168.1.105 192.168.1.107 Up 0 1 FF 299856 3 r7-to-r5
192.168.1.105 192.168.1.101 Up 0 1 FF 299840 3 r1-to-r5
192.168.1.107 192.168.1.105 Up 0 1 FF 299808 299776 r5-to-r7
Total 6 displayed, Up 6, Down 0
-----
logical-system: r4
Ingress LSP: 3 sessions
To From State Rt P ActivePath LSPname
192.168.1.101 192.168.1.104 Up 0 * r4-to-r1
192.168.1.105 192.168.1.104 Up 0 * r4-to-r5
192.168.1.107 192.168.1.104 Up 0 * r4-to-r7
Total 3 displayed, Up 3, Down 0
Egress LSP: 3 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.1.104 192.168.1.105 Up 0 1 FF 3 - r5-to-r4
192.168.1.104 192.168.1.107 Up 0 1 FF 3 - r7-to-r4
192.168.1.104 192.168.1.101 Up 0 1 FF 3 - r1-to-r4
Total 3 displayed, Up 3, Down 0
Transit LSP: 4 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.1.101 192.168.1.107 Up 0 1 FF 299808 299840 r7-to-r1
192.168.1.105 192.168.1.107 Up 0 1 FF 299792 299856 r7-to-r5
192.168.1.107 192.168.1.105 Up 0 1 FF 299776 3 r5-to-r7
192.168.1.107 192.168.1.101 Up 0 1 FF 299824 3 r1-to-r7
Total 4 displayed, Up 4, Down 0
-----
logical-system: r5
Ingress LSP: 3 sessions
To From State Rt P ActivePath LSPname
192.168.1.101 192.168.1.105 Up 0 * r5-to-r1
192.168.1.104 192.168.1.105 Up 0 * r5-to-r4
192.168.1.107 192.168.1.105 Up 0 * r5-to-r7
Total 3 displayed, Up 3, Down 0
Egress LSP: 3 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.1.105 192.168.1.104 Up 0 1 FF 3 - r4-to-r5
192.168.1.105 192.168.1.107 Up 0 1 FF 3 - r7-to-r5
192.168.1.105 192.168.1.101 Up 0 1 FF 3 - r1-to-r5
Total 3 displayed, Up 3, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
-----
logical-system: r6
MPLS not configured
-----
logical-system: r7
Ingress LSP: 3 sessions
To From State Rt P ActivePath LSPname
192.168.1.101 192.168.1.107 Up 0 * r7-to-r1
192.168.1.104 192.168.1.107 Up 0 * r7-to-r4
192.168.1.105 192.168.1.107 Up 0 * r7-to-r5
Total 3 displayed, Up 3, Down 0
Egress LSP: 3 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.1.107 192.168.1.104 Up 0 1 FF 3 - r4-to-r7
192.168.1.107 192.168.1.105 Up 0 1 FF 3 - r5-to-r7
192.168.1.107 192.168.1.101 Up 0 1 FF 3 - r1-to-r7
Total 3 displayed, Up 3, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
-----
logical-system: r8
MPLS not configured
-----
logical-system: r0
MPLS not configured
-----
logical-system: r2
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
Transit LSP: 6 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.1.101 192.168.1.104 Up 0 1 FF 299808 3 r4-to-r1
192.168.1.101 192.168.1.105 Up 0 1 FF 299776 3 r5-to-r1
192.168.1.101 192.168.1.107 Up 0 1 FF 299840 3 r7-to-r1
192.168.1.104 192.168.1.101 Up 0 1 FF 299792 3 r1-to-r4
192.168.1.105 192.168.1.101 Up 0 1 FF 299824 299840 r1-to-r5
192.168.1.107 192.168.1.101 Up 0 1 FF 299856 299824 r1-to-r7
Total 6 displayed, Up 6, Down 0
-----
logical-system: default
MPLS not configured
lab>
lab> set cli logical-system r1
Logical system: r1
lab:r1> show route summary
Autonomous system number: 100
Router ID: 192.168.1.101
inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden)
Direct: 2 routes, 2 active
Local: 1 routes, 1 active
OSPF: 11 routes, 11 active
inet.3: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
RSVP: 3 routes, 3 active
mpls.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
MPLS: 4 routes, 4 active
VPLS: 4 routes, 4 active
bgp.l2vpn.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
BGP: 3 routes, 3 active
vpls-ce.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
BGP: 3 routes, 3 active
L2VPN: 1 routes, 1 active
lab:r1> show bgp summary
Groups: 1 Peers: 1 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
bgp.l2vpn.0
3 3 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
192.168.1.104 100 19 16 0 0 4:40 Establ
bgp.l2vpn.0: 3/3/3/0
vpls-ce.l2vpn.0: 3/3/3/0
lab:r1> show route receive-protocol bgp 192.168.1.104
inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden)
inet.3: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
mpls.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
bgp.l2vpn.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
Prefix Nexthop MED Lclpref AS path
100:21111:7:1/96
* 192.168.1.105 100 I
100:21111:8:1/96
* 192.168.1.107 100 I
100:21111:8:9/96
* 192.168.1.107 100 I
vpls-ce.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
Prefix Nexthop MED Lclpref AS path
100:21111:7:1/96
* 192.168.1.105 100 I
100:21111:8:1/96
* 192.168.1.107 100 I
100:21111:8:9/96
* 192.168.1.107 100 I
lab:r1> show route advertising-protocol bgp 192.168.1.104
vpls-ce.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
Prefix Nexthop MED Lclpref AS path
100:21111:5:1/96
* Self 100 I
lab:r1> show mpls lsp
Ingress LSP: 3 sessions
To From State Rt P ActivePath LSPname
192.168.1.104 192.168.1.101 Up 0 * r1-to-r4
192.168.1.105 192.168.1.101 Up 0 * r1-to-r5
192.168.1.107 192.168.1.101 Up 0 * r1-to-r7
Total 3 displayed, Up 3, Down 0
Egress LSP: 3 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.1.101 192.168.1.104 Up 0 1 FF 3 - r4-to-r1
192.168.1.101 192.168.1.105 Up 0 1 FF 3 - r5-to-r1
192.168.1.101 192.168.1.107 Up 0 1 FF 3 - r7-to-r1
Total 3 displayed, Up 3, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
lab:r1> show mpls lsp extensive | no-more
Ingress LSP: 3 sessions
192.168.1.104
From: 192.168.1.101, State: Up, ActiveRoute: 0, LSPname: r1-to-r4
ActivePath: (primary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
*Primary State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 2)
1.1.12.2 S 1.1.24.2 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
1.1.12.2 1.1.24.2
5 May 7 21:10:32.697 Selected as active path
4 May 7 21:10:32.697 Record Route: 1.1.12.2 1.1.24.2
3 May 7 21:10:32.697 Up
2 May 7 21:10:32.529 Originate Call
1 May 7 21:10:32.529 CSPF: computation result accepted 1.1.12.2 1.1.24.2
Created: Sun May 7 21:09:34 2017
192.168.1.105
From: 192.168.1.101, State: Up, ActiveRoute: 0, LSPname: r1-to-r5
ActivePath: (primary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
*Primary State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 3)
1.1.12.2 S 1.1.23.2 S 1.1.35.2 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
1.1.12.2 1.1.23.2 1.1.35.2
5 May 7 21:10:33.499 Selected as active path
4 May 7 21:10:33.483 Record Route: 1.1.12.2 1.1.23.2 1.1.35.2
3 May 7 21:10:33.483 Up
2 May 7 21:10:33.159 Originate Call
1 May 7 21:10:33.159 CSPF: computation result accepted 1.1.12.2 1.1.23.2 1.1.35.2
Created: Sun May 7 21:09:34 2017
192.168.1.107
From: 192.168.1.101, State: Up, ActiveRoute: 0, LSPname: r1-to-r7
ActivePath: (primary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
*Primary State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 3)
1.1.12.2 S 1.1.24.2 S 1.1.47.2 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
1.1.12.2 1.1.24.2 1.1.47.2
5 May 7 21:10:34.059 Selected as active path
4 May 7 21:10:34.042 Record Route: 1.1.12.2 1.1.24.2 1.1.47.2
3 May 7 21:10:34.042 Up
2 May 7 21:10:33.749 Originate Call
1 May 7 21:10:33.749 CSPF: computation result accepted 1.1.12.2 1.1.24.2 1.1.47.2
Created: Sun May 7 21:09:34 2017
Total 3 displayed, Up 3, Down 0
Egress LSP: 3 sessions
192.168.1.101
From: 192.168.1.104, LSPstate: Up, ActiveRoute: 0
LSPname: r4-to-r1, LSPpath: Primary
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: -
Resv style: 1 FF, Label in: 3, Label out: -
Time left: 137, Since: Sun May 7 21:10:32 2017
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 53573 protocol 0
PATH rcvfrom: 1.1.12.2 (ge-0/0/0.12) 11 pkts
Adspec: received MTU 1500
PATH sentto: localclient
RESV rcvfrom: localclient , Entropy label: Yes
Record route: 1.1.24.2 1.1.12.2 <self>
192.168.1.101
From: 192.168.1.105, LSPstate: Up, ActiveRoute: 0
LSPname: r5-to-r1, LSPpath: Primary
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: -
Resv style: 1 FF, Label in: 3, Label out: -
Time left: 130, Since: Sun May 7 21:10:32 2017
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 56052 protocol 0
PATH rcvfrom: 1.1.12.2 (ge-0/0/0.12) 11 pkts
Adspec: received MTU 1500
PATH sentto: localclient
RESV rcvfrom: localclient , Entropy label: Yes
Record route: 1.1.35.2 1.1.23.2 1.1.12.2 <self>
192.168.1.101
From: 192.168.1.107, LSPstate: Up, ActiveRoute: 0
LSPname: r7-to-r1, LSPpath: Primary
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: -
Resv style: 1 FF, Label in: 3, Label out: -
Time left: 145, Since: Sun May 7 21:10:33 2017
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 60951 protocol 0
PATH rcvfrom: 1.1.12.2 (ge-0/0/0.12) 11 pkts
Adspec: received MTU 1500
PATH sentto: localclient
RESV rcvfrom: localclient , Entropy label: Yes
Record route: 1.1.47.2 1.1.24.2 1.1.12.2 <self>
Total 3 displayed, Up 3, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
lab:r1> show route 192.168.1.105
inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
192.168.1.105/32 *[OSPF/10] 00:07:22, metric 3
> to 1.1.12.2 via ge-0/0/0.12
inet.3: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
192.168.1.105/32 *[RSVP/7/1] 00:07:19, metric 3
> to 1.1.12.2 via ge-0/0/0.12, label-switched-path r1-to-r5
lab:r1> show route forwarding-table destination 192.168.1.105
Logical system: r1
Routing table: default.inet
Internet:
Destination Type RtRef Next hop Type Index NhRef Netif
192.168.1.105/32 user 0 1.1.12.2 ucst 639 15 ge-0/0/0.12
Logical system: r1
Routing table: __master.anon__.inet
Internet:
Destination Type RtRef Next hop Type Index NhRef Netif
default perm 0 rjct 1053 1
lab:r1> show route table inet.3
inet.3: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
192.168.1.104/32 *[RSVP/7/1] 00:07:49, metric 2
> to 1.1.12.2 via ge-0/0/0.12, label-switched-path r1-to-r4
192.168.1.105/32 *[RSVP/7/1] 00:07:48, metric 3
> to 1.1.12.2 via ge-0/0/0.12, label-switched-path r1-to-r5
192.168.1.107/32 *[RSVP/7/1] 00:07:48, metric 3
> to 1.1.12.2 via ge-0/0/0.12, label-switched-path r1-to-r7
lab:r1> show vpls connections
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 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-ce
Edge protection: Not-Primary
Local site: pe1 (5)
connection-site Type St Time last up # Up trans
7 rmt Up May 7 21:12:05 2017 1
Remote PE: 192.168.1.105, Negotiated control-word: No
Incoming label: 262151, Outgoing label: 262149
Local interface: lsi.152043520, Status: Up, Encapsulation: VPLS
Description: Intf - vpls vpls-ce local site 5 remote site 7
8 rmt Up May 7 21:12:06 2017 1
Remote PE: 192.168.1.107, Negotiated control-word: No
Incoming label: 262152, Outgoing label: 262157
Local interface: lsi.152043521, Status: Up, Encapsulation: VPLS
Description: Intf - vpls vpls-ce local site 5 remote site 8
lab:r1> show vpls statistics
VPLS statistics:
Instance: vpls-ce
Local interface: ge-0/0/2.0, Index: 383
Broadcast packets: 1
Broadcast bytes : 60
Multicast packets: 0
Multicast bytes : 0
Flooded packets : 0
Flooded bytes : 0
Unicast packets : 2
Unicast bytes : 204
Current MAC count: 1 (Limit 1024)
Local interface: lsi.152043520, Index: 396
Remote PE: 192.168.1.105
Broadcast packets: 0
Broadcast bytes : 0
Multicast packets: 0
Multicast bytes : 0
Flooded packets : 0
Flooded bytes : 0
Unicast packets : 3
Unicast bytes : 264
Current MAC count: 1
Local interface: lsi.152043521, Index: 400
Remote PE: 192.168.1.107
Broadcast packets: 0
Broadcast bytes : 0
Multicast packets: 0
Multicast bytes : 0
Flooded packets : 0
Flooded bytes : 0
Unicast packets : 0
Unicast bytes : 0
Current MAC count: 0
lab:r1> show vpls flood instance vpls-ce
Logical system: r1
Name: vpls-ce
CEs: 1
VEs: 2
Flood Routes:
Prefix Type Owner NhType NhIndex
0x30008/51 FLOOD_GRP_COMP_NH __ves__ comp 1227
0x30006/51 FLOOD_GRP_COMP_NH __all_ces__ comp 991
0x30003/51 FLOOD_GRP_COMP_NH __re_flood__ comp 988
lab:r1> show vpls mac-table instance vpls-ce
MAC flags (S -static MAC, D -dynamic MAC, L -locally learned, C -Control MAC
O -OVSDB MAC, SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC)
Logical system : r1
Routing instance : vpls-ce
Bridging domain : __vpls-ce__, VLAN : NA
MAC MAC Logical NH RTR
addresssss flags interface Index ID
00:05:86:74:e4:03 D ge-0/0/2.0
00:05:86:74:e4:05 D lsi.152043520
lab:r1> show route forwarding-table table vpls-ce
Logical system: r1
Routing table: vpls-ce.vpls
VPLS:
Destination Type RtRef Next hop Type Index NhRef Netif
default perm 0 dscd 611 1
lsi.152043520 intf 0 indr 1048575 4
1.1.12.2 Push 262149, Push 299824(top) 1205 2 ge-0/0/0.12
lsi.152043521 intf 0 indr 1048578 4
1.1.12.2 Push 262157, Push 299856(top) 992 2 ge-0/0/0.12
0x30008/51 user 0 comp 1227 2
ge-0/0/2.0 intf 0 ucst 784 4 ge-0/0/2.0
0x30006/51 user 0 comp 991 2
0x30003/51 user 0 comp 988 2
lab:r1>
Few Command Lists For Troubleshooting/Isolation/Understanding:
Global Instance:
show ospf neighbor logical-system all
show vpls connections logical-system all
show ospf neighbor logical-system all
show mpls lsp logical-system all
From Specific Logical Router R1 [PE]:
set cli logical-system r1
show vpls connections
show vpls statistics
show vpls flood instance vpls-ce
show vpls mac-table instance vpls-ce
show route forwarding-table table vpls-ce
show route summary
show bgp summary
show route receive-protocol bgp 192.168.1.104
show route advertising-protocol bgp 192.168.1.104
show mpls lsp
show mpls lsp extensive | no-more
show route forwarding-table destination 192.168.1.105
show route table inet.3
To check Connectivity from R0[CE1] to R6[CE2]
set cli logical-system r0
ping 10.11.12.2
To check Mac-Table in R1[PE1]
set cli logical-system r1
show vpls mac-table instance vpls-ce
To come back to global Instance:
clear cli logical-system
If my series helps you, feel free to click the "Kudos" icon.
-Python