Tuesday, July 28, 2015

L2CIRCUIT in Juniper MX

Lets Play with MX for L2CIRCUIT connection

==============================================



===============================================

lab@mxA-1> show configuration logical-systems
ceA-1 {
    interfaces {
        ge-1/1/4 {
            unit 610 {
                vlan-id 610;
                family inet {
                    address 10.0.10.1/24;
                }
            }
        }
        lo0 {
            unit 1 {
                family inet {
                    address 193.168.11.1/32;
                }
            }
        }
    }
    routing-options {
        static {
            route 172.10.0.0/24 reject;
            route 172.10.1.0/24 reject;
            route 172.10.2.0/24 reject;
            route 172.10.3.0/24 reject;
        }
        autonomous-system 65101;
    }
}

==================================================================

lab@mxA-2> show configuration logical-systems
ceA-2 {
    interfaces {
        ge-1/1/4 {
            unit 610 {
                vlan-id 610;
                family inet {
                    address 10.0.10.2/24;
                }
            }
        }
        lo0 {
            unit 1 {
                family inet {
                    address 193.168.11.2/32;
                }
            }
        }
    }
    routing-options {
        static {
            route 172.10.4.0/24 reject;
            route 172.10.5.0/24 reject;
            route 172.10.6.0/24 reject;
            route 172.10.7.0/24 reject;
        }
        autonomous-system 65101;
    }
}

=====================================================================

lab@mxA-2> show configuration protocols
rsvp {
    interface ge-1/0/0.212;
    interface ge-1/0/1.213;
}
mpls {
    no-cspf;
    label-switched-path pe2-to-pe1-A {
        to 193.168.1.1;
    }
    interface ge-1/0/0.212;
    interface ge-1/0/1.213;
}
ospf {
    area 0.0.0.0 {
        interface ge-1/0/0.212;
        interface ge-1/0/1.213;
        interface lo0.0;
    }
}
ldp {
    interface lo0.0;
}
l2circuit {
    neighbor 193.168.1.1 {
        interface ge-1/0/4.610 {
            virtual-circuit-id 1;
        }
    }
}

===================================================================

lab@mxA-1> show configuration protocols        
rsvp {
    interface ge-1/0/0.210;
    interface ge-1/0/1.211;
}
mpls {
    no-cspf;
    label-switched-path pe1-to-pe2-A {
        to 193.168.1.2;
    }
    interface ge-1/0/0.210;
    interface ge-1/0/1.211;
}
ospf {
    area 0.0.0.0 {
        interface ge-1/0/0.210;
        interface ge-1/0/1.211;
        interface lo0.0;
    }
}
ldp {
    interface lo0.0;
}
l2circuit {
    neighbor 193.168.1.2 {
        interface ge-1/0/4.610 {
            virtual-circuit-id 1;
        }
    }
}

====================================================================

lab@mxA-1> show mpls lsp          
Ingress LSP: 1 sessions
To              From            State Rt P     ActivePath       LSPname
193.168.1.2     193.168.1.1     Up     0 *                      pe1-to-pe2-A
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions
To              From            State   Rt Style Labelin Labelout LSPname
193.168.1.1     193.168.1.2     Up       0  1 FF       3        - pe2-to-pe1-A
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

lab@mxA-1> show ldp database
Input label database, 193.168.1.1:0--193.168.1.2:0
  Label     Prefix
      3      193.168.1.2/32
 299888      L2CKT CtrlWord VLAN VC 1

Output label database, 193.168.1.1:0--193.168.1.2:0
  Label     Prefix
      3      193.168.1.1/32
 299888      L2CKT CtrlWord VLAN VC 1

========================================================================

lab@mxA-2> show mpls lsp 
Ingress LSP: 1 sessions
To              From            State Rt P     ActivePath       LSPname
193.168.1.1     193.168.1.2     Up     0 *                      pe2-to-pe1-A
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions
To              From            State   Rt Style Labelin Labelout LSPname
193.168.1.2     193.168.1.1     Up       0  1 FF       3        - pe1-to-pe2-A
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

lab@mxA-2> show ldp database
Input label database, 193.168.1.2:0--193.168.1.1:0
  Label     Prefix
      3      193.168.1.1/32
 299888      L2CKT CtrlWord VLAN VC 1

Output label database, 193.168.1.2:0--193.168.1.1:0
  Label     Prefix
      3      193.168.1.2/32
 299888      L2CKT CtrlWord VLAN VC 1

====================================================================

lab@mxA-1> show ospf neighbor
Address          Interface              State     ID               Pri  Dead
172.22.210.2     ge-1/0/0.210           Full      193.168.5.1      128    37
172.22.211.2     ge-1/0/1.211           Full      193.168.5.4      128    35

lab@mxA-2> show ospf neighbor
Address          Interface              State     ID               Pri  Dead
172.22.212.2     ge-1/0/0.212           Full      193.168.5.3      128    38
172.22.213.2     ge-1/0/1.213           Full      193.168.5.6      128    36

====================================================================

lab@mxA-1> show l2circuit connections extensive
Layer-2 Circuit Connections:

Legend for connection status (St)  
EI -- encapsulation invalid      NP -- interface h/w not present  
MM -- mtu mismatch               Dn -- down                      
EM -- encapsulation mismatch     VC-Dn -- Virtual circuit Down   
CM -- control-word mismatch      Up -- operational               
VM -- vlan id mismatch           CF -- Call admission control failure
OL -- no outgoing label          IB -- TDM incompatible bitrate
NC -- intf encaps not CCC/TCC    TM -- TDM misconfiguration
BK -- Backup Connection          ST -- Standby Connection
CB -- rcvd cell-bundle size bad  SP -- Static Pseudowire
LD -- local site signaled down   RS -- remote site standby
RD -- remote site signaled down  XX -- unknown

Legend for interface status 
Up -- operational           
Dn -- down                  
Neighbor: 193.168.1.2
    Interface                 Type  St     Time last up          # Up trans
    ge-1/0/4.610(vc 1)        rmt   Up     Jul 28 10:17:43 2015           1
      Remote PE: 193.168.1.2, Negotiated control-word: Yes (Null)
      Incoming label: 299888, Outgoing label: 299888
      Negotiated PW status TLV: No
      Local interface: ge-1/0/4.610, Status: Up, Encapsulation: VLAN
    Connection History:
        Jul 28 10:17:43 2015  status update timer 
        Jul 28 10:17:10 2015  PE route changed    
        Jul 28 10:17:10 2015  Out lbl Update                    299888
        Jul 28 10:17:10 2015  In lbl Update                     299888
        Jul 28 10:17:10 2015  loc intf up                 ge-1/0/4.610


========================================================================

lab@mxA-2> show l2circuit connections extensive
Layer-2 Circuit Connections:

Legend for connection status (St)  
EI -- encapsulation invalid      NP -- interface h/w not present  
MM -- mtu mismatch               Dn -- down                      
EM -- encapsulation mismatch     VC-Dn -- Virtual circuit Down   
CM -- control-word mismatch      Up -- operational               
VM -- vlan id mismatch           CF -- Call admission control failure
OL -- no outgoing label          IB -- TDM incompatible bitrate
NC -- intf encaps not CCC/TCC    TM -- TDM misconfiguration
BK -- Backup Connection          ST -- Standby Connection
CB -- rcvd cell-bundle size bad  SP -- Static Pseudowire
LD -- local site signaled down   RS -- remote site standby
RD -- remote site signaled down  XX -- unknown

Legend for interface status 
Up -- operational           
Dn -- down                  
Neighbor: 193.168.1.1
    Interface                 Type  St     Time last up          # Up trans
    ge-1/0/4.610(vc 1)        rmt   Up     Jul 28 10:17:51 2015           1
      Remote PE: 193.168.1.1, Negotiated control-word: Yes (Null)
      Incoming label: 299888, Outgoing label: 299888
      Negotiated PW status TLV: No
      Local interface: ge-1/0/4.610, Status: Up, Encapsulation: VLAN
    Connection History:
        Jul 28 10:17:51 2015  status update timer 
        Jul 28 10:17:51 2015  PE route changed    
        Jul 28 10:17:51 2015  Out lbl Update                    299888
        Jul 28 10:17:51 2015  In lbl Update                     299888
        Jul 28 10:17:51 2015  loc intf up                 ge-1/0/4.610


=====================================================================
lab@mxA-1> ping mpls l2circuit virtual-circuit 1 neighbor 193.168.1.2 detail
Request for seq 1, to interface 338, labels <299888, 299888>, packet size 88
Reply for seq 1, return code: Egress-ok, time: 7090.190 ms
        Local transmit time: 2015-07-29 04:50:51 UTC 932.574 ms
        Remote receive time: 2015-07-29 04:50:59 UTC 22.764 ms
Request for seq 2, to interface 338, labels <299888, 299888>, packet size 88
Reply for seq 2, return code: Egress-ok, time: 7090.129 ms
        Local transmit time: 2015-07-29 04:50:52 UTC 932.555 ms
        Remote receive time: 2015-07-29 04:51:00 UTC 22.684 ms
Request for seq 3, to interface 338, labels <299888, 299888>, packet size 88
Reply for seq 3, return code: Egress-ok, time: 7090.097 ms
        Local transmit time: 2015-07-29 04:50:53 UTC 932.500 ms
        Remote receive time: 2015-07-29 04:51:01 UTC 22.597 ms
Request for seq 4, to interface 338, labels <299888, 299888>, packet size 88
Reply for seq 4, return code: Egress-ok, time: 7090.016 ms
        Local transmit time: 2015-07-29 04:50:54 UTC 932.492 ms
        Remote receive time: 2015-07-29 04:51:02 UTC 22.508 ms
Request for seq 5, to interface 338, labels <299888, 299888>, packet size 88
Reply for seq 5, return code: Egress-ok, time: 7090.283 ms
        Local transmit time: 2015-07-29 04:50:55 UTC 932.480 ms
        Remote receive time: 2015-07-29 04:51:03 UTC 22.763 ms

======================================================================

lab@mxA-2> ping mpls l2circuit virtual-circuit 1 neighbor 193.168.1.1 detail  
Request for seq 1, to interface 338, labels <299888, 299888>, packet size 88
Reply for seq 1, return code: Egress-ok, time: -7088.973 ms
        Local transmit time: 2015-07-29 04:51:20 UTC 636.474 ms
        Remote receive time: 2015-07-29 04:51:13 UTC 547.501 ms
Request for seq 2, to interface 338, labels <299888, 299888>, packet size 88
Reply for seq 2, return code: Egress-ok, time: -7089.039 ms
        Local transmit time: 2015-07-29 04:51:21 UTC 636.411 ms
        Remote receive time: 2015-07-29 04:51:14 UTC 547.372 ms
Request for seq 3, to interface 338, labels <299888, 299888>, packet size 88
Reply for seq 3, return code: Egress-ok, time: -7089.033 ms
        Local transmit time: 2015-07-29 04:51:22 UTC 636.402 ms
        Remote receive time: 2015-07-29 04:51:15 UTC 547.369 ms
Request for seq 4, to interface 338, labels <299888, 299888>, packet size 88
Reply for seq 4, return code: Egress-ok, time: -7089.027 ms
        Local transmit time: 2015-07-29 04:51:23 UTC 636.394 ms
        Remote receive time: 2015-07-29 04:51:16 UTC 547.367 ms
Request for seq 5, to interface 338, labels <299888, 299888>, packet size 88
Reply for seq 5, return code: Egress-ok, time: -7089.023 ms
        Local transmit time: 2015-07-29 04:51:24 UTC 636.377 ms
        Remote receive time: 2015-07-29 04:51:17 UTC 547.354 ms

--- lsping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss

========================================================================


lab@mxA-1> ping logical-system ceA-1 10.0.10.2 count 5
PING 10.0.10.2 (10.0.10.2): 56 data bytes
64 bytes from 10.0.10.2: icmp_seq=0 ttl=64 time=0.845 ms
64 bytes from 10.0.10.2: icmp_seq=1 ttl=64 time=0.750 ms
64 bytes from 10.0.10.2: icmp_seq=2 ttl=64 time=0.747 ms
64 bytes from 10.0.10.2: icmp_seq=3 ttl=64 time=0.778 ms
64 bytes from 10.0.10.2: icmp_seq=4 ttl=64 time=0.794 ms

--- 10.0.10.2 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.747/0.783/0.845/0.036 ms

========================================================================

lab@mxA-2> ping logical-system ceA-2 10.0.10.1 count 5
PING 10.0.10.1 (10.0.10.1): 56 data bytes
64 bytes from 10.0.10.1: icmp_seq=0 ttl=64 time=4.475 ms
64 bytes from 10.0.10.1: icmp_seq=1 ttl=64 time=3.055 ms
64 bytes from 10.0.10.1: icmp_seq=2 ttl=64 time=1.778 ms
64 bytes from 10.0.10.1: icmp_seq=3 ttl=64 time=0.917 ms
64 bytes from 10.0.10.1: icmp_seq=4 ttl=64 time=0.723 ms

--- 10.0.10.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.723/2.190/4.475/1.408 ms



No comments:

Post a Comment