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

Router E (Spoke PE Router)

Routing Instance

routing-instance {
Spoke-E-to-Hub {
instance-type vrf;
interface fe-0/1/0.0;
route-distinguisher 10.255.14.80:65535;
vrf-import hub;
vrf-export spoke;
}
}

Instance Routing Protocol

protocols {
ospf {
export redistribute-vpn;
area 0.0.0.0 {
interface fe-0/1/0.0;
}
}
}

Routing Options (Master Instance)

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

Protocols (Master Instance)

protocols {
}

Enable LDP

ldp {
interface fe-0/1/2.0;
}

Configure IBGP

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

Configure VPN Policy

policy-options {
policy-statement hub {
term a {
from {
protocol bgp;
community hub;
}
then accept;
}
term b {
then reject;
}
}
policy-statement spoke {
term a {
from protocol ospf;
then {
community add spoke;
accept;
}
}
term b {
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]