## Last commit: 2017-08-31 20:13:40 UTC by testuser
version 14.1R5.4;
system {
    host-name sjc-core-pe02;
    default-address-selection;
    services {
        ssh {
            protocol-version v2;
        }
    }
    syslog {
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
}
chassis {
    aggregated-devices {
        ethernet {
            device-count 2;
        }
    }
    fpc 0 {
        pic 0 {
            number-of-ports 23;
        }
    }
}
interfaces {
    ge-0/0/0 {
        link-mode full-duplex;
        unit 0 {
            family inet {
                address 10.100.0.78/31;
            }
            family iso;
        }
    }
    ge-0/0/1 {
        link-mode full-duplex;
        unit 0 {
            family inet {
                address 10.10.1.9/30;
            }
            family iso;
            family mpls;
        }
    }
    ge-0/0/2 {
        link-mode full-duplex;
        unit 0 {
            family inet {
                address 10.10.1.13/30;
            }
            family iso;
            family mpls;
        }
    }
    ge-0/0/3 {
        description "To SJC-CE01";
        vlan-tagging;
        link-mode full-duplex;
        unit 103 {
            vlan-id 103;
            family inet {
                address 10.10.1.21/31;
            }
        }
        unit 105 {
            vlan-id 105;
            family inet {
                address 10.10.1.25/31;
            }
        }
        unit 107 {
            vlan-id 107;
            family inet {
                address 10.10.1.29/31;
            }
        }
        unit 108 {
            vlan-id 108;
            family inet {
                address 10.10.1.27/31;
            }
        }
    }
    ge-0/0/4 {
        description "To SJC-CE02";
        vlan-tagging;
        link-mode full-duplex;
        unit 103 {
            vlan-id 103;
            family inet {
                address 10.10.1.37/31;
            }
        }
        unit 105 {
            vlan-id 105;
            family inet {
                address 10.10.1.41/31;
            }
        }
        unit 107 {
            vlan-id 107;
            family inet {
                address 10.10.1.45/31;
            }
        }
        unit 108 {
            vlan-id 108;
            family inet {
                address 10.10.1.43/31;
            }
        }
    }
    ge-0/0/5 {
        link-mode full-duplex;
    }
    ge-0/0/6 {
        link-mode full-duplex;
    }
    ge-0/0/7 {
        link-mode full-duplex;
    }
    lo0 {
        unit 0 {
            family inet {
                address 10.10.0.4/32;
            }
            family iso {
                address 49.0001.0100.1000.0004.00;
            }
        }
    }
}
routing-options {
    router-id 10.10.0.4;
    autonomous-system 10;
    forwarding-table {
        export LOAD_BALANCE;
    }
}
protocols {
    mpls {
        interface ge-0/0/1.0;
        interface ge-0/0/2.0;
    }
    bgp {
        group ibgp {
            type internal;
            local-address 10.10.0.4;
            family inet-vpn {
                any;
            }
            neighbor 10.10.0.3;
            neighbor 10.10.0.5;
            neighbor 10.10.0.6;
            neighbor 10.10.0.7;
            neighbor 10.10.0.8;
        }
    }
    isis {
        level 2 wide-metrics-only;
        interface ge-0/0/1.0 {
            level 2 metric 10000;
            level 1 disable;
        }
        interface ge-0/0/2.0 {
            level 2 metric 10000;
            level 1 disable;
        }
        interface lo0.0 {
            level 1 disable;
        }
    }
    ldp {
        interface ge-0/0/1.0;
        interface ge-0/0/2.0;
    }
    lldp {
        advertisement-interval 10;
        port-id-subtype interface-name;
        interface all;
    }
}
policy-options {
    policy-statement LOAD_BALANCE {
        then {
            load-balance per-packet;
        }
    }
    policy-statement SJC-DEVZONE-EXPORT {
        term NO-LOOPS {
            from {
                protocol bgp;
                community SJC-DEVZONE-IMPORT;
            }
            then reject;
        }
        term EXPORT {
            then {
                community add SJC-DEVZONE-EXPORT;
                accept;
            }
        }
    }
    policy-statement SJC-DEVZONE-IMPORT {
        term NO-LOOPS {
            from {
                protocol bgp;
                community SJC-DEVZONE-EXPORT;
            }
            then reject;
        }
        term IMPORT {
            from {
                protocol bgp;
                community SJC-DEVZONE-IMPORT;
            }
            then accept;
        }
        term REJECT {
            then reject;
        }
    }
    policy-statement SJC-MGT-TOOLS-EXPORT {
        term NO-LOOPS {
            from {
                protocol bgp;
                community SJC-MGT-TOOLS-IMPORT;
            }
            then reject;
        }
        term EXPORT {
            then {
                community add SJC-MGT-TOOLS-EXPORT;
                accept;
            }
        }
    }
    policy-statement SJC-MGT-TOOLS-IMPORT {
        term NO-LOOPS {
            from {
                protocol bgp;
                community SJC-MGT-TOOLS-EXPORT;
            }
            then reject;
        }
        term IMPORT {
            from {
                protocol bgp;
                community SJC-MGT-TOOLS-IMPORT;
            }
            then accept;
        }
        term REJECT {
            then reject;
        }
    }
    policy-statement export-direct {
        term from-direct {
            from protocol direct;
            then accept;
        }
    }
    policy-statement export-statics {
        term from-static {
            from protocol static;
            then accept;
        }
    }
    policy-statement next-hop-self {
        then {
            next-hop self;
        }
    }
    community SJC-DEVZONE-EXPORT members target:10:2103;
    community SJC-DEVZONE-IMPORT members target:10:1103;
    community SJC-MGT-TOOLS-EXPORT members target:10:2105;
    community SJC-MGT-TOOLS-IMPORT members target:10:1105;
}
routing-instances {
    DEVZONE1 {
        instance-type vrf;
        interface ge-0/0/3.103;
        interface ge-0/0/4.103;
        route-distinguisher 10.10.0.4:103;
        vrf-import SJC-DEVZONE-IMPORT;
        vrf-export SJC-DEVZONE-EXPORT;
        vrf-target target:10:103;
        vrf-table-label;
        routing-options {
            multipath {
                vpn-unequal-cost;
            }
        }
        protocols {
            bgp {
                group to-CE {
                    type external;
                    peer-as 20;
                    multipath;
                    neighbor 10.10.1.20;
                    neighbor 10.10.1.36;
                }
            }
        }
    }
    INTERNET-IN {
        instance-type vrf;
        interface ge-0/0/3.108;
        interface ge-0/0/4.108;
        route-distinguisher 10.10.0.4:108;
        vrf-target target:10:108;
        vrf-table-label;
        routing-options {
            multipath {
                vpn-unequal-cost;
            }
        }
        protocols {
            bgp {
                group to-CE {
                    type external;
                    peer-as 20;
                    multipath;
                    neighbor 10.10.1.26;
                    neighbor 10.10.1.42;
                }
            }
        }
    }
    INTERNET-OUT {
        instance-type vrf;
        interface ge-0/0/3.107;
        interface ge-0/0/4.107;
        route-distinguisher 10.10.0.4:107;
        vrf-target target:10:107;
        vrf-table-label;
        routing-options {
            multipath {
                vpn-unequal-cost;
            }
        }
        protocols {
            bgp {
                group to-CE {
                    type external;
                    peer-as 20;
                    multipath;
                    neighbor 10.10.1.28;
                    neighbor 10.10.1.44;
                }
            }
        }
    }
    MGT-TOOLS {
        instance-type vrf;
        interface ge-0/0/3.105;
        interface ge-0/0/4.105;
        route-distinguisher 10.10.0.4:105;
        vrf-import SJC-MGT-TOOLS-IMPORT;
        vrf-export SJC-MGT-TOOLS-EXPORT;
        vrf-target target:10:105;
        vrf-table-label;
        routing-options {
            multipath {
                vpn-unequal-cost;
            }
        }
        protocols {
            bgp {
                group to-CE {
                    type external;
                    peer-as 20;
                    multipath;
                    neighbor 10.10.1.24;
                    neighbor 10.10.1.40;
                }
            }
        }
    }
}
