[j-nsp] Community Export/Import Configuration in MP-BGP

Vladimir S. Blazhkun xeroform at internet2.ru
Thu Dec 23 04:59:12 EST 2004


> Hi All,
>
> Can somebody tell me what is the equilant configuration in JuniperM40e Router 
> runing JunOS 6.2 for the below commands we use Cisco Routers w.r.t MP-BGP and 
> VRF Import and VRF-Export
>
> 1)  ip vrf test
> route-target both 123:1

routing-instances {
     test {
 	instance-type vrf;
 	route-distinguisher 123:1;
 	vrf-import test-import;
 	vrf-export test-export;
 	routing-options {
 	    static {
 		route 172.20.1.0/24 {
 		next-hop 172.17.0.10;
 		passive;
 	    }
 	}
     }
}

policy-options {
     policy-statement test-export {
         term 1 {
             from protocol static;
             then {
                 community add test;
                 accept;
             }
         }
         term 2 {
             then reject;
         }
     }
     policy-statement test-import {
         term 1 {
             from {
                 protocol bgp;
                 community test;
             }
             then accept;
         }
         term 2 {
             then reject;
         }
     }
     community test members target:123:1;
}

> 2) nei x.y.z.a activate
>   nei x.y.z.a send-community both

community attribute will send as defined in export policy.

> Regards,
> Srikant

-- 
Vladimir S. Blazhkun,
Lead IP NCC Specialist, OOO "PCS-Moscow",
Work phone: +7 095 7847617.


More information about the juniper-nsp mailing list