RR1 @ 9 – Inter-AS Option C

## Last commit: 2015-07-26 22:52:55 UTC by juniper
version 14.1R1.4;
system {
    host-name RR1;
    root-authentication {
        encrypted-password “$1$u4HbSHGF$LWIoJ3RSy2dkD8.xAN3.V/”; ## SECRET-DATA
    }
    login {
        user juniper {
            uid 2000;
            class super-user;
            authentication {
                encrypted-password “$1$0bM5RjcF$.2/5R95p7bBHBphC5atit0”; ## SECRET-DATA
            }
        }
    }
    services {
        ssh;
        telnet;
    }
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
}
interfaces {
    ge-0/0/0 {
        mac 00:50:56:8b:35:d3;
        unit 0 {
            family inet {
                address 10.255.0.41/24;
            }
        }
    }
    ge-0/0/1 {
        mac 00:50:56:8b:10:69;
        unit 0 {
            family inet {
                address 10.0.0.17/31;
            }
            family iso;
            family mpls;
        }
    }
    ge-0/0/2 {
        mac 00:50:56:8b:e7:a7;
        unit 0 {
            family inet {
                address 10.0.0.14/31;
            }
            family iso;
        }
    }
    ge-0/0/3 {
        mac 00:50:56:8b:f0:9c;
        unit 0 {
            family inet {
                address 10.0.0.19/31;
            }
            family iso;
            family mpls;
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 172.16.0.201/32;
            }
            family iso {
                address 49.0000.1720.1600.0201.00;
            }
        }
    }
}
routing-options {
    interface-routes {
        rib-group inet RG-LOCAL-LOOPBACK;
    }
    rib inet.3 {
        static {
            route 0.0.0.0/0 discard;
        }
    }
    rib inet6.0 {
        static {
            route 0::0/0 discard;
        }
    }
    rib inet6.3 {
        static {
            route 0::0/0 discard;
        }
    }
    static {
        route 0.0.0.0/0 discard;
    }
    rib-groups {
        RG-LOCAL-LOOPBACK {
            import-rib [ inet.0 inet.3 ];
            import-policy PL-LOCAL-LOOPBACK;
        }
    }
    autonomous-system 65100;
}
protocols {
    bgp {
        group CLIENTS {
            type internal;
            local-address 172.16.0.201;
            family inet-vpn {
                unicast;
            }
            family inet6-vpn {
                unicast;
            }
            family route-target {
                advertise-default;
            }
            cluster 172.16.0.201;
            neighbor 172.16.0.11;
            neighbor 172.16.0.22;
        }
        group eBGP-RR-65101 {
            multihop {
                no-nexthop-change;
            }
            local-address 172.16.0.201;
            family inet-vpn {
                unicast;
            }
            family inet6-vpn {
                unicast;
            }
            peer-as 65101;
            neighbor 172.16.10.203;
            neighbor 172.16.10.204;
        }
        group ASBR {
            type internal;
            local-address 172.16.0.201;
            family inet {
                labeled-unicast;
            }
            export PL-LOCAL-LOOPBACK;
            neighbor 172.16.0.101;
            neighbor 172.16.0.102;
        }
    }
    isis {
        overload;
        level 1 disable;
        level 2 wide-metrics-only;
        interface ge-0/0/1.0 {
            point-to-point;
        }
        interface ge-0/0/2.0 {
            point-to-point;
        }
        interface ge-0/0/3.0 {
            point-to-point;
            level 2 metric 100;
        }
        interface lo0.0;
    }
    ldp {
        interface ge-0/0/1.0;
        interface ge-0/0/3.0;
    }
}
policy-options {
    policy-statement PL-LOCAL-LOOPBACK {
        term LOCAL-LOOPBACK {
            from interface lo0.0;
            then {
                metric 0;
                origin incomplete;
                community add CM-RR0;
                accept;
            }
        }
        term DIRECT {
            from protocol direct;
            then reject;
        }
    }
    community CM-RR0 members 65000:100;
}

Advertisements