In the example of the Layer 3 VPN hub-and-spoke configuration displayed in Figure 13-12, there are three PE routers and three CE routers. With both sets of routers, there will be one hub and two spokes. PE router Chicago will be configured as the PE hub, while Rome and New York will be configured as PE spokes. Seattle will be the CE hub, while Singapore and Berlin will be the CE spokes . The configurations for the routers are listed following the explanation below:
Figure 13-12. Case Study 2
Note When using BGP as the protocol between the CE hub and PE hub, BGP should be configured to accept routes with its own ASN listed more than once in the AS path list. [edit routing-options] set autonomous-system as-number loops number of loops from 0-10 The following examples show working Layer 3 VPN configurations on Juniper Networks routers. Each section is labeled with the router name and displays the configuration for the routers listed in Figure 13-12. PE Hub Router ChicagoThe following output is the configuration used by PE router Chicago in Case Study 2. This router will be used as the PE hub and exchange routing information with the other two PE routers. Chicago's configuration is displayed below: interfaces { fe-1/0/3 { unit 0 { family inet { address 10.0.8.1/24; } family mpls; } } at-1/2/1 { atm-options { vpi 0 maximum-vcs 200; } unit 100 { vci 0.100; family inet { address 10.0.0.2/24; } family mpls; } unit 102 { vci 0.102; family inet { address 172.16.1.1/24; } family mpls; } } } lo0 { unit 0 { family inet { address 192.168.5.1/32; } } } } routing-options { router-id 192.168.5.1; autonomous-system 100; } protocols { mpls { interface at-1/2/1.100; interface at-1/2/1.102; interface fe-1/0/3.0; interface at-1/2/0.100; } bgp { local-address 192.168.5.1; family inet-vpn { unicast; } group VPN-PE-Routers { type internal; neighbor 192.168.12.1; neighbor 192.168.2.1; } } ospf { traffic-engineering; area 0.0.0.0 { interface at-1/2/0.100; interface fe-1/0/3.0; interface lo0.0; } } ldp { interface fe-1/0/3.0; interface at-1/2/0.100; } } policy-options { policy-statement REJECT { then reject; } policy-statement HUB { term A { from protocol ospf; then { community add HUB; accept; } } term B { then reject; } } policy-statement SPOKE { term A { from { protocol bgp; community SPOKE; } then accept; } term B { then reject; } } policy-statement SEND-VPN { term A { from protocol bgp; then accept; } term B { then reject; } } community HUB members target:64512:01; community SPOKE members target:64512:02; } routing-instances { CE-Hub-Routes-to-Spokes { instance-type vrf; interface at-1/2/1.102; route-distinguisher 192.168.5.1:64512; vrf-import REJECT; vrf-export HUB; protocols { ospf { export SEND-VPN; area 0.0.0.0 { interface at-1/2/1.102; } } } } Spoke-Routes-to-CE-Hub { instance-type vrf; interface at-1/2/1.100; route-distinguisher 192.168.5.1:64512; vrf-import SPOKE; vrf-export REJECT; protocols { ospf { export SEND-VPN; area 0.0.0.0 { interface at-1/2/1.100; PE Spoke Router RomeThe Rome router is being used in Case Study 2 as a PE spoke. The configuration is displayed below: interfaces { fe-1/0/3 { unit 0 { family inet { address 10.0.8.2/24; } family mpls; } } ge-1/2/0 { unit 0 { family inet { address 10.0.13.2/24; } family mpls; } } lo0 { unit 0 { family inet { address 192.168.12.1/32; } } } } routing-options { router-id 192.168.12.1; autonomous-system 100; } protocols { mpls { interface fe-1/0/3.0; interface ge-1/2/0.0; } bgp { local-address 192.168.12.1; family inet-vpn { unicast; } group VPN-PE-Routers { type internal; neighbor 192.168.5.1; } } ospf { traffic-engineering; area 0.0.0.0 { interface fe-1/0/3.0; interface lo0.0; } } ldp { interface fe-1/0/3.0; } } policy-options { policy-statement To-Hub { term A { from { protocol bgp; community HUB; } then accept; } term B { then reject; } } policy-statement To-Spoke { term A { from protocol ospf; then { community add SPOKE; accept; } } term B { then reject; } } policy-statement SEND-VPN { term A { from protocol bgp; then accept; } term B { then reject; } } community HUB members target:64512:01; community SPOKE members target:64512:02; } routing-instances { PE-Spoke-Rome-to-PE-Hub { instance-type vrf; interface ge-1/2/0.0; route-distinguisher 192.168.12.1:64512; vrf-import To-Hub; vrf-export To-Spoke; protocols { ospf { export SEND-VPN; area 0.0.0.0 { interface ge-1/2/0.0; PE Spoke Router New YorkPE spoke router New York is one of the two PE spokes that exchanges routing information with PE hub Chicago. New York's configuration is displayed below: interfaces { so-0/1/0 { unit 0 { family inet { address 10.0.24.1/24; } family mpls; } } at-6/2/0 { atm-options { vpi 0 maximum-vcs 200; } unit 100 { vci 0.100; family inet { address 10.0.2.1/24; } } } lo0 { unit 0 { family inet { address 192.168.2.1/32; } } } } routing-options { router-id 192.168.2.1; autonomous-system 100; } protocols { mpls { interface at-6/2/0.100; interface so-0/1/0.0; } bgp { local-address 192.168.2.1; group VPN-PE-Routers { type internal; neighbor 192.168.5.1 { family inet-vpn { unicast; } } } } ospf { traffic-engineering; area 0.0.0.0 { interface at-6/2/0.100; interface lo0.0; } } ldp { interface at-6/2/0.100; } } policy-options { policy-statement To-Hub { term A { from { protocol bgp; community HUB; } then accept; } term B { then reject; } } policy-statement To-Spoke { term A { from protocol ospf; then { community add SPOKE; accept; } } term B { then reject; } } policy-statement SEND-VPN { term A { from protocol bgp; then accept; } term B { then reject; } } community HUB members target:64512:01; community SPOKE members target:64512:02; } routing-instances { PE-Spoke-NewYork-to-PE-Hub { instance-type vrf; interface so-0/1/0.0; route-distinguisher 192.168.2.1:64512; vrf-import To-Hub; vrf-export To-Spoke; protocols { ospf { export SEND-VPN; area 0.0.0.0 { interface so-0/1/0.0; CE Hub Router SeattleCE hub router Seattle uses the router configuration displayed below. This router will serve as a hub router for the other two CE routers, Berlin and Singapore. interfaces { at-1/2/0 { atm-options { vpi 0 maximum-vcs 200; } unit 100 { vci 0.100; family inet { address 10.0.0.1/24; } } unit 102 { vci 0.102; family inet { address 172.16.1.2/24; lo0 { unit 0 { family inet { address 192.168.0.1/32; } } } } routing-options { router-id 192.168.0.1; } protocols { ospf { area 0.0.0.0 { interface all; CE Spoke Router SingaporeThe configuration of the CE spoke router Singapore is displayed below: interfaces { ge-1/1/1 { unit 0 { family inet { address 10.0.13.1/24; lo0 { unit 0 { family inet { address 192.168.8.1/32; routing-options { router-id 192.168.8.1; } protocols { ospf { area 0.0.0.0 { interface all; CE Spoke Router BerlinThe configuration for the CE spoke router Berlin is displayed below: interfaces { so-1/1/0 { unit 0 { family inet { lo0 { unit 0 { family inet { address 192.168.24.1/32; routing-options { router-id 192.168.24.1; } protocols { ospf { area 0.0.0.0 { interface all; |