Τετάρτη 1 Σεπτεμβρίου 2010

CCC between Juniper EX and MX

Topology
ge-1/0/19 family ccc <--- ---="" ex=""> ge-1/1/0 -- OSPF/MPLS/
RSVP --- ge-0/2/5 <--- ---="" mx=""> ge-0/0/8.234 family ccc

Design:
The following configuration will encapsulate all traffic from EX interface ge-1/0/19 into LSP path pushing label
299792, and this traffic will egress MX ge-0/0/8.234 tagged with vlan 234. Q-in-Q was also tested and was working.


lab@ex4200top# run show route forwarding-table family mpls
Routing table: default.mpls
MPLS:
Destination Type RtRef Next hop Type Index NhRef Netif
default perm 0 dscd 50 1
0 user 0 recv 49 3
1 user 0 recv 49 3
2 user 0 recv 49 3
299840 user 0 Pop 1385 2 ge-1/0/19.0
ge-1/0/19.0 (CCC) user 0 10.0.2.1 Push 299792 1389 2 ge-1/1/0.0


lab@MX960_lab# show interfaces ge-0/2/5
description "EX4200 ge-1/1/0";
unit 0 {
family inet {
address 10.0.2.1/30;
}
family mpls;
}

lab@MX960_lab# show interfaces ge-0/0/8.234
encapsulation vlan-ccc;
vlan-id 234;
family ccc;

lab@MX960_lab# run show connections extensive
CCC and TCC connections [Link Monitoring On]
Legend for status (St) Legend for connection types
UN -- uninitialized if-sw: interface switching
NP -- not present rmt-if: remote interface switching
WE -- wrong encapsulation lsp-sw: LSP switching
DS -- disabled tx-p2mp-sw: transmit P2MP switching
Dn -- down rx-p2mp-sw: receive P2MP switching
-> -- only outbound conn is up
<- --="" br="" circuit="" conn="" for="" inbound="" is="" legend="" only="" types="" up="">Up -- operational intf -- interface
RmtDn -- remote CCC down tlsp -- transmit LSP
Restart -- restarting rlsp -- receive LSP


Connection/Circuit Type St Time last up # Up trans
ccc_EX rmt-if Up Sep 2 10:26:28 2
ge-0/0/8.234 intf Up
to_EX tlsp Up
to_MX rlsp Up
Incoming labels: 299792
Outgoing labels: Push 299840
# Paths
Time Event Interface/Label Rcv Xmt
Sep 2 10:26:28 CCC status update 1 1
Aug 30 12:37:04 Remote CCC down 1 1
Aug 30 12:37:02 CCC status update 1 1
Aug 30 12:37:02 RLSP up 299792 1 1
Aug 30 12:36:44 TLSP up 299840@1:0, 1 0 1
Aug 30 12:36:44 TLSP down 299840@1 0 0
Aug 30 12:36:44 TLSP up 299840@1:0, 4097 0 1
Aug 30 12:16:19 Remote CCC down 0 0
Aug 30 12:16:19 Interface up ge-0/0/8.234 0 0
Aug 30 12:16:18 Interface down ge-0/0/8.234 0 0
Aug 30 12:14:40 Remote CCC down 0 0
Aug 30 12:14:40 Interface down 0 0

[edit]

lab@MX960_lab# show protocols connections
remote-interface-switch ccc_EX {
interface ge-0/0/8.234;
transmit-lsp to_EX;
receive-lsp to_MX;
}


lab@ex4200top# show interfaces ge-1/1/0
description "MX ge-0/2/5";
unit 0 {
family inet {
address 10.0.2.2/30;
}
family mpls;
}

lab@ex4200top# show interfaces ge-1/0/19
unit 0 {
family ccc;
}

lab@ex4200top# show protocols rsvp
interface ge-1/1/0.0;
interface lo0.0;

{master:0}[edit]
lab@ex4200top# show protocols mpls
no-cspf;
label-switched-path to_MX {
to 10.0.3.5;
}
interface ge-1/1/0.0;


lab@ex4200top# show protocols connections
remote-interface-switch ccc_MX {
interface ge-1/0/19.0;
transmit-lsp to_MX;
receive-lsp to_EX;
}