Spine 5c10 qfx2 - kratna888/Contrail_Command GitHub Wiki

Last commit: 2018-06-22 15:46:18 PDT by root

version "17.3-20180509_17.3T.0 [dc-builder]";
groups {
    JUMBO_FRAMES {
        interfaces {
            <*-*> {
                mtu 9216;
            }
        }
    }
    /* Contrail Generated Group Config */
    __contrail__ {
        interfaces {
            /* Interfaces Configuration */
            lo0 {
                /* Router Loopback Interface */
                unit 0 {
                    family inet {
                        address 192.168.255.101/32 {
                            primary;
                            preferred;
                        }
                    }
                }
                /* Bogus lo0 interface (PFE limitation), Virtual Network: __contrail_lr_internal_vn_04515427-61a4-4755-a3ae-222182907d47__, UUID: b625a712-5f57-4a2e-aca2-49817609d4a4 */
                unit 1006 {
                    family inet {
                        address 127.0.0.1/32;
                    }
                }
            }
            irb {
                gratuitous-arp-reply;
                /* Virtual Network: vn2, UUID: 9d134450-2727-4428-90cb-b8a4431d81a9, VRF Type: L2-L3 */
                unit 5 {
                    proxy-macip-advertisement;
                    family inet {
                        /* Allocated IPv4 Address from Subnet: 2.2.2.0/24 */
                        address 2.2.2.24/24 {
                            virtual-gateway-address 2.2.2.1;
                        }
                    }
                }
                /* Virtual Network: vn1, UUID: d1f40dff-1580-4bcd-85dd-18fb6e650f57, VRF Type: L2-L3 */
                unit 4 {
                    proxy-macip-advertisement;
                    family inet {
                        /* Allocated IPv4 Address from Subnet: 1.1.1.0/24 */
                        address 1.1.1.23/24 {
                            virtual-gateway-address 1.1.1.1;
                        }
                    }
                }
            }
        }
        routing-options {
            /* Global Routing Options */
            router-id 192.168.255.101;
            route-distinguisher-id 192.168.255.101;
            autonomous-system 64512;
            resolution {
                rib bgp.rtarget.0 {
                    resolution-ribs inet.0;
                }
            }
        }
        protocols {
            /* Protocols Configuration */
            bgp {
                /* BGP Router: 5c10-qfx2-bgp, UUID: 8ac11161-adb1-4171-958d-b019a3192ae4 */
                group _contrail_asn-64512 {
                    type internal;
                    local-address 192.168.255.101;
                    hold-time 90;
                    family evpn {
                        signaling;
                    }
                    family route-target;
                    export _contrail_ibgp_export_policy;
                    /* BGP Router: 5c10-qfx7-bgp, UUID: 34526fe2-708b-4df9-81d0-a573a352c0ed */
                    neighbor 192.168.255.1 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-qfx8-bgp, UUID: d98621da-4597-4594-8e50-1cb9a46004cf */
                    neighbor 192.168.255.2 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-qfx4-bgp, UUID: 396bfba9-b931-4e34-8a96-9aaaa24a28b1 */
                    neighbor 192.168.255.3 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-qfx5-bgp, UUID: bb1ab961-88a3-4db4-ac3e-718113547cea */
                    neighbor 192.168.255.4 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-mx80-1-bgp, UUID: 02e7925c-b2c6-45d4-b2ed-ca3ae35c378a */
                    neighbor 192.168.255.201 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-mx80-2-bgp, UUID: 185b6585-4623-46a5-9861-581c7dfb9750 */
                    neighbor 192.168.255.202 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-qfx3-bgp, UUID: c01684d1-25f3-4726-b186-a23eecb8e10c */
                    neighbor 192.168.255.102 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10s9, UUID: bd665f57-32b3-4823-b9e5-753139f2cd73 */
                    neighbor 10.1.0.2 {
                        peer-as 64512;
                    }
                }
            }
            evpn {
                vni-options {
                    vni 5 {
                        vrf-target target:64512:8000003;
                    }
                    vni 4 {
                        vrf-target target:64512:8000002;
                    }
                }
                encapsulation vxlan;
                default-gateway no-gateway-community;
                extended-vni-list all;
            }
        }
        policy-options {
            /* Policy Options */
            /* iBGP Export Policy */
            policy-statement _contrail_ibgp_export_policy {
                term inet-vpn {
                    from family inet-vpn;
                    then {
                        next-hop self;
                    }
                }
                term inet6-vpn {
                    from family inet6-vpn;
                    then {
                        next-hop self;
                    }
                }
            }
            /* Virtual Network: vn2, UUID: 9d134450-2727-4428-90cb-b8a4431d81a9, Route Targets Type: Export */
            policy-statement _contrail_vn2-l2-5-export {
                term t1 {
                    then {
                        community add _contrail_target_64512_8000003;
                        accept;
                    }
                }
            }
            /* Virtual Network: vn2, UUID: 9d134450-2727-4428-90cb-b8a4431d81a9, Route Targets Type: Import */
            policy-statement _contrail_vn2-l2-5-import {
                term _contrail_switch_policy_ {
                    from community _contrail_switch_policy_;
                    then accept;
                }
                term t1 {
                    from community _contrail_target_64512_8000003;
                    then accept;
                }
            }
            /* Virtual Network: vn1, UUID: d1f40dff-1580-4bcd-85dd-18fb6e650f57, Route Targets Type: Export */
            policy-statement _contrail_vn1-l2-4-export {
                term t1 {
                    then {
                        community add _contrail_target_64512_8000002;
                        accept;
                    }
                }
            }
            /* Virtual Network: vn1, UUID: d1f40dff-1580-4bcd-85dd-18fb6e650f57, Route Targets Type: Import */
            policy-statement _contrail_vn1-l2-4-import {
                term _contrail_switch_policy_ {
                    from community _contrail_switch_policy_;
                    then accept;
                }
                term t1 {
                    from community _contrail_target_64512_8000002;
                    then accept;
                }
            }
            /* Virtual Network: __contrail_lr_internal_vn_04515427-61a4-4755-a3ae-222182907d47__, UUID: b625a712-5f57-4a2e-aca2-49817609d4a4, Route Targets Type: Export */
            policy-statement _contrail___contrail_lr_internal_vn_04515427-61a4-4755-a3ae-222182907d47__-l3-6-export {
                term t1 {
                    then {
                        community add _contrail_target_64512_8000005;
                        accept;
                    }
                }
            }
            /* Virtual Network: __contrail_lr_internal_vn_04515427-61a4-4755-a3ae-222182907d47__, UUID: b625a712-5f57-4a2e-aca2-49817609d4a4, Route Targets Type: Import */
            policy-statement _contrail___contrail_lr_internal_vn_04515427-61a4-4755-a3ae-222182907d47__-l3-6-import {
                term _contrail_switch_policy_ {
                    from community _contrail_switch_policy_;
                    then accept;
                }
                term t1 {
                    from community _contrail_target_64512_8000005;
                    then accept;
                }
            }
            community _contrail_target_64512_8000005 members target:64512:8000005;
            community _contrail_target_64512_8000003 members target:64512:8000003;
            community _contrail_target_64512_8000002 members target:64512:8000002;
            community _contrail_switch_export_community_ members [ target:64512:8000005 target:64512:8000003 target:64512:8000002 ];
            community _contrail_switch_policy_ members target:64512:1;
        }
        routing-instances {
            /* Routing Instances Configuration */
            _contrail___contrail_lr_internal_vn_04515427-61a4-4755-a3ae-222182907d47__-l3-6 {
                instance-type vrf;
                interface lo0.1006;
                interface irb.5;
                interface irb.4;
                vrf-import _contrail___contrail_lr_internal_vn_04515427-61a4-4755-a3ae-222182907d47__-l3-6-import;
                vrf-export _contrail___contrail_lr_internal_vn_04515427-61a4-4755-a3ae-222182907d47__-l3-6-export;
                protocols {
                    evpn {
                        ip-prefix-routes {
                            advertise direct-nexthop;
                            encapsulation vxlan;
                            vni 2048;
                        }
                    }
                }
            }
        }
        switch-options {
            vtep-source-interface lo0.0;
            route-distinguisher 192.168.255.101:1;
            vrf-import [ _contrail_vn2-l2-5-import _contrail_vn1-l2-4-import _contrail___contrail_lr_internal_vn_04515427-61a4-4755-a3ae-222182907d47__-l3-6-import ];
            vrf-export [ _contrail_vn2-l2-5-export _contrail_vn1-l2-4-export _contrail___contrail_lr_internal_vn_04515427-61a4-4755-a3ae-222182907d47__-l3-6-export ];
            vrf-target {
                target:64512:1;
                auto;
            }
        }
        vlans {
            contrail_vn2-l2-5 {
                vlan-id 5;
                l3-interface irb.5;
                vxlan {
                    vni 5;
                }
            }
            contrail_vn1-l2-4 {
                vlan-id 4;
                l3-interface irb.4;
                vxlan {
                    vni 4;
                }
            }
        }
    }
}
apply-groups [ JUMBO_FRAMES __contrail__ ];
system {
    host-name 5c10-qfx2;
    domain-search [ contrail.juniper.net juniper.net jnpr.net englab.juniper.net spglab.juniper.net ];
    time-zone US/Pacific;
    arp {
        aging-timer 5;
    }
    root-authentication {
        encrypted-password "$6$tdz8KDRi$5SoDFKqppibFHeJSLZVzqBwcDQIudzWb34ILeD/4Mju0SVWLa5541vLAasFmDHnnAeWbC0KUPt11CrtadymPB/"; ## SECRET-DATA
    }
    name-server {
        10.84.5.100;
        172.21.200.60;
    }
    services {
        ftp;
        ssh {
            root-login allow;
        }
        telnet;
        netconf {
            ssh;
            traceoptions {
                file nc.log;
                flag all;
            }
        }
    }
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
    archival {
        configuration {
            transfer-on-commit;
            archive-sites {
                "ftp://ftpuser:[email protected]";
            }
        }
    }
    processes {
        dhcp-service {
            traceoptions {
                file dhcp_logfile size 10m;
                level all;
                flag all;
            }
        }
        app-engine-virtual-machine-management-service {
            traceoptions {
                level notice;
                flag all;
            }
        }
    }
    ntp {
        # Boot Servers #
        boot-server 10.84.5.100;
        server 172.21.200.60;
        server 10.84.5.100;
        server 172.29.131.60;
        server 172.29.135.60;
    }
}
chassis {
    fpc 0 {
        pic 0 {
            port 30 {
                channel-speed 10g;
            }
        }
    }
}
interfaces {
    et-0/0/0 {
        unit 0 {
            family inet {
                address 192.168.10.4/31;
            }
            family iso;
        }
    }
    xe-0/0/32:0 {
        unit 0 {
            family inet {
                address 192.168.30.1/31;
            }
            family iso;
        }
    }
    xe-0/0/32:1 {
        unit 0 {
            family inet {
                address 192.168.30.3/31;
            }
            family iso;
        }
    }
    et-0/0/33 {
        unit 0 {
            family inet {
                address 192.168.10.6/31;
            }
            family iso;
        }
    }
    et-0/0/34 {
        unit 0 {
            family inet {
                address 192.168.10.0/31;
            }
            family iso;
        }
    }
    et-0/0/35 {
        unit 0 {
            family inet {
                address 192.168.10.2/31;
            }
            family iso;
        }
    }
    em0 {
        unit 0 {
            family inet {
                address 10.84.130.35/19;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.255.101/32;
            }
            family iso {
                address 49.0002.0192.0168.0022.00;
            }
        }
    }
}
snmp {
    location "";
    contact "";
    community public {
        authorization read-only;
    }
}
routing-options {
    static {
        route 0.0.0.0/0 next-hop 10.84.159.254;
    }
    router-id 192.168.255.101;
    autonomous-system 64512;
    forwarding-table {
        export pplb;
    }
}
protocols {
    ##
    ## Warning: requires 'bgp' license
    ##
    bgp {
        group IPFAB-UNDER {
            type external;
            mtu-discovery;
            export ADV-LOOPBACK;
            local-as 65301;
            multipath multiple-as;
            neighbor 192.168.10.1 {
                description 5c10-qfx7;
                peer-as 65001;
            }
            neighbor 192.168.10.3 {
                description 5c10-qfx8;
                peer-as 65002;
            }
            neighbor 192.168.10.5 {
                description 5c10-qfx4;
                peer-as 65003;
            }
            neighbor 192.168.10.7 {
                description 5c10-qfx5;
                peer-as 65004;
            }
            neighbor 192.168.30.0 {
                description 5c10-mx80-1;
                peer-as 65401;
            }
            neighbor 192.168.30.2 {
                description 5c10-mx80-2;
                peer-as 65402;
            }
        }
    }
    inactive: isis {
        interface all {
            level 1 disable;
        }
    }
    l2-learning {
        traceoptions {
            level all;
            flag all;
        }
    }
    lldp {
        interface all;
    }
    lldp-med {
        interface all;
    }
    igmp-snooping {
        vlan default;
    }
}
policy-options {
    policy-statement ADV-LOOPBACK {
        term 1 {
            from {
                protocol direct;
                interface lo0.0;
            }
            then accept;
        }
    }
    policy-statement BGP-IPFAB-UNDER-EXP {
        term LOOPBACK {
            from {
                protocol direct;
                interface lo0.0;
            }
            then {
                community set IPFAB-LEAF;
                accept;
            }
        }
        term SERVERS {
            from {
                protocol direct;
                interface irb.10;
            }
            then {
                community set IPFAB-LEAF;
                accept;
            }
        }
        then reject;
    }
    policy-statement pplb {
        then {
            load-balance per-packet;
            accept;
        }
    }
    community IPFAB-LEAF members 64512:1001;
}

{master:0}


⚠️ **GitHub.com Fallback** ⚠️