[j-nsp] L3PVN Hub/spoke on same PE
Ihsan Junaidi Ibrahim
ihsan.junaidi at gmail.com
Sun Oct 15 05:03:18 EDT 2006
Hi all,
I'm having some problems getting routes from a spoke to be seen from
the hub and vice versa. All other spokes are located on different PEs
and there's no problem getting the routes to and fro the hub.
I've created two separate VRFs, one each for the hub and the spoke. A
show route on respective VRF routing table does not show the routes
are being exported/imported via BGP.
Is there an alternate way of configuring the VRF so that they can see
each other on the same PE? The following is the relevant configuration
snippet.
---routing-instance--
Spoke-100 {
instance-type vrf;
interface fe-0/1/8.100;
route-distinguisher 1.1.1.1:100;
vrf-import Spoke-import;
vrf-export Spoke-export;
routing-options {
static {
route 192.168.0.0/24 next-hop 10.0.0.2;
}
}
}
Hub {
instance-type vrf;
interface fe-0/1/6.305;
route-distinguisher 1.1.1.1:50;
vrf-import Hub-import;
vrf-export Hub-export;
routing-options {
static {
route 0.0.0.0/0 next-hop 10.1.0.2;
}
}
}
---policy-options---
policy-statement Hub-import {
term a {
from {
protocol bgp;
community [ Spoke-comm ];
}
then accept;
}
term b {
then reject;
}
}
policy-statement Hub-export {
term a {
from protocol [ static direct ];
then {
community add Hub-comm;
accept;
}
}
term b {
then reject;
}
}
policy-statement Spoke-import {
term a {
from {
protocol bgp;
community Hub-comm;
}
then accept;
}
term b {
then reject;
}
}
policy-statement Spoke-export {
term a {
from protocol [ static direct ];
then {
community add Spoke-comm
accept;
}
}
term b {
then reject;
}
}
--
Thank you for your time,
Ihsan Junaidi Ibrahim
More information about the juniper-nsp
mailing list