Wednesday, July 29, 2015

l2vpn in Juniper MX

Try l2vpn in Juniper MX

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



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

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;
                }
            }
        }
    }
    protocols {
        ospf {
            export statics;
            area 0.0.0.0 {
                interface ge-1/1/4.610;
                interface lo0.1;
            }
        }
    }
    policy-options {
        policy-statement exp-policy {
            term 10 {
                from protocol static;
                then accept;
            }
            term 20 {
                from protocol direct;
                then accept;
            }
        }
        policy-statement statics {
            term 10 {
                from protocol static;
                then accept;
            }
        }
    }                                  
    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;
                }
            }
        }
    }
    protocols {
        ospf {
            export statics;
            area 0.0.0.0 {
                interface ge-1/1/4.610;
                interface lo0.1;
            }
        }
    }
    policy-options {
        policy-statement exp-policy {
            term 10 {
                from protocol static;
                then accept;
            }
            term 20 {
                from protocol direct;
                then accept;
            }
        }
        policy-statement statics {
            term 10 {
                from protocol static;
                then accept;
            }
        }
    }                                  
    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-1> show configuration protocols
mpls {
    interface ge-1/0/0.210;
    interface ge-1/0/1.211;
}
bgp {
    group my-int-group {
        type internal;
        local-address 193.168.1.1;
        family inet {
            unicast;
        }
        family l2vpn {
            signaling;
        }
        neighbor 193.168.1.2;
    }
}
ospf {
    area 0.0.0.0 {
        interface ge-1/0/0.210;
        interface ge-1/0/1.211;
        interface lo0.0;
    }
}
ldp {
    interface ge-1/0/0.210;
    interface ge-1/0/1.211;
    interface lo0.0;
}

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

lab@mxA-2> show configuration protocols
mpls {
    interface ge-1/0/0.212;
    interface ge-1/0/1.213;
}
bgp {
    group my-int-group {
        type internal;
        local-address 193.168.1.2;
        family inet {
            unicast;
        }
        family l2vpn {
            signaling;
        }
        neighbor 193.168.1.1;
    }
}
ospf {
    area 0.0.0.0 {
        interface ge-1/0/0.212;
        interface ge-1/0/1.213;
        interface lo0.0;
    }
}
ldp {
    interface ge-1/0/0.212;
    interface ge-1/0/1.213;
    interface lo0.0;
}

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

lab@mxA-2> show configuration routing-instances
vpn-A {
    instance-type l2vpn;
    interface ge-1/0/4.610;
    vrf-target target:65512:2;
    protocols {
        l2vpn {
            encapsulation-type ethernet-vlan;
            site ceA-2 {
                site-identifier 2;
                interface ge-1/0/4.610;
            }
        }
    }
}

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

lab@mxA-1> show configuration routing-instances
vpn-A {
    instance-type l2vpn;
    interface ge-1/0/4.610;
    vrf-target target:65512:2;
    protocols {
        l2vpn {
            encapsulation-type ethernet-vlan;
            site ceA-1 {
                site-identifier 1;
                interface ge-1/0/4.610;
            }
        }
    }
}

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

lab@mxA-1> show l2vpn 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: vpn-A



  Local site: ceA-1 (1)
    connection-site           Type  St     Time last up          # Up trans
    2                         rmt   Up     Jul 29 09:15:05 2015           1
      Remote PE: 193.168.1.2, Negotiated control-word: Yes (Null)
      Incoming label: 800001, Outgoing label: 800000
      Local interface: ge-1/0/4.610, Status: Up, Encapsulation: VLAN




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

lab@mxA-2> show l2vpn 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: vpn-A
  Local site: ceA-2 (2)
    connection-site           Type  St     Time last up          # Up trans
    1                         rmt   Up     Jul 29 09:15:13 2015           1
      Remote PE: 193.168.1.1, Negotiated control-word: Yes (Null)
      Incoming label: 800000, Outgoing label: 800001
      Local interface: ge-1/0/4.610, Status: Up, Encapsulation: VLAN

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

lab@mxA-1> ping mpls l2vpn instance vpn-A remote-site-id 2 local-site-id 1 detail         
Request for seq 1, to interface 339, labels <800000, 299920>, packet size 88
Reply for seq 1, return code: Egress-ok, time: 7059.583 ms
        Local transmit time: 2015-07-29 09:53:18 UTC 513.291 ms
        Remote receive time: 2015-07-29 09:53:25 UTC 572.874 ms
Request for seq 2, to interface 339, labels <800000, 299920>, packet size 88
Reply for seq 2, return code: Egress-ok, time: 7059.522 ms
        Local transmit time: 2015-07-29 09:53:19 UTC 514.274 ms
        Remote receive time: 2015-07-29 09:53:26 UTC 573.796 ms
Request for seq 3, to interface 339, labels <800000, 299920>, packet size 88
Reply for seq 3, return code: Egress-ok, time: 7059.514 ms
        Local transmit time: 2015-07-29 09:53:20 UTC 514.211 ms
        Remote receive time: 2015-07-29 09:53:27 UTC 573.725 ms
Request for seq 4, to interface 339, labels <800000, 299920>, packet size 88
Reply for seq 4, return code: Egress-ok, time: 7059.504 ms
        Local transmit time: 2015-07-29 09:53:21 UTC 514.202 ms
        Remote receive time: 2015-07-29 09:53:28 UTC 573.706 ms
Request for seq 5, to interface 339, labels <800000, 299920>, packet size 88
Reply for seq 5, return code: Egress-ok, time: 7059.488 ms
        Local transmit time: 2015-07-29 09:53:22 UTC 514.194 ms
        Remote receive time: 2015-07-29 09:53:29 UTC 573.682 ms

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



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

lab@mxA-2> ping mpls l2vpn instance vpn-A remote-site-id 1 local-site-id 2 detail 
Request for seq 1, to interface 338, labels <800001, 299904>, packet size 88
Reply for seq 1, return code: Egress-ok, time: -7058.456 ms
        Local transmit time: 2015-07-29 09:53:57 UTC 244.086 ms
        Remote receive time: 2015-07-29 09:53:50 UTC 185.630 ms
Request for seq 2, to interface 338, labels <800001, 299904>, packet size 88
Reply for seq 2, return code: Egress-ok, time: -7058.472 ms
        Local transmit time: 2015-07-29 09:53:58 UTC 245.022 ms
        Remote receive time: 2015-07-29 09:53:51 UTC 186.550 ms
Request for seq 3, to interface 338, labels <800001, 299904>, packet size 88
Reply for seq 3, return code: Egress-ok, time: -7058.504 ms
        Local transmit time: 2015-07-29 09:53:59 UTC 245.013 ms
        Remote receive time: 2015-07-29 09:53:52 UTC 186.509 ms
Request for seq 4, to interface 338, labels <800001, 299904>, packet size 88
Reply for seq 4, return code: Egress-ok, time: -7058.443 ms
        Local transmit time: 2015-07-29 09:54:00 UTC 245.004 ms
        Remote receive time: 2015-07-29 09:53:53 UTC 186.561 ms
Request for seq 5, to interface 338, labels <800001, 299904>, packet size 88
Reply for seq 5, return code: Egress-ok, time: -7058.444 ms
        Local transmit time: 2015-07-29 09:54:01 UTC 244.996 ms
        Remote receive time: 2015-07-29 09:53:54 UTC 186.552 ms

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

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

lab@mxA-2> ping logical-system ceA-2 10.0.10.1 count 3
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=0.893 ms
64 bytes from 10.0.10.1: icmp_seq=1 ttl=64 time=0.739 ms
64 bytes from 10.0.10.1: icmp_seq=2 ttl=64 time=0.800 ms

--- 10.0.10.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.739/0.811/0.893/0.063 ms

lab@mxA-2> ping logical-system ceA-2 193.168.11.1 count 3  
PING 193.168.11.1 (193.168.11.1): 56 data bytes
64 bytes from 193.168.11.1: icmp_seq=0 ttl=64 time=0.821 ms
64 bytes from 193.168.11.1: icmp_seq=1 ttl=64 time=0.762 ms
64 bytes from 193.168.11.1: icmp_seq=2 ttl=64 time=0.708 ms

--- 193.168.11.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.708/0.764/0.821/0.046 ms


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

lab@mxA-1> ping logical-system ceA-1 10.0.10.2 count 3
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.847 ms
64 bytes from 10.0.10.2: icmp_seq=1 ttl=64 time=0.724 ms
64 bytes from 10.0.10.2: icmp_seq=2 ttl=64 time=0.751 ms

--- 10.0.10.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.724/0.774/0.847/0.053 ms

lab@mxA-1> ping logical-system ceA-1 193.168.11.2 count 3
PING 193.168.11.2 (193.168.11.2): 56 data bytes
64 bytes from 193.168.11.2: icmp_seq=0 ttl=64 time=11.102 ms
64 bytes from 193.168.11.2: icmp_seq=1 ttl=64 time=10.875 ms
64 bytes from 193.168.11.2: icmp_seq=2 ttl=64 time=9.876 ms

--- 193.168.11.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 9.876/10.618/11.102/0.533 ms

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





No comments:

Post a Comment