## Last commit: 2017-08-27 04:24:46 UTC by testuser
version 14.1R5.4;
system {
    host-name sjc-ce01;
    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.130/31;
            }
            family iso;
        }
    }
    ge-0/0/1 {
        description "To SJC-APP-LB01";
        vlan-tagging;
        link-mode full-duplex;
        unit 103 {
            vlan-id 103;
            family inet {
                address 10.115.7.59/31;
            }
        }
        unit 105 {
            vlan-id 105;
            family inet {
                address 10.115.7.63/31;
            }
        }
        unit 108 {
            vlan-id 108;
            family inet {
                address 10.115.7.52/31;
            }
        }
        unit 109 {
            vlan-id 109;
            family inet {
                address 10.115.7.54/31;
            }
        }
        unit 110 {
            vlan-id 110;
            family inet {
                address 10.115.7.56/31;
            }
        }
        unit 111 {
            vlan-id 111;
            family inet {
                address 10.115.7.61/31;
            }
        }
    }
    ge-0/0/2 {
        description "To SJC-TE-FW01";
        vlan-tagging;
        link-mode full-duplex;
        unit 103 {
            vlan-id 103;
            family inet {
                address 10.115.7.33/31;
            }
        }
        unit 105 {
            vlan-id 105;
            family inet {
                address 10.115.7.37/31;
            }
        }
        unit 107 {
            vlan-id 107;
            family inet {
                address 10.115.7.27/31;
            }
        }
        unit 108 {
            vlan-id 108;
            family inet {
                address 10.115.7.25/31;
            }
        }
        unit 109 {
            vlan-id 109;
            family inet {
                address 10.115.7.29/31;
            }
        }
        unit 110 {
            vlan-id 110;
            family inet {
                address 10.115.7.31/31;
            }
        }
        unit 111 {
            vlan-id 111;
            family inet {
                address 10.115.7.35/31;
            }
        }
        unit 208 {
            vlan-id 208;
            family inet {
                address 10.115.7.100/31;
            }
        }
    }
    ge-0/0/3 {
        description "To SJC-CORE-PE01";
        vlan-tagging;
        link-mode full-duplex;
        unit 103 {
            vlan-id 103;
            family inet {
                address 10.10.1.4/31;
            }
        }
        unit 105 {
            vlan-id 105;
            family inet {
                address 10.10.1.8/31;
            }
        }
        unit 107 {
            vlan-id 107;
            family inet {
                address 10.10.1.12/31;
            }
        }
        unit 108 {
            vlan-id 108;
            family inet {
                address 10.10.1.10/31;
            }
        }
    }
    ge-0/0/4 {
        description "To SJC-CORE-PE02";
        vlan-tagging;
        link-mode full-duplex;
        unit 103 {
            vlan-id 103;
            family inet {
                address 10.10.1.20/31;
            }
        }
        unit 105 {
            vlan-id 105;
            family inet {
                address 10.10.1.24/31;
            }
        }
        unit 107 {
            vlan-id 107;
            family inet {
                address 10.10.1.28/31;
            }
        }
        unit 108 {
            vlan-id 108;
            family inet {
                address 10.10.1.26/31;
            }
        }
    }
    ge-0/0/5 {
        link-mode full-duplex;
        gigether-options {
            802.3ad ae0;
        }
    }
    ge-0/0/6 {
        link-mode full-duplex;
        gigether-options {
            802.3ad ae1;
        }
    }
    ge-0/0/7 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-CE02";
            family inet {
                address 10.115.5.42/31;
            }
        }
    }
    ge-0/0/8 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST10";
            family inet {
                address 10.115.5.39/31;
            }
        }
    }
    ge-0/0/9 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST09";
            family inet {
                address 10.115.5.35/31;
            }
        }
    }
    ge-0/0/10 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST08";
            family inet {
                address 10.115.5.25/31;
            }
        }
    }
    ge-0/0/11 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST07";
            family inet {
                address 10.115.5.23/31;
            }
        }
    }
    ge-0/0/12 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST06";
            family inet {
                address 10.115.5.17/31;
            }
        }
    }
    ge-0/0/13 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST05";
            family inet {
                address 10.115.5.15/31;
            }
        }
    }
    ge-0/0/14 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST04";
            family inet {
                address 10.115.5.13/31;
            }
        }
    }
    ge-0/0/15 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST03";
            family inet {
                address 10.115.5.11/31;
            }
        }
    }
    ge-0/0/16 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST02";
            family inet {
                address 10.115.5.7/31;
            }
        }
    }
    ge-0/0/17 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST01";
            family inet {
                address 10.115.5.3/31;
            }
        }
    }
    ge-0/0/18 {
        link-mode full-duplex;
        gigether-options {
            802.3ad ae0;
        }
    }
    ge-0/0/19 {
        link-mode full-duplex;
        gigether-options {
            802.3ad ae1;
        }
    }
    ge-0/0/20 {
        link-mode full-duplex;
    }
    ge-0/0/21 {
        link-mode full-duplex;
    }
    ae0 {
        description "To SJC-ISP-EDGE01";
        unit 0 {
            family inet {
                address 10.115.6.10/31;
            }
        }
    }
    ae1 {
        description "To SJC-ISP-EDGE02";
        unit 0 {
            family inet {
                address 10.115.6.6/31;
            }
        }
    }
}
routing-options {
    autonomous-system 20;
    forwarding-table {
        export LOAD_BALANCE;
    }
}
protocols {
    lldp {
        advertisement-interval 10;
        port-id-subtype interface-name;
        interface all;
    }
}
policy-options {
    policy-statement DEVZONE1-BGP-TO-OSPF {
        term NO-LOOPS {
            from {
                protocol bgp;
                community SJC-DEVZONE-EXPORT;
            }
            then reject;
        }
        term ALLOW-REMAINING {
            from protocol bgp;
            then {
                tag 1103;
                accept;
            }
        }
    }
    policy-statement DEVZONE1-OSPF-TO-BGP {
        term NO-LOOPS {
            from {
                protocol ospf;
                tag 1103;
            }
            then reject;
        }
        term ALLOW-REMAINING {
            from {
                protocol ospf;
                tag 100103;
            }
            then {
                community add SJC-DEVZONE-EXPORT;
                accept;
            }
        }
    }
    policy-statement LOAD_BALANCE {
        then {
            load-balance per-packet;
        }
    }
    policy-statement MGT-TOOLS-BGP-TO-OSPF {
        term NO-LOOPS {
            from {
                protocol bgp;
                community SJC-MGT-TOOLS-EXPORT;
            }
            then reject;
        }
        term ALLOW-REMAINING {
            from protocol bgp;
            then {
                tag 1105;
                accept;
            }
        }
    }
    policy-statement MGT-TOOLS-OSPF-TO-BGP {
        term NO-LOOPS {
            from {
                protocol ospf;
                tag 1105;
            }
            then reject;
        }
        term ALLOW-REMAINING {
            from {
                protocol ospf;
                tag 100105;
            }
            then {
                community add SJC-MGT-TOOLS-EXPORT;
                accept;
            }
        }
    }
    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 reject-all {
        term reject {
            then reject;
        }
    }
    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 {
    CORP-EXTRANET1 {
        instance-type vrf;
        interface ge-0/0/1.111;
        interface ge-0/0/2.111;
        interface ge-0/0/10.0;
        interface ge-0/0/11.0;
        route-distinguisher 1:111;
        vrf-import reject-all;
        vrf-export reject-all;
        protocols {
            ospf {
                area 0.0.0.0 {
                    interface all;
		    area-range 10.117.196.0/22;
                }
            }
        }
    }
    DEVZONE1 {
        instance-type vrf;
        interface ge-0/0/1.103;
        interface ge-0/0/2.103;
        interface ge-0/0/3.103;
        interface ge-0/0/4.103;
        interface ge-0/0/12.0;
        interface ge-0/0/13.0;
        route-distinguisher 1:103;
        vrf-import reject-all;
        vrf-export reject-all;
        protocols {
            bgp {
                group EBGP {
                    type external;
                    export DEVZONE1-OSPF-TO-BGP;
                    peer-as 10;
                    multipath;
                    neighbor 10.10.1.5;
                    neighbor 10.10.1.21;
                }
            }
            ospf {
                external-preference 173;
                export DEVZONE1-BGP-TO-OSPF;
                area 0.0.0.0 {
                    interface all;
                }
            }
        }
    }
    ECOMM-2-PROD {
        instance-type vrf;
        interface ge-0/0/1.109;
        interface ge-0/0/2.109;
        interface ge-0/0/14.0;
        interface ge-0/0/15.0;
        route-distinguisher 1:109;
        vrf-import reject-all;
        vrf-export reject-all;
        protocols {
            ospf {
                area 0.0.0.0 {
                    interface all;
                }
            }
        }
        routing-options {
            static {
                route 10.193.0.0/16 {
                    next-table DEVZONE1;
                    preference 2;
                }
                route 10.5.0.0/16 {
                    next-table DEVZONE1;
                    preference 2;
                }
                route 10.7.0.0/16 {
                    next-table DEVZONE1;
                    preference 2;
                }
            }
        }
    }
    ECOMM-2-QA {
        instance-type vrf;
        interface ge-0/0/1.110;
        interface ge-0/0/2.110;
        interface ge-0/0/16.0;
        interface ge-0/0/17.0;
        route-distinguisher 1:110;
        vrf-import reject-all;
        vrf-export reject-all;
        protocols {
            ospf {
                area 0.0.0.0 {
                    interface all;
                }
            }
        }
        routing-options {
            static {
                route 10.193.0.0/16 {
                    next-table DEVZONE1;
                    preference 2;
                }
                route 10.5.0.0/16 {
                    next-table DEVZONE1;
                    preference 2;
                }
                route 10.7.0.0/16 {
                    next-table DEVZONE1;
                    preference 2;
                }
            }
        }
    }
    INTERNET-IN {
        instance-type vrf;
        interface ge-0/0/1.108;
        interface ge-0/0/2.108;
        interface ge-0/0/2.208;
        interface ge-0/0/3.108;
        interface ge-0/0/4.108;
        route-distinguisher 1:108;
        vrf-import reject-all;
        vrf-export reject-all;
        routing-options {
            static {
                route 0.0.0.0/0 {
                    discard;
                    no-install;
                }
            }
        }
        protocols {
            bgp {
                group EBGP {
                    type external;
                    peer-as 10;
                    multipath;
                    neighbor 10.10.1.11;
                    neighbor 10.10.1.27;
                }
            }
            ospf {
                area 0.0.0.0 {
                    interface all;
                }
            }
        }
    }
    INTERNET-OUT {
        instance-type vrf;
        interface ge-0/0/2.107;
        interface ge-0/0/3.107;
        interface ge-0/0/4.107;
        interface ge-0/0/7.0;
        interface ae0.0;
        interface ae1.0;
        route-distinguisher 1:107;
        vrf-import reject-all;
        vrf-export reject-all;
        protocols {
            bgp {
                disable;
                group IBGP {
                    type internal;
                    peer-as 20;
                    multipath;
                    neighbor 10.115.6.11;
                    neighbor 10.115.6.7 {
                        local-address 10.115.6.6;
                    }
                    neighbor 10.115.5.43 {
                        local-address 10.115.5.42;
                    }
                }
                group EBGP {
                    type external;
                    peer-as 10;
                    neighbor 10.10.1.13;
                    neighbor 10.10.1.29;
                }
            }
            ospf {
                area 0.0.0.0 {
                    interface all;
                }
            }
        }
    }
    MGT-TOOLS {
        instance-type vrf;
        interface ge-0/0/1.105;
        interface ge-0/0/2.105;
        interface ge-0/0/3.105;
        interface ge-0/0/4.105;
        interface ge-0/0/8.0;
        interface ge-0/0/9.0;
        route-distinguisher 1:105;
        vrf-import reject-all;
        vrf-export reject-all;
        protocols {
            bgp {
                group EBGP {
                    type external;
                    export MGT-TOOLS-OSPF-TO-BGP;
                    peer-as 10;
                    multipath;
                    neighbor 10.10.1.9;
                    neighbor 10.10.1.25;
                }
            }
            ospf {
                external-preference 173;
                export MGT-TOOLS-BGP-TO-OSPF;
                area 0.0.0.0 {
                    interface all;
                }
            }
        }
        routing-options {
            static {
                route 10.193.0.0/16 {
                    next-table DEVZONE1;
                    preference 2;
                }
                route 10.5.0.0/16 {
                    next-table DEVZONE1;
                    preference 2;
                },
                route 10.7.0.0/16 {
                    next-table DEVZONE1;
                    preference 2;
                }
            }
        }
    }
}
