Srv1 @ 16 – IGP-Less Transport

## Last commit: 2015-07-23 19:20:33 UTC by juniper
version 15.1-20150327_ib_15_1_psd.1;
system {
    host-name 00-PE1;
    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:1a:2b;
        unit 0 {
            family inet {
                address 10.255.0.21/16;
            }
        }
    }
    ge-2/0/1 {
        mac 00:50:56:8b:c0:62;
        unit 0 {
            family inet {
                address 10.1.0.0/31;
            }
        }
    }
    ge-2/0/2 {
        mac 00:50:56:8b:12:02;
        unit 0 {
            family inet {
                address 10.0.0.0/31;
            }
            family mpls;
        }
    }
    ge-2/0/3 {
        mac 00:50:56:8b:d2:e9;
    }
    ge-2/0/4 {
        mac 00:50:56:8b:21:67;
    }
    lo0 {
        unit 0 {
            family inet {
                address 172.16.3.11/32 {
                    primary;
                }
            }
        }
    }
}
routing-options {
    interface-routes {
        rib-group inet RG-LOCAL-INTERFACES;
    }
    static {
        route 0.0.0.0/0 discard;
    }
    rib-groups {
        RG-LOCAL-INTERFACES {
            import-rib [ inet.0 inet.3 ];
            import-policy PL-LOCAL-LOOPBACK;
        }
        RG-RR-INET {
            import-rib [ inet.3 inet.0 ];
            import-policy PL-RR-INET;
        }
    }
    router-id 172.16.3.11;
    autonomous-system 65301;
    forwarding-table {
        export PL-LB;
    }
}
protocols {
    mpls {
        icmp-tunneling;
    }
    bgp {
        group eBGP-LU-65201 {
            multihop;
            family inet {
                labeled-unicast {
                    rib-group RG-RR-INET;
                    rib {
                        inet.3;
                    }
                }
            }
            export PL-LOCAL-LOOPBACK;
            peer-as 65201;
            neighbor 10.0.0.1;
        }
        group eBGP-INET {
            multihop;
            local-address 172.16.3.11;
            export PL-EBGP-INET-OUT;
            neighbor 172.16.1.1 {
                peer-as 65101;
            }
            neighbor 172.16.1.2 {
                peer-as 65102;
            }
        }
    }
}
policy-options {
    policy-statement PL-EBGP-INET-OUT {
        term VM-INTERFACE {
            from interface ge-2/0/1.0;
            then {
                community add VM;
                accept;
            }
        }
        then reject;
    }
    policy-statement PL-LB {
        then {
            load-balance per-packet;
        }
    }
    policy-statement PL-LOCAL-LOOPBACK {
        term LOCAL-LOOPBACK {
            from interface lo0.0;
            then {
                community add SERVER;
                community add CM-REGION-1;
                accept;
            }
        }
    }
    policy-statement PL-RR-INET {
        term RR {
            from community RR;
            then accept;
        }
        then reject;
    }
    community CM-REGION-1 members 65000:1001;
    community RR members 65000:1;
    community SERVER members 65000:3;
    community VM members 65000:100;exit

}

Advertisements