[j-nsp] BGP session to self over loopback interface?

Sabri Berisha sabri at cluecentral.net
Wed Feb 7 03:12:09 EST 2007


On Wed, Feb 07, 2007 at 01:07:14AM -0500, Chuck Anderson wrote:

Hi,

> Is there another way to accomplish this?

-If- I understand you correctly, this example might help:

routing-options {
    aggregate {
        route 195.16.84.0/22 community 31064:500;
        route 194.126.235.0/24 community 31064:500;
    }
    router-id 194.126.235.1;
    autonomous-system 31064;
}
protocols {
    bgp {
        group transit {
            type external;
            import transit-import;
            export transit-export;
            remove-private;
            neighbor 213.193.208.73 {
                peer-as 15703;
            }
            neighbor 87.233.12.253 {
                peer-as 15703;
            }
        }
    }
}
policy-options {
    policy-statement transit-export {
        term reject-members {
            from community virtix-member;
            then reject;
        }
        term originate-virtix-range {
            from {
                protocol aggregate;
                community virtix-originate;
            }
            then accept;
        }
    community virtix-originate members 31064:500;
}

If you setup a local bgp session, you will probably hit as-loop
protection.

Thanks,

-- 
Sabri
JNCIP-M #381


More information about the juniper-nsp mailing list