This configuration is an extension of the example in Routing Internet Traffic Through a Hub CE Router. It provides different exit points for various sites by using multiple hub CE routers that perform similar functions.
Routing Instances
- routing-instances {
-
- vpna {
- instance-type vrf;
- interface t3-0/2/0.0;
- interface at-1/3/1.0;
- route-distinguisher 10.255.14.171:100;
- vrf-import vpna-import;
- vrf-export vpna-export;
-
- routing-options {
-
- static {
- route 0.0.0.0/0 next-hop 10.23.0.1;
- }
- }
-
- protocols {
-
- bgp {
-
- group to-CE1 {
- export export-default;
- peer-as 63001;
- neighbor 192.168.197.14;
- }
- }
- }
- }
- }
Policy Options
- policy-options {
-
- policy-statement vpna-import {
-
- term a {
-
- from {
- protocol bgp;
- community vpna-comm;
- }
- then accept;
- }
-
- term b {
- then reject;
- }
- }
-
- policy-statement vpna-export {
-
- term a {
-
- from {
- protocol static;
- route-filter 0.0.0.0/0 exact;
- }
-
- then {
- community add public-comm1;
- community add vpna-comm;
- accept;
- }
- }
-
- term b {
- from protocol bgp;
-
- then {
- community add vpna-comm;
- accept;
- }
- }
-
- term c {
- then reject;
- }
- }
- community public-comm1 members target:1:111;
- community public-comm2 members target:1:112;
- community vpna-comm members target:63000:100;
- }