L1 @ 2 – BGP-LU in Datacenter

## Last commit: 2015-07-21 11:50:39 UTC by juniper
version 15.1-20150327_ib_15_1_psd.1;
system {
    host-name 00-PE3;
    root-authentication {
        encrypted-password “$5$UtCgvITo$qB7eJZA5VvexJa8ADdmn.avTjkJQ47SC.Q/i.lzWhc9”; ## SECRET-DATA
    }
    login {
        user juniper {
            uid 2000;
            class super-user;
            authentication {
                encrypted-password “$5$L9yJNREr$Gz.PM4rZ5.KrxWUmBhTUHv9lnglXHirebGrBCyN0tO6”; ## SECRET-DATA
            }
        }
    }
    services {
        ftp;
        ssh;
        telnet;
    }
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
}
interfaces {
    ge-2/0/0 {
        mac 00:50:56:8b:b6:a0;
        unit 0 {
            family inet {
                address 10.255.0.23/16;
            }
        }
    }
    ge-2/0/1 {
        mac 00:50:56:8b:7e:53;
        unit 0 {
            family inet {
                address 10.0.0.1/31;
            }
            family mpls;
        }
    }
    ge-2/0/2 {
        mac 00:50:56:8b:65:dd;
        unit 0 {
            family inet {
                address 10.0.0.6/31;
            }
            family mpls;
        }
    }
    ge-2/0/3 {
        mac 00:50:56:8b:61:02;
        unit 0 {
            family inet {
                address 10.0.0.4/31;
            }
            family mpls;
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 172.16.2.11/32;
            }
        }
    }
}
routing-options {
    interface-routes {
        rib-group inet RG-LOCAL-INTERFACES;
    }
    rib-groups {
        RG-LOCAL-INTERFACES {
            import-rib [ inet.0 inet.3 ];
            import-policy PL-LOCAL-LOOPBACK;
        }
    }
    router-id 172.16.2.11;
    autonomous-system 65201;
    forwarding-table {
        export PL-LB;
    }
}
protocols {
    mpls {
        icmp-tunneling;
    }
    bgp {
        group eBGP-LU-65101 {
            family inet {
                labeled-unicast {
                    rib {
                        inet.3;
                    }
                }
            }
            export PL-LOCAL-LOOPBACK;
            peer-as 65101;
            neighbor 10.0.0.5;
        }
        group eBGP-LU-65102 {
            family inet {
                labeled-unicast {
                    rib {
                        inet.3;
                    }
                }
            }
            export PL-LOCAL-LOOPBACK;
            peer-as 65102;
            neighbor 10.0.0.7;
        }
        group eBGP-LU-65301 {
            family inet {
                labeled-unicast {
                    rib {
                        inet.3;
                    }
                }
            }
            export PL-LOCAL-LOOPBACK;
            peer-as 65301;
            neighbor 10.0.0.0;
        }
    }
}
policy-options {
    policy-statement PL-LB {
        then {
            load-balance per-packet;
        }
    }
    policy-statement PL-LOCAL-LOOPBACK {
        term LOCAL-LOOPBACK {
            from interface lo0.0;
            then accept;
        }
    }
}

Advertisements