Configure the policy options for Router PE1 to accept all routes initially (term a) and then to install routes with a public-comm community into routing table inet.0 (term b):
- [edit]
- policy-options {
-
- policy-statement import-public-addr-to-inet0 {
-
- term a {
-
- from {
- protocol bgp;
- rib vpna.inet.0;
- community [ public-comm private-comm ];
- }
- then accept;
- }
-
- term b {
-
- from {
- protocol bgp;
- community public-comm;
- }
- to rib inet.0;
- then accept;
- }
-
- term c {
- then reject;
- }
- }
- community private-comm members target:1:333;
- community public-comm members target:1:111;
- community vpna-comm members target:63000:100;
- }