LEAF NODE3 CONFIG 5C10 QFX7 - kratna888/Contrail_Command GitHub Wiki

## Last changed: 2018-06-06 01:20:29 UTC
## Image name: jinstall-host-qfx-5e-flex-x86-64-17.3R2.9-secure-signed.tgz

version 17.3R1.10;
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.1/32 {
                            primary;
                            preferred;
                        }
                    }
                }
            }
        }
        routing-options {
            /* Global Routing Options */
            router-id 192.168.255.1;
            route-distinguisher-id 192.168.255.1;
            autonomous-system 64512;
            resolution {
                rib bgp.rtarget.0 {
                    resolution-ribs inet.0;
                }
            }
        }
        protocols {
            /* Protocols Configuration */
            bgp {
                /* BGP Router: 5c10-qfx7-bgp, UUID: 163dd771-309f-4873-811a-9aecf6b2c89d */
                group _contrail_asn-64512 {
                    type internal;
                    local-address 192.168.255.1;
                    hold-time 90;
                    family evpn {
                        signaling;
                    }
                    family route-target;
                    /* BGP Router: 5c10-qfx3-bgp, UUID: c1bc3905-7c01-404c-979a-85913d88965b */
                    neighbor 192.168.255.102 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-qfx8-bgp, UUID: fc9b5ec1-f27e-4a27-817e-45677578149a */
                    neighbor 192.168.255.2 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-qfx4-bgp, UUID: 5f548a4e-ae1e-4753-9a44-f11b3816f81b */
                    neighbor 192.168.255.3 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-qfx5-bgp, UUID: f9ed8dd2-c594-400a-a971-a7d0fef2eeb1 */
                    neighbor 192.168.255.4 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-mx80-1-bgp, UUID: e087ffb7-2e0f-4133-bd80-345ae4d016de */
                    neighbor 192.168.255.201 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-qfx2-bgp, UUID: 812803b8-3a93-4ddd-806f-348f82907f37 */
                    neighbor 192.168.255.101 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10s9, UUID: bd665f57-32b3-4823-b9e5-753139f2cd73 */
                    neighbor 10.1.0.2 {
                        peer-as 64512;
                    }
                }
            }
        }
        policy-options {
            /* Policy Options */
            community _contrail_switch_policy_ members target:64512:1;
        }
        switch-options {
            vtep-source-interface lo0.0;
        }
    }
}
apply-groups [ JUMBO_FRAMES __contrail__ ];
system {
    host-name 5c10-qfx7;
    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$I7UjnsGq$vYzV8/zhhJCEV5qKOEEjll95AUABIgxHjWoEEUKoQENwW/Yh7EYTTXqAFRfutstFwy/bddjVJ4BUfxw5UFe4l/"; ## SECRET-DATA
    }
    name-server {
        172.21.200.60;
    }
    services {
        ftp;
        ssh {
            root-login allow;
        }
        telnet;
        netconf {
            ssh;
            traceoptions {
                file nc;
                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 {
        server 172.21.200.60;
    }
}
chassis {
    redundancy {
        graceful-switchover;
    }
    aggregated-devices {
        ethernet {
            device-count 440;
        }
    }
}
interfaces {
    xe-0/0/32 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members vlan10;
                }
            }
        }
    }
    xe-0/0/33 {
        disable;
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members vlan10;
                }
            }
        }
    }
    xe-0/0/34 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members vlan10;
                }
            }
        }
    }
    xe-0/0/35 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members vlan10;
                }
            }
        }
    }
    et-0/0/48 {
        unit 0 {
            family inet {
                address 192.168.10.1/31;
            }
            family iso;
        }
    }
    et-0/0/49 {
        unit 0 {
            family inet {
                address 192.168.20.1/31;
            }
            family iso;
        }
    }
    ae10 {
        mtu 9192;
        aggregated-ether-options {
            lacp {
                active;
                periodic fast;
            }
        }
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members vlan10;
                }
            }
        }
    }
    em0 {
        unit 0 {
            family inet {
                address 10.84.130.42/19;
            }
        }
    }
    irb {
        unit 10 {
            family inet {
                address 10.1.0.1/26;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.255.1/32;
            }
            family iso {
                address 49.0002.0192.0168.2551.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.1;
    autonomous-system 64512;
}
protocols {
    bgp {
        group IPFAB-UNDER {
            type external;
            mtu-discovery;
            export BGP-IPFAB-UNDER-EXP;
            local-as 65001;
            multipath multiple-as;
            neighbor 192.168.10.0 {
                description 5c10-qfx2;
                peer-as 65301;
            }
            neighbor 192.168.20.0 {
                description 5c10-qfx3;
                peer-as 65302;
            }
        }
        inactive: group Contrail {
            type internal;
            traceoptions {
                file bgp.contrail.log;
                flag all;
            }
            family inet-vpn {
                unicast;
            }
            family inet6-vpn {
                unicast;
            }
            family evpn {
                signaling;
            }
            family route-target;
            local-as 64512;
            neighbor 10.1.0.2 {
                peer-as 64512;
            }
        }
    }
    inactive: isis {
        interface all {
            level 1 disable;
        }
    }
    lldp {
        interface all;
    }
    lldp-med {
        interface all;
    }
}
policy-options {
    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;
    }
    community IPFAB-LEAF members 64512:1001;
}
vlans {
    vlan10 {
        vlan-id 10;
        l3-interface irb.10;
    }
}
⚠️ **GitHub.com Fallback** ⚠️