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

Router PE2

Routing Instance for VPN-A

routing-instance {
VPN-A {
instance-type vrf;
interface so-1/2/0.0;
route-distinguisher 65535:1;
vrf-import VPN-A-import;
vrf-export VPN-A-export;
}
}

Instance Routing Protocol

protocols {
ospf {
area 0.0.0.0 {
interface so-1/2/0.0;
}
}
}

Interfaces

interfaces {
so-0/0/0 {
unit 0 {
family mpls;
}
}
so-1/2/0 {
unit 0;
}
}

Master Protocol Instance

protocols {
}

Enable LDP

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

Enable MPLS

mpls {
interface so-0/0/0.0;
interface so-1/2/0.0;
}

Configure IBGP

bgp {
group PE2-to-PE1 {
type internal;
local-address 10.255.200.2;
family inet-vpn {
unicast;
}
neighbor 10.255.1.1;
}
}

Configure VPN Policy

policy-options {
policy-statement VPN-A-import {
term a {
from {
protocol bgp;
community VPN-A;
}
then accept;
}
term b {
then reject;
}
}
policy-statement VPN-A-export {
term a {
from protocol ospf;
then {
community add VPN-A;
accept;
}
}
term b {
then reject;
}
}
community VPN-A members target:65535:01;
}

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