On Router PE1, you need to configure policies at the [edit policy-options] hierarchy level. These policies ensure that the CE routers in the Layer 3 VPN exchange routing information. In this example, Router CE1 in San Francisco exchanges routing information with Router CE2 in Chicago.
Configure the policy options on the PE1 router:
- [edit]
- policy-options {
-
- policy-statement vpn-import-VPN-A {
-
- term term1 {
-
- from {
- protocol bgp;
- community import-target-VPN-A;
- }
- then accept;
- }
-
- term term2 {
- then reject;
- }
- }
-
- policy-statement vpn-export-VPN-A {
-
- term term1 {
- from protocol ospf;
-
- then {
- community add export-target-VPN-A;
- accept;
- }
- }
-
- term term2 {
- then reject;
- }
- }
- community export-target-VPN-A members [target:10.255.14.216:11
- domain-id:1.1.1.1:0];
- community import-target-VPN-A members target:10.255.14.224:31;
- }