Professional Documents
Culture Documents
Advanced Topics
VRF-A VRF-B
VPN-A/B VPN-B/A
Routes Routes
CE-A CE-B
VPN-A VPN-B
Goal: Allow communications between CE-A and CE-B without placing them
into the same VPN
Solution: Use the auto-export command or RIB groups
3
vrf-target target:65412:100;
0//
-0
routing-options { routing-options {
ge
auto-export; auto-export; 10.0.50/24
} }
.2
protocols { protocols {
bgp {
CE
bgp {
group ce-a { group ce-b {
B
peer-as 65000; peer-as 65000;
as-override; as-override;
neighbor 10.0.21.2; neighbor 10.0.50.2
. . . . . .
/3
vpn-a {
0
0/
-
. . .
ge
routing-options { 10.0.50/24
interface-routes {
.2
rib-group inet a-to-b; CE
}
} B
protocols {
bgp {
group ext {
type external;
family inet {
unicast {
rib-group a-to-b;
}
}
. . .
Hub
CE
ge-0/0/0.0 4 ge-0/0/0.1
3
Spoke Hub PE Hub
VRF VRF
Target: Target:
Spoke Hub
2 5
Spoke Spoke
CE-1 CE-2
1 6
Hub
CE
4 3
ge-0/0/0.0 ge-0/0/0.1
5 2
Spoke Spoke
CE-1 1 CE-2
6
policy-statement vpna-export {
term 1 {
from protocol [bgp static direct ];
then {
community add origin-pe1;
community add spoke;
accept;
}
}
term 3 {
then reject;
}
}
community origin-pe1 members origin:192.168.16.1:1;
community hub members target:65412:100;
community spoke members target:65412:101;
}
© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 12
Sample Hub Configuration (1 of 4)
Multiple interfaces (logical or physical) needed at the
hub location:
interfaces {
ge-0/0/0 {
vlan-tagging;
unit 0 {
vlan-id 100;
family inet {
address 10.0.29.1/24;
}
}
unit 1 {
vlan-id 200;
family inet {
address 10.0.30.1/24;
}
}
}
R R R
PE-1 P CE-1 CE-2 P PE-2
Private Addresses
PE
ge-0/0/1
nnel
2 ge-0/0/0
CE PE-1
1
u
HK t
A GRE tunnel
21/24 1 lo0: 192.168.16.1
c
IPse
172.20.0/24