Hello All,
Most of you Know what is a VPLS and how it works. For that we would atleast would require a 5 router topology. Where in you will have 3 routers in the core one router for the Ce side and other router should be on the other side.
I have taken one the MX240 and made with 5 loops which makes VPLS possible on only one router. Here is the below config / Outputs which explains the same.
===================================================================================
Topology
CE1——PE1——-P———PE2———CE2
Loops
—–
ce1-pe1 (ge-1/2/3—ge-1/2/0)
pe1—-p—pe2 (ge-1/0/0—ge-1/0/3)
ce2-pe2 (ge-1/1/6.0—ge-1/1/7.0)
This lab aims at setting up vpls between Two Pe routers and as a result ospf between Two ce’s
==============================================================================================
lab@MX-240-RE0# show logical-systems | display set
set logical-systems ce1 interfaces ge-1/2/3 unit 0 vlan-id 900
set logical-systems ce1 interfaces ge-1/2/3 unit 0 family inet address 101.0.0.1/24
set logical-systems ce1 interfaces lo0 unit 101 family inet address 101.101.101.101/32
set logical-systems ce1 protocols ospf area 0.0.0.0 interface all
set logical-systems ce2 interfaces ge-1/1/7 unit 0 vlan-id 900
set logical-systems ce2 interfaces ge-1/1/7 unit 0 family inet address 101.0.0.2/24
set logical-systems ce2 interfaces lo0 unit 102 family inet address 102.102.102.102/32
set logical-systems ce2 protocols ospf area 0.0.0.0 interface all
set logical-systems p interfaces ge-1/0/3 unit 1 vlan-id 12
set logical-systems p interfaces ge-1/0/3 unit 1 family inet address 12.0.0.2/24
set logical-systems p interfaces ge-1/0/3 unit 1 family mpls
set logical-systems p interfaces ge-1/0/3 unit 2 vlan-id 13
set logical-systems p interfaces ge-1/0/3 unit 2 family inet address 13.0.0.2/24
set logical-systems p interfaces ge-1/0/3 unit 2 family mpls
set logical-systems p interfaces lo0 unit 2 family inet address 2.2.2.2/32
set logical-systems p protocols rsvp interface all
set logical-systems p protocols mpls interface all
set logical-systems p protocols ospf area 0.0.0.0 interface all
set logical-systems pe1 interfaces ge-1/0/0 unit 1 vlan-id 12
set logical-systems pe1 interfaces ge-1/0/0 unit 1 family inet address 12.0.0.1/24
set logical-systems pe1 interfaces ge-1/0/0 unit 1 family mpls
set logical-systems pe1 interfaces ge-1/2/0 unit 0 encapsulation vlan-vpls
set logical-systems pe1 interfaces ge-1/2/0 unit 0 vlan-id 900
set logical-systems pe1 interfaces lo0 unit 1 family inet address 1.1.1.1/32
set logical-systems pe1 protocols rsvp interface all
set logical-systems pe1 protocols mpls label-switched-path pe1-pe2 to 3.3.3.3
set logical-systems pe1 protocols mpls label-switched-path pe1-pe2 no-cspf
set logical-systems pe1 protocols mpls interface all
set logical-systems pe1 protocols bgp group ibgp family l2vpn signaling
set logical-systems pe1 protocols bgp group ibgp neighbor 3.3.3.3 local-address 1.1.1.1
set logical-systems pe1 protocols bgp group ibgp neighbor 3.3.3.3 peer-as 100
set logical-systems pe1 protocols ospf area 0.0.0.0 interface all
set logical-systems pe1 routing-instances ce1 instance-type vpls
set logical-systems pe1 routing-instances ce1 interface ge-1/2/0.0
set logical-systems pe1 routing-instances ce1 route-distinguisher 1.1.1.1:1
set logical-systems pe1 routing-instances ce1 vrf-target target:1.1.1.1:1
set logical-systems pe1 routing-instances ce1 protocols vpls interface ge-1/2/0.0
set logical-systems pe1 routing-instances ce1 protocols vpls site ce2 site-identifier 1
set logical-systems pe1 routing-instances ce1 protocols vpls site ce2 interface ge-1/2/0.0
set logical-systems pe1 routing-options autonomous-system 100
set logical-systems pe2 interfaces ge-1/0/0 unit 2 vlan-id 13
set logical-systems pe2 interfaces ge-1/0/0 unit 2 family inet address 13.0.0.1/24
set logical-systems pe2 interfaces ge-1/0/0 unit 2 family mpls
set logical-systems pe2 interfaces ge-1/1/6 unit 0 encapsulation vlan-vpls
set logical-systems pe2 interfaces ge-1/1/6 unit 0 vlan-id 900
set logical-systems pe2 interfaces lo0 unit 3 family inet address 3.3.3.3/32
set logical-systems pe2 protocols rsvp interface all
set logical-systems pe2 protocols mpls label-switched-path pe3-pe1 to 1.1.1.1
set logical-systems pe2 protocols mpls label-switched-path pe3-pe1 no-cspf
set logical-systems pe2 protocols mpls interface all
set logical-systems pe2 protocols bgp group ibgp family l2vpn signaling
set logical-systems pe2 protocols bgp group ibgp neighbor 1.1.1.1 local-address 3.3.3.3
set logical-systems pe2 protocols bgp group ibgp neighbor 1.1.1.1 peer-as 100
set logical-systems pe2 protocols ospf area 0.0.0.0 interface all
set logical-systems pe2 routing-instances ce2 instance-type vpls
set logical-systems pe2 routing-instances ce2 interface ge-1/1/6.0
set logical-systems pe2 routing-instances ce2 route-distinguisher 3.3.3.3:3
set logical-systems pe2 routing-instances ce2 vrf-target target:1.1.1.1:1
set logical-systems pe2 routing-instances ce2 protocols vpls interface ge-1/1/6.0
set logical-systems pe2 routing-instances ce2 protocols vpls site ce2 site-identifier 2
set logical-systems pe2 routing-instances ce2 protocols vpls site ce2 interface ge-1/1/6.0
set logical-systems pe2 routing-options autonomous-system 100
======================================================================================================
lab@MX-240-RE0# show interfaces | display set
set interfaces ge-1/0/0 vlan-tagging
set interfaces ge-1/0/3 vlan-tagging
set interfaces ge-1/1/6 vlan-tagging
set interfaces ge-1/1/6 encapsulation vlan-vpls
set interfaces ge-1/1/7 vlan-tagging
set interfaces ge-1/2/0 vlan-tagging
set interfaces ge-1/2/0 encapsulation vlan-vpls
set interfaces ge-1/2/3 vlan-tagging
======================================================================================================
Show outputs
[edit]
lab@MX-240-RE0:pe1# run show vpls statistics
VPLS statistics:
Instance: ce1
Local interface: ge-1/2/0.0, Index: 102
Broadcast packets: 1
Broadcast bytes : 64
Multicast packets: 30
Multicast bytes : 2632
Flooded packets : 0
Flooded bytes : 0
Unicast packets : 15
Unicast bytes : 1498
Current MAC count: 1 (Limit 1024)
Local interface: vt-1/0/10.51380480, Index: 107
Remote PE: 3.3.3.3
Broadcast packets: 0
Broadcast bytes : 0
Multicast packets: 34
Multicast bytes : 2992
Flooded packets : 1
Flooded bytes : 106
Unicast packets : 17
Unicast bytes : 1604
Current MAC count: 1
[edit]
lab@MX-240-RE0:pe1#
======================================================================================================
lab@MX-240-RE0:pe1# run show vpls flood
Logical system: pe1
Name: ce1
CEs: 1
VEs: 1
Flood Routes:
Prefix Type Owner NhType NhIndex
0×30007/51 FLOOD_GRP_COMP_NH __ves__ comp 981
0×30006/51 FLOOD_GRP_COMP_NH __all_ces__ comp 959
0×30004/51 FLOOD_GRP_COMP_NH __re_flood__ comp 954
======================================================================================================
[edit]
lab@MX-240-RE0:pe1# run show vpls mac-table
MAC flags (S -static MAC, D -dynamic MAC,
SE -Statistics enabled, NM -Non configured MAC)
Logical system : pe1
Routing instance : ce1
Bridging domain : __ce1__, VLAN : NA
MAC MAC Logical
address flags interface
80:71:1f:10:9b:81 D vt-1/0/10.51380480
80:71:1f:10:9c:22 D ge-1/2/0.0
[edit]
lab@MX-240-RE0:pe1# run show vpls connections extensive
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: ce1
Local site: ce2 (1)
Number of local interfaces: 1
Number of local interfaces up: 1
IRB interface present: no
ge-1/2/0.0
vt-1/0/10.51380480 2 Intf - vpls ce1 local site 1 remote site 2
Label-base Offset Size Range Preference
800000 1 8 8 100
connection-site Type St Time last up # Up trans
2 rmt Up Sep 24 06:52:27 2011 1
Remote PE: 3.3.3.3, Negotiated control-word: No
Incoming label: 800001, Outgoing label: 800000
Local interface: vt-1/0/10.51380480, Status: Up, Encapsulation: VPLS
Description: Intf - vpls ce1 local site 1 remote site 2
Connection History:
Sep 24 06:52:27 2011 status update timer
Sep 24 06:52:26 2011 loc intf up vt-1/0/10.51380480
Sep 24 06:52:26 2011 PE route changed
Sep 24 06:52:26 2011 Out lbl Update 800000
Sep 24 06:52:26 2011 In lbl Update 800001
Sep 24 06:52:26 2011 loc intf down
[edit]
======================================================================================================
[edit]
lab@MX-240-RE0:pe1# run show route
inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.1/32 *[Direct/0] 00:54:08
> via lo0.1
2.2.2.2/32 *[OSPF/10] 00:41:26, metric 1
> to 12.0.0.2 via ge-1/0/0.1
3.3.3.3/32 *[OSPF/10] 00:40:37, metric 2
> to 12.0.0.2 via ge-1/0/0.1
12.0.0.0/24 *[Direct/0] 00:58:42
> via ge-1/0/0.1
12.0.0.1/32 *[Local/0] 00:58:42
Local via ge-1/0/0.1
13.0.0.0/24 *[OSPF/10] 00:41:26, metric 2
> to 12.0.0.2 via ge-1/0/0.1
224.0.0.5/32 *[OSPF/10] 00:44:58, metric 1
MultiRecv
inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both
3.3.3.3/32 *[RSVP/7/1] 00:40:19, metric 2
> to 12.0.0.2 via ge-1/0/0.1, label-switched-path pe1-pe2
mpls.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both
0 *[MPLS/0] 00:44:58, metric 1
Receive
1 *[MPLS/0] 00:44:58, metric 1
Receive
2 *[MPLS/0] 00:44:58, metric 1
Receive
800001 *[VPLS/7] 00:11:41
> via vt-1/0/10.51380480, Pop
vt-1/0/10.51380480 *[VPLS/7] 00:11:41, metric2 2
> to 12.0.0.2 via ge-1/0/0.1, label-switched-path pe1-pe2
bgp.l2vpn.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both
3.3.3.3:3:2:1/96
*[BGP/170] 00:12:48, localpref 100, from 3.3.3.3
AS path: I
> to 12.0.0.2 via ge-1/0/0.1, label-switched-path pe1-pe2
ce1.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both
1.1.1.1:1:1:1/96
*[L2VPN/170/-101] 00:12:40, metric2 1
Indirect
3.3.3.3:3:2:1/96
*[BGP/170] 00:12:40, localpref 100, from 3.3.3.3
AS path: I
> to 12.0.0.2 via ge-1/0/0.1, label-switched-path pe1-pe2
[edit]
==============================================================================
Regards
Rakesh M