LEAF NODE1 CONFIG 5c10 qfx4 - kratna888/Contrail_Command GitHub Wiki

Last changed: 2018-06-05 17:22:09 PDT

version 17.3R2.9;
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.3/32 {
                            primary;
                            preferred;
                        }
                    }
                }
            }
        }
        routing-options {
            /* Global Routing Options */
            router-id 192.168.255.3;
            route-distinguisher-id 192.168.255.3;
            autonomous-system 64512;
            resolution {
                rib bgp.rtarget.0 {
                    resolution-ribs inet.0;
                }
            }
        }
        protocols {
            /* Protocols Configuration */
            bgp {
                /* BGP Router: 5c10-qfx4-bgp, UUID: 5f548a4e-ae1e-4753-9a44-f11b3816f81b */
                group _contrail_asn-64512 {
                    type internal;
                    local-address 192.168.255.3;
                    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-qfx2-bgp, UUID: 812803b8-3a93-4ddd-806f-348f82907f37 */
                    neighbor 192.168.255.101 {
                        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-qfx7-bgp, UUID: 163dd771-309f-4873-811a-9aecf6b2c89d */
                    neighbor 192.168.255.1 {
                        peer-as 64512;
                    }
                    /* BGP Router: 5c10-qfx8-bgp, UUID: fc9b5ec1-f27e-4a27-817e-45677578149a */
                    neighbor 192.168.255.2 {
                        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-qfx4;
    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$0CzghVYy$gJtV3tItMAU0kkEEytEihc.7VwD1nArb3QtIYpcG/WCpiK0nkAYGvYnt6tIX5X151LOQfk2.dLsbchWp1aQ1N/"; ## SECRET-DATA
    }
    name-server {
        10.84.5.100;
        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 {
    fpc 0 {
        pic 0 {
            port 30 {
                channel-speed 10g;
            }
            port 33 {
                channel-speed 10g;
            }
        }
    }
}
interfaces {
    et-0/0/0 {
        unit 0 {
            family inet {
                address 192.168.10.5/31;
            }
            family iso;
        }
    }
    et-0/0/1 {
        unit 0 {
            family inet {
                address 192.168.20.5/31;
            }
            family iso;
        }
    }
    xe-0/0/32:1 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members vlan10;
                }
            }
        }
    }
    xe-0/0/33:0 {
        unit 0 {
            family ethernet-switching;
        }
    }
    xe-0/0/33:1 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members vlan10;
                }
            }
        }
    }
    em0 {
        unit 0 {
            family inet {
                address 10.84.130.37/19;
            }
        }
    }
    irb {
        unit 10 {
            family inet {
                address 10.1.0.65/26;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.255.3/32;
            }
            family iso {
                address 49.0002.0192.0168.2553.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.3;
    autonomous-system 64512;
}
protocols {
    bgp {
        group IPFAB-UNDER {
            type external;
            mtu-discovery;
            export BGP-IPFAB-UNDER-EXP;
            local-as 65003;
            multipath multiple-as;
            neighbor 192.168.10.4 {
                description 5c10-qfx2;
                peer-as 65301;
            }
            neighbor 192.168.20.4 {
                description 5c10-qfx3;
                peer-as 65302;
            }
        }
    }
    isis {
        interface all {
            level 1 disable;
        }
    }
    lldp {
        interface all;
    }
    lldp-med {
        interface all;
    }
    igmp-snooping {
        vlan default;
    }
}
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** ⚠️