[Contents] [Prev] [Next] [Index] [Report an Error]

Router D (Hub PE Router)

Routing Instance for Distributing Spoke Routes to Hub CE

routing-instance {
Spokes-to-Hub-CE {
instance-type vrf;
interface ge-0/0/0.0;
route-distinguisher 10.255.1.174:65535;
vrf-import spoke;
vrf-export null;
}
}

Instance Routing Protocol

protocols {
ospf {
export redistribute-vpn;
area 0.0.0.0 {
interface ge-0/0/0;
}
}
}

Routing Instance for Distributing Hub CE Routes to Spokes

Hub-CE-to-Spokes {
instance-type vrf;
interface ge-0/0/1.0;
route-distinguisher 10.255.1.174:65535;
vrf-import null;
vrf-export hub;
}

Routing Instance Routing Protocols

protocols {
ospf {
export redistribute-vpn;
area 0.0.0.0 {
interface ge-0/0/1.0;
}
}
}

Routing Options (Master Instance)

routing-options {
autonomous-system 1 loops 1;
}

Protocols (Master Instance)

protocols {
}

Enable LDP

ldp {
interface so-1/0/0.0;
interface t3-1/1/0.0;
}

Configure IBGP

bgp {
group Hub-to-Spokes {
type internal;
local-address 10.255.14.174;
family inet-vpn {
unicast;
}
neighbor 10.255.14.180;
neighbor 10.255.14.182;
}
}

Configure VPN Policy

policy-options {
policy-statement spoke {
term a {
from {
protocol bgp;
community spoke;
}
then accept;
}
term b {
then reject;
}
}
policy-statement hub {
term a {
from protocol ospf;
then {
community add hub;
accept;
}
}
term b {
then reject;
}
}
policy-statement null {
then reject;
}
policy-statement redistribute-vpn {
term a {
from protocol bgp;
then accept;
}
term b {
then reject;
}
}
community hub members target:65535:1;
community spoke members target:65535:2;
}

[Contents] [Prev] [Next] [Index] [Report an Error]