Juniper Router Configuration

This guide covers BGP configuration for Juniper devices running JunOS.

Configuration Template

protocols {
    bgp {
        group IXPN {
            type external;
            description "Peering with IXPN Route Servers";
            multihop;
            local-address <YOUR_ROUTER_IP>;
            peer-as <neighbor-as>;
            neighbor <neighbor-address> {
                description "IXPN RS1";
                authentication-key <MD5_PASSWORD>;
            }
            neighbor <neighbor-address> {
                description "IXPN RS2";
                authentication-key <MD5_PASSWORD>;
            }
        }
    }
}

Policy Configuration

It is recommended to apply import and export policies:

policy-options {
    policy-statement IXPN-IMPORT {
        term 1 {
            from protocol bgp;
            then accept;
        }
    }
    policy-statement IXPN-EXPORT {
        term 1 {
            from protocol bgp;
            from route-filter <YOUR_PREFIX> exact;
            then accept;
        }
        term 2 {
            then reject;
        }
    }
}