Truman BoyesZeros & Ones

archive

junos ccc layer 2 switching on a single PE

By Truman Boyes · · 1 min read

[An image from the original post was not archived.]

Similar to L2VPN, circuit cross connect is a good way to quickly build up ethernet switching on a single MPLS PE. It’s very easy to build CCC connections. Here an an example:

fe-0/3/1 {
vlan-tagging;
encapsulation vlan-ccc;
unit 0 {
encapsulation vlan-ccc;
vlan-id 800;
}
}
fe-0/3/2 {
vlan-tagging;
encapsulation vlan-ccc;
unit 0 {
encapsulation vlan-ccc;
vlan-id 800;
}
}

connections {
interface-switch router1-to-router2 {
interface fe-0/3/1.0;
interface fe-0/3/2.0;
}
}

ps@presidio-r10# run show connections
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
<- -- only inbound  conn is up      Legend for circuit types
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
router1-to-router2                if-sw       Up      Aug 12 09:29:55           1
fe-0/3/1.0                        intf  Up
fe-0/3/2.0                        intf  Up

Originally published on truman.net. See the archived copy.