Configure the vrf-import policy for Router PE3 to select the Internet exit point based on the additional communities specified in Configuring Policy Options on Router PE1:
- [edit]
- policy-options {
-
- policy-statement vpna-export {
-
- term a {
- from protocol rip;
-
- then {
- community add vpna-comm;
- accept;
- }
- }
-
- term b {
- then reject;
- }
- }
-
- policy-statement vpna-import {
-
- term a {
-
- from {
- protocol bgp;
- community public-comm1;
- route-filter 0.0.0.0/0 exact;
- }
- then reject;
- }
-
- term b {
-
- from {
- protocol bgp;
- community vpna-comm;
- }
- then accept;
- }
-
- term c {
- then reject;
- }
- }
-
- policy-statement export-CE {
- from protocol bgp;
- then accept;
- }
- community vpna-comm members target:69:100;
- community public-comm1 members target:1:111;
- community public-comm2 members target:1:112;
- }