Thursday, 11 June 2020

Juniper - MPLS L2VPN - VPLS


Topology


PE1

set interfaces ge-0/0/3 unit 0 description "To P1."
set interfaces ge-0/0/3 unit 0 family inet address 172.22.209.1/24
set interfaces ge-0/0/3 unit 0 family mpls
set interfaces ge-0/0/5 unit 0 description "To P2."
set interfaces ge-0/0/5 unit 0 family inet address 172.22.210.1/24
set interfaces ge-0/0/5 unit 0 family mpls
set interfaces ge-0/0/7 vlan-tagging
set interfaces ge-0/0/7 encapsulation vlan-vpls
set interfaces ge-0/0/7 unit 101 encapsulation vlan-vpls
set interfaces ge-0/0/7 unit 101 vlan-id 1101
set interfaces ge-0/0/7 unit 101 family vpls

set interfaces lo0 unit 0 family inet address 192.168.1.1/32

set routing-options autonomous-system 65512

set protocols mpls no-cspf
set protocols mpls interface ge-0/0/3.0
set protocols mpls interface ge-0/0/5.0

set protocols bgp group int-bgp-grp type internal
set protocols bgp group int-bgp-grp local-address 192.168.1.1
set protocols bgp group int-bgp-grp family inet unicast
set protocols bgp group int-bgp-grp family l2vpn signaling
set protocols bgp group int-bgp-grp neighbor 192.168.1.2
set protocols bgp group int-bgp-grp neighbor 192.168.1.3

set protocols ospf area 0.0.0.0 interface ge-0/0/3.0
set protocols ospf area 0.0.0.0 interface ge-0/0/5.0
set protocols ospf area 0.0.0.0 interface lo0.0

set protocols ldp interface ge-0/0/3.0
set protocols ldp interface ge-0/0/5.0

set routing-instances Cust-1 instance-type vpls
set routing-instances Cust-1 interface ge-0/0/7.101
set routing-instances Cust-1 route-distinguisher 192.168.1.1:101
set routing-instances Cust-1 vrf-target targer:65512:1
set routing-instances Cust-1 protocols vpls no-tunnel-services
set routing-instances Cust-1 protocols vpls site-range20
set routing-instances Cust-1 protocols vpls site cust1-siteA site-identifier 1
set routing-instances Cust-1 protocols vpls site cust1-siteA interface ge-0/0/7.101


PE2

set interfaces ge-0/0/4 description "To P1."
set interfaces ge-0/0/4 unit 0 family inet address 172.22.211.1/24
set interfaces ge-0/0/4 unit 0 family mpls
set interfaces ge-0/0/5 description "To P3."
set interfaces ge-0/0/5 unit 0 family inet address 172.22.212.1/24
set interfaces ge-0/0/5 unit 0 family mpls
set interfaces ge-0/0/7 vlan-tagging
set interfaces ge-0/0/7 encapsulation vlan-vpls
set interfaces ge-0/0/7 unit 101 encapsulation vlan-vpls
set interfaces ge-0/0/7 unit 101 vlan-id 1101
set interfaces ge-0/0/7 unit 101 family vpls
set interfaces lo0 unit 0 family inet address 192.168.1.2/32

set routing-options autonomous-system 65512

set protocols mpls no-cspf
set protocols mpls interface ge-0/0/4.0
set protocols mpls interface ge-0/0/5.0

set protocols bgp group int-bgp-grp type internal
set protocols bgp group int-bgp-grp local-address 192.168.1.2
set protocols bgp group int-bgp-grp family inet unicast
set protocols bgp group int-bgp-grp family l2vpn signaling
set protocols bgp group int-bgp-grp neighbor 192.168.1.1
set protocols bgp group int-bgp-grp neighbor 192.168.1.3

set protocols ospf area 0.0.0.0 interface ge-0/0/4.0
set protocols ospf area 0.0.0.0 interface ge-0/0/5.0
set protocols ospf area 0.0.0.0 interface lo0.0

set protocols ldp interface ge-0/0/4.0
set protocols ldp interface ge-0/0/5.0

set routing-instances Cust-1 instance-type vpls
set routing-instances Cust-1 interface ge-0/0/7.101
set routing-instances Cust-1 route-distinguisher 192.168.1.2:101
set routing-instances Cust-1 vrf-target targer:65512:1
set routing-instances Cust-1 protocols vpls no-tunnel-services
set routing-instances Cust-1 protocols vpls site-range20
set routing-instances Cust-1 protocols vpls site cust1-siteB site-identifier 2
set routing-instances Cust-1 protocols vpls site cust1-siteB interface ge-0/0/7.101


PE3
set interfaces ge-0/0/3 description "To P3."
set interfaces ge-0/0/3 unit 0 family inet address 172.22.214.1/24
set interfaces ge-0/0/3 unit 0 family mpls
set interfaces ge-0/0/4 description "To P2."
set interfaces ge-0/0/4 unit 0 family inet address 172.22.213.1/24
set interfaces ge-0/0/4 unit 0 family mpls
set interfaces ge-0/0/7 vlan-tagging
set interfaces ge-0/0/7 encapsulation vlan-vpls
set interfaces ge-0/0/7 unit 101 encapsulation vlan-vpls
set interfaces ge-0/0/7 unit 101 vlan-id 1101
set interfaces ge-0/0/7 unit 101 family vpls
set interfaces lo0 unit 0 family inet address 192.168.1.3/32

set routing-options autonomous-system 65512

set protocols mpls no-cspf
set protocols mpls interface ge-0/0/3.0
set protocols mpls interface ge-0/0/4.0

set protocols bgp group int-bgp-grp type internal
set protocols bgp group int-bgp-grp local-address 192.168.1.3
set protocols bgp group int-bgp-grp family inet unicast
set protocols bgp group int-bgp-grp family inet-vpn unicast
set protocols bgp group int-bgp-grp family l2vpn signaling
set protocols bgp group int-bgp-grp neighbor 192.168.1.1
set protocols bgp group int-bgp-grp neighbor 192.168.1.2

set protocols ospf area 0.0.0.0 interface ge-0/0/3.0
set protocols ospf area 0.0.0.0 interface ge-0/0/4.0
set protocols ospf area 0.0.0.0 interface lo0.0

set protocols ldp interface ge-0/0/3.0
set protocols ldp interface ge-0/0/4.0

set routing-instances Cust-1 instance-type vpls
set routing-instances Cust-1 interface ge-0/0/7.101
set routing-instances Cust-1 route-distinguisher 192.168.1.3:101
set routing-instances Cust-1 vrf-target targer:65512:1
set routing-instances Cust-1 protocols vpls no-tunnel-services
set routing-instances Cust-1 protocols vpls site-range20
set routing-instances Cust-1 protocols vpls site cust1-siteC site-identifier 3
set routing-instances Cust-1 protocols vpls site cust1-siteC interface ge-0/0/7.101

CE1

set interfaces ge-0/0/0 unit 0 family inet address 192.168.100.17/24
set interfaces ge-0/0/7 vlan-tagging
set interfaces ge-0/0/7 unit 1101 vlan-id 1101
set interfaces ge-0/0/7 unit 1101 family inet address 10.1.10.1/24
set interfaces lo0 unit 1 family inet address 192.168.11.1/32
set routing-options static route 172.1.0.0/24 reject
set routing-options static route 172.1.1.0/24 reject
set routing-options static route 172.1.2.0/24 reject
set routing-options static route 172.1.3.0/24 reject
set routing-options autonomous-system 65101
set protocols ospf export exp-policy-cust-A
set protocols ospf area 0.0.0.0 interface ge-0/0/7.1101
set policy-options policy-statement exp-policy-cust-A term 10 from protocol direct
set policy-options policy-statement exp-policy-cust-A term 10 from route-filter 192.168.11.1/32 exact
set policy-options policy-statement exp-policy-cust-A term 10 then accept
set policy-options policy-statement exp-policy-cust-A term 20 from protocol static
set policy-options policy-statement exp-policy-cust-A term 20 then accept
set policy-options policy-statement exp-policy-cust-A term 30 then reject

CE2

set interfaces ge-0/0/7 vlan-tagging
set interfaces ge-0/0/7 unit 1101 vlan-id 1101
set interfaces ge-0/0/7 unit 1101 family inet address 10.1.10.2/24
set interfaces lo0 unit 1 family inet address 192.168.11.2/32
set routing-options static route 172.1.4.0/24 reject
set routing-options static route 172.1.5.0/24 reject
set routing-options static route 172.1.6.0/24 reject
set routing-options static route 172.1.7.0/24 reject
set routing-options autonomous-system 65101
set protocols ospf export exp-policy-cust-A
set protocols ospf area 0.0.0.0 interface ge-0/0/7.1101
set policy-options policy-statement exp-policy-cust-A term 10 from protocol direct
set policy-options policy-statement exp-policy-cust-A term 10 from route-filter 192.168.11.2/32 exact
set policy-options policy-statement exp-policy-cust-A term 10 then accept
set policy-options policy-statement exp-policy-cust-A term 20 from protocol static
set policy-options policy-statement exp-policy-cust-A term 20 then accept
set policy-options policy-statement exp-policy-cust-A term 30 then reject

CE3

set interfaces ge-0/0/0 unit 0 family inet address 192.168.100.19/24
set interfaces ge-0/0/7 vlan-tagging
set interfaces ge-0/0/7 unit 1101 vlan-id 1101
set interfaces ge-0/0/7 unit 1101 family inet address 10.1.10.3/24
set interfaces lo0 unit 1 family inet address 192.168.11.3/32
set routing-options static route 172.1.8.0/24 reject
set routing-options static route 172.1.9.0/24 reject
set routing-options static route 172.1.10.0/24 reject
set routing-options static route 172.1.11.0/24 reject
set routing-options autonomous-system 65101
set protocols ospf export exp-policy-cust-A
set protocols ospf area 0.0.0.0 interface ge-0/0/7.1101
set policy-options policy-statement exp-policy-cust-A term 10 from protocol direct
set policy-options policy-statement exp-policy-cust-A term 10 from route-filter 192.168.11.3/32 exact
set policy-options policy-statement exp-policy-cust-A term 10 then accept
set policy-options policy-statement exp-policy-cust-A term 20 from protocol static
set policy-options policy-statement exp-policy-cust-A term 20 then accept
set policy-options policy-statement exp-policy-cust-A term 30 then reject


P1

set interfaces ge-0/0/1 description "To Router P2."
set interfaces ge-0/0/1 unit 0 family inet address 172.20.201.1/24
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/3 description "To Router PE1."
set interfaces ge-0/0/3 unit 0 family inet address 172.22.209.2/24
set interfaces ge-0/0/3 unit 0 family mpls
set interfaces ge-0/0/4 description "To Router PE2."
set interfaces ge-0/0/4 unit 0 family inet address 172.22.211.2/24
set interfaces ge-0/0/4 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 192.168.5.1/24
set routing-options autonomous-system 65512
set protocols mpls interface all
set protocols ospf area 0.0.0.0 interface all
set protocols ldp interface all

P2

set interfaces ge-0/0/1 description "To P1."
set interfaces ge-0/0/1 unit 0 family inet address 172.20.201.2/24
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/2 description "To P3."
set interfaces ge-0/0/2 unit 0 family inet address 172.20.206.2/24
set interfaces ge-0/0/2 unit 0 family mpls
set interfaces ge-0/0/4 description "To PE3."
set interfaces ge-0/0/4 unit 0 family inet address 172.22.213.2/24
set interfaces ge-0/0/4 unit 0 family mpls
set interfaces ge-0/0/5 description "To PE1."
set interfaces ge-0/0/5 unit 0 family inet address 172.22.210.2/24
set interfaces ge-0/0/5 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 192.168.5.2/24
set routing-options autonomous-system 65512
set protocols mpls interface all
set protocols ospf area 0.0.0.0 interface all
set protocols ldp interface all

P3

set interfaces ge-0/0/2 description "To P2."
set interfaces ge-0/0/2 unit 0 family inet address 172.20.206.1/24
set interfaces ge-0/0/2 unit 0 family mpls
set interfaces ge-0/0/3 description "To PE3."
set interfaces ge-0/0/3 unit 0 family inet address 172.22.214.2/24
set interfaces ge-0/0/3 unit 0 family mpls
set interfaces ge-0/0/5 description "To PE2."
set interfaces ge-0/0/5 unit 0 family inet address 172.22.212.2/24
set interfaces ge-0/0/5 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 192.168.5.3/24
set routing-options autonomous-system 65512
set protocols mpls interface all
set protocols ospf area 0.0.0.0 interface all
set protocols ldp interface all


~~~ The End ~~~

Wednesday, 10 June 2020

Juniper - MPLS BGP L2-VPN Auto Provisioning

Topology


PE1

interfaces {
    ge-0/0/3 {
        unit 0 {
            description "To P1.";
            family inet {
                address 172.22.209.1/24;
            }
            family mpls;
        }
    }
    ge-0/0/5 {
        unit 0 {
            description "To P2.";
            family inet {
                address 172.22.210.1/24;
            }
            family mpls;
        }
    }
    ge-0/0/7 {
        vlan-tagging;
        encapsulation vlan-ccc;
        unit 1001 {                                //Connect with Site-2
            encapsulation vlan-ccc;
            vlan-id 1001;
        }
        unit 1002 {                               //Connect with Site-3         
            encapsulation vlan-ccc;
            vlan-id 1002;
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.1.1/32;
            }
        }
    }
}

routing-options {
    autonomous-system 65512;
}

protocols {
    rsvp {
        interface ge-0/0/3.0;
        interface ge-0/0/5.0;
    }
    mpls {
        label-switched-path PE1-to-PE2 {
            from 192.168.1.1;
            to 192.168.1.2;
        }
        label-switched-path PE1-to-PE3 {
            from 192.168.1.1;
            to 192.168.1.3;
        }
        interface ge-0/0/3.0;
        interface ge-0/0/5.0;
    }
    bgp {
        group int-grp-core {
            type internal;
            local-address 192.168.1.1;
            family inet {
                unicast;
            }
            family inet-vpn {
                unicast;
            }
            family l2vpn {
                signaling;

            }
            neighbor 192.168.1.2;      
            neighbor 192.168.1.3;
        }
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface ge-0/0/3.0;
            interface ge-0/0/5.0;
            interface lo0.0;
        }
    }
}

policy-options {
    policy-statement export-cust-A {
        term 1 {
            then {
                community add cust-A;
                accept;
            }
        }
        term 2 {
            then reject;
        }
    }
    policy-statement import-cust-A {
        term 1 {
            from {
                protocol bgp;
                community cust-A;
            }
            then accept;
        }
        term 2 {
            then reject;
        }
    }
    community cust-A members target:65512:1;
}

routing-instances {
    customer-A {
        instance-type l2vpn;
        interface ge-0/0/7.1001;
        interface ge-0/0/7.1002;
        route-distinguisher 192.168.1.1:1;
        vrf-import import-cust-A;
        vrf-export export-cust-A;      
        protocols {
            l2vpn {
                encapsulation-type ethernet-vlan;
                site ce1-A1 {
                    site-identifier 1;
                    interface ge-0/0/7.1001;                          \\ site-2 (PE2)
                    interface ge-0/0/7.1002;                           \\site-3 (PE3)

                }
            }
        }
    }
}


PE-2

interfaces {
    ge-0/0/4 {
        description "To P1.";
        unit 0 {
            family inet {
                address 172.22.211.1/24;
            }
            family mpls;
        }
    }
    ge-0/0/5 {
        description "To P3.";
        unit 0 {
            family inet {
                address 172.22.212.1/24;
            }
            family mpls;
        }
    }
    ge-0/0/7 {
        vlan-tagging;
        encapsulation vlan-ccc;
        unit 1001 {
            encapsulation vlan-ccc;
            vlan-id 1001;
        }
        unit 1003 {
            encapsulation vlan-ccc;    
            vlan-id 1003;
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.1.2/32;
            }
        }
    }
}

routing-options {
    autonomous-system 65512;
}

protocols {
    rsvp {
        interface ge-0/0/4.0;
        interface ge-0/0/5.0;
    }
    mpls {
        label-switched-path PE2-to-PE1 {
            from 192.168.1.2;
            to 192.168.1.1;
        }
        label-switched-path PE2-to-PE3 {
            from 192.168.1.2;
            to 192.168.1.3;
        }
        interface ge-0/0/4.0;
        interface ge-0/0/5.0;
    }
    bgp {
        group int-grp-core {
            type internal;
            local-address 192.168.1.2;
            family inet {
                unicast;
            }
            family inet-vpn {
                unicast;
            }
            family l2vpn {
                signaling;
            }
            neighbor 192.168.1.1;
            neighbor 192.168.1.3;      
        }
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface ge-0/0/4.0;
            interface ge-0/0/5.0;
            interface lo0.0;
        }
    }
}

policy-options {
    policy-statement export-cust-A {
        term 1 {
            then {
                community add cust-A;
                accept;
            }
        }
        term 2 {
            then reject;
        }
    }
    policy-statement import-cust-A {
        term 1 {
            from {
                protocol bgp;
                community cust-A;
            }
            then accept;
        }
        term 2 {
            then reject;
        }
    }
    community cust-A members target:65512:1;
}

routing-instances {
    customer-A {
        instance-type l2vpn;
        interface ge-0/0/7.1001;
        interface ge-0/0/7.1003;
        route-distinguisher 192.168.1.2:1;
        vrf-import import-cust-A;
        vrf-export export-cust-A;
        protocols {                    
            l2vpn {
                encapsulation-type ethernet-vlan;
                site ce2-A2 {
                    site-identifier 2;
                    interface ge-0/0/7.1001;                                            //site-1 (PE-1)
                    interface ge-0/0/7.1003;                                            //site-3 (PE-3)

                }
            }
        }
    }
}

PE3

interfaces {
    ge-0/0/3 {
        description "To P3.";
        unit 0 {
            family inet {
                address 172.22.214.1/24;
            }
            family mpls;
        }
    }
    ge-0/0/4 {
        description "To P2.";
        unit 0 {
            family inet {
                address 172.22.213.1/24;
            }
            family mpls;
        }
    }
    ge-0/0/7 {
        vlan-tagging;
        encapsulation vlan-ccc;
        unit 1002 {
            encapsulation vlan-ccc;
            vlan-id 1002;
        }
        unit 1003 {
            encapsulation vlan-ccc;    
            vlan-id 1003;
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.1.3/32;
            }
        }
    }
}

routing-options {
    autonomous-system 65512;
}

protocols {
    rsvp {
        interface ge-0/0/3.0;
        interface ge-0/0/4.0;
    }
    mpls {
        label-switched-path PE3-to-PE1 {
            from 192.168.1.3;
            to 192.168.1.1;
        }
        label-switched-path PE3-to-PE2 {
            from 192.168.1.3;
            to 192.168.1.2;
        }
        interface ge-0/0/3.0;
        interface ge-0/0/4.0;
    }
    bgp {
        group int-grp-core {
            type internal;
            local-address 192.168.1.3;
            family inet {
                unicast;
            }
            family inet-vpn {
                unicast;
            }
            family l2vpn {
                signaling;
            }
            neighbor 192.168.1.1;
            neighbor 192.168.1.2;      
        }
    }
    ospf {
        traffic-engineering;
        area 0.0.0.0 {
            interface ge-0/0/3.0;
            interface ge-0/0/4.0;
            interface lo0.0;
        }
    }
}

policy-options {
    policy-statement export-cust-A {
        term 1 {
            then {
                community add cust-A;
                accept;
            }
        }
        term 2 {
            then reject;
        }
    }
    policy-statement import-cust-A {
        term 1 {
            from {
                protocol bgp;
                community cust-A;
            }
            then accept;
        }
        term 2 {
            then reject;
        }
    }
    community cust-A members target:65512:1;
}

routing-instances {
    customer-A {
        instance-type l2vpn;
        interface ge-0/0/7.1002;
        interface ge-0/0/7.1003;
        route-distinguisher 192.168.1.3:1;
        vrf-import import-cust-A;
        vrf-export export-cust-A;
        protocols {                    
            l2vpn {
                encapsulation-type ethernet-vlan;
                site ce3-A3 {
                    site-identifier 3;
                    interface ge-0/0/7.1002;                                          //site1 (PE-1)
                    interface ge-0/0/7.1003;                                          //site2 (PE-2)

                }
            }
        }
    }
}


CE-1

interfaces {
    ge-0/0/7 {
        vlan-tagging;
        unit 1001 {
            description "Site-1 to Site-2";
            vlan-id 1001;
            family inet {
                address 10.1.10.1/24;
            }
        }
        unit 1002 {
            description "Site-1 to Site-3";
            vlan-id 1002;
            family inet {
                address 10.1.11.1/24;
            }
        }
    }
    lo0 {
        unit 1 {
            family inet {
                address 192.168.11.1/32;
            }
        }
    }
}
routing-options {
    static {
        route 172.1.0.0/24 reject;     
        route 172.1.1.0/24 reject;
        route 172.1.2.0/24 reject;
        route 172.1.3.0/24 reject;
    }
    autonomous-system 65101;
}

CE-2

interfaces {
    ge-0/0/7 {
        vlan-tagging;
        unit 1001 {
            description "Site-2 to Site-1";
            vlan-id 1001;
            family inet {
                address 10.1.10.2/24;
            }
        }
        unit 1003 {
            description "Site-2 to Site-3";
            vlan-id 1003;
            family inet {
                address 10.1.12.1/24;
            }
        }
    }
    lo0 {
        unit 1 {
            family inet {
                address 192.168.11.2/32;
            }
        }
    }
}
routing-options {
    static {
        route 172.1.4.0/24 reject;     
        route 172.1.5.0/24 reject;
        route 172.1.6.0/24 reject;
        route 172.1.7.0/24 reject;
    }
    autonomous-system 65101;
}

CE-3

interfaces {
   ge-0/0/7 {
        vlan-tagging;
        unit 1002 {
            description "Site-3 to Site-1";
            vlan-id 1002;
            family inet {
                address 10.1.11.2/24;
            }
        }
        unit 1003 {
            description "Site-3 to Site-2";
            vlan-id 1003;
            family inet {
                address 10.1.12.2/24;
            }
        }
    }
    lo0 {
        unit 1 {
            family inet {
                address 192.168.11.3/32;
            }
        }
    }
}
routing-options {
    static {
        route 172.1.8.0/24 reject;     
        route 172.1.9.0/24 reject;
        route 172.1.10.0/24 reject;
        route 172.1.11.0/24 reject;
    }
    autonomous-system 65101;
}

P1

set interfaces ge-0/0/1 description "To Router P2."
set interfaces ge-0/0/1 unit 0 family inet address 172.20.201.1/24
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/3 description "To Router PE1."
set interfaces ge-0/0/3 unit 0 family inet address 172.22.209.2/24
set interfaces ge-0/0/3 unit 0 family mpls
set interfaces ge-0/0/4 description "To Router PE2."
set interfaces ge-0/0/4 unit 0 family inet address 172.22.211.2/24
set interfaces ge-0/0/4 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 192.168.5.1/24
set routing-options autonomous-system 65512
set protocols rsvp interface all
set protocols mpls interface all
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0
set protocols ospf area 0.0.0.0 interface ge-0/0/3.0
set protocols ospf area 0.0.0.0 interface ge-0/0/4.0
set protocols ospf area 0.0.0.0 interface lo0.0

P2

set interfaces ge-0/0/1 description "To P1."
set interfaces ge-0/0/1 unit 0 family inet address 172.20.201.2/24
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/2 description "To P3."
set interfaces ge-0/0/2 unit 0 family inet address 172.20.206.2/24
set interfaces ge-0/0/2 unit 0 family mpls
set interfaces ge-0/0/4 description "To PE3."
set interfaces ge-0/0/4 unit 0 family inet address 172.22.213.2/24
set interfaces ge-0/0/4 unit 0 family mpls
set interfaces ge-0/0/5 description "To PE1."
set interfaces ge-0/0/5 unit 0 family inet address 172.22.210.2/24
set interfaces ge-0/0/5 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 192.168.5.2/24
set routing-options autonomous-system 65512
set protocols rsvp interface all
set protocols mpls interface all
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0
set protocols ospf area 0.0.0.0 interface ge-0/0/4.0
set protocols ospf area 0.0.0.0 interface ge-0/0/5.0
set protocols ospf area 0.0.0.0 interface lo0.0

P3

set interfaces ge-0/0/2 description "To P2."
set interfaces ge-0/0/2 unit 0 family inet address 172.20.206.1/24
set interfaces ge-0/0/2 unit 0 family mpls
set interfaces ge-0/0/3 description "To PE3."
set interfaces ge-0/0/3 unit 0 family inet address 172.22.214.2/24
set interfaces ge-0/0/3 unit 0 family mpls
set interfaces ge-0/0/5 description "To PE2."
set interfaces ge-0/0/5 unit 0 family inet address 172.22.212.2/24
set interfaces ge-0/0/5 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 192.168.5.3/24
set routing-options autonomous-system 65512
set protocols rsvp interface all
set protocols mpls interface all
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0
set protocols ospf area 0.0.0.0 interface ge-0/0/3.0
set protocols ospf area 0.0.0.0 interface ge-0/0/5.0
set protocols ospf area 0.0.0.0 interface lo0.0

PE1 - L2VPN Connection Status


PE2 - L2VPN Connection Status


PE3 - L2VPN Connection Status


~~~ The End ~~~