To configure policy statements on the provider’s PE router to export routes to and import routes from the carrier customer’s network, include the policy-statement and community statements:
- policy-statement statement-name {
-
- term term-name {
-
- from {
- protocol bgp;
- community community-name;
- }
- then accept;
- }
-
- term term-name {
- then reject;
- }
- }
- policy-statement statement-name {
-
- term term-name {
- from protocol bgp;
-
- then {
- community add community-name;
- accept;
- }
- }
-
- term term-name {
- then reject;
- }
- }
- community community-name members value;
You can include these statements at the following hierarchy levels: