## Last commit: 2017-08-27 04:24:12 UTC by testuser
version 14.1R5.4;
system {
    host-name sjc-ce02;
    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.132/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.18/31;
            }
        }
        unit 105 {
            vlan-id 105;
            family inet {
                address 10.115.7.22/31;
            }
        }
        unit 108 {
            vlan-id 108;
            family inet {
                address 10.115.7.12/31;
            }
        }
        unit 109 {
            vlan-id 109;
            family inet {
                address 10.115.7.14/31;
            }
        }
        unit 110 {
            vlan-id 110;
            family inet {
                address 10.115.7.16/31;
            }
        }
        unit 111 {
            vlan-id 111;
            family inet {
                address 10.115.7.20/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.46/31;
            }
        }
        unit 105 {
            vlan-id 105;
            family inet {
                address 10.115.7.50/31;
            }
        }
        unit 107 {
            vlan-id 107;
            family inet {
                address 10.115.7.40/31;
            }
        }
        unit 108 {
            vlan-id 108;
            family inet {
                address 10.115.7.38/31;
            }
        }
        unit 109 {
            vlan-id 109;
            family inet {
                address 10.115.7.42/31;
            }
        }
        unit 110 {
            vlan-id 110;
            family inet {
                address 10.115.7.44/31;
            }
        }
        unit 111 {
            vlan-id 111;
            family inet {
                address 10.115.7.48/31;
            }
        }
        unit 208 {
            vlan-id 208;
            family inet {
                address 10.115.7.102/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.34/31;
            }
        }
        unit 105 {
            vlan-id 105;
            family inet {
                address 10.10.1.38/31;
            }
        }
        unit 107 {
            vlan-id 107;
            family inet {
                address 10.10.1.30/31;
            }
        }
        unit 108 {
            vlan-id 108;
            family inet {
                address 10.10.1.32/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.36/31;
            }
        }
        unit 105 {
            vlan-id 105;
            family inet {
                address 10.10.1.40/31;
            }
        }
        unit 107 {
            vlan-id 107;
            family inet {
                address 10.10.1.44/31;
            }
        }
        unit 108 {
            vlan-id 108;
            family inet {
                address 10.10.1.42/31;
            }
        }
    }
    ge-0/0/5 {
        link-mode full-duplex;
        gigether-options {
            802.3ad ae1;
        }
    }
    ge-0/0/6 {
        link-mode full-duplex;
        gigether-options {
            802.3ad ae0;
        }
    }
    ge-0/0/7 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-CE01";
            family inet {
                address 10.115.5.43/31;
            }
        }
    }
    ge-0/0/8 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST10";
            family inet {
                address 10.115.5.41/31;
            }
        }
    }
    ge-0/0/9 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DISC09";
            family inet {
                address 10.115.5.37/31;
            }
        }
    }
    ge-0/0/10 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST08";
            family inet {
                address 10.115.5.33/31;
            }
        }
    }
    ge-0/0/11 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST07";
            family inet {
                address 10.115.5.31/31;
            }
        }
    }
    ge-0/0/12 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST06";
            family inet {
                address 10.115.5.29/31;
            }
        }
    }
    ge-0/0/13 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST05";
            family inet {
                address 10.115.5.27/31;
            }
        }
    }
    ge-0/0/14 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST04";
            family inet {
                address 10.115.5.21/31;
            }
        }
    }
    ge-0/0/15 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST03";
            family inet {
                address 10.115.5.19/31;
            }
        }
    }
    ge-0/0/16 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST02";
            family inet {
                address 10.115.5.9/31;
            }
        }
    }
    ge-0/0/17 {
        link-mode full-duplex;
        unit 0 {
            description "To SJC-DC12-DIST01";
            family inet {
                address 10.115.5.5/31;
            }
        }
    }
    ge-0/0/18 {
        link-mode full-duplex;
        gigether-options {
            802.3ad ae1;
        }
    }
    ge-0/0/19 {
        link-mode full-duplex;
        gigether-options {
            802.3ad ae0;
        }
    }
    ge-0/0/20 {
        link-mode full-duplex;
    }
    ge-0/0/21 {
        link-mode full-duplex;
    }
    ae0 {
        description SJC-ISP-EDGE02;
        unit 0 {
            family inet {
                address 10.115.6.4/31;
            }
        }
    }
    ae1 {
        description "To SJC-ISP-EDGE01";
        unit 0 {
            family inet {
                address 10.115.6.8/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.35;
                    neighbor 10.10.1.37;
                }
            }
            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;
        protocols {
            bgp {
                group EBGP {
                    type external;
                    peer-as 10;
                    multipath;
                    neighbor 10.10.1.33;
                    neighbor 10.10.1.43;
                }
            }
            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.5;
                    neighbor 10.115.6.9 {
                        local-address 10.115.6.8;
                    }
                    neighbor 10.115.5.42 {
                        local-address 10.115.5.43;
                    }
                }
                group EBGP {
                    type external;
                    peer-as 10;
                    neighbor 10.10.1.31;
                    neighbor 10.10.1.45;
                }
            }
            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.39;
                    neighbor 10.10.1.41;
                }
            }
            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;
                }
            }
        }
    }
}
